/* ================================================================== */
/*  About page — Sensytec idiom                                       */
/*  Centered headline hero → mission with hairline divider → stats    */
/*  row → 3-column "what we do" blocks → closing CTA. White surface,  */
/*  generous whitespace, single brand-blue accent.                    */
/* ================================================================== */

/* The page no longer relies on .cm-page padding — define our own. */
.about-page {
    padding-bottom: 96px;
}

.ab-mission,
.ab-stats,
.ab-pillars,
.ab-cta {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- 1. What are we? — full-width hero with animated hex pattern ---------- */

.ab-whatarewe {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: 72px 58px;
    background: var(--bg);
}
@media (min-width: 768px) {
    .ab-whatarewe {
        padding-block: 108px 72px;
    }
}

/* Flow-line layer with a corner-anchored fade:
   100% opaque at the bottom-left, fully transparent past the centre. */
.ab-whatarewe::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("../../assets/images/graphics/about-flow-bg.svg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(20deg, #000 0%, transparent 45%);
            mask-image: linear-gradient(20deg, #000 0%, transparent 45%);
}

/* Mobile: the section is portrait while the SVG is landscape (1600×600),
   so `cover` blows the band well off-screen and the diagonal mask hides
   what little remains. Anchor the band to the bottom edge at natural
   aspect, and fade vertically so the lines emerge from the section
   bottom — keeps the same "wave" feel on a tall layout. */
@media (max-width: 767px) {
    .ab-whatarewe::before {
        /* Mobile uses a bolder variant (thicker strokes, higher opacity) so the
           lines actually read on a small screen — the desktop SVG is too delicate
           when reduced to phone-sized renders. */
        background-image: url("../../assets/images/graphics/about-flow-bg-mobile.svg");
        background-size: 200vw 225vw;
        background-position: left calc(50% + 20px);
        opacity: 0.3;
        -webkit-mask-image: linear-gradient(20deg, #000 0%, transparent 70%);
                mask-image: linear-gradient(20deg, #000 0%, transparent 70%);
    }
}

/* Inner content — centered, max 1280, 24px side padding */
.ab-whatarewe__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .ab-whatarewe__inner {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: start;
    }
}

.ab-whatarewe__title {
    margin: 0;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    color: var(--text);
    text-wrap: balance;
}
.ab-whatarewe__accent {
    color: inherit;
}

.ab-whatarewe__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 56ch;
}
@media (min-width: 768px) {
    .ab-whatarewe__body {
        padding-top: clamp(6px, 0.9vw, 9px);
    }
}
.ab-whatarewe__body p {
    margin: 0;
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

/* ---------- 2. Mission — subheading, divider, paragraph ---------- */

.ab-mission {
    text-align: center;
    padding: 32px 0 64px;
    max-width: 760px;
}
.ab-mission__title {
    margin: 0 0 18px;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    background-image: var(--title-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ab-mission__divider {
    display: block;
    width: 56px;
    height: 3px;
    margin: 0 auto 22px;
    background: var(--brand-fill);
    border-radius: var(--radius-2xs);
}
.ab-mission__body {
    margin: 0 auto;
    max-width: 60ch;
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

/* ---------- 3. Stats row ---------- */

.ab-stats {
    margin: 0 auto 96px;
}
.ab-stats__grid {
    list-style: none;
    margin: 0;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
@media (min-width: 720px) {
    .ab-stats__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 24px; }
}
.ab-stat__value {
    margin: 0 0 6px;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: var(--fw-bold);
    line-height: 1.05;
    letter-spacing: var(--ls-display);
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}
.ab-stat__label {
    margin: 0;
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-medium);
    line-height: var(--lh-snug);
    color: var(--text-muted);
}

/* ---------- 4a. What we do — editorial numbered rows ----------
   Distinct from the Why-SHM360 cards that follow: big gradient
   numerals act as the visual anchor, hairline rules separate
   each service, and the section title carries an amber accent. */

.ab-services {
    max-width: var(--container-max);
    margin: 96px auto;
    padding: 0 24px;
}
@media (max-width: 767px) {
    .ab-services { margin-top: 64px; margin-bottom: 64px; }
}

/* Section header (direct child of the section, wraps the h2) — distinct from
   the per-item headers styled below. */
.ab-services > .ab-services__head {
    max-width: 720px;
    margin: 0 0 32px;
}
.ab-services__title {
    margin: 0;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    text-wrap: balance;
    background-image: var(--title-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ab-services__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ab-services__item {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    transition: transform var(--dur-med) var(--ease-out);
}
.ab-services__item:last-child {
    border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
    .ab-services__item { padding: 40px 0; }
}
@media (hover: hover) {
    .ab-services__item:hover { transform: translateX(8px); }
}

/* Per-item header (numeral + icon + name) inside each service row. */
.ab-services__item > .ab-services__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 16px;
}

.ab-services__numeral {
    flex: 0 0 auto;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.ab-services__name {
    margin: 0;
    font-size: var(--fs-h2);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    letter-spacing: -0.01em;
    color: var(--text);
}

.ab-services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    transition: background-color var(--dur-fast) var(--ease-out),
                color            var(--dur-fast) var(--ease-out);
}
.ab-services__item:hover .ab-services__icon {
    background: var(--icon-hover-bg);
    color: var(--brand);
}

.ab-services__desc {
    margin: 0;
    max-width: none;
    font-size: var(--fs-body);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}
[dir="rtl"] .ab-services__item:hover {
    transform: translateX(-8px);
}


/* ---------- 4b. Why SHM360 — 3-column blocks (kept for the Why-section variant) ---------- */

.ab-pillars {
    margin-top: 96px;
    margin-bottom: 96px;
    text-align: start;
}
@media (max-width: 767px) {
    .ab-pillars { margin-top: 64px; }
}
.ab-pillars__head {
    max-width: 720px;
    margin: 0 0 48px;
}
/* Wide variant — lets the header + lead span the full container (one line). */
.ab-pillars--wide .ab-pillars__head,
.ab-pillars--wide .ab-pillars__lead {
    max-width: none;
}
/* Section eyebrow — same amber caps as every other section of the site. */
.ab-pillars__eyebrow {
    margin: 0 0 12px;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--accent-amber);
}
/* Facts: three cards side by side on desktop. */
@media (min-width: 960px) {
    .ab-pillars__grid--three { grid-template-columns: repeat(3, 1fr); }
}
.ab-pillars__title {
    margin: 0 0 14px;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    text-wrap: balance;
    background-image: var(--title-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ab-pillars__lead {
    margin: 0;
    max-width: 64ch;
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}
.ab-pillars__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px 24px;
    text-align: start;
}
@media (min-width: 600px) {
    .ab-pillars__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
}
@media (min-width: 960px) {
    .ab-pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
}

/* Why-SHM360 variant: product-card style — dot-grid background, brand-colour
   L-shaped corner brackets, matching the SHM360-Node sheet on the product page. */
.ab-pillars--why { text-align: start; }
.ab-pillars--why .ab-pillars__head {
    max-width: none;
    text-align: start;
    margin: 0 0 32px;
}
.ab-pillars--why .ab-pillars__lead {
    max-width: none;
    margin: 0;
}

.ab-pillars--why .ab-pillars__grid { grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 600px) {
    .ab-pillars--why .ab-pillars__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 960px) {
    .ab-pillars--why .ab-pillars__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.ab-pillars--why .ab-pillar {
    position: relative;
    padding: 32px 24px 26px;
    background: var(--bg-soft);
    background-image: radial-gradient(rgba(4, 44, 113, 0.08) 1px, transparent 1.5px);
    background-size: 18px 18px;
    background-position: 0 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.ab-pillars--why .ab-pillar::before,
.ab-pillars--why .ab-pillar::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--brand);
    pointer-events: none;
}
.ab-pillars--why .ab-pillar::before {
    top: 8px; left: 8px;
    border-right: 0;
    border-bottom: 0;
}
.ab-pillars--why .ab-pillar::after {
    bottom: 8px; right: 8px;
    border-left: 0;
    border-top: 0;
}
.ab-pillars--why .ab-pillar__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
}
.ab-pillars--why .ab-pillar__title {
    margin: 0 0 8px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--text);
    letter-spacing: -0.01em;
}
.ab-pillars--why .ab-pillar__desc {
    margin: 0;
    font-size: var(--fs-body-sm);
    color: var(--text-muted);
    line-height: var(--lh-loose);
}

.ab-pillar {
    padding: 0;
}
.ab-pillar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: var(--brand-50, #eef2fb);
    color: var(--brand);
    transition: background-color var(--dur-fast) var(--ease-out);
}
.ab-pillar:hover .ab-pillar__icon {
    background: var(--icon-hover-bg);
}
.ab-pillar__title {
    margin: 0 0 8px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    color: var(--text);
}
.ab-pillar__desc {
    margin: 0;
    font-size: var(--fs-body-sm);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

/* ---------- 5. Closing CTA ---------- */

.ab-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: start;
    /* Gradient banner card matching .cm-final / .sw-final on the other pages.
       Horizontal padding 24 inherited from the shared rule above. */
    padding-top: 64px;
    padding-bottom: 64px;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(167, 243, 208, 0.12), transparent 55%),
        linear-gradient(135deg, var(--brand-fill) 0%, #0b1220 100%);
    color: #ffffff;
}
/* Animated white-line silk pattern — slowly drifts left/right and breathes
   to give the CTA banner a subtle sense of motion. Sits below the content. */
.ab-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("../../assets/images/graphics/cta-flow-bg.svg") center / cover no-repeat;
    opacity: 0.55;
    animation: cta-flow-drift 12s ease-in-out infinite alternate;
    -webkit-mask-image: linear-gradient(20deg, #000 0%, transparent 45%);
            mask-image: linear-gradient(20deg, #000 0%, transparent 45%);
}
@keyframes cta-flow-drift {
    from { transform: translateX(-3%) scale(1); }
    to   { transform: translateX(3%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .ab-cta::before { animation: none; }
}
.ab-cta__title {
    margin: 0 0 12px;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    color: #ffffff;
    text-wrap: balance;
}
.ab-cta__lead {
    margin: 0 0 28px;
    max-width: none;          /* one-line on desktop for the short CTA leads */
    font-size: var(--fs-lead);
    line-height: var(--lh-loose);
    color: var(--text-on-dark);
}
.ab-cta__actions {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 12px;
    justify-content: flex-start;
    max-width: 100%;
}
.ab-cta__actions > .ab-btn {
    width: 100%;
}

/* ---------- Buttons (scoped to about page) ---------- */

/* Buttons — sized identically to .cm-btn / .sw-btn so CTAs are pixel-consistent
   across every page. */
.ab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    line-height: 1.2;
    border-radius: var(--radius-base);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-tight);
    border: 1px solid transparent;
    text-decoration: none;
    transition:
        background-color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out);
}
.ab-btn--primary {
    background: var(--brand-fill);
    color: #ffffff;
    border-color: var(--brand-fill);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset,
                0 8px 18px -10px rgba(4, 44, 113, 0.55);
}
.ab-btn--primary:hover {
    background: var(--brand-fill-600);
    border-color: var(--brand-fill-600);
    transform: translateY(-1px);
}
.ab-btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.ab-btn--ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* On the dark CTA banner the primary button flips to white-on-brand for
   maximum contrast, and the ghost gets a translucent white border. */
.ab-cta .ab-btn--primary {
    background: #ffffff;
    color: var(--brand-fill);
    border-color: #ffffff;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}
.ab-cta .ab-btn--primary:hover {
    background: var(--bg-soft);
    border-color: var(--bg-soft);
    color: var(--brand);
}
.ab-cta .ab-btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}
.ab-cta .ab-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

/* Mobile: stack the CTA buttons full-width with comfortable touch targets. */
@media (max-width: 600px) {
    .ab-cta { padding-top: 48px; padding-bottom: 48px; }
    .ab-cta__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }
    .ab-cta__actions > * {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- RTL adjustments ---------- */
[dir="rtl"] .ab-stat__value { letter-spacing: 0; }


/* ---------- Company facts (definition list) ---------- */

.ab-facts__list {
    margin: 0;
    max-width: 880px;
    border-top: 1px solid var(--deploy-guide);
}
.ab-facts__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--deploy-guide);
}
@media (min-width: 640px) {
    .ab-facts__row { grid-template-columns: 200px 1fr; }
}
.ab-facts__row dt {
    font-size: var(--fs-body);          /* same size as the value text (owner, 2026-09-28) */
    line-height: var(--lh-body);
    font-weight: var(--fw-semibold);
    color: var(--text);
}
.ab-facts__row dd {
    margin: 0;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-muted);
}
.ab-facts__row a { color: var(--brand-500); }
