/* ============================================================
   SOLVEX SOLUTIONS PTE LTD — Landing Page
   Design system + components
   Brand: #fed423 (logo yellow) / #f5f7fa (surface) / #121417 (ink)
   ============================================================ */

/* ---------- 1. Fonts ---------------------------------------- */
/* BRAND FONT — the brief specifies Exbed Regular for the Solvex wordmark.
   Drop the licensed files into assets/fonts/ and delete the two comment
   markers below; --font-display already lists 'Exbed' first, so nothing
   else changes. Left commented so production makes no failed requests. */
/*
@font-face {
  font-family: 'Exbed';
  src: url('../fonts/Exbed-Regular.woff2') format('woff2'),
       url('../fonts/Exbed-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

/* ---------- 2. Tokens --------------------------------------- */
:root {
  /* brand */
  /* Brand yellow, taken from the official Solvex logo asset. */
  --accent:        #fed423;
  --accent-ink:    #1a1204;   /* text on yellow — 12.9:1 */
  --accent-deep:   #ebba34;   /* the logo's switch track, used for depth */
  --accent-text:   #806100;   /* yellow as *text* on light — 5.8:1 */
  --accent-soft:   #fef6d0;
  --accent-mist:   #fffceb;

  --brand:         #fed423;
  --brand-track:   #ebba34;

  /* neutrals */
  --ink:           #121417;
  --ink-80:        #3a3f46;
  --ink-60:        #4e555c;
  --ink-40:        #6a7178;
  --ink-20:        #c7cbd0;

  --surface:       #ffffff;
  --surface-alt:   #f5f7fa;
  --surface-deep:  #eef1f6;

  --line:          #e4e8ee;
  --line-strong:   #d3d9e2;

  /* type */
  --font-display: 'Exbed', 'Space Grotesk', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* fluid scale */
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(0.95rem, 0.91rem + 0.20vw, 1.06rem);
  --step-1:  clamp(1.12rem, 1.04rem + 0.38vw, 1.35rem);
  --step-2:  clamp(1.40rem, 1.24rem + 0.78vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.48rem + 1.55vw, 2.90rem);
  --step-4:  clamp(2.05rem, 1.62rem + 2.05vw, 3.35rem);
  --step-5:  clamp(2.55rem, 1.80rem + 3.60vw, 5.00rem);
  --step-6:  clamp(3.20rem, 1.40rem + 9.20vw, 9.60rem);

  /* layout */
  --gutter: clamp(1.15rem, 4vw, 4.5rem);
  --maxw: 1400px;
  --radius-s: 8px;
  --radius:   16px;
  --radius-l: 26px;

  /* motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur:  .55s;
  --dur-s: .3s;

  --shadow-s: 0 1px 2px rgba(18,20,23,.05), 0 4px 14px -6px rgba(18,20,23,.09);
  --shadow-m: 0 2px 6px rgba(18,20,23,.05), 0 18px 44px -18px rgba(18,20,23,.18);
  --shadow-l: 0 4px 10px rgba(18,20,23,.05), 0 40px 90px -32px rgba(18,20,23,.26);
  --shadow-accent: 0 16px 40px -14px rgba(254,212,35,.60);
}

/* ---------- 3. Reset ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a, button, input, select, textarea { -webkit-tap-highlight-color: rgba(254,212,35,.22); }

.sr-only {
  position: absolute; 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: 0; left: 50%; translate: -50% -120%;
  z-index: 999; background: var(--ink); color: #fff;
  padding: .7rem 1.4rem; border-radius: 0 0 10px 10px; font-size: var(--step--1);
  transition: translate .25s var(--ease-out);
}
.skip-link:focus-visible { translate: -50% 0; }

/* ---------- 4. Layout --------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

section { position: relative; }

.band {
  padding-block: clamp(3.6rem, 8vw, 8.5rem);
}
.band--tight { padding-block: clamp(3.25rem, 6vw, 5.5rem); }
.band--alt { background: var(--surface-alt); }
.band--ink { background: var(--ink); color: #fff; }

.rule { height: 1px; background: var(--line); border: 0; }

/* section heading kit */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: clamp(.66rem, .62rem + .12vw, .74rem);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-60); font-weight: 500;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.band--ink .eyebrow { color: rgba(255,255,255,.62); }
.band--ink .eyebrow::before { box-shadow: 0 0 0 4px rgba(254,212,35,.16); }

.sec-head {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 2rem);
  margin-bottom: clamp(2rem, 4.4vw, 4rem);
}
@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 5rem);
  }
}
.sec-title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  letter-spacing: -.04em;
  line-height: 1.02;
}
.sec-lede {
  font-size: var(--step-1);
  color: var(--ink-60);
  max-width: 46ch;
  line-height: 1.5;
}
.band--ink .sec-lede { color: rgba(255,255,255,.66); }

.accent-text { color: var(--accent-text); }
.band--ink .accent-text, .cta .accent-text { color: var(--accent); }

/* highlighter underline that draws in on reveal */
.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.js .mark::after {
  content: '';
  position: absolute; left: -.06em; right: -.06em; bottom: .06em;
  height: .32em;
  background: var(--accent);
  opacity: .35;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .85s var(--ease-out) .25s;
  border-radius: 2px;
}
.is-in .mark::after, .mark.is-in::after { transform: scaleX(1); }

/* ---------- 5. Buttons -------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95em 1.65em;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  transition: color .35s var(--ease-out), background-color .35s var(--ease-out),
              border-color .35s var(--ease-out), box-shadow .45s var(--ease-out),
              transform .45s var(--ease-out);
}
.btn__label { position: relative; z-index: 2; display: inline-block; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--ink);
  transform: translate3d(0, 101%, 0);
  transition: transform .5s var(--ease-out);
  border-radius: inherit;
}
.btn:hover::before, .btn:focus-visible::before { transform: translate3d(0, 0, 0); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover, .btn--primary:focus-visible { color: #fff; box-shadow: 0 20px 46px -16px rgba(18,20,23,.5); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; border-color: var(--ink); }

.btn--light {
  background: #fff; color: var(--ink);
}
.btn--light::before { background: var(--accent); }
.btn--light:hover, .btn--light:focus-visible { color: var(--accent-ink); }

.btn--lg { padding: 1.12em 2.1em; font-size: var(--step-1); }
.btn--sm { padding: .72em 1.2em; font-size: var(--step--1); }

/* arrow that slides */
.btn__arrow {
  position: relative; z-index: 2;
  width: 1em; height: 1em; flex: none;
  transition: transform .45s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(.28em); }

/* text link with underline wipe */
.tlink {
  position: relative;
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 500;
  padding-bottom: .18em;
}
.tlink::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor;
  transform-origin: right center; transform: scaleX(0);
  transition: transform .45s var(--ease-out);
}
.tlink:hover::after, .tlink:focus-visible::after { transform-origin: left center; transform: scaleX(1); }

/* ---------- 7. Progress + cursor ---------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent; pointer-events: none;
}
.scroll-progress__bar {
  height: 100%; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 800;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--ink-40);
  pointer-events: none;
  translate: -50% -50%;
  transition: width .3s var(--ease-out), height .3s var(--ease-out),
              background-color .3s var(--ease-out), border-color .3s var(--ease-out),
              opacity .3s;
  opacity: 0;
  display: none;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover {
  width: 62px; height: 62px;
  background: var(--accent); border-color: transparent;
  mix-blend-mode: normal;
}
.cursor__dot {
  position: absolute; inset: 0; margin: auto;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink);
  transition: opacity .25s;
}
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor__txt {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink);
  opacity: 0; transition: opacity .25s;
}
.cursor.is-hover .cursor__txt { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ---------- 8. Navigation ----------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: transform .5s var(--ease-out), background-color .4s var(--ease-out),
              box-shadow .4s var(--ease-out), backdrop-filter .4s;
  padding-block: clamp(.85rem, 1.6vw, 1.35rem);
}
.nav.is-stuck {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(18,20,23,.35);
}
.nav.is-hidden { transform: translate3d(0, -105%, 0); }
.nav.is-hidden:focus-within { transform: none; }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark .sx-a { stroke: var(--accent); }
.brand__mark .sx-b { fill: var(--ink); }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.32rem; letter-spacing: -.045em; line-height: 1;
  padding-top: .06em;
}
.brand__word em { font-style: normal; color: var(--accent-deep); }

.nav__links {
  display: none;
  align-items: center; gap: clamp(.3rem, 1.4vw, 1.1rem);
}
@media (min-width: 1180px) { .nav__links { display: flex; } }
@media (min-width: 1180px) and (max-width: 1300px) {
  .nav__link { padding: .55rem .5rem; }
  .nav__inner { gap: .8rem; }
}

.nav__link {
  position: relative;
  padding: .55rem .8rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-60);
  border-radius: 100px;
  white-space: nowrap;
  transition: color .3s var(--ease-out);
  overflow: hidden;
}
.nav__link span { position: relative; z-index: 2; }
.nav__link::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--surface-alt); border-radius: inherit;
  transform: scale(.6); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .3s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::before, .nav__link.is-active::before { transform: scale(1); opacity: 1; }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::before { background: var(--accent-soft); }

.nav__side { display: flex; align-items: center; gap: .5rem; flex: none; }
.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

/* language switch */
.lang {
  display: inline-flex; align-items: center;
  padding: 3px; border-radius: 100px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  position: relative;
}
.lang__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: var(--ink); border-radius: 100px;
  transition: transform .42s var(--ease-out);
  z-index: 1;
}
.lang[data-active="zh"] .lang__thumb { transform: translateX(100%); }
.lang__btn {
  position: relative; z-index: 2;
  padding: .34rem .72rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-60);
  border-radius: 100px;
  transition: color .35s var(--ease-out);
  min-width: 44px;
}
.lang__btn[aria-pressed="true"] { color: #fff; }

/* burger */
.burger {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  transition: background-color .3s, border-color .3s;
}
@media (min-width: 1180px) { .burger { display: none; } }
.burger:hover { background: var(--surface-alt); }
.burger__box { width: 17px; height: 11px; position: relative; }
.burger__box i {
  position: absolute; left: 0; height: 1.6px; width: 100%; background: var(--ink);
  border-radius: 2px; transition: transform .42s var(--ease-out), opacity .25s;
}
.burger__box i:nth-child(1) { top: 0; }
.burger__box i:nth-child(2) { top: 50%; margin-top: -.8px; }
.burger__box i:nth-child(3) { bottom: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(4.7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-4.7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 190;
  background: var(--surface);
  padding: clamp(5.5rem, 14vw, 7rem)
           max(var(--gutter), env(safe-area-inset-right))
           max(2rem, env(safe-area-inset-bottom))
           max(var(--gutter), env(safe-area-inset-left));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .68s var(--ease-out), visibility .68s;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__links { display: grid; gap: .1rem; }
.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8.5vw, 3.1rem);
  letter-spacing: -.045em;
  padding-block: .3em;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:active, .drawer__link:hover { color: var(--accent-text); }
.drawer__link i {
  font-family: var(--font-mono); font-style: normal;
  font-size: .7rem; color: var(--ink-40); letter-spacing: .12em;
}
.drawer__foot { display: grid; gap: 1.15rem; padding-top: 2rem; }
.drawer__foot .btn { width: 100%; }
.drawer__meta { font-size: var(--step--1); color: var(--ink-60); display: grid; gap: .3rem; }
.drawer__meta a:hover { color: var(--accent-text); }

/* ---------- 9. Hero ----------------------------------------- */
.hero {
  /* Light is the default, so the hero is correct with no JavaScript.
     JS opts into the dark intro by putting .lights-off on <html>. */
  --hero-bg:     var(--surface);
  --hero-ink:    var(--ink);
  --hero-muted:  var(--ink-60);
  --hero-faint:  var(--ink-40);
  --hero-line:   var(--line);
  --hero-btn-bd: var(--line-strong);
  --hero-glow-a: rgba(254,212,35,.34);
  --hero-glow-b: rgba(120,160,255,.20);

  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: clamp(5.5rem, 11vh, 8rem);
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-ink);
  transition: background-color .95s var(--ease-io), color .95s var(--ease-io);
}
.lights-off .hero__glow { opacity: .35; }
/* once the lights are on the blobs come alive and follow the pointer */
.hero.is-live .hero__glow { transition: translate .55s var(--ease-soft), scale .7s var(--ease-out), opacity .9s var(--ease-io); }
.hero.is-live .hero__glow--pulse { scale: 1.16; }

.lights-off .hero {
  --hero-bg:     var(--ink);
  --hero-ink:    #ffffff;
  --hero-muted:  rgba(255,255,255,.66);
  --hero-faint:  rgba(255,255,255,.45);
  --hero-line:   rgba(255,255,255,.09);
  --hero-btn-bd: rgba(255,255,255,.28);
  --hero-glow-a: rgba(254,212,35,.20);
  --hero-glow-b: rgba(120,160,255,.14);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, var(--hero-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-line) 1px, transparent 1px);
  background-size: clamp(52px, 7vw, 96px) clamp(52px, 7vw, 96px);
  -webkit-mask-image: radial-gradient(120% 85% at 50% 8%, #000 0%, transparent 78%);
  mask-image: radial-gradient(120% 85% at 50% 8%, #000 0%, transparent 78%);
  opacity: .85;
}
.hero__glow {
  position: absolute; width: min(60vw, 720px); aspect-ratio: 1;
  translate: 0 0;
  transition: translate .9s var(--ease-soft), scale .7s var(--ease-out), opacity .9s var(--ease-io);
  opacity: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow-a) 0%, rgba(254,212,35,.08) 42%, transparent 70%);
  filter: blur(14px);
  top: -14%; right: -6%;
  animation: floatA 17s ease-in-out infinite;
  transition: background .95s var(--ease-io);
}
.hero__glow--b {
  width: min(48vw, 560px);
  background: radial-gradient(circle, var(--hero-glow-b) 0%, rgba(120,160,255,.05) 45%, transparent 70%);
  top: auto; bottom: -18%; left: -10%; right: auto;
  animation: floatB 21s ease-in-out infinite;
}
@keyframes floatA {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(-6%, 7%, 0) scale(1.12); }
}
@keyframes floatB {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(9%, -6%, 0) scale(1.1); }
}
.hero__glow--c {
  width: min(38vw, 430px);
  background: radial-gradient(circle, rgba(255,153,60,.26) 0%, rgba(255,153,60,.07) 45%, transparent 70%);
  top: 42%; left: 34%; right: auto;
  animation: floatC 24s ease-in-out infinite;
}
@keyframes floatC {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33%     { transform: translate3d(7%, -9%, 0) scale(1.14); }
  66%     { transform: translate3d(-8%, 5%, 0) scale(.92); }
}

.hero__spot {
  position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 40%), rgba(254,212,35,.16), transparent 65%);
  opacity: 0; transition: opacity .6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .hero__spot { opacity: 1; } }

.hero__body {
  position: relative; z-index: 2;
  flex: 1;
  display: grid;
  align-content: center;
  gap: clamp(1rem, 2.1vh, 1.7rem);
  padding-block: clamp(1rem, 2.5vh, 2.5rem);
}

.hero__title {
  font-family: var(--font-display);
  font-size: min(var(--step-5), 11.5vh);
  line-height: .96;
  letter-spacing: -.045em;
  max-width: 17ch;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .ln > span { display: block; }
.js .hero__title .ln > span {
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.hero.is-ready .hero__title .ln > span { transform: none; }
.hero__title .ln:nth-child(2) > span { transition-delay: .09s; }
.hero__title .ln:nth-child(3) > span { transition-delay: .18s; }

.hero__lede {
  font-size: var(--step-1);
  color: var(--hero-muted);
  transition: color .95s var(--ease-io);
  max-width: 52ch;
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.js .hero__fade {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.hero.is-ready .hero__fade { opacity: 1; transform: none; }
.hero.is-ready .hero__fade--1 { transition-delay: .30s; }
.hero.is-ready .hero__fade--2 { transition-delay: .40s; }
.hero.is-ready .hero__fade--3 { transition-delay: .50s; }
.hero.is-ready .hero__fade--4 { transition-delay: .60s; }

/* small proof row */
.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding-top: .35rem;
}
.hero__proof-item { display: grid; gap: .1rem; }
.hero__proof-num {
  font-family: var(--font-display);
  font-size: var(--step-2); line-height: 1; letter-spacing: -.04em;
}
.hero__proof-lbl {
  font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--hero-faint);
  transition: color .95s var(--ease-io);
}
.hero__proof-sep { width: 1px; height: 32px; background: var(--hero-btn-bd); transition: background-color .95s var(--ease-io); }

/* giant wordmark at the base of the hero */
.hero__word {
  position: relative; z-index: 2;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  padding-bottom: clamp(.9rem, 2.4vh, 2rem);
}
.hero__word svg { width: 100%; height: auto; overflow: visible; }
.hero__word .w-l {
  fill: var(--ink);
  opacity: 0; transform: translateY(24%);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
}
.hero.is-ready .hero__word .w-l { opacity: 1; transform: none; }
.hero__word .w-l:nth-child(1) { transition-delay: .55s; }
.hero__word .w-l:nth-child(2) { transition-delay: .61s; }
.hero__word .w-l:nth-child(3) { transition-delay: .67s; }
.hero__word .w-l:nth-child(4) { transition-delay: .73s; }
.hero__word .w-l:nth-child(5) { transition-delay: .79s; }
.hero__word .w-l:nth-child(6) { transition-delay: .85s; }
.hero__word .w-l--accent { fill: var(--accent); }

.hero__scroll {
  margin-left: 1.4rem;
  display: none; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--hero-faint);
  transition: color .95s var(--ease-io);
}
@media (min-width: 900px) { .hero__scroll { display: flex; } }
.hero__scroll i {
  width: 1px; height: 26px; background: var(--hero-btn-bd); position: relative; overflow: hidden;
  transition: background-color .95s var(--ease-io);
}
.hero__scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  animation: scrollCue 1.9s var(--ease-io) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- 10. Reveal primitives --------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--rv-y, 26px), 0);
  transition: opacity .78s var(--ease-out), transform .78s var(--ease-out);
  transition-delay: var(--rv-d, 0ms);
}
.js [data-reveal="left"]  { transform: translate3d(-30px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(30px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.955); }
.js [data-reveal="clip"]  {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .95s var(--ease-out);
  transition-delay: var(--rv-d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* line-by-line text reveal */
.rv-lines .ln { display: block; overflow: hidden; }
.rv-lines .ln > span { display: block; }
.js .rv-lines .ln > span {
  transform: translateY(105%);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + var(--rv-d, 0ms));
}
.rv-lines.is-in .ln > span { transform: none; }

/* word stagger */
.rv-words .wd {
  display: inline-block; overflow: hidden; vertical-align: bottom;
}
.rv-words .wd > span { display: inline-block; }
.js .rv-words .wd > span {
  transform: translateY(102%);
  transition: transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 34ms);
}
.rv-words.is-in .wd > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .rv-lines .ln > span, .rv-words .wd > span,
  .hero__fade, .hero__title .ln > span, .hero__word .w-l {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  .marquee__track { animation: none !important; }
}

/* ---------- 11. Marquee ------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marq var(--marq-dur, 42s) linear infinite;
}
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
.marquee:focus-within .marquee__track,
.motion-paused .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes marq { to { transform: translate3d(var(--marq-shift, -50%), 0, 0); } }
.marquee__group { display: flex; align-items: center; flex: none; }

.marq-item {
  display: inline-flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem);
  padding-inline: clamp(1.1rem, 2.4vw, 2.2rem);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  letter-spacing: -.035em;
  color: var(--ink);
  white-space: nowrap;
}
.marq-item::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.marq-item--muted { color: var(--ink-40); }

/* client logo strip */
.logo-strip { padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.logo-chip {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .7rem clamp(1rem, 2vw, 1.6rem);
  margin-inline: .38rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  white-space: nowrap;
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.logo-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.logo-chip__dot {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .68rem; color: #fff;
  letter-spacing: -.02em;
}
.logo-chip__name { font-weight: 500; font-size: var(--step-0); letter-spacing: -.015em; }
.logo-chip__cat {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-40);
}

/* ---------- 12. Statement / intro --------------------------- */
.statement {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.14;
  letter-spacing: -.035em;
  max-width: 22ch;
}
.intro-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) {
  .intro-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
}
.intro-body { display: grid; gap: 1.15rem; color: var(--ink-60); font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }
.intro-body strong { color: var(--ink); font-weight: 500; }

.pain-list { display: grid; gap: .1rem; margin-top: .5rem; }
.pain {
  display: flex; align-items: flex-start; gap: .9rem;
  padding-block: .95rem;
  border-top: 1px solid var(--line);
  color: var(--ink-80);
  font-size: var(--step-0);
}
.pain:last-child { border-bottom: 1px solid var(--line); }
.pain__x {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; margin-top: .12em;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: .68rem; font-weight: 600;
}

/* ---------- 13. Services ------------------------------------ */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: background-color .45s var(--ease-out);
}
.svc__head {
  position: relative; z-index: 2;
  width: 100%; text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 2rem);
  padding-block: clamp(1.15rem, 2.6vw, 1.9rem);
  padding-inline: clamp(.2rem, 1.2vw, 1.1rem);
  transition: padding-inline .45s var(--ease-out), color .35s;
}
.svc__num {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .1em; color: var(--ink-40);
  transition: color .35s var(--ease-out);
}
.svc__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: -.038em; line-height: 1.06;
  transition: transform .5s var(--ease-out);
}
.svc__toggle {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), transform .5s var(--ease-out);
}
.svc__toggle i {
  position: relative; width: 12px; height: 12px; display: block;
}
.svc__toggle i::before, .svc__toggle i::after {
  content: ''; position: absolute; background: var(--ink); border-radius: 2px;
  transition: transform .45s var(--ease-out), background-color .4s;
}
.svc__toggle i::before { left: 0; right: 0; top: 5.2px; height: 1.6px; }
.svc__toggle i::after  { top: 0; bottom: 0; left: 5.2px; width: 1.6px; }

.svc:hover { background: var(--accent-mist); }
.svc:hover .svc__head { padding-inline: clamp(.55rem, 2vw, 1.7rem); }
.svc:hover .svc__num { color: var(--accent-text); }
.svc:hover .svc__toggle { border-color: var(--accent); background: var(--accent); }

.svc.is-open { background: var(--accent-mist); }
.svc.is-open .svc__toggle { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.svc.is-open .svc__toggle i::after { transform: scaleY(0); }
.svc.is-open .svc__num { color: var(--accent-text); }

.svc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-out);
}
.svc.is-open .svc__panel { grid-template-rows: 1fr; }
.svc__panel-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear .6s;
}
.svc.is-open .svc__panel-inner { visibility: visible; transition-delay: 0s; }
.svc__content {
  display: grid; gap: clamp(1.1rem, 2.5vw, 2rem);
  padding: 0 clamp(.2rem, 1.2vw, 1.1rem) clamp(1.4rem, 3vw, 2.2rem);
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease-out) .1s, transform .5s var(--ease-out) .1s;
}
.svc.is-open .svc__content { opacity: 1; transform: none; }
@media (min-width: 860px) {
  .svc__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-left: calc(.68rem + 3.4rem); }
}
.svc__desc { color: var(--ink-60); font-size: var(--step-0); line-height: 1.6; max-width: 46ch; }
.svc__tags { display: flex; flex-wrap: wrap; gap: .42rem; align-content: start; }
.svc__tag {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .42rem .7rem; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink-60);
  transition: border-color .3s, color .3s, background-color .3s;
}
.svc__tag:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- 14. Work / case studies ------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .42rem;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
}
.filter {
  position: relative;
  padding: .55rem 1.05rem;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  font-size: var(--step--1); font-weight: 500;
  color: var(--ink-60);
  overflow: hidden;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.filter span { position: relative; z-index: 2; }
.filter::before {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: var(--ink);
  transform: translate3d(0,101%,0);
  transition: transform .45s var(--ease-out);
}
.filter:hover { color: #fff; border-color: var(--ink); }
.filter:hover::before { transform: none; }
.filter[aria-pressed="true"] {
  color: var(--accent-ink); border-color: var(--accent);
}
.filter[aria-pressed="true"]::before { background: var(--accent); transform: none; }

.work-grid {
  display: grid;
  gap: clamp(.9rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
@media (min-width: 1120px) {
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .work-card { grid-column: span 2; }
  .work-card--wide { grid-column: span 3; }
  .work-card--hero { grid-column: span 6; }
}

.work-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  text-align: left;
  width: 100%;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out),
              border-color .45s var(--ease-out), opacity .45s var(--ease-out);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: var(--line-strong); }
.work-card.is-filtered { display: none; }

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
  flex: none;
}
.work-card--hero .work-card__media { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .work-card--hero .work-card__media { aspect-ratio: 16/10; } }

.work-card__img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease-out);
}
.work-card:hover .work-card__img { transform: scale(1.055); }

/* generated placeholder canvas when no screenshot exists */
.work-card__ph {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.work-card__ph::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(18,20,23,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18,20,23,.055) 1px, transparent 1px);
  background-size: 34px 34px;
}
.work-card__ph-orb {
  position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(6px); opacity: .7;
  transition: transform 1.2s var(--ease-out);
}
.work-card:hover .work-card__ph-orb { transform: scale(1.14) translateY(-4%); }
.work-card__ph-word {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: -.05em;
  color: var(--ink);
  mix-blend-mode: multiply;
}

.work-card__badge {
  /* bottom-left: the top of a captured site is always its own header */
  position: absolute; bottom: .8rem; left: .8rem; z-index: 4;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .7rem;
  border-radius: 100px;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-80);
  box-shadow: 0 2px 10px -4px rgba(18,20,23,.3);
}
.work-card__live {
  position: absolute; top: .8rem; right: .8rem; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  opacity: 0; visibility: hidden; transform: scale(.6) rotate(-30deg);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), visibility .4s;
}
.work-card:hover .work-card__live,
.work-card__live:focus-visible {
  opacity: 1; visibility: visible; transform: none;
}
/* touch devices have no hover, so the link is simply always shown */
@media (hover: none) {
  .work-card__live { opacity: 1; visibility: visible; transform: none; }
}

.work-card__body {
  display: grid; gap: .55rem;
  padding: clamp(1rem, 2vw, 1.45rem);
  flex: 1;
}
.work-card__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: -.04em; line-height: 1.05;
}
.work-card--hero .work-card__name { font-size: var(--step-3); }
.work-card__blurb { color: var(--ink-60); font-size: var(--step--1); line-height: 1.55; }
.work-card__meta {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem;
}
.chip {
  font-family: var(--font-mono); font-size: .59rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-40);
  padding: .3rem .55rem; border-radius: 6px; background: var(--surface-alt);
  border: 1px solid var(--line);
}
.work-card__more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto; padding-top: .7rem;
  font-size: var(--step--1); font-weight: 500; color: var(--ink);
}
.work-card__more svg { transition: transform .45s var(--ease-out); }
.work-card:hover .work-card__more svg { transform: translate(3px, -3px); }

.work-note {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-size: var(--step--1); color: var(--ink-40);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}

/* ---------- 15. Case study modal ---------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: end center;
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(18,20,23,.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(100%, 980px);
  max-height: 92vh;
  max-height: min(92svh, 900px);
  background: var(--surface);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(3%) scale(.985);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .45s var(--ease-out);
  box-shadow: var(--shadow-l);
}
@media (min-width: 900px) {
  .modal { place-items: center; }
  .modal__panel { border-radius: var(--radius-l); max-height: 88vh; max-height: 88svh; }
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 6;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: background-color .3s, transform .4s var(--ease-out);
}
.modal__close:hover { background: var(--accent); transform: rotate(90deg); }
.modal__hero { position: relative; aspect-ratio: 16/8; background: var(--surface-alt); overflow: hidden; }
.modal__hero img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.modal__body { padding: clamp(1.3rem, 3.5vw, 2.6rem); display: grid; gap: 1.3rem; }
.modal__title {
  font-family: var(--font-display); font-size: var(--step-3); letter-spacing: -.042em;
}
.modal__lede { color: var(--ink-60); font-size: var(--step-1); line-height: 1.55; max-width: 60ch; }
.modal__cols { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .modal__cols { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 2.4rem; } }
.modal__sub {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-40); margin-bottom: .7rem;
}
.modal__did { display: grid; gap: .5rem; }
.modal__did li {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: var(--step-0); color: var(--ink-80);
}
.modal__did li::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-top: .6em;
}
.modal__actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .3rem; }

/* ---------- 16. Process ------------------------------------- */
.steps {
  display: grid; gap: clamp(.8rem, 1.6vw, 1.2rem);
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  display: grid; gap: .6rem; align-content: start;
  overflow: hidden;
  transition: background-color .45s var(--ease-out), border-color .45s var(--ease-out), transform .5s var(--ease-out);
}
.step::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .7s var(--ease-out);
}
.step:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); transform: translateY(-4px); }
.step:hover::after { transform: scaleX(1); }
.step__n {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  color: var(--accent);
}
.step__t { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -.04em; }
.step__d { color: rgba(255,255,255,.68); font-size: var(--step--1); line-height: 1.55; }

/* ---------- 17. Stats / why ---------------------------------- */
.why-grid { display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); }
@media (min-width: 980px) { .why-grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); } }

.usp { display: grid; gap: .1rem; }
.usp__row {
  display: grid; grid-template-columns: auto minmax(0,1fr);
  gap: clamp(.9rem, 2vw, 1.5rem);
  padding-block: clamp(1.1rem, 2.2vw, 1.5rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.usp__row:last-child { border-bottom: 1px solid var(--line); }
.usp__ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), transform .5s var(--ease-out);
}
.usp__row:hover .usp__ico { background: var(--accent); color: var(--accent-ink); transform: rotate(-6deg) scale(1.06); }
.usp__row > div { min-width: 0; }
.usp__t { font-size: var(--step-1); font-weight: 500; letter-spacing: -.02em; margin-bottom: .25rem; }
.usp__d { color: var(--ink-60); font-size: var(--step--1); line-height: 1.55; max-width: 48ch; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 620px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface); padding: clamp(1.1rem, 2.4vw, 1.7rem);
  display: grid; gap: .3rem;
  transition: background-color .4s var(--ease-out);
}
.stat:hover { background: var(--accent-mist); }
.stat__n {
  font-family: var(--font-display); font-size: var(--step-3);
  letter-spacing: -.05em; line-height: 1;
}
.stat__n sup { font-size: .45em; vertical-align: super; color: var(--accent-text); letter-spacing: 0; }
.stat__l { font-size: var(--step--1); color: var(--ink-60); line-height: 1.4; }

/* ---------- 18. CTA + contact ------------------------------- */
.cta {
  position: relative;
  border-radius: clamp(20px, 3vw, 34px);
  background: var(--ink);
  color: #fff;
  padding: clamp(2.2rem, 6vw, 4.6rem);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: ''; position: absolute; z-index: -1;
  width: min(70vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,212,35,.55) 0%, rgba(254,212,35,.12) 45%, transparent 70%);
  right: -14%; top: -40%;
  animation: floatA 19s ease-in-out infinite;
}
.cta__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); } }
.cta__title {
  font-family: var(--font-display); font-size: var(--step-4);
  letter-spacing: -.045em; line-height: 1.02;
}
.cta__lede { color: rgba(255,255,255,.66); font-size: var(--step-1); margin-top: 1rem; max-width: 44ch; }
.cta__side { display: grid; gap: .9rem; }
.cta__row {
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.1rem; border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: background-color .35s, border-color .35s, transform .4s var(--ease-out);
}
.cta__row:hover { background: rgba(255,255,255,.1); border-color: rgba(254,212,35,.5); transform: translateX(4px); }
.cta__row-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(254,212,35,.16); color: var(--accent); flex: none; }
.cta__row > span:last-child { display: grid; gap: .18rem; min-width: 0; }
.cta__row-l { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.cta__row-v { display: block; font-size: var(--step-0); font-weight: 500; }

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); } }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: grid; }
.field__input {
  width: 100%;
  padding: 1.55rem 1.05rem .68rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: max(16px, var(--step-0));
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s;
  resize: vertical;
}
.field__input:hover { border-color: var(--ink-40); }
.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field__label {
  position: absolute; left: 1.08rem; top: 1.05rem;
  font-size: var(--step-0); color: var(--ink-40);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease-out), color .3s var(--ease-out);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-.72rem) scale(.76);
  color: var(--ink-60);
}
.field__input:focus + .field__label { color: var(--accent-text); }
select.field__input { appearance: none; cursor: pointer; padding-top: 1.55rem; color: var(--ink); }
select.field__input:invalid { color: transparent; }
select.field__input:invalid option { color: var(--ink); }
select.field__input:invalid + .field__label { transform: none; color: var(--ink-40); }
.field__caret { position: absolute; right: 1rem; top: 50%; margin-top: -5px; pointer-events: none; color: var(--ink-40); }

.form__consent { font-size: var(--step--1); color: var(--ink-40); line-height: 1.5; }
.form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__status {
  font-size: var(--step--1); font-weight: 500;
  padding: .8rem 1rem; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: none;
}
.form__status.is-shown { display: block; }
.form__status[data-kind="error"] { background: #fdecec; color: #8a1f1f; }
.field__err { font-size: .72rem; color: #b0281f; min-height: 1em; padding-left: .2rem; }
.field__input[aria-invalid="true"] { border-color: #d6564c; }
/* the ring must outrank the invalid border — JS focuses the first bad field */
.field__input:focus-visible,
.field__input[aria-invalid="true"]:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.info-list { display: grid; gap: .1rem; }
.info {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1rem;
  padding-block: 1.15rem; border-top: 1px solid var(--line);
  align-items: center;
}
.info:last-child { border-bottom: 1px solid var(--line); }
.info__ico { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-alt); display: grid; place-items: center; color: var(--ink-80); transition: background-color .35s, color .35s; }
.info:hover .info__ico { background: var(--accent); color: var(--accent-ink); }
.info > span:last-child { display: grid; gap: .18rem; min-width: 0; }
.info__l { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-40); }
.info__v { display: block; font-size: var(--step-0); font-weight: 500; overflow-wrap: anywhere; }
.info__v a:hover { color: var(--accent-text); }

/* ---------- 19. Footer -------------------------------------- */
.footer { background: var(--ink); color: #fff; padding-block: clamp(3rem, 6vw, 5rem) 2rem; overflow: hidden; }
.footer__top { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); } }
.footer__brand { display: grid; gap: 1.1rem; align-content: start; }
.footer .brand__word { color: #fff; font-size: 1.5rem; }
.footer .brand__mark .sx-b { fill: #fff; }
.footer__blurb { color: rgba(255,255,255,.68); max-width: 42ch; font-size: var(--step-0); line-height: 1.6; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 560px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__h { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.footer__list { display: grid; gap: .6rem; }
.footer__list a, .footer__list span { color: rgba(255,255,255,.76); font-size: var(--step--1); transition: color .3s; display: inline-block; }
.footer__list a:hover { color: var(--accent); }
.footer__wordmark { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.footer__wordmark svg { width: 100%; height: auto; }
.footer__wordmark .w-l { fill: rgba(255,255,255,.07); transition: fill .6s var(--ease-out); }
.footer__wordmark:hover .w-l { fill: rgba(255,255,255,.12); }
.footer__wordmark .w-l--accent { fill: rgba(254,212,35,.3); }
.footer__wordmark:hover .w-l--accent { fill: rgba(254,212,35,.5); }
.footer__base {
  margin-top: 1.6rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem;
  justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(255,255,255,.6);
}
.footer__base a:hover { color: var(--accent); }

/* ---------- 20. Misc ---------------------------------------- */
.to-top {
  position: fixed;
  right: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-right));
  bottom: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-bottom));
  z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: var(--shadow-m);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out),
              background-color .3s, visibility .45s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }

.noise {
  position: fixed; inset: 0; z-index: 700; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 768px) { .noise { display: none; } }

html.is-locked, body.is-locked { overflow: hidden; }

/* ---------- 22. Inline nudge card --------------------------- */
.nudge {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border-radius: var(--radius);
  background: var(--accent-mist);
  border: 1px solid var(--accent-soft);
  display: grid; gap: 1rem;
  align-content: start;
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nudge:hover { border-color: var(--accent); box-shadow: var(--shadow-s); }
.nudge .btn { justify-self: start; }
.nudge__t { font-size: var(--step-1); font-weight: 500; letter-spacing: -.02em; }
.nudge__d { color: var(--ink-60); font-size: var(--step--1); line-height: 1.55; margin-top: .3rem; max-width: 42ch; }

/* ---------- 23. Brand logo + the light switch ---------------- */
.brand__logo {
  height: clamp(22px, 2.2vw, 27px);
  width: auto;
  display: block;
  transition: filter .5s var(--ease-out), opacity .4s var(--ease-out);
}
.brand:hover .brand__logo { opacity: .82; }

/* the hero wordmark IS the logo, and its "O" is a working switch */
.hero__word { display: flex; }
.logo-switch {
  display: block;
  width: min(100%, calc(19vh * 7.6176));
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.logo-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 10px; }

.sx-logo {
  width: 100%; height: auto; display: block;
  overflow: visible;
}

/* letters rise into place once, like the rest of the hero */
.sx-letter { fill: var(--brand); transition: fill .9s var(--ease-io); }
.sx-cap    { fill: var(--brand); transition: fill .9s var(--ease-io); }
.sx-track  { fill: var(--brand-track); transition: fill .9s var(--ease-io); }
.sx-knob   {
  fill: #ffffff;
  transform: translateX(72px);
  transition: transform .72s cubic-bezier(.62,-0.16,.34,1.4), fill .6s var(--ease-io);
}

.lights-off .sx-letter { fill: #3c4149; }
.lights-off .sx-cap    { fill: #2a2e35; }
.lights-off .sx-track  { fill: #1b1e24; }
.lights-off .sx-knob   { fill: #767d86; transform: translateX(0); }

/* a glow blooms out of the switch at the moment it flips */
.sx-switch { filter: drop-shadow(0 0 22px rgba(254,212,35,.45)); transition: filter .9s var(--ease-out); }
.lights-off .sx-switch { filter: drop-shadow(0 0 0 rgba(254,212,35,0)); }

/* whole-hero flash as the lights come on */
.hero__flash {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 88%, rgba(254,212,35,.45), transparent 70%);
  opacity: 0;
}
.hero.is-firing .hero__flash { animation: heroFlash 1.1s var(--ease-out) forwards; }
@keyframes heroFlash {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  100% { opacity: 0; }
}

/* hint that the switch is interactive, once the page has settled */
.logo-switch::after {
  content: '';
  position: absolute; inset: auto 0 -1.4rem 0;
  height: 1px;
}
.hero__hint {
  display: none; align-items: center; gap: .35rem;
  margin-left: auto;
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--hero-faint);
  opacity: 0; transition: opacity .6s var(--ease-out) 1.9s, color .9s var(--ease-io);
  white-space: nowrap;
}
@media (min-width: 900px) { .hero__hint { display: flex; } }
.hero__hint { opacity: .75; }
.lights-off .hero__hint { opacity: 0; }
.hero__hint b { color: var(--accent-text); font-weight: 600; }
.lights-off .hero__hint b { color: var(--brand); }

/* nav has to survive the dark phase */
.lights-off .nav:not(.is-stuck) .brand__logo { filter: none; }
.lights-off .nav:not(.is-stuck) .nav__link { color: rgba(255,255,255,.66); }
.lights-off .nav:not(.is-stuck) .nav__link:hover,
.lights-off .nav:not(.is-stuck) .nav__link.is-active { color: #fff; }
.lights-off .nav:not(.is-stuck) .nav__link::before { background: rgba(255,255,255,.1); }
.lights-off .nav:not(.is-stuck) .nav__link.is-active::before { background: rgba(254,212,35,.16); }
.lights-off .nav:not(.is-stuck) .lang { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.lights-off .nav:not(.is-stuck) .lang__thumb { background: var(--brand); }
.lights-off .nav:not(.is-stuck) .lang__btn { color: rgba(255,255,255,.62); }
.lights-off .nav:not(.is-stuck) .lang__btn[aria-pressed="true"] { color: var(--accent-ink); }
.lights-off .nav:not(.is-stuck) .burger { border-color: rgba(255,255,255,.24); }
.lights-off .nav:not(.is-stuck) .burger__box i { background: #fff; }
.lights-off .nav:not(.is-stuck) .burger:hover { background: rgba(255,255,255,.08); }

/* hero button treatment while dark */
.lights-off .hero .btn--ghost { border-color: var(--hero-btn-bd); color: #fff; }
.lights-off .hero .btn--ghost::before { background: #fff; }
.lights-off .hero .btn--ghost:hover { color: var(--ink); border-color: #fff; }
.lights-off .hero .eyebrow { color: var(--hero-muted); }
.lights-off .hero .eyebrow::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(254,212,35,.16); }
.hero .btn, .hero .eyebrow, .hero .eyebrow::before {
  transition: color .95s var(--ease-io), border-color .95s var(--ease-io),
              background-color .95s var(--ease-io), box-shadow .95s var(--ease-io);
}

@media (prefers-reduced-motion: reduce) {
  .sx-knob { transition: none; }
  .hero.is-firing .hero__flash { animation: none; }
  .hero__hint { opacity: .75; transition: none; }
}

/* ---------- 24. Short viewports -----------------------------
   Laptops at 1280x680 and landscape phones must still show the
   whole hero — headline, actions and the full logo — in one screen. */
@media (max-height: 820px) and (min-width: 900px) {
  .hero { padding-top: clamp(4.4rem, 9vh, 6rem); }
  .hero__body { gap: clamp(.65rem, 1.5vh, 1.15rem); padding-block: clamp(.6rem, 1.4vh, 1.2rem); }
  .hero__title { font-size: min(var(--step-5), 8.8vh); }
  .hero__lede { font-size: var(--step-0); }
  .hero__actions .btn--lg { padding: .92em 1.7em; font-size: var(--step-0); }
  .logo-switch { width: min(100%, calc(15.5vh * 7.6176)); }
  .hero__word { padding-bottom: clamp(.6rem, 1.6vh, 1.2rem); }
}
@media (max-height: 620px) and (min-width: 900px) {
  .hero__title { font-size: min(var(--step-4), 9vh); }
  .hero__proof, .hero__hint { display: none; }
  .logo-switch { width: min(100%, calc(14vh * 7.6176)); }
}
/* landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 4.5rem; padding-bottom: 1.5rem; }
  .hero__title { font-size: clamp(1.5rem, 5.5vw, 2.4rem); }
  .hero__proof { display: none; }
  .logo-switch { width: min(100%, calc(16vh * 7.6176)); }
}

/* small phones: keep the whole hero, logo included, on one screen */
@media (max-width: 400px) {
  .hero { padding-top: clamp(4.6rem, 10vh, 5.6rem); }
  .hero__title { font-size: clamp(1.95rem, 10.4vw, 2.55rem); }
  .hero__lede { font-size: var(--step-0); }
  .hero__body { gap: .75rem; }
  .hero__proof-num { font-size: var(--step-1); }
  /* two compact proof items in one row instead of three stacked */
  .hero__proof { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
  .hero__proof-sep { display: none; }
  .hero__proof-item:nth-child(5) { display: none; }
}

/* the header has three fixed items — give them room on narrow phones */
@media (max-width: 420px) {
  .brand__logo { height: 19px; }
  .lang__btn { padding: .34rem .55rem; min-width: 36px; font-size: .68rem; }
  .nav__inner { gap: .5rem; }
  .burger { width: 40px; height: 40px; }
}
@media (max-width: 340px) {
  .brand__logo { height: 17px; }
  .nav { padding-block: .7rem; }
}

/* pause control for the auto-scrolling client strip (WCAG 2.2.2) */
.logo-strip { position: relative; }
.marq-toggle {
  position: absolute; right: var(--gutter); bottom: -.4rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .8rem .38rem .62rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--surface);
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60);
  transition: border-color .3s, color .3s, background-color .3s;
}
.marq-toggle:hover { border-color: var(--accent); color: var(--ink); }
.marq-toggle__ico {
  width: 9px; height: 9px; flex: none;
  border-left: 3px solid currentColor; border-right: 3px solid currentColor;
}
.marq-toggle[aria-pressed="true"] .marq-toggle__ico {
  border: 0; width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
@media (max-width: 640px) { .marq-toggle { right: 50%; transform: translateX(50%); } }

/* ---------- 25. Progressive work reveal ---------------------
   Fourteen case studies is a long scroll on a phone, so only the
   first six show until asked. Filtering expands automatically. */
.work-grid:not(.is-expanded) .work-card.is-extra { display: none; }
.work-more {
  display: flex; justify-content: center;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}
.work-more .btn { width: min(100%, 320px); }
.work-more__chev { position: relative; z-index: 2; transition: transform .45s var(--ease-out); }
.work-more[hidden] { display: none; }
#showAllWork[aria-expanded="true"] .work-more__chev { transform: rotate(180deg); }

/* industries row in the clients strip */
.ind-chip {
  display: inline-flex; align-items: center; gap: clamp(1rem, 2vw, 1.6rem);
  padding-inline: clamp(.5rem, 1vw, .8rem);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  letter-spacing: -.03em;
  color: var(--ink-40);
  white-space: nowrap;
}
.ind-chip::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ============================================================
   26. MODULES — the building-blocks bento
   Each tile carries a live mini-UI illustration. Illustrations are
   authored in em on a fixed design stage (--sw x --sh) and scaled to
   *contain* inside the art panel via container units, so one drawing
   works at every tile size. Animations only run while in view.
   ============================================================ */
.band--mods {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.band--mods::before {
  content: ''; position: absolute; z-index: -1;
  width: min(90vw, 1100px); aspect-ratio: 2 / 1;
  left: 50%; top: -6%; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(254,212,35,.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.band--mods::after {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 40% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 40% at 50% 0%, #000, transparent 75%);
  opacity: .7;
  pointer-events: none;
}

.mods {
  display: grid;
  gap: clamp(.8rem, 1.2vw, 1rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 330px;
  grid-auto-flow: dense;
}
@media (min-width: 1100px) {
  .mods { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 320px; }
}

.mod {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  isolation: isolate;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .4s var(--ease-out);
}
.mod:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
  border-color: var(--line-strong);
}
.mod--xl   { grid-column: span 2; grid-row: span 2; }
.mod--wide { grid-column: span 2; }
.mod--tall { grid-row: span 2; }

/* body copy */
.mod__body {
  position: relative; z-index: 2;
  display: grid; gap: .45rem; align-content: start;
  padding: clamp(1.05rem, 1.6vw, 1.4rem) clamp(1.1rem, 1.7vw, 1.5rem);
}
.mod__head { display: flex; align-items: baseline; gap: .6rem; }
.mod__num {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em;
  color: var(--accent-text); font-weight: 500;
}
.mod__title {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.2vw, 1.32rem);
  letter-spacing: -.035em; line-height: 1.1;
}
.mod--xl .mod__title { font-size: clamp(1.4rem, 1.9vw, 1.9rem); }
.mod__desc { color: var(--ink-60); font-size: .86rem; line-height: 1.5; max-width: 52ch; }
.mod--xl .mod__desc { font-size: .95rem; }
.mod__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.mod__tags li {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .09em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 6px;
  background: var(--surface-alt); border: 1px solid var(--line); color: var(--ink-60);
}
.mod--small .mod__tags { display: none; }

/* art panel */
.mod__art {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  container-type: size;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 70% 30%, var(--art-glow, rgba(254,212,35,.20)), transparent 70%),
    radial-gradient(1px 1px at 1px 1px, rgba(18,20,23,.11) 1px, transparent 1.4px) 0 0 / 16px 16px,
    linear-gradient(180deg, var(--art-top, #fbfcfe), var(--art-bot, #f3f5f9));
}
.mod__art { border-bottom: 1px solid var(--line); }

/* wide tiles read side by side; --flip puts the drawing on the right */
.mod--wide { flex-direction: row; }
.mod--wide .mod__body { flex: 0 0 40%; align-content: center; }
.mod--wide .mod__art { border-bottom: 0; border-right: 1px solid var(--line); }
.mod--wide.mod--flip .mod__art { order: 2; border-right: 0; border-left: 1px solid var(--line); }

/* the design stage: scales to *contain* in the art panel */
.mst {
  --sw: 40; --sh: 28;
  position: relative;
  /* contain the stage in the panel; --zoom/--pan let a drawing crop in on small screens */
  font-size: calc(min(calc(94cqw / var(--sw)), calc(90cqh / var(--sh))) * var(--zoom, 1));
  translate: var(--pan-x, 0) var(--pan-y, 0);
  width: calc(var(--sw) * 1em);
  height: calc(var(--sh) * 1em);
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.25;
  transition: transform .8s var(--ease-out);
}
.mod:hover .mst { transform: scale(1.025); }

/* drawings stay hidden until modules.css (loaded non-blocking) arrives */
.mod__art .mst { visibility: hidden; }

/* play only while visible */
/* !important is deliberate: each drawing's `animation` shorthand resets play-state
   to running, and modules.css loads after this file at equal specificity. */
.js .mod__art:not(.is-playing) *,
.js .mod__art:not(.is-playing) *::before,
.js .mod__art:not(.is-playing) *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .mod__art *, .mod__art *::before, .mod__art *::after { animation: none !important; }
}

/* ---------- mini-UI kit (all em, used by every illustration) ---- */
.mst { --ok: #1f9d63; --ok-soft: #e3f6ec; --bad: #e5484d; --bad-soft: #fdecec;
       --info: #3b82f6; --info-soft: #e8f0ff; --mui-line: #e6e9ef; --mui-soft: #f3f5f8; }
.mui-win {
  position: absolute;
  background: #fff;
  border: 1px solid var(--mui-line);
  border-radius: .9em;
  box-shadow: 0 .15em .4em rgba(18,20,23,.05), 0 1.4em 3em -1.1em rgba(18,20,23,.22);
  overflow: hidden;
}
.mui-win__bar {
  display: flex; align-items: center; gap: .32em;
  height: 2.1em; padding: 0 .8em;
  border-bottom: 1px solid #eef0f4; background: #fbfcfd;
}
.mui-win__bar > i { width: .48em; height: .48em; border-radius: 50%; background: #e1e4ea; }
.mui-win__title { margin-left: .45em; font-size: .7em; font-weight: 600; color: var(--ink-60); }
.mui-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--mui-line);
  border-radius: .8em;
  box-shadow: 0 .1em .3em rgba(18,20,23,.05), 0 1em 2.2em -.8em rgba(18,20,23,.26);
}
.mui-h   { font-size: .9em; font-weight: 600; letter-spacing: -.01em; }
.mui-t   { font-size: .72em; color: var(--ink-60); }
.mui-lbl { font-family: var(--font-mono); font-size: .56em; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); }
.mui-num { font-family: var(--font-display); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.mui-pill {
  display: inline-flex; align-items: center; gap: .3em;
  padding: .28em .62em; border-radius: 99em;
  font-size: .6em; font-weight: 600; white-space: nowrap;
  background: var(--mui-soft); color: var(--ink-80);
}
.mui-pill--brand { background: var(--accent); color: var(--accent-ink); }
.mui-pill--ok    { background: var(--ok-soft); color: #157a4a; }
.mui-pill--bad   { background: var(--bad-soft); color: #b4232a; }
.mui-pill--info  { background: var(--info-soft); color: #2459c7; }
.mui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  padding: .55em 1em; border-radius: 99em;
  font-size: .66em; font-weight: 600; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
}
.mui-btn--ghost { background: #fff; border: 1px solid var(--mui-line); color: var(--ink); }
.mui-bar { height: .42em; border-radius: 99em; background: #eef0f4; overflow: hidden; }
.mui-bar > b { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.mui-skel { height: .42em; border-radius: 99em; background: #e9ecf1; }
.mui-avatar {
  width: 1.9em; height: 1.9em; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: .62em; font-weight: 600; color: #fff; background: var(--ink-60);
  box-shadow: 0 0 0 .18em #fff;
}
.mui-check {
  width: 2.2em; height: 2.2em; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ok); color: #fff;
}
.mui-check svg { width: 55%; height: 55%; }
.mui-cursor {
  position: absolute; width: 1.7em; height: 1.7em; z-index: 20;
  filter: drop-shadow(0 .15em .3em rgba(18,20,23,.35));
  pointer-events: none;
}

/* ---------- mobile: a swipeable rail instead of a tall stack ---- */
.mods-rail { display: none; }
@media (max-width: 699px) {
  .mods {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    gap: .75rem;
    margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left)));
    padding: .4rem max(var(--gutter), env(safe-area-inset-left)) 1.2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mods::-webkit-scrollbar { display: none; }
  .mod {
    flex: 0 0 min(84vw, 350px);
    height: 470px;
    scroll-snap-align: start;
  }
  .mod, .mod--wide { flex-direction: column; }
  .mod .mod__art, .mod--wide.mod--flip .mod__art { order: -1; flex: 0 0 262px; border: 0; border-bottom: 1px solid var(--line); }
  .mst { --zoom: var(--m-zoom, 1); --pan-x: var(--m-pan-x, 0); --pan-y: var(--m-pan-y, 0); }
  .mod--wide .mod__body { flex: 1 1 auto; align-content: start; }
  .mod .mod__tags { display: none; }
  .mod:hover { transform: none; }

  .mods-rail {
    display: flex; align-items: center; gap: .9rem;
    margin-top: .3rem;
  }
  .mods-rail__track { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .mods-rail__thumb {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 20%; background: var(--ink); border-radius: 2px;
    transition: transform .2s linear;
  }
  .mods-rail__count { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--ink-60); min-width: 4.6em; text-align: right; }
}

/* ---------- the long tail ---------------------------------- */
.mods-more {
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  padding: clamp(1.2rem, 2.6vw, 2rem);
  display: grid; gap: clamp(1.2rem, 2.4vw, 1.8rem);
}
.mods-more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1.5rem; }
.mods-more__title { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -.035em; }
.mods-more__note { color: var(--ink-60); font-size: var(--step--1); max-width: 46ch; }
.mods-more__cols { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
@media (min-width: 700px)  { .mods-more__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mods-more__cols { grid-template-columns: repeat(4, 1fr); } }
.mods-more__group h4 {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60); font-weight: 500;
  padding-bottom: .7rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.mods-more__group h4 i {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.mods-more__group ul { display: flex; flex-wrap: wrap; gap: .35rem; }
.mods-more__group li {
  font-size: .8rem; font-weight: 500; color: var(--ink-80);
  padding: .42rem .72rem; border-radius: 100px;
  background: var(--surface-alt); border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s, color .3s, transform .35s var(--ease-out);
}
.mods-more__group li:hover { border-color: var(--accent); background: var(--accent-mist); color: var(--ink); transform: translateY(-2px); }

/* the grooming work card uses a drawn illustration instead of a screenshot */
.work-card__media--art .mod__art { position: absolute; inset: 0; }
