/* =============================================================================
   Automint — immersive homepage stylesheet
   Industrial-futurist editorial system. Standalone; does not depend on app.css.
   Palette: deep Automint blue foundation (from Blue 800 / Grey 900), cool grey
   light, Automint Blue signal accents (Blue 400 luminous / #1E2171 deep), and
   Automint Grey metallic highlights. Official brand palette — see
   Automint_brand_palette.csv.
   ========================================================================== */

/* ----------------------------- Design tokens ----------------------------- */
:root {
    /* Core surfaces — deep Automint blue foundation.
       All solid values are exact official palette colours (see brand CSV). */
    --graphite:      #12164a;   /* Blue 800 — page foundation / primary surface  */
    --graphite-2:    #1e2171;   /* Automint Blue — raised secondary surface      */
    --ink:           #2a2b2d;   /* Grey 900 — deepest neutral (preloader/footer) */

    /* Cool light text + surfaces (Grey 50 / Grey 300 solid; Blue 50 via alpha) */
    --bone:          #fafafb;   /* Grey 50 — primary light text                  */
    --bone-2:        #c7c9cb;   /* Grey 300 — muted light text                   */
    --bone-dim:      rgba(232, 232, 241, 0.66);   /* Blue 50 @ 66%               */
    --bone-faint:    rgba(232, 232, 241, 0.42);   /* Blue 50 @ 42%               */

    /* Brand-blue signal accents */
    --signal:        #5759a3;   /* Blue 400 — luminous accent / CTA fill on dark */
    --signal-2:      #b5b6d3;   /* Blue 200 — brighter lines/text/focus on dark  */
    --signal-strong: #1e2171;   /* Automint Blue — CTA hover (AA with white)     */
    --signal-deep:   #1e2171;   /* Automint Blue — deep fills, glows, gradients  */

    /* Metallic highlight — Automint Grey / Grey 300 (exact palette) */
    --steel:         #9fa1a4;   /* Automint Grey                                 */
    --steel-2:       #c7c9cb;   /* Grey 300                                      */
    --steel-dim:     rgba(159, 161, 164, 0.55);   /* Automint Grey @ 55%         */

    /* Hairlines */
    --line:          rgba(232, 232, 241, 0.12);
    --line-strong:   rgba(232, 232, 241, 0.22);

    /* Typography — Source Sans is the single brand family (Regular/Semibold/Bold/Black).
       Google Fonts serves it as 'Source Sans 3'; desktop installs expose 'Source Sans Pro'. */
    --font-display:  'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --font-body:     'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

    /* Layout */
    --edge:          clamp(20px, 5vw, 84px);
    --maxw:          1520px;

    /* Motion */
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout:    cubic-bezier(0.65, 0, 0.35, 1);
}

/* ------------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body.home-v2 {
    margin: 0;
    background: var(--graphite);
    color: var(--bone);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;             /* guard against any horizontal overflow */
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.02; }
p { margin: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--signal); color: #fff; }

/* Hide native cursor only when the custom one is live on fine pointers. */
body.cursor-active { cursor: none; }
body.cursor-active a,
body.cursor-active button { cursor: none; }

/* ----------------------------- Skip link --------------------------------- */
.skip-link {
    position: fixed;
    top: 10px; left: 10px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--signal);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    transform: translateY(-140%);
    transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* The main landmark is a programmatic focus target for the skip link only
   (tabindex="-1"), so suppress the persistent focus ring browsers would
   otherwise paint around the entire region. Keyboard tab order is unaffected. */
main[tabindex="-1"]:focus { outline: none; }

/* Shared focus treatment */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--signal-2);
    outline-offset: 3px;
    border-radius: 3px;
}

/* --------------------------- Shared section bits ------------------------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--steel-2);
}
.tick {
    width: 26px; height: 1px;
    background: var(--signal);
    display: inline-block;
    position: relative;
}
.tick::after {
    content: ""; position: absolute; right: 0; top: -2px;
    width: 5px; height: 5px; background: var(--signal); border-radius: 50%;
}
.section-title {
    font-size: clamp(2rem, 4.4vw, 3.9rem);
    letter-spacing: -0.02em;
    max-width: 18ch;
}
.section-lede {
    margin-top: 22px;
    max-width: 52ch;
    color: var(--bone-dim);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
}

/* -------------------------------- Buttons -------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 2px;
    border: 1px solid transparent;
    will-change: transform;
    transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { transition: transform 0.4s var(--ease-out); }
.btn--primary {
    background: var(--signal);
    color: #fff;
    box-shadow: 0 12px 40px -16px rgba(87, 89, 163, 0.95);
}
.btn--primary:hover { background: var(--signal-strong); border-color: var(--signal-2); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
    background: transparent;
    color: var(--bone);
    border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--bone); background: rgba(232, 232, 241, 0.05); }

/* =============================== Preloader ================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    background: var(--ink);
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
/* If JS never runs, the preloader must never hide content. */
html.no-js .preloader { display: none; }
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__inner { text-align: center; }
/* The Automint A brand mark is colour artwork intended for light backgrounds, so it sits
   on a restrained light circular plate for contrast against the deep preloader surface.
   The mark itself is unmodified: no filter, recolour, crop, glow or shadow. */
.preloader__badge {
    display: inline-grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--bone);
}
.preloader__badge img { width: 80px; height: 80px; }
.preloader__sub {
    display: block;
    margin-top: 20px;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--steel-2);
}
.preloader__bar {
    margin: 30px auto 0;
    width: min(240px, 60vw);
    height: 2px;
    background: var(--line);
    overflow: hidden;
}
.preloader__bar i {
    display: block; height: 100%; width: 0%;
    background: var(--signal);
    transition: width 0.3s linear;
}

/* ============================ Scroll progress ============================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 120;
    background: transparent;
    pointer-events: none;
}
.scroll-progress i {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--signal-deep), var(--signal), var(--signal-2));
    transform-origin: left;
}

/* ================================ Masthead =============================== */
.masthead {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background-color 0.4s var(--ease-out), border-color 0.4s, backdrop-filter 0.4s,
                transform 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
    background: rgba(18, 22, 74, 0.72);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom-color: var(--line);
}
/* Slid off-screen: also remove it from the pointer and focus/AT surface so its
   links cannot be reached by keyboard while hidden. Restored when visible. */
.masthead.is-hidden {
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
}
.masthead__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px var(--edge);
    display: flex;
    align-items: center;
    gap: 28px;
    transition: padding 0.4s var(--ease-out);
}
.masthead.is-stuck .masthead__inner { padding-top: 14px; padding-bottom: 14px; }

/* Wordmark — the supplied marketing lockup is colour artwork intended for light
   backgrounds, so in the dark masthead it is presented on a restrained light plate
   (Grey 50 with a hairline Automint-blue edge). The SVG's baked-in clear space is
   preserved and the logo is never filtered, recoloured, cropped or given a glow. */
.wordmark { display: inline-flex; align-items: center; }
.wordmark__img { display: block; height: auto; }
.masthead .wordmark {
    padding: 8px 15px;
    background: var(--bone);
    border-radius: 8px;
    border: 1px solid rgba(30, 33, 113, 0.10);
}
.masthead .wordmark__img {
    width: clamp(162px, 18vw, 190px);   /* comfortably above the 120px marketing minimum */
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav__link {
    position: relative;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bone-dim);
    transition: color 0.25s;
}
.nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 1px; background: var(--signal);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after { transform: scaleX(1); }

.nav-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--bone);
    white-space: nowrap;
    transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease-out);
    will-change: transform;
}
.nav-call__icon { color: var(--signal); display: inline-flex; }
.nav-call:hover { border-color: var(--signal); background: rgba(87, 89, 163, 0.12); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    margin-left: auto;
    background: none; border: 1px solid var(--line-strong); border-radius: 2px;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--bone); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
    border-top: 1px solid var(--line);
    background: rgba(42, 43, 45, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; padding: 12px var(--edge) 26px; }
.mobile-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--bone);
}
.mobile-nav__call { color: var(--signal-2) !important; border-bottom: none !important; }

/* ================================= Hero ================================= */
.hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px var(--edge) 60px;
    overflow: hidden;
    isolation: isolate;
}
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0;
    transition: opacity 1.2s var(--ease-out);
}
.hero__canvas.is-ready { opacity: 1; }

/* Designed CSS fallback — visible when WebGL is unavailable. */
.hero__fallback {
    position: absolute; inset: 0; z-index: -4;
    background:
        radial-gradient(120% 90% at 72% 42%, rgba(87, 89, 163, 0.20), transparent 55%),
        radial-gradient(90% 80% at 20% 80%, rgba(159, 161, 164, 0.10), transparent 60%),
        linear-gradient(180deg, var(--ink), var(--graphite) 60%, var(--graphite-2));
}
.hero__fallback-rings {
    position: absolute; top: 50%; right: 8%; width: 46vmin; height: 46vmin;
    transform: translateY(-50%);
    background:
        repeating-radial-gradient(circle at 50% 50%,
            transparent 0 14px,
            rgba(159, 161, 164, 0.14) 14px 15px,
            transparent 15px 30px);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%);
    opacity: 0.9;
}
.hero__fallback-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 60% 50%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 60% 50%, #000, transparent 78%);
    opacity: 0.35;
}
/* Fallback ring/grid art shows by default (incl. no-JS). Hidden only once the
   live WebGL sculpture is confirmed rendering. */
body.webgl-ok .hero__fallback-rings,
body.webgl-ok .hero__fallback-grid { opacity: 0; }

/* Film grain overlay */
.hero__grain {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}
/* Vignette to seat the sculpture */
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(42, 43, 45, 0.72) 100%);
}

.hero__content { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-display);
    font-size: 12.5px; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--steel-2);
    margin-bottom: 26px;
}
.hero__heading {
    font-size: clamp(2.6rem, 8.2vw, 7.4rem);
    letter-spacing: -0.03em;
    line-height: 0.96;
    max-width: 16ch;
}
.hero__line { display: block; }
.hero__accent { color: var(--signal-2); }
.hero__lede {
    margin-top: 30px;
    max-width: 46ch;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    color: var(--bone-dim);
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero__meta {
    max-width: var(--maxw);
    margin: 64px auto 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 6vw, 90px);
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-k {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-dim);
}
.hero__meta-v { font-family: var(--font-display); font-weight: 500; color: var(--bone); font-size: 15px; }

.hero__scrollcue {
    position: absolute;
    left: var(--edge); bottom: 28px;
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--bone-faint);
}
.hero__scrollcue i {
    width: 1px; height: 34px; background: var(--line-strong); position: relative; overflow: hidden;
}
.hero__scrollcue i::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
    background: var(--signal);
    animation: cueSlide 1.9s var(--ease-inout) infinite;
}
@keyframes cueSlide { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(250%); } }

/* ============================ Process narrative ========================== */
.process { position: relative; background: var(--graphite); }
.process__sticky {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(30px, 5vw, 80px);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(90px, 12vh, 130px) var(--edge);
}
/* Scroll-driven mode: JS adds .is-driven on capable desktops only.
   Without it (no JS, reduced motion, coarse pointer) the section flows normally. */
.process.is-driven { min-height: 300vh; }
.process.is-driven .process__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: 100vh;
    align-content: center;
}

.process__stage {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 4px;
    background:
        radial-gradient(80% 80% at 50% 40%, rgba(159, 161, 164, 0.06), transparent 70%),
        var(--graphite-2);
    overflow: hidden;
}
.process__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.process__index {
    position: absolute; top: 18px; left: 20px;
    display: flex; gap: 10px;
    font-family: var(--font-display); font-size: 12px; letter-spacing: 0.1em;
    color: var(--bone-faint);
}
.process__index span { transition: color 0.4s; }
.process__index span.is-active { color: var(--signal); }

.process__steps { list-style: none; margin: 40px 0 0; padding: 0; }
.process__step {
    padding: 26px 0 26px 30px;
    border-left: 2px solid var(--line);
    opacity: 0.42;
    transition: opacity 0.5s var(--ease-out), border-color 0.5s;
}
.process__step.is-active { opacity: 1; border-left-color: var(--signal); }
.process__step-no {
    font-family: var(--font-display); font-size: 12px; letter-spacing: 0.2em; color: var(--steel-2);
}
.process__step h3 { margin: 10px 0 12px; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.01em; }
.process__step p { color: var(--bone-dim); max-width: 44ch; }

/* ============================== Capabilities ============================= */
.capabilities {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(90px, 12vh, 160px) var(--edge);
    border-top: 1px solid var(--line);
}
.capabilities__head { max-width: 62ch; margin-bottom: 64px; }
.capabilities__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cap-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 30px;
    background: linear-gradient(180deg, var(--graphite-2), var(--graphite));
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s var(--ease-out), border-color 0.5s;
}
.cap-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(70% 60% at 80% 0%, rgba(87, 89, 163, 0.14), transparent 60%);
    opacity: 0; transition: opacity 0.5s;
}
.cap-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.cap-card:hover::before { opacity: 1; }
.cap-card--wide { grid-column: span 4; flex-direction: row; align-items: center; gap: 40px; }

.cap-card__art {
    color: var(--steel);
    width: 96px; height: 96px;
    margin-bottom: auto;
    transition: color 0.5s, transform 0.6s var(--ease-out);
}
.cap-card:hover .cap-card__art { color: var(--signal-2); transform: translateY(-2px); }
.cap-card__art--wide { width: clamp(200px, 30%, 320px); height: auto; flex-shrink: 0; }
.cap-card__art--wide svg { width: 100%; height: auto; }

.cap-card__body { margin-top: 26px; }
.cap-card--wide .cap-card__body { margin-top: 0; }
.cap-card__no {
    font-family: var(--font-display); font-size: 12px; letter-spacing: 0.24em; color: var(--steel-dim);
}
.cap-card h3 { margin: 12px 0 12px; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.01em; }
.cap-card p { color: var(--bone-dim); font-size: 0.98rem; max-width: 46ch; }
.cap-card__link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--signal-2);
}
.cap-card__link span { transition: transform 0.35s var(--ease-out); }
.cap-card__link:hover span { transform: translateX(5px); }

/* ================================= Proof ================================ */
.proof {
    border-top: 1px solid var(--line);
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(87, 89, 163, 0.09), transparent 55%),
        var(--graphite);
}
.proof__inner, .proof__head, .proof__grid { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.proof__head { padding: clamp(90px, 12vh, 150px) var(--edge) 50px; }
.proof__grid {
    padding: 0 var(--edge) clamp(90px, 12vh, 150px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat {
    background: var(--graphite);
    padding: 46px 30px 40px;
    display: flex; flex-direction: column; gap: 16px;
}
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--bone);
    font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--bone-dim); font-size: 0.95rem; max-width: 24ch; }

/* ================================ Contact =============================== */
.contact {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--graphite), var(--ink));
}
.contact__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(90px, 13vh, 170px) var(--edge);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}
.contact__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.contact__locations { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.loc {
    font-style: normal;
    display: flex; flex-direction: column; gap: 10px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--graphite-2);
    transition: border-color 0.4s;
}
.loc:hover { border-color: var(--line-strong); }
.loc__tag { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal-2); }
.loc__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--bone); }
.loc__lines { color: var(--bone-dim); font-size: 0.96rem; line-height: 1.7; }
.loc__link {
    margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--steel-2);
    transition: color 0.3s;
}
.loc__link:hover { color: var(--bone); }

/* ================================ Footer ================================ */
.footer { background: var(--ink); border-top: 1px solid var(--line); }
.footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px var(--edge);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 40px;
}
/* Footer identity: the supplied official inverted lockup (includes "Limited"), light
   artwork suited to the dark footer. Displayed above the 150px minimum, uncropped. */
.wordmark--footer .wordmark__img { width: clamp(168px, 22vw, 208px); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: 8px; }
.footer__nav a { font-size: 14px; color: var(--bone-dim); transition: color 0.25s; }
.footer__nav a:hover { color: var(--bone); }
.footer__legal {
    margin-left: auto;
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 12.5px; color: var(--bone-dim);
}
.footer__sep { color: var(--line-strong); }

/* ============================== Custom cursor =========================== */
.cursor, .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s, width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                background-color 0.3s, border-color 0.3s;
}
.cursor { width: 34px; height: 34px; border: 1px solid var(--steel-2); transform: translate(-50%, -50%); }
.cursor-dot { width: 5px; height: 5px; background: var(--signal); transform: translate(-50%, -50%); }
body.cursor-active .cursor, body.cursor-active .cursor-dot { opacity: 1; }
body.cursor-hover .cursor { width: 56px; height: 56px; border-color: var(--signal); background: rgba(87, 89, 163, 0.14); }
body.cursor-hover .cursor-dot { opacity: 0; }

/* ============================ Reveal choreography ======================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* Without JS, never hide content. */
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* Kinetic heading setup (chars injected by JS) */
.hero__heading .word { display: inline-block; white-space: nowrap; }
.hero__heading .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em) rotate(2deg);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.hero__heading.is-lit .char { opacity: 1; transform: none; }

/* ============================== Responsive ============================== */
@media (max-width: 1180px) {
    .nav { gap: 0; }
    .nav__link { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 1024px) {
    .nav, .nav-call { display: none; }
    .nav-toggle { display: flex; }

    /* No-JS fallback: the hamburger cannot toggle without script, so expose the
       mobile navigation as a static header and hide the inert toggle. The UA
       stylesheet applies [hidden]{display:none} — override it explicitly. */
    html.no-js .masthead { position: static; }
    html.no-js .nav-toggle { display: none; }
    html.no-js .mobile-nav[hidden] { display: block !important; }

    .process__sticky { grid-template-columns: 1fr; }
    .process.is-driven { min-height: 0; }
    .process.is-driven .process__sticky { position: static; height: auto; min-height: 0; }
    .process__stage { max-width: 460px; margin: 0 auto 10px; width: 100%; }
    .capabilities__grid { grid-template-columns: repeat(2, 1fr); }
    .cap-card { grid-column: span 1; }
    .cap-card--wide { grid-column: span 2; }
    .contact__inner { grid-template-columns: 1fr; }
    .proof__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    body.home-v2 { font-size: 16px; }
    .hero { padding-top: 120px; }
    .hero__meta { gap: 20px 40px; }
    .capabilities__grid { grid-template-columns: 1fr; }
    .cap-card, .cap-card--wide { grid-column: span 1; }
    .cap-card--wide { flex-direction: column; align-items: flex-start; gap: 24px; }
    .cap-card__art--wide { width: 60%; }
    .contact__locations { grid-template-columns: 1fr; }
    .proof__grid { grid-template-columns: 1fr; }
    .footer__legal { margin-left: 0; }
    .btn { padding: 14px 22px; }
}

/* ========================= Reduced motion path ========================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .preloader { display: none; }
    [data-reveal] { opacity: 1; transform: none; }
    .hero__heading .char { opacity: 1; transform: none; }
    .hero__scrollcue i::after { display: none; }
    .process__sticky { position: static; min-height: 0; }
    .hero__canvas { display: none; }
    .hero__fallback-rings, .hero__fallback-grid { opacity: 0.6 !important; }
    .process.is-driven { min-height: 0; }
    .process.is-driven .process__sticky { position: static; height: auto; min-height: 0; }
}
