/* ============================================================
   ABOUT PAGE
   Shared by /about/ and /it/about/ — kept in its own file rather
   than inline (as /partners/ does) precisely because there are two
   language variants: inline would mean every tweak has to be made
   twice and the two would drift.

   Prefixes: .au-* page sections, .sa-* the smart-asset composition
   ported from the pitch deck (brief/smart-asset/). Generic class
   names are deliberately avoided — these pages also load
   Bootstrap 5, style.css and v2.css.
   ============================================================ */

.au {
    --au-bg-alt: #f7f7f7;
    --au-rule: #c8c8c8;
    --au-ink-soft: #787878;
}

/* ── Section rhythm ──────────────────────────────────────
   Alternating backgrounds are what break the wall-of-text
   feel of the old page: white → dark → white → grey → white. */
.au-sec {
    padding: clamp(56px, 7vw, 104px) 24px;
}
.au-sec--alt { background: var(--au-bg-alt); }
.au-sec--dark {
    background: var(--r3-black);
    color: #f0f0f0;
}
.au-sec--tight { padding-top: clamp(32px, 4vw, 56px); }
.au-wrap {
    max-width: 1180px;
    margin: 0 auto;
}
.au-wrap--narrow { max-width: 780px; }
/* The smart-asset diagram needs more room than the text column:
   at 1180px the two ribbon columns are squeezed to ~34px and the
   tapered curves read as blobs instead of flows. */
.au-wrap--wide { max-width: 1400px; }

/* ── Type ───────────────────────────────────────────────── */
.au-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--r3-orange);
    margin: 0 0 14px;
}
.au-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--au-ink-soft);
    margin: 0 0 14px;
}
.au-h1 {
    font-family: var(--r3-font-display);
    font-weight: 700;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--r3-black);
    margin: 0 0 24px;
    max-width: 26ch;
    text-wrap: balance;
}
.au-h2 {
    font-family: var(--r3-font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 2.9vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: inherit;
    margin: 0 0 20px;
    max-width: 30ch;
    text-wrap: balance;
}
.au-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    color: #505050;
    margin: 0;
    max-width: 62ch;
    text-wrap: balance;
}
.au-body {
    font-size: 1rem;
    line-height: 1.62;
    margin: 0 0 16px;
    max-width: 62ch;
}
.au-body:last-child { margin-bottom: 0; }
.au-sec--dark .au-body { color: #c8c8c8; }
.au-hl { color: var(--r3-orange); font-weight: 700; }

/* ── Hero ───────────────────────────────────────────────── */
.au-hero { padding-top: calc(var(--r3-nav-height) + clamp(48px, 6vw, 88px)); }

/* ── The missing-layer block (dark) ─────────────────────
   Two columns: the problem on the left, the one-line answer
   on the right, so the claim lands separated from the setup. */
.au-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 64px);
}
@media (min-width: 900px) {
    .au-split { grid-template-columns: 1.15fr 1fr; align-items: start; }
}
.au-answer {
    border-left: 4px solid var(--r3-orange);
    padding-left: 24px;
}
.au-answer .au-h2 { color: #fff; }

/* ── Card grid (how we do it) ───────────────────────────── */
.au-grid3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--au-rule);
    border: 1px solid var(--au-rule);
}
@media (min-width: 820px) {
    .au-grid3 { grid-template-columns: repeat(3, 1fr); }
}
.au-card {
    background: #fff;
    padding: 28px 26px 30px;
    border-top: 3px solid var(--r3-orange);
}
.au-card__n {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--r3-orange);
    display: block;
    margin-bottom: 10px;
}
.au-card__t {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--r3-black);
}
.au-card__b {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #505050;
    margin: 0;
}

/* ── Mechanisms strip ──────────────────────────────────
   The three functions that sit at the centre of the gateway
   diagram. Attached under the card grid on a tinted row so it
   reads as the layer beneath the three principles, not as three
   more principles. */
.au-mech {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--au-rule);
    border: 1px solid var(--au-rule);
    border-top: 0;
}
@media (min-width: 820px) {
    .au-mech { grid-template-columns: repeat(3, 1fr); }
}
.au-mech > div {
    background: var(--au-bg-alt);
    padding: 20px 26px 22px;
}
.au-mech__t {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--r3-black);
    margin: 0 0 4px;
}
.au-mech__b {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #505050;
    margin: 0;
}

/* ── Chips (ported from the deck's .exec-chip) ─────────── */
.au-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}
.au-chip {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--r3-black);
    background: #fff;
    border: 1px solid var(--au-rule);
    border-left: 3px solid var(--r3-orange);
    padding: 7px 12px;
}

/* ── Surfaces (catalog → where it goes) ────────────────── */
.au-surfaces {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--au-rule);
    border: 1px solid var(--au-rule);
    margin-top: 36px;
}
@media (min-width: 820px) {
    .au-surfaces { grid-template-columns: repeat(3, 1fr); }
}
.au-surface {
    background: #fff;
    padding: 26px 24px 28px;
    text-decoration: none;
    display: block;
    transition: background 0.2s ease;
}
.au-surface__k {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--au-ink-soft);
    display: block;
    margin-bottom: 10px;
}
.au-surface__t {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--r3-black);
    margin: 0 0 8px;
}
.au-surface__b {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #505050;
    margin: 0;
}
.au-surface__go {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--r3-orange);
}
a.au-surface:hover { background: var(--au-bg-alt); }
a.au-surface:hover .au-surface__go {
    text-decoration: none;
}

/* ── Verticals strip ───────────────────────────────────── */
.au-verticals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.au-verticals li {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--au-ink-soft);
    border: 1px solid var(--au-rule);
    padding: 6px 11px;
}
.au-verticals li.is-now {
    color: var(--r3-orange);
    border-color: var(--r3-orange);
}

/* ── Proof ─────────────────────────────────────────────── */
.au-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 56px);
}
@media (min-width: 900px) {
    .au-proof { grid-template-columns: 1.1fr 1fr; }
}
.au-stat {
    font-family: var(--r3-font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--r3-orange);
    margin: 0 0 6px;
}
.au-stat__l {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--au-ink-soft);
    margin: 0 0 22px;
}
.au-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.au-brands li {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--r3-black);
    background: #fff;
    border: 1px solid var(--au-rule);
    padding: 6px 12px;
}
/* The "and many more" chip reads as an invitation, not a brand —
   and doubles as a route into the catalog from this page. */
.au-brands li.is-more {
    background: transparent;
    border-color: var(--r3-orange);
    padding: 0;
}
.au-brands li.is-more a {
    display: block;
    padding: 6px 12px;
    color: var(--r3-orange);
    font-weight: 700;
    text-decoration: none;
}
.au-brands li.is-more:hover { background: var(--r3-orange); }
.au-brands li.is-more:hover a { color: #fff; }
.au-note {
    font-size: 0.85rem;
    color: var(--au-ink-soft);
    margin: 0;
}
/* Inverted-primary link, same pattern as the deck's validation links */
.au-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--r3-orange);
    background: #fff;
    border: 1px solid var(--r3-orange);
    padding: 9px 14px;
    margin-top: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}
.au-link:hover { background: var(--r3-orange); color: #fff; }
.au-links { display: flex; flex-direction: column; align-items: flex-start; }

/* ════════════════════════════════════════════════════════
   SMART ASSET COMPOSITION
   Ported from brief/smart-asset/. The deck version is a
   non-scrolling 100vh slide; here the flow row gets an
   explicit min-height instead, because the ribbon columns
   are `align-self: stretch` and would collapse to zero
   height (and so draw nothing) in a content-sized row.
   ════════════════════════════════════════════════════════ */
.sa {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
}
/* Desktop breakpoint is 1100px, not the deck's 900px: below
   that the two 1fr ribbon columns get squeezed so narrow the
   tapered curves read as blobs rather than flows. */
@media (min-width: 1100px) {
    .sa {
        grid-template-columns:
            minmax(230px, 280px) 1fr auto 1fr minmax(240px, 300px);
        align-items: center;
        min-height: 520px;
        gap: 0;
    }
}

.sa-card {
    background: #fff;
    border: 1px solid var(--r3-gray-border);
    display: flex;
    flex-direction: column;
}
.sa-card--in { border-right: 4px solid #505050; }
.sa-card--out { border-left: 4px solid var(--r3-orange); }
.sa-card__head {
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--r3-gray-50);
}
.sa-card__t {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--r3-black);
}
.sa-card__s {
    font-size: 10px;
    color: var(--au-ink-soft);
    margin-top: 2px;
}
.sa-group { padding: 12px 18px 14px; }
.sa-group + .sa-group { border-top: 1px solid var(--r3-gray-50); }
.sa-group__t {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--au-ink-soft);
    margin-bottom: 6px;
}
.sa-group--ai .sa-group__t { color: var(--r3-orange); }
.sa-item {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--r3-black);
    line-height: 1.75;
}

/* ── Ribbons ────────────────────────────────────────────
   The SVG paths are generated in JS from measured element
   positions (see the bottom of this page) — there are no
   magic coordinates to keep in sync here. */
.sa-ribbon {
    position: relative;
    align-self: stretch;
    display: none;
}
@media (min-width: 1100px) { .sa-ribbon { display: block; } }
.sa-ribbon svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
/* The "data moving" read is a mask scrolling across the ribbons,
   not an animation on the paths themselves. */
.sa-ribbon--flow svg {
    -webkit-mask-image: repeating-linear-gradient(90deg,
        rgba(0,0,0,1) 0%, rgba(0,0,0,1) 18%,
        rgba(0,0,0,0.7) 22%, rgba(0,0,0,0.7) 28%,
        rgba(0,0,0,1) 32%, rgba(0,0,0,1) 50%);
    mask-image: repeating-linear-gradient(90deg,
        rgba(0,0,0,1) 0%, rgba(0,0,0,1) 18%,
        rgba(0,0,0,0.7) 22%, rgba(0,0,0,0.7) 28%,
        rgba(0,0,0,1) 32%, rgba(0,0,0,1) 50%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    animation: saDataFlow 4s linear infinite;
}
@keyframes saDataFlow {
    0%   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    100% { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
.sa-line { opacity: 0.72; }

/* ── Centre asset ──────────────────────────────────────── */
.sa-centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}
@media (min-width: 1100px) {
    /* Slight overlap so the ribbons visually meet the product
       instead of stopping at the column gutter. */
    .sa-centre { margin: 0 -14px; }
}
.sa-centre__l {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--au-ink-soft);
    text-align: center;
}
/* On small screens the baked-in wireframe is the whole point of
   this image — too small and it just reads as a product photo. */
.sa-img { width: min(84vw, 380px); }
@media (min-width: 1100px) { .sa-img { width: min(30vw, 430px); } }
.sa-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 26px rgba(40, 40, 40, 0.16));
}

/* ── Mobile spine ──────────────────────────────────────
   Below 1100px the ribbons are gone, so order alone has to
   carry the argument: data above, asset in the middle,
   outputs below, with a tapered rule marking the direction.
   (The deck stacks asset-first, which reads as three
   unrelated boxes.) */
.sa-spine {
    width: 3px;
    height: 42px;
    margin: 0 auto;
    justify-self: center;
}
.sa-spine--in {
    background: linear-gradient(to bottom, #787878, #505050);
}
.sa-spine--out {
    background: linear-gradient(to bottom, var(--r3-orange), rgba(255, 95, 0, 0.35));
}
@media (min-width: 1100px) { .sa-spine { display: none; } }
/* Stacked layout: keep the cards to a readable measure instead of
   letting them stretch the full container width, and buy back a
   little type size now that there is room for it. */
@media (max-width: 1099.98px) {
    .sa-card {
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
    }
    .sa-item { font-size: 13.5px; }
    .sa-card__t { font-size: 16px; }
}

.sa-tagline {
    text-align: center;
    margin-top: clamp(28px, 4vw, 48px);
}
.sa-tagline__big {
    font-family: var(--r3-font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--r3-black);
}
.sa-tagline__big .sa-ue { color: var(--r3-orange); }
.sa-tagline__sub {
    font-size: 0.95rem;
    color: var(--au-ink-soft);
    margin: 8px 0 0;
}

/* ── Scroll reveal ─────────────────────────────────────
   IMPORTANT: under prefers-reduced-motion the reveal must
   still SET the visible state, not merely drop the
   transition — otherwise the content stays at opacity 0
   forever. The JS handles that branch explicitly. */
[data-au-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-au-reveal].is-in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    [data-au-reveal] { transition: none; }
    a.au-surface, .au-link { transition: none; }
    /* Deliberately NOT disabled here. The ribbon shimmer is a slow
       luminance sweep inside the ribbons with nothing moving in the
       layout, and it is the only cue that data actually flows
       through the asset — so it keeps the deck's 4s timing even
       under reduced motion. Entrance animations are still
       suppressed above. To make this strict instead, one line:
       .sa-ribbon--flow svg { animation: none; } */
}

/* ── LIVE CHIP ─────────────────────────────────────────────── */
/* A date says when we shipped; a pulsing dot says we are up right now. Same
   signal as the one-pagers in brief/, so "live" reads identically everywhere. */
.au-chip--live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.au-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
    animation: au-live-pulse 2s infinite;
}
@keyframes au-live-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.45);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(76, 175, 80, 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .au-live-dot {
        animation: none;
    }
}

/* ── CENTRED SECTION HEAD ──────────────────────────────────── */
/* .au-h2 caps at 30ch, so centring the text is not enough — the box has to be
   centred too or the heading sits left inside a centred line of type. Used on
   the smart-asset section, which already closes with a centred tagline. */
.au-head--center {
    text-align: center;
}
.au-head--center .au-h2 {
    margin-left: auto;
    margin-right: auto;
}
