/* =========================================================
   MENCUCCINI STUDIO — style.css
   Layers: reset · tokens · base · components · sections · motion
   ========================================================= */

@layer reset, tokens, base, components, sections, motion, utilities;

/* Self-hosted fonts (latin + latin-ext subsets) */
/* Archivo latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(assets/fonts/Archivo-latin-ext-872.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(assets/fonts/Archivo-latin-6486.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Serif latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/InstrumentSerif-latin-ext-3993.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/InstrumentSerif-latin-4905.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter Tight latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/InterTight-latin-ext-6541.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter Tight latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/InterTight-latin-6341.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/JetBrainsMono-latin-ext-9072.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/JetBrainsMono-latin-6626.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------- RESET ---------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body, h1, h2, h3, h4, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
  ul, ol { list-style: none; }
  img, video, canvas, svg { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  fieldset { border: 0; min-width: 0; }
  a { color: inherit; text-decoration: none; }
  [hidden] { display: none !important; }
}

/* ---------------- TOKENS ---------------- */
@layer tokens {
  :root {
    /* colour — sampled from the official logo */
    --c-void: #00020C;
    --c-black: #05070D;
    --c-graphite: #11141C;
    --c-graphite-2: #1A1E28;
    --c-line: rgba(238, 239, 243, 0.10);
    --c-line-strong: rgba(238, 239, 243, 0.22);
    --c-white: #F4F1EA;
    --c-silver: #EEEFF3;
    --c-steel: #8A92A6;
    --c-blue: #005AF5;
    --c-blue-bright: #0298FF;
    --c-cyan: #2BFAFF;
    --c-warm: #E8A86B;

    --g-s: linear-gradient(120deg, #2BFAFF 0%, #0298FF 35%, #005AF5 100%);
    --g-glow: radial-gradient(50% 50% at 50% 50%, rgba(0, 90, 245, .35), transparent 70%);

    /* type */
    --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --f-serif: "Instrument Serif", "Times New Roman", serif;
    --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --t-mega: clamp(4.2rem, 16.5vw, 22rem);
    --t-xxl: clamp(3.25rem, 10vw, 11rem);
    --t-xl: clamp(2.5rem, 6vw, 6.5rem);
    --t-l: clamp(1.6rem, 3.2vw, 3.25rem);
    --t-m: clamp(1.125rem, 1.4vw, 1.375rem);
    --t-s: 1rem;
    --t-xs: 0.75rem;

    /* layout */
    --margin: clamp(20px, 5vw, 96px);
    --gutter: clamp(16px, 2vw, 32px);
    --section-pad: clamp(104px, 16vh, 220px);
    --radius: 14px;

    /* motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  }
}

/* ---------------- BASE ---------------- */
@layer base {
  html {
    background: var(--c-void);
    color: var(--c-white);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: auto;
  }
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
  .lenis.lenis-stopped { overflow: hidden; }

  body {
    font-family: var(--f-body);
    font-size: var(--t-s);
    line-height: 1.55;
    background: var(--c-void);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  main, .footer { overflow-x: clip; }
  ::selection { background: var(--c-blue); color: #fff; }

  em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; text-transform: none; }

  .mono {
    font-family: var(--f-mono);
    font-size: var(--t-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-steel);
  }

  .lead { font-size: var(--t-m); color: rgba(244, 241, 234, .78); max-width: 46ch; }

  .section { padding: var(--section-pad) var(--margin); position: relative; }

  :focus-visible { outline: 2px solid var(--c-blue-bright); outline-offset: 4px; border-radius: 4px; }

  .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px;
    background: var(--c-white); color: var(--c-void); border-radius: 999px; transform: translateY(-200%);
  }
  .skip-link:focus { transform: none; }
}

/* ---------------- COMPONENTS ---------------- */
@layer components {

  /* Buttons */
  .btn {
    --h: 52px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--h); padding: 0 26px;
    border-radius: 999px;
    font-family: var(--f-body); font-weight: 500; font-size: 0.95rem; letter-spacing: -0.005em;
    white-space: nowrap; overflow: hidden; isolation: isolate;
    transition: color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  }
  .btn--sm { --h: 42px; padding: 0 18px; font-size: 0.875rem; }
  .btn--primary { background: var(--c-white); color: var(--c-void); }
  .btn--primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--g-s);
    transform: translateX(-101%); transition: transform .6s var(--ease-out);
  }
  .btn--primary:hover { color: #fff; box-shadow: 0 10px 40px -10px rgba(0, 90, 245, .6); }
  .btn--primary:hover::before { transform: none; }
  .btn__label, .btn__arrow { display: inline-block; }
  .btn__arrow { transition: transform .5s var(--ease-out); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .btn--ghost { border: 1px solid var(--c-line-strong); color: var(--c-white); background: rgba(5, 7, 13, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .btn--ghost:hover { border-color: var(--c-blue-bright); background: rgba(17, 20, 28, .7); }

  .link { position: relative; background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
  .link:hover { background-size: 100% 1px; background-position: 0 100%; }
  .link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--c-blue-bright); font-weight: 500; margin-top: 8px; }
  .link-arrow > span[aria-hidden] { transition: transform .5s var(--ease-out); }
  .link-arrow:hover > span[aria-hidden] { transform: translateX(6px); }

  .tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .tags li {
    font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 12px; border: 1px solid var(--c-line); border-radius: 999px; color: rgba(244, 241, 234, .75);
  }

  /* Grain */
  .grain {
    position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 900; pointer-events: none;
    background: url("assets/img/noise.png?v=2") repeat;
    opacity: .07; mix-blend-mode: overlay;
    animation: grain 1s steps(8) infinite;
  }
  @keyframes grain {
    0% { transform: translate(0, 0); } 12% { transform: translate(-5%, -8%); } 25% { transform: translate(-12%, 4%); }
    37% { transform: translate(6%, -14%); } 50% { transform: translate(-3%, 12%); } 62% { transform: translate(-14%, 0); }
    75% { transform: translate(10%, 6%); } 87% { transform: translate(2%, -4%); } 100% { transform: translate(0, 0); }
  }

  /* Scroll progress */
  .progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 950; pointer-events: none; }
  .progress span { display: block; height: 100%; background: var(--g-s); transform-origin: 0 50%; transform: scaleX(0); }

  /* Cursor */
  .cursor { display: none; }
  @media (hover: hover) and (pointer: fine) {
    html.js .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 990; }
    html.js.has-cursor, html.js.has-cursor a, html.js.has-cursor button, html.js.has-cursor label { cursor: none; }
    html.js.has-cursor input[type="text"], html.js.has-cursor input[type="email"], html.js.has-cursor textarea { cursor: text; }
  }
  .cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--c-white); mix-blend-mode: difference; }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(244, 241, 234, .45);
    display: grid; place-items: center;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .45s var(--ease-out), border-color .45s var(--ease-out), opacity .3s;
  }
  .cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; white-space: nowrap; }
  .cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(2, 152, 255, .14); border-color: var(--c-blue-bright); }
  .cursor.is-label .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--c-blue); border-color: var(--c-blue); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot, .cursor.is-hidden .cursor__dot { opacity: 0; }
  .cursor.is-hidden .cursor__ring { opacity: 0; }

  /* Marquee */
  .marquee { overflow: hidden; border-block: 1px solid var(--c-line); padding: 22px 0; }
  .marquee__track { display: flex; width: max-content; gap: 32px; align-items: center; will-change: transform; }
  .marquee__track span {
    font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 120;
    font-size: clamp(1.1rem, 2.2vw, 2rem); text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap;
  }
  .marquee__track i { color: var(--c-blue-bright); font-style: normal; }

  /* Preloader */
  .preloader { display: none; }
  html.js .preloader {
    display: grid; place-items: center;
    position: fixed; inset: 0; z-index: 2000; background: var(--c-void);
  }
  .preloader__logo {
    width: min(34vmin, 280px); aspect-ratio: 1;
    clip-path: circle(0% at 50% 50%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%);
            mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 71%);
  }
  .preloader__logo img { width: 100%; height: 100%; }
  .preloader__meta { position: absolute; left: var(--margin); right: var(--margin); bottom: 32px; display: flex; justify-content: space-between; }
  .preloader__count { color: var(--c-white); font-variant-numeric: tabular-nums; }
  html.is-loaded .preloader { pointer-events: none; }

  /* Nav */
  .nav {
    position: fixed; top: 16px; left: 50%; z-index: 800;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 1100px);
    display: flex; align-items: center; gap: 24px;
    padding: 8px 8px 8px 12px;
    border-radius: 999px;
    background: rgba(5, 7, 13, .55);
    border: 1px solid var(--c-line);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: transform .6s var(--ease-out), opacity .4s;
  }
  .nav.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
  .nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
  .nav__logo {
    width: 36px; height: 36px; border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 71%); mask-image: radial-gradient(circle, #000 64%, transparent 71%);
    transform: scale(1.25);
  }
  .nav__name { font-weight: 600; font-size: .95rem; letter-spacing: -0.01em; }
  .nav__name em { color: var(--c-steel); font-size: 1.05em; }
  .nav__links { display: flex; gap: 28px; font-size: .9rem; }
  .nav__links a { color: rgba(244, 241, 234, .72); transition: color .3s; position: relative; }
  .nav__links a:hover, .nav__links a.is-active { color: var(--c-white); }
  .nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--c-blue-bright); }
  .nav__menu { display: none; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line-strong); font-size: .875rem; }

  .menu {
    position: fixed; inset: 0; z-index: 790; background: rgba(0, 2, 12, .92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center; padding: 100px var(--margin) 40px;
  }
  .menu nav { display: flex; flex-direction: column; gap: 6px; }
  .menu nav a {
    font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 115;
    font-size: clamp(3rem, 14vw, 6rem); line-height: 1; text-transform: uppercase; letter-spacing: -0.04em;
    display: flex; align-items: baseline; gap: 14px;
  }
  .menu nav a .mono { font-size: .75rem; }
  .menu__foot { margin-top: auto; }

  @media (max-width: 900px) {
    .nav__links, .nav__cta { display: none; }
    .nav__menu { display: inline-flex; align-items: center; }
  }
}

/* ---------------- SECTIONS ---------------- */
@layer sections {

  /* ===== HERO ===== */
  .hero { position: relative; height: 100svh; }
  html.js .hero { height: auto; }
  .hero__stage { position: relative; height: 100svh; overflow: hidden; background: var(--c-void); }
  .hero__canvas, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero__canvas { visibility: hidden; }
  html.has-sequence .hero__canvas { visibility: visible; }
  html.has-sequence .hero__poster { visibility: hidden; }
  .hero__vignette { position: absolute; inset: 0; pointer-events: none; background:
      radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 2, 12, .75) 100%),
      linear-gradient(to top, rgba(0, 2, 12, .85) 0%, transparent 38%),
      linear-gradient(to bottom, rgba(0, 2, 12, .55) 0%, transparent 22%); }
  .hero__glow { position: absolute; inset: -20%; background: var(--g-glow); opacity: 0; pointer-events: none; mix-blend-mode: screen; }

  .hero__scene { position: absolute; inset: 0; pointer-events: none; }

  .hero__scene--1 { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--margin) clamp(96px, 16vh, 150px); }
  .hero__kicker { display: flex; align-items: center; gap: 12px; color: rgba(244, 241, 234, .8); margin-bottom: 8px; padding-left: .4vw; }
  .hero__kicker-line { width: 36px; height: 1px; background: var(--c-blue-bright); }
  .hero__wordmark {
    font-family: var(--f-display); font-weight: 800; font-size: var(--t-mega);
    font-variation-settings: "wdth" 100; letter-spacing: -0.055em; line-height: .8;
    white-space: nowrap; margin-left: -0.04em;
    color: var(--c-white);
  }
  .hero__wordmark span { display: inline-block; }
  .hero__wordmark .char { display: inline-block; will-change: transform; }
  .hero__wordmark .line-mask { display: block; overflow: hidden; padding-bottom: .04em; }

  .hero__scene--2 { display: flex; align-items: flex-end; padding: 0 var(--margin) clamp(110px, 16vh, 160px); }
  .hero__statement {
    font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 100;
    font-size: clamp(2.4rem, 6.2vw, 7rem); line-height: .95; letter-spacing: -0.045em;
    max-width: 12ch; text-wrap: balance;
  }
  .hero__statement em { color: var(--c-blue-bright); font-size: 1.1em; }
  .hero__statement .word { display: inline-block; }
  .hero__ticker {
    position: absolute; right: var(--margin); top: 0; bottom: 0; width: 1.4em;
    overflow: hidden; font-size: .8rem; color: rgba(244, 241, 234, .75);
    -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
  }
  .hero__ticker-track { writing-mode: vertical-rl; display: flex; gap: 22px; animation: ticker 18s linear infinite; }
  .hero__ticker-track i { color: var(--c-blue-bright); font-style: normal; }
  @keyframes ticker { to { transform: translateY(-50%); } }

  .hero__scene--3 { display: grid; place-content: center; text-align: center; padding: 0 var(--margin); }
  .hero__sig {
    grid-area: 1 / 1;
    font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
    font-variation-settings: "wdth" 115; font-size: clamp(2.6rem, 8vw, 9.5rem); line-height: .9; letter-spacing: -0.045em;
  }
  .hero__sig span { display: block; }
  .hero__sig em { display: block; text-transform: none; color: var(--c-silver); font-size: 1.15em; letter-spacing: -0.03em; }

  .hero__logo-stage { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; pointer-events: none; }
  .hero__logo {
    width: min(38vmin, 420px); aspect-ratio: 1;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 71%);
            mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 71%);
  }
  .hero__logo img { width: 100%; height: 100%; }
  .hero__logo-name { font-weight: 500; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(.75rem, 1vw, .95rem); color: var(--c-silver); padding-left: .32em; }

  .hero__hud { position: absolute; inset: auto var(--margin) 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .hero__coords { color: rgba(244, 241, 234, .6); }
  .hero__scroll { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(244, 241, 234, .7); }
  .hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--c-white), transparent); transform-origin: top; animation: scrollline 2.2s var(--ease-in-out) infinite; }
  @keyframes scrollline { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
  .hero__ctas { display: flex; gap: 10px; pointer-events: auto; }
  .hero__scene-index { position: absolute; top: 96px; right: var(--margin); color: rgba(244, 241, 234, .55); }

  /* ===== MISSION ===== */
  .mission { background: var(--c-black); padding-top: clamp(140px, 22vh, 260px); }
  .mission__closer {
    margin-top: clamp(120px, 20vh, 240px);
    display: flex; align-items: baseline; justify-content: center; gap: .18em; flex-wrap: nowrap;
    font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 8.2vw, 10rem);
    font-variation-settings: "wdth" 110; letter-spacing: -0.055em; line-height: .85; white-space: nowrap;
  }
  .mission__half { display: inline-block; }
  .mission__and { font-size: .55em; color: var(--c-blue-bright); display: inline-block; }

  /* ===== PILLARS ===== */
  .pillars { background: var(--c-void); position: relative; }
  .pillars__head { padding-bottom: clamp(48px, 8vh, 96px); }
  .pillars__head .lead { margin-top: 24px; }
  .pillars__pin { position: relative; }
  .pillars__track { display: flex; flex-direction: column; gap: 24px; padding: 0 var(--margin) var(--section-pad); }
  .pillar {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr; gap: 40px;
    padding: clamp(28px, 4vw, 64px);
    min-height: 80svh;
    border: 1px solid var(--c-line); border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(160deg, var(--c-graphite) 0%, var(--c-black) 70%);
  }
  .pillar__num {
    position: absolute; right: -0.06em; top: -0.18em;
    font-family: var(--f-display); font-weight: 900; font-size: clamp(10rem, 26vw, 28rem); line-height: 1;
    font-variation-settings: "wdth" 125; letter-spacing: -0.06em;
    color: transparent; -webkit-text-stroke: 1px rgba(2, 152, 255, .28);
    pointer-events: none; user-select: none;
  }
  .pillar__body { position: relative; display: flex; flex-direction: column; gap: 18px; align-self: end; max-width: 560px; }
  .pillar__title { font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); text-transform: uppercase; letter-spacing: -0.045em; line-height: .88; font-variation-settings: "wdth" 110; }
  .pillar__sub { font-size: clamp(1.4rem, 2.2vw, 2rem); color: var(--c-silver); }
  .pillar__visual { position: relative; display: grid; place-items: center; min-height: 260px; }

  .mock-browser { width: 100%; max-width: 620px; border-radius: 12px; overflow: hidden; border: 1px solid var(--c-line-strong); background: var(--c-graphite-2); box-shadow: 0 40px 80px -30px rgba(0, 90, 245, .45); }
  .mock-browser__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
  .mock-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line-strong); }
  .mock-browser img { width: 100%; height: auto; }

  .mock-app { width: 100%; max-width: 620px; aspect-ratio: 16 / 10; display: grid; grid-template-columns: 56px 1fr; border-radius: 12px; overflow: hidden; border: 1px solid var(--c-line-strong); background: var(--c-black); box-shadow: 0 40px 80px -30px rgba(0, 90, 245, .45); }
  .mock-app__side { border-right: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 14px; padding: 16px 0; align-items: center; }
  .mock-app__side i { width: 22px; height: 22px; border-radius: 6px; background: var(--c-graphite-2); }
  .mock-app__side i:first-child { background: var(--c-blue); }
  .mock-app__main { padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
  .mock-app__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mock-app__row b { height: 54px; border-radius: 8px; background: var(--c-graphite); border: 1px solid var(--c-line); }
  .mock-app__chart { border-radius: 8px; background: var(--c-graphite); border: 1px solid var(--c-line); padding: 12px; }
  .mock-app__chart svg { width: 100%; height: 100%; }
  .mock-app__chart path { fill: none; stroke: var(--c-blue-bright); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
  .mock-app__list { display: grid; gap: 6px; }
  .mock-app__list i { height: 10px; border-radius: 4px; background: var(--c-graphite-2); }
  .mock-app__list i:nth-child(2) { width: 70%; } .mock-app__list i:nth-child(3) { width: 45%; }

  .mock-flow { width: 100%; max-width: 560px; overflow: visible; }
  .mock-flow__edge { fill: none; stroke: rgba(2, 152, 255, .55); stroke-width: 1.5; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
  .mock-flow__node { fill: var(--c-graphite); stroke: var(--c-line-strong); }
  .mock-flow__core { fill: var(--c-blue); filter: drop-shadow(0 0 18px rgba(2, 152, 255, .8)); }
  @keyframes flow { to { stroke-dashoffset: -28; } }

  .pillars__counter { display: none; }

  @media (min-width: 901px) {
    .pillar { grid-template-columns: 1fr 1fr; align-items: end; }
    .pillar__visual { align-self: center; }
    html.js.motion-ok .pillars__pin { height: 100svh; overflow: hidden; }
    html.js.motion-ok .pillars__track { flex-direction: row; flex-wrap: nowrap; height: 100svh; align-items: center; padding: 88px var(--margin) 56px; width: max-content; }
    html.js.motion-ok .pillar { width: calc(100vw - var(--margin) * 2 - 80px); height: calc(100svh - 144px); min-height: 0; flex-shrink: 0; }
    html.js.motion-ok .pillars__counter { display: block; position: absolute; left: var(--margin); bottom: 20px; }
  }

  /* ===== CHIPS (base) ===== */
  .chips { display: flex; gap: 8px; margin-top: 28px; }
  .chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c-line-strong); color: var(--c-white); }

  /* ===== BENTO (base) ===== */
  .bento { margin-top: clamp(96px, 14vh, 160px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

  /* ===== FORM (shared) ===== */
  .field__error { min-height: 1.2em; margin-top: 6px; font-size: .8rem; color: #FF8A8A; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form__status { margin-top: 16px; min-height: 1.4em; color: var(--c-steel); }

  .form-success { margin-top: clamp(56px, 8vh, 96px); display: grid; gap: 16px; }
  .form-success .mono { color: var(--c-blue-bright); }
  .form-success__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: var(--t-xl); letter-spacing: -0.045em; line-height: .9; }

  /* ===== FOOTER ===== */
  .footer { position: relative; background: var(--c-void); padding: clamp(80px, 12vh, 140px) var(--margin) 28px; border-top: 1px solid var(--c-line); overflow: hidden; }
  .footer__word { position: relative; display: inline-block; font-family: var(--f-display); font-weight: 900; font-size: clamp(2.4rem, 9.6vw, 12rem); font-variation-settings: "wdth" 100; letter-spacing: -0.055em; line-height: .85; white-space: nowrap; }
  .footer__word-outline { color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 234, .25); }
  .footer__word-fill { position: absolute; inset: 0; color: var(--c-white); clip-path: inset(0 100% 0 0); }
  html:not(.motion-ok) .footer__word-fill { clip-path: none; }
  .footer__time { color: var(--c-white); font-size: .95rem; }
  .footer__bar { margin-top: clamp(56px, 8vh, 96px); padding-top: 24px; border-top: 1px solid var(--c-line); display: flex; align-items: center; gap: 16px; color: var(--c-steel); font-size: .875rem; }
  .footer__bar img { width: 32px; height: 32px; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 64%, transparent 71%); mask-image: radial-gradient(circle, #000 64%, transparent 71%); transform: scale(1.25); }
  .footer__bar p { margin-right: auto; }
  @media (max-width: 900px) { .footer__bar { flex-wrap: wrap; } }
}

/* ---------------- MOTION (initial states only with JS) ---------------- */
@layer motion {
  html.js.motion-ok .hero__scene--2,
  html.js.motion-ok .hero__scene--3,
  html.js.motion-ok .hero__logo-stage { opacity: 0; }
  html.js.motion-ok .hero__sig--b { opacity: 0; }
  html.js:not(.motion-ok) .hero__scene--2,
  html.js:not(.motion-ok) .hero__scene--3,
  html.js:not(.motion-ok) .hero__logo-stage { display: none; }

  html.js.motion-ok [data-reveal] { opacity: 0; transform: translateY(40px); }

  @media (max-width: 900px) {
    .hero__hud { flex-direction: column; align-items: flex-start; }
    .hero__coords { display: none; }
    .hero__scroll { display: none; }
    .hero__ctas { width: 100%; }
    .hero__ctas .btn { flex: 1; }
    .hero__scene--1 { padding-bottom: 120px; }
    .hero__ticker { display: none; }
    .hero__scene-index { top: 84px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .grain { animation: none; }
    .hero__ticker-track, .hero__scroll i, .mock-flow__edge { animation: none; }
    /* 0s, not .01ms: a non-zero duration turns every style change (font-size too) into a transition,
       so the wordmark fit code would measure stale sizes right after setting them */
    *, *::before, *::after { transition-duration: 0s !important; }
  }
}

/* =========================================================
   V2 — visual, card-based, lighter, mobile-first redesign
   (utilities layer so it overrides earlier section styles)
   ========================================================= */
@layer utilities {
  :root {
    --bg: #04071A;
    --card: rgba(255, 255, 255, 0.045);
    --card-2: rgba(255, 255, 255, 0.07);
    --stroke: rgba(255, 255, 255, 0.09);
    --stroke-hi: rgba(120, 180, 255, 0.45);
    --r-card: 24px;
    --t-xxl: clamp(2.4rem, 6.5vw, 6.5rem);
    --t-xl: clamp(2rem, 4.4vw, 4.4rem);
    --section-pad: clamp(80px, 12vh, 150px);
  }
  body, html { background: var(--bg); }

  .v2 { position: relative; padding: var(--section-pad) var(--margin); isolation: isolate; overflow: clip; }

  /* ambient light */
  .aurora { position: absolute; z-index: -1; pointer-events: none; filter: blur(80px); opacity: .55; }
  .aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; }
  .aurora--a { inset: 0; }
  .aurora--a::before { width: 55vw; height: 55vw; left: -15vw; top: -10%; background: radial-gradient(circle, rgba(0, 90, 245, .55), transparent 65%); }
  .aurora--a::after { width: 40vw; height: 40vw; right: -10vw; bottom: 0; background: radial-gradient(circle, rgba(43, 250, 255, .22), transparent 65%); }
  .aurora--b { inset: 0; }
  .aurora--b::before { width: 60vw; height: 60vw; right: -20vw; top: 5%; background: radial-gradient(circle, rgba(2, 152, 255, .45), transparent 65%); }
  .aurora--b::after { width: 35vw; height: 35vw; left: 5vw; bottom: -5%; background: radial-gradient(circle, rgba(232, 168, 107, .14), transparent 65%); }
  .aurora--c { inset: 0; }
  .aurora--c::before { width: 70vw; height: 50vw; left: 15vw; top: 20%; background: radial-gradient(ellipse, rgba(0, 90, 245, .35), transparent 65%); }

  /* section header */
  .sh { margin-bottom: clamp(32px, 6vh, 64px); display: grid; gap: 16px; }
  .sh__pill { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke); font-size: .85rem; color: rgba(244, 241, 234, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .sh__pill > span:first-child { display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--g-s); color: #fff; font-family: var(--f-mono); font-size: .7rem; }
  .sh__title { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 105; font-size: clamp(2.1rem, 5.2vw, 4.6rem); line-height: .98; letter-spacing: -0.04em; max-width: 16ch; }
  .sh__title em { font-weight: 400; color: var(--c-blue-bright); letter-spacing: -0.02em; }

  /* cards */
  .card {
    --mx: 50%; --my: 50%;
    position: relative; border-radius: var(--r-card);
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(2, 152, 255, .10), transparent 45%), var(--card);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
    transition: border-color .5s var(--ease-out), transform .6s var(--ease-out), background-color .5s;
  }
  .card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx) var(--my), var(--stroke-hi), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
  .card:hover::before { opacity: 1; }
  @media (hover: hover) { a.card:hover, .wk:hover { transform: translateY(-4px); } }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; font-size: .82rem; line-height: 1.2; background: var(--card-2); border: 1px solid var(--stroke); color: rgba(244, 241, 234, .88); }
  .chips--sm .chip { padding: 5px 10px; font-size: .74rem; }

  .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-blue-bright); }
  .dot--live { background: #3BE38A; box-shadow: 0 0 0 0 rgba(59, 227, 138, .6); animation: live 2s infinite; }
  @keyframes live { 70% { box-shadow: 0 0 0 8px rgba(59, 227, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 227, 138, 0); } }

  .tile__eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-steel); }

  /* ---- disciplines strip ---- */
  .v2-stats { padding-block: clamp(64px, 10vh, 110px) 0; }
  .v2-stats .marquee { margin-inline: calc(var(--margin) * -1); }
  .marquee__track span { font-size: clamp(1rem, 1.8vw, 1.6rem); }

  /* ---- bento ---- */
  .bento { display: grid; gap: 12px; }

  /* ---- work bento (2x2: every card is wk--hero) ---- */
  .bento--work { grid-template-columns: repeat(4, 1fr); }
  .wk { overflow: hidden; display: flex; flex-direction: column; }
  .wk--hero { grid-column: span 2; }
  .wk__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--stroke); background: #000; }
  .wk__media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease-out); }
  .wk:hover .wk__media video { transform: scale(1.04); }
  .wk__body { padding: clamp(18px, 2vw, 26px); display: grid; gap: 10px; align-content: start; flex: 1; }
  .wk__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.035em; line-height: 1; }
  .wk--hero .wk__title { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
  .wk__line { color: rgba(244, 241, 234, .7); font-size: .95rem; }
  .wk__cta { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #04071A; font-size: 1.1rem; transition: transform .5s var(--ease-out), background-color .3s; z-index: 2; }
  .wk__cta:hover { transform: rotate(-12deg) scale(1.08); background: #fff; }
  .wk__art { aspect-ratio: 16 / 10; display: grid; place-items: center; border-bottom: 1px solid var(--stroke); overflow: hidden; }
  .wk__art img { width: 34%; max-width: 220px; height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); transition: transform .8s var(--ease-out); }
  .wk:hover .wk__art img { transform: scale(1.1) rotate(-4deg); }
  .wk__art--white { background: radial-gradient(circle at 50% 40%, #fff, #cfe3ff 80%); }
  .wk__links { display: flex; gap: 16px; margin-top: 6px; font-size: .88rem; font-weight: 500; }
  .wk__links a { color: var(--c-blue-bright); }
  .wk__links a:hover { color: #fff; }
  .wk__next { margin-top: 24px; font-size: var(--t-m); color: rgba(244, 241, 234, .75); }
  .wk__next .link { color: var(--c-blue-bright); }
  @media (max-width: 1000px) { .bento--work { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) {
    .bento--work { gap: 10px; }
    .wk--hero { grid-column: 1 / -1; }
  }

  /* ---- mission break ---- */
  .mission { background: transparent; padding-block: clamp(60px, 10vh, 120px); }
  .mission__closer { margin-top: 0; }

  /* ---- services: lighter + smaller ---- */
  .pillars { background: transparent; }
  .pillars__head.v2 { padding-bottom: 0; }
  .pillar { background: linear-gradient(160deg, rgba(0, 90, 245, .14), rgba(255, 255, 255, .03) 60%); border-color: var(--stroke); border-radius: 28px; }
  .pillar__title { font-size: clamp(2rem, 4vw, 4rem); }
  .pillar__sub { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
  @media (max-width: 900px) { .pillar { min-height: 0; gap: 24px; } .pillar__num { font-size: 9rem; } .pillar__visual { min-height: 200px; } }

  /* ---- contact ---- */
  .form-success { margin-top: 12px; padding: 32px; }
  .form-success__title { font-size: clamp(2rem, 4vw, 3.5rem); }

  /* ---- footer ---- */
  .footer { background: transparent; padding-top: clamp(60px, 10vh, 110px); }
  .footer__bar { margin-top: 32px; flex-wrap: wrap; }
  .footer__bar .footer__time { margin-left: auto; margin-right: 16px; }

  /* nav a touch lighter */
  .nav { background: rgba(10, 16, 40, .55); }

  @media (prefers-reduced-motion: reduce) { .dot--live { animation: none; } }
}
@layer utilities { .mission__closer { font-size: clamp(2.2rem, 8.6vw, 10.5rem); } }
@layer utilities {
  .bento--work { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  @media (max-width: 1000px) { .bento--work { --cols: 2; } }
}

/* =========================================================
   PERFORMANCE — lighter paint on phones & touch devices
   ========================================================= */
@layer utilities {
  .aurora { filter: none; opacity: .8; }
  @media (hover: none), (max-width: 800px) {
    .grain { animation: none; inset: 0; width: 100%; height: 100%; opacity: .05; }
    .card, .sh__pill, .btn--ghost, .nav, .menu { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .card { background: rgba(255, 255, 255, 0.055); }
    .card::before { display: none; }
    .nav { background: rgba(6, 10, 30, .92); }
    .mock-flow__edge, .dot--live { animation: none; }
  }
}

/* =========================================================
   CONTACT v3 — compact, branded, clear
   ========================================================= */
@layer utilities {
  .cx { background: transparent; }
  .cx__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vh, 48px); max-width: 760px; }
  .cx__title { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 105; font-size: clamp(2.3rem, 5.4vw, 4.8rem); line-height: .95; letter-spacing: -0.045em; }
  .cx__title em { font-weight: 400; color: var(--c-blue-bright); letter-spacing: -0.02em; }
  .cx__sub { color: rgba(244, 241, 234, .72); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 52ch; }
  .cx__status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 7px 14px; border-radius: 999px; font-size: .85rem; background: rgba(59, 227, 138, .08); border: 1px solid rgba(59, 227, 138, .28); color: #BFF5D6; }

  .cx__grid { display: grid; gap: 14px; align-items: start; }
  @media (min-width: 1000px) { .cx__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; } }

  /* channel cards */
  .cx__links { display: grid; gap: 10px; }
  .cl { display: flex; align-items: center; border-radius: 18px; padding: 0; overflow: hidden; }
  .cl__main { flex: 1; min-width: 0; display: grid; grid-template-columns: 48px 1fr 32px; align-items: center; gap: 14px; padding: 14px 16px; }
  .cl__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .5s var(--ease-out); }
  .cl__ic i { width: 24px; height: 24px; background: #fff; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
  .cl__ic--mail { background: linear-gradient(135deg, #EA4335, #C5221F); }
  .cl__ic--tel { background: linear-gradient(135deg, #22C55E, #15803D); }
  .cl__txt { display: grid; min-width: 0; }
  .cl__txt b { font-size: 1rem; font-weight: 600; }
  .cl__txt > span { color: rgba(244, 241, 234, .62); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cl__go { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08); position: relative; transition: background-color .3s, transform .5s var(--ease-out); }
  .cl__go::after { content: ""; position: absolute; inset: 9px; background: #fff; -webkit-mask: url(assets/icons/arrow.svg) center / contain no-repeat; mask: url(assets/icons/arrow.svg) center / contain no-repeat; }
  .cl:hover .cl__ic { transform: scale(1.06) rotate(-4deg); }
  .cl:hover .cl__go { background: var(--c-blue); transform: rotate(45deg); }
  .cl__copy { align-self: stretch; padding: 0 16px; border-left: 1px solid var(--stroke); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 241, 234, .7); transition: color .3s, background-color .3s; }
  .cl__copy:hover { color: #fff; background: rgba(255, 255, 255, .05); }
  .cl__copy.is-done { color: #3BE38A; }

  /* form */
  .cf { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 14px; border-radius: 22px; }
  .cf__head { display: grid; gap: 4px; }
  .cf__title { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
  .cf__hint { color: rgba(244, 241, 234, .6); font-size: .88rem; }
  .cf__topics { display: flex; flex-wrap: wrap; gap: 8px; }
  .cf__topics label { position: relative; cursor: pointer; }
  .cf__topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .cf__topics label > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .86rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); color: rgba(244, 241, 234, .85); transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-out); }
  .cf__topics label:hover > span { border-color: rgba(2, 152, 255, .55); }
  .cf__topics input:checked + span { background: var(--c-blue); border-color: var(--c-blue); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(0, 90, 245, .8); }
  .cf__topics input:focus-visible + span { outline: 2px solid var(--c-blue-bright); outline-offset: 2px; }
  .cf__err { margin-top: -6px; }
  .cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cf__field { display: grid; gap: 6px; }
  .cf__field label { display: flex; justify-content: space-between; font-size: .8rem; color: rgba(244, 241, 234, .7); }
  .cf__field input, .cf__field textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px; font-size: .98rem; color: #fff;
    background: rgba(4, 7, 26, .55); border: 1px solid var(--stroke); outline: none; resize: vertical;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
  }
  .cf__field textarea { min-height: 96px; line-height: 1.45; }
  .cf__field input::placeholder, .cf__field textarea::placeholder { color: rgba(244, 241, 234, .35); }
  .cf__field input:focus, .cf__field textarea:focus { border-color: var(--c-blue-bright); box-shadow: 0 0 0 4px rgba(2, 152, 255, .18); background: rgba(4, 7, 26, .8); }
  .cf__field [aria-invalid="true"] { border-color: #FF6B6B; }
  .cf .field__error { min-height: 0; margin: 0; font-size: .78rem; }
  .cf .field__error:empty { display: none; }
  .cf__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .cf__send { --h: 50px; }
  .cf .form__status { margin: 0; font-size: .85rem; }
  .cf.is-sending .cf__send { opacity: .7; pointer-events: none; }
  @media (max-width: 600px) {
    .cf__row { grid-template-columns: 1fr; }
    .cf__send { width: 100%; }
    .cl__txt > span { font-size: .82rem; }
  }
  .cx .form-success { margin-top: 14px; padding: 28px; border-radius: 22px; }
  .cx .form-success__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.04em; }
  .cx .form-success .lead { margin-top: 6px; max-width: 60ch; font-size: 1rem; }
}
@layer utilities {
  .cx__grid { grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 1000px) { .cx__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
  .cx__links, .cf { min-width: 0; }
  @media (max-width: 600px) {
    .cl__main { grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 12px; padding: 12px; }
    .cl__ic { width: 44px; height: 44px; border-radius: 12px; }
    .cl__go { width: 28px; height: 28px; }
    .cl__copy { padding: 0 12px; }
    .cf__topics label > span { padding: 7px 12px; font-size: .82rem; }
  }
}

/* =========================================================
   LANGUAGE — both languages live in the HTML; <html lang> picks one
   ========================================================= */
@layer reset {
  html[lang="es"] body [lang="en"], html[lang="en"] body [lang="es"] { display: none !important; }
}
@layer utilities {
  .lang-toggle { display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 0 5px; border-radius: 999px; border: 1px solid var(--c-line-strong); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; }
  .lang-toggle span { padding: 6px 9px; border-radius: 999px; color: rgba(244, 241, 234, .6); transition: background-color .3s, color .3s; }
  .lang-toggle:hover span { color: var(--c-white); }
  html[lang="es"] .lang-toggle [data-code="es"], html[lang="en"] .lang-toggle [data-code="en"] { background: var(--c-white); color: var(--c-void); }

  .cl__copy-done { display: none; }
  .cl__copy.is-done .cl__copy-idle { display: none; }
  .cl__copy.is-done .cl__copy-done { display: inline; }

  .mock-browser video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: #0b1a33; }
}
@layer utilities {
  @media (max-width: 480px) {
    .nav { gap: 10px; }
    .nav__name { white-space: nowrap; font-size: .88rem; }
    .lang-toggle { height: 38px; padding: 0 3px; }
    .lang-toggle span { padding: 5px 7px; }
    .nav__menu { height: 38px; padding: 0 14px; }
  }
}
