*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Greys, not black: a charcoal base, lighter bands, lighter panels again. */
  --bg:      #141416;
  --bg-2:    #1A1A1D;                /* footer, tooltips */
  --band:    rgba(255,255,255,.035); /* alternating sections — translucent, so the thread shows through */
  --panel:   rgba(34,34,38,.92);     /* cards — near-opaque, so the thread reads behind them */
  --accent:  #EEFF41;
  --txt:     #F4F4F5;
  /* Text greys are solid colours, not alpha, so contrast holds on every surface:
     --muted ≥ 6:1 and --subtle ≥ 4.5:1 against --bg, --band and --panel. */
  --txt-2:   #D4D4D8;
  --muted:   #A1A1AA;
  --subtle:  #93939C;
  --bord:    rgba(255,255,255,0.07);
  --bord-l:  rgba(255,255,255,0.12);
  /* Deliberate system stack. The old Eurostile CDN (fonts.cdnfonts.com) 500s,
     and the grotesque fallback is what the design was signed off on. */
  --f: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  /* theme plumbing — every colour below flips in [data-theme="light"] */
  --accent-rgb:  238,255,65;          /* lemon tints, borders, glows */
  --accent-ink:  var(--accent);       /* accent used as text */
  --on-accent:   #141416;             /* text sitting on a lemon fill — dark in both themes */
  --tint:        255,255,255;         /* overlays, in the text colour */
  --shade:       0,0,0;               /* recessed wells */
  --shadow:      rgba(0,0,0,.45);
  --thumb:       #3A3A40;
  --nav-bg:      rgba(32,32,36,.78);
  --sheet-bg:    rgba(20,20,22,.97);
  --shot-bg:     #0F0F11;
  --shot-bar:    #2A2A2F;
  --shot-ph:     #18181B;
  --thread:      #E8F99A;            /* the scroll thread, paler than the lemon */
  --art-edge:    none;               /* outline of the step drawings' lemon shapes */
  --art-line:    161,161,170;         /* the Map blueprint and Build's start, before the lemon (RGB) */
  --art-line-2:  212,212,216;         /* its highlights: moving dots, node centres (RGB) */
  --error:       #FF8A8A;
  --halo:        rgba(238,255,65,.22);  /* the team cards' hover halo: lemon in dark, grey in light */
  --panel-solid: #222226;               /* --panel without its alpha: the gap round the team portraits */
  --px-colors:   #EEFF41, #8A8F3A, #5E622E;  /* the team cards' hover pixels (pixel-card.js), picked at random */
  --logo-filter: brightness(0) invert(1);
  /* team cards (reflective.js): graphite metal; ghost cards share the base */
  --rc-tint:       255,255,255;      /* the metal's colour, RGB: white is plain steel */
  --rc-base:       #1D1D21;
  --rc-shadow:     0 22px 44px -20px rgba(0,0,0,.8), 0 6px 16px -8px rgba(0,0,0,.5);
  --rc-rim:        rgba(255,255,255,.07);
  --rc-rim-hi:     rgba(255,255,255,.1);
  --rc-tile:       linear-gradient(180deg, #38383F 0%, #26262B 100%);
  --rc-tile-edge:  rgba(255,255,255,.07);
  --rc-tile-hi:    rgba(255,255,255,.12);
  --rc-tile-shadow: 0 4px 10px -4px rgba(0,0,0,.7);
  --rc-dot-edge:   none;
  --rc-shine:      .6;               /* the light band; full strength reads over the text */
  --rc-ghost:      #2A2A30;
  --rc-sheen:      rgba(255,255,255,.08);
  --rc-ghost-ink:  rgba(255,255,255,.1);
  color-scheme: dark;
}

/* Light theme: the same layout on light grey, with the same neon lemon accent as
   the dark theme. Lemon is a fill (CTAs, the call card, the team cards'
   status dot, the hero mark, the step animations) and the scroll thread is a paler lemon;
   small accent text turns dark ink with a lemon mark, since lemon on light grey
   is ~1.1:1. Only the big headline words stay lemon. */
[data-theme="light"] {
  --bg:      #D8DCE2;
  --bg-2:    #E5E8EC;
  --band:    rgba(35,39,46,.035);
  --panel:   rgba(248,249,250,.94);
  --txt:     #23272E;
  --txt-2:   #3A404A;
  --muted:   #454C57;   /* ≥ 6:1 on bg, bg-2 and panel */
  --subtle:  #565E6A;   /* ≥ 4.5:1 on bg, bg-2 and panel */
  --bord:    rgba(35,39,46,.1);
  --bord-l:  rgba(35,39,46,.17);
  --accent:      #EEFF41;   /* neon lemon: buttons, hero mark, step animations */
  --accent-rgb:  35,39,46;   /* tints and hairlines go neutral: lemon would vanish on light grey */
  --accent-ink:  var(--txt); /* small accent text is dark ink; see the lemon marks below */
  --tint:        35,39,46;
  --shade:       35,39,46;
  --shadow:      rgba(35,39,46,.14);
  --thumb:       #C3C9D1;
  --nav-bg:      rgba(248,249,250,.8);
  --sheet-bg:    rgba(216,220,226,.97);
  --shot-bg:     #F1F3F5;
  --shot-bar:    #E5E8EC;
  --shot-ph:     #E5E8EC;
  --thread:      #E8F99A;   /* the scroll thread, paler than the lemon */
  --art-edge:    rgba(35,39,46,.5);   /* lemon shapes on white need an edge to read */
  --art-line:    86,94,106;
  --art-line-2:  35,39,46;
  --error:       #B3261E;
  --halo:        rgba(35,39,46,.12);   /* grey in light: lemon read too loud on the light panels */
  --panel-solid: #F8F9FA;
  --px-colors:   #C3C8D0, #9EA5B0, #DDEA3C;
  --logo-filter: brightness(0);
  /* team cards: light silver metal */
  --rc-tint:       246,248,252;
  --rc-base:       #E6E8EC;
  --rc-shadow:     0 22px 44px -22px rgba(35,39,46,.3), 0 6px 16px -10px rgba(35,39,46,.16);
  --rc-rim:        rgba(35,39,46,.08);
  --rc-rim-hi:     rgba(255,255,255,.8);
  --rc-tile:       linear-gradient(180deg, #FFFFFF 0%, #F4F5F7 100%);
  --rc-tile-edge:  rgba(35,39,46,.08);
  --rc-tile-hi:    #FFFFFF;
  --rc-tile-shadow: 0 4px 10px -5px rgba(35,39,46,.25);
  --rc-dot-edge:   0 0 0 .5px rgba(35,39,46,.35);   /* lemon on silver needs an edge */
  --rc-shine:      1;
  --rc-ghost:      #ECEEF1;
  --rc-sheen:      rgba(255,255,255,.75);
  --rc-ghost-ink:  rgba(35,39,46,.08);
  color-scheme: light;
}
/* light: the big accent words stay lemon; small labels get a lemon tick instead */
[data-theme="light"] :is(.rot-b, .value-title .accent) { color: var(--accent); }
[data-theme="light"] :is(.sec-eyebrow, .strip-label, .case-cat)::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 14px; height: 3px; margin: -2px 8px 0 0; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 0 .5px rgba(35,39,46,.25);
}
[data-theme="light"] .case-open { border-color: var(--accent); border-width: 1.5px; }

/* theme switch eases the page between palettes; off until first paint so the
   initial theme never animates in */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease !important;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--f);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; text-decoration: none; }

/* noise */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}


/* ── AMBIENT BG ── */
#ambient-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
#ambient-svg {
  width: 100%; height: 100%;
  opacity: .04;
  filter: blur(60px);
}

/* ── NAV ── floating capsule */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 46;              /* above .nav-sheet so the burger stays tappable to close */
  padding: 14px 18px;
  pointer-events: none;
}
.nav-inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  height: 60px; padding: 0 10px 0 20px;
  display: flex; align-items: center; gap: 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  pointer-events: auto;
  transition: background .45s ease, border-color .45s ease,
              box-shadow .45s ease, height .45s ease;
}
nav.scrolled .nav-inner {
  height: 54px;
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-color: rgba(var(--tint),.07);
  box-shadow: 0 12px 40px var(--shadow);
}

/* reading-progress hairline riding the capsule's lower edge */
.nav-progress {
  position: absolute; left: 26px; right: 26px; bottom: 0; height: 1px;
  border-radius: 1px; overflow: hidden;
  opacity: 0; transition: opacity .45s ease;
}
nav.scrolled .nav-progress { opacity: 1; }
.nav-progress::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),.15), var(--accent));
  transform: scaleX(var(--sp, 0)); transform-origin: left;
}

/* The source SVG is a 1000×1000 box holding a wordmark that only fills
   x 91–916, y 334–664 — so it is drawn oversized and cropped to its ink. */
.nav-logo { display: block; width: 58px; height: 23px; overflow: hidden; flex-shrink: 0; }
.nav-logo img {
  display: block; width: 70px; height: 70px;
  margin: -23.4px 0 0 -6.4px;
  filter: var(--logo-filter);
  transition: opacity .25s;
}
.nav-logo:hover img { opacity: .65; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0 auto;
}
.nav-links a {
  position: relative; display: block;
  padding: 10px 15px; border-radius: 999px;
  color: var(--muted);
  font-size: 11px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  transition: color .25s;
}
.nav-links a:hover { color: var(--txt); }
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 3px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent);
  opacity: 0; transform: translate(-50%, 5px) scale(.4);
  transition: opacity .25s, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.nav-links li.active a { color: var(--txt); }
.nav-links li.active a::after { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* our own product — visually detached from the section links by a divider */
.nav-aside {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 10px 16px 10px 18px; margin-right: 4px;
  border-left: 1px solid var(--bord-l);
  color: var(--muted);
  font-size: 11px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  transition: color .25s;
}
.nav-aside:hover { color: var(--accent-ink); }
.nav-aside svg { opacity: .7; }

.nav-cta {
  position: relative; overflow: hidden; flex-shrink: 0;
  padding: 11px 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--f); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nav-cta:hover { transform: scale(1.04); }
.nav-cta::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.22);
  transform: translateY(100%);
  transition: transform .3s ease-out;
}
.nav-cta:hover::after { transform: translateY(0); }
.nav-cta span { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }

/* theme switch — shows the palette it switches to */
.theme-toggle {
  flex-shrink: 0; width: 38px; height: 38px; margin-right: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--bord-l);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color .25s, border-color .25s;
}
.theme-toggle:hover { color: var(--txt); border-color: rgba(var(--accent-rgb),.5); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* burger + mobile sheet */
.nav-burger {
  display: none; flex-shrink: 0;
  width: 44px; height: 44px; margin-left: auto;
  border: none; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
  position: relative;
}
.nav-burger i {
  position: absolute; left: 13px; width: 18px; height: 1.5px;
  background: var(--txt); border-radius: 2px;
  transition: transform .38s cubic-bezier(.22,1,.36,1), opacity .2s;
}
.nav-burger i:nth-child(1) { transform: translateY(-4px); }
.nav-burger i:nth-child(2) { transform: translateY(4px); }
.nav-burger.open i:nth-child(1) { transform: rotate(45deg); }
.nav-burger.open i:nth-child(2) { transform: rotate(-45deg); }

.nav-sheet {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px; gap: 4px;
  background: var(--sheet-bg);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.nav-sheet.open { opacity: 1; visibility: visible; }
.nav-sheet a {
  font-size: clamp(1.9rem, 9vw, 2.8rem); font-weight: 700;
  letter-spacing: -.03em; text-transform: uppercase;
  color: var(--txt); padding: 8px 0;
  border-bottom: 1px solid rgba(var(--tint),.06);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.nav-sheet.open a { opacity: 1; transform: none; }
.nav-sheet.open a:nth-child(1) { transition-delay: .08s; }
.nav-sheet.open a:nth-child(2) { transition-delay: .13s; }
.nav-sheet.open a:nth-child(3) { transition-delay: .18s; }
.nav-sheet.open a:nth-child(4) { transition-delay: .23s; }
.nav-sheet.open a:nth-child(5) { transition-delay: .28s; }
.nav-sheet.open a:nth-child(6) { transition-delay: .33s; }
.nav-sheet .sheet-aside {
  margin-top: 20px; border-top: 1px solid rgba(var(--tint),.06);
  padding-top: 22px; border-bottom: none;
  font-size: clamp(1.1rem, 5vw, 1.5rem); color: var(--muted);
}
.nav-sheet .sheet-cta { color: var(--accent-ink); border-bottom: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta, .nav-aside { display: none; }
  .nav-burger { display: flex; }
  .theme-toggle { margin-left: auto; margin-right: 0; }
  .theme-toggle + .nav-cta + .nav-burger { margin-left: 4px; }
  .nav-inner { padding-right: 4px; }
}

/* ── MAIN ── */
main { position: relative; z-index: 10; }

/* ── FADE-IN ── */
.fi {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.fi.vis { opacity: 1; transform: none; }

/* Heading reveal — more lift, slower, authoritative */
.fi-h {
  opacity: 0; transform: translateY(42px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.fi-h.vis { opacity: 1; transform: none; }

/* Card entrance — scale collapse + rise */
.fi-card {
  opacity: 0; transform: translateY(28px) scale(0.985);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fi-card.vis { opacity: 1; transform: none; }

/* ── SCROLL THREAD ──
   One fixed layer for the whole page. The 32 L32 nodes start clustered
   as the logo in the hero, then unravel into a single thread that the
   scroll draws down the length of the document. */
#thread {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0;
  transition: opacity 1.6s ease .25s;
}
#thread.ready { opacity: 1; }
#thread-svg { width: 100%; height: 100%; display: block; }
/* static filter — animating it per frame would re-parse on every tick */
#thread-mark { filter: drop-shadow(0 0 26px rgba(var(--accent-rgb),.4)); }
/* no opacity here — a CSS opacity would outrank the per-frame attribute */
#thread-glow, #thread-spine { fill: none; stroke-linecap: round; }
/* the line and its halo are --thread; the hero mark's nodes are the accent */
#thread-glow  { stroke-width: 16; stroke: var(--thread); }
#thread-spine { stroke-width: 2; stroke: var(--thread); }
#thread-head { fill: var(--thread); }
#thread-bridges, #thread-nodes, #amb-paths, #amb-circles { fill: var(--accent); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Word-by-word reveal */
.ww { display: inline-block; overflow: hidden; vertical-align: bottom; }
.wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.wi.show { transform: translateY(0); }

/* Rotating headline slot — swaps the variable word, keeps the line centred.
   Every variant is absolutely positioned, so ::before holds the line box open. */
.rot {
  display: inline-block; position: relative;
  vertical-align: bottom; overflow: hidden;
  width: 0; text-align: left;
  transition: width .55s cubic-bezier(0.22, 1, 0.36, 1);
}
.rot::before { content: '\00a0'; }
.rot .rw {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  transform: translateY(115%);
  opacity: 0;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1), opacity .35s ease;
}
.rot .rw.in  { transform: translateY(0);     opacity: 1; }
.rot .rw.out { transform: translateY(-115%); opacity: 0; }
.rot-b { color: var(--accent-ink); }

.hero-content {
  position: absolute;
  bottom: clamp(48px, 8vh, 96px);
  left: 0; right: 0;
  z-index: 10;
  padding: 0 32px;
  text-align: center;
}
.hero-tag {
  display: block;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 20px;
  opacity: 0; transition: opacity 0.7s ease;
}
.hero-tag.show { opacity: 1; }
.hero-headline {
  display: block;
  /* --fit is trimmed by JS if the longest phrase would overrun the line;
     the webfont's metrics aren't known until it loads, so this is measured, not guessed */
  font-size: calc(clamp(1.5rem, 6vw, 5rem) * var(--fit, 1));
  font-weight: 700; letter-spacing: -.025em;
  line-height: 1.02; text-transform: uppercase;
  color: var(--txt);
  margin-bottom: 36px;
}
/* each half is one unwrappable unit, so a narrow screen breaks between
   "Less <word>." and "More <word>." and never mid-phrase */
.hl { display: inline-block; white-space: nowrap; margin-right: .3em; }
.hl:last-child { margin-right: 0; }
.hero-headline .ww { margin-right: 0.18em; }
.hero-cta-wrap {
  display: flex; justify-content: center; gap: 14px;
}
.hero-discover {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; padding: 10px 0;
  transition: color .3s;
}
.hero-discover:hover { color: var(--txt); }
.hero-discover svg { transition: transform .35s cubic-bezier(0.22,1,0.36,1); }
.hero-discover:hover svg { transform: translateY(4px); }

/* ── SECTIONS ── shared frame */
.wrap { max-width: 1280px; margin: 0 auto; }
#value, #what-we-do, #use-cases, #team { padding: 128px 24px; }
/* alternating lighter band — translucent, so the scroll thread still shows through */
.band {
  background: var(--band);
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
}
.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 64px;
}
.section-title .mute { color: var(--muted); }
.sec-eyebrow {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-ink);
  opacity: .85; margin-bottom: 18px;
}
.sec-head {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 48px; align-items: end; margin-bottom: 56px;
}
.sec-head .section-title { margin-bottom: 0; }
.sec-intro {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--muted); line-height: 1.75;
  max-width: 600px; margin-bottom: 6px;
}
@media (max-width: 768px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}
/* one label style for every small strip heading */
.strip-label {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-ink);
  opacity: .85; margin-bottom: 22px;
}

/* ── VALUE ── the promise, then who it's for */
.value-title {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.02;
}
.value-title .accent { color: var(--accent-ink); }
.value-copy em { color: var(--txt); }

/* auto-fit + a rule per item: reflows to any column count without
   nth-child bookkeeping, and items on a row share one continuous line */
.aud-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-bottom: 1px solid var(--bord-l);
}
.aud-item {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px 20px 0;
  border-top: 1px solid var(--bord-l);
  color: var(--accent-ink);
}
.aud-item svg { flex-shrink: 0; opacity: .8; }
.aud-name {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--txt); letter-spacing: -.01em;
}
.aud-note {
  display: block; font-size: 10.5px; margin-top: 4px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ── WHAT WE DO ── Map → Build → Run is the spine, shown as a stepper: a nav of
   three steps (done ✓ / active / to come) joined by separators that fill, and
   one panel with the active step's animation and copy. */
.stepper {
  /* near-opaque so the scroll thread reads behind the panel, not through its text */
  background: var(--panel);
  border: 1px solid var(--bord);
  border-radius: 22px; padding: 40px 32px 44px; margin-bottom: 72px;
  display: flex; flex-direction: column; align-items: center;
}
/* three equal columns: drawing, then its number, then title and line, all on
   one centre axis. The track joining the numbers is drawn by each .st-mark:
   a half-line either side of its indicator. */
.st-nav {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%; max-width: 1040px; padding: 0 0 30px;
}
.st-trigger {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: none; border: 0; padding: 6px 0; border-radius: 16px;
  font-family: var(--f); text-align: center; cursor: pointer; color: var(--txt);
}
.step-art { max-width: 240px; }
.st-mark { position: relative; width: 100%; display: flex; justify-content: center; margin-top: 4px; }
.st-mark::before, .st-mark::after {
  content: ''; position: absolute; top: 50%; height: 2px; margin-top: -1px;
  width: calc(50% - 30px); border-radius: 2px;
  background: linear-gradient(var(--accent-ink), var(--accent-ink)) 0 0 / 0% 100% no-repeat, var(--bord-l);
  transition: background-size .5s ease;
}
.st-mark::before { left: 0; }
.st-mark::after  { right: 0; }
.st-trigger:first-child .st-mark::before, .st-trigger:last-child .st-mark::after { display: none; }
/* a step reached fills the half-line coming in; a step done fills the one going out */
.st-trigger:not([data-state="inactive"]) .st-mark::before,
.st-trigger[data-state="completed"] .st-mark::after { background-size: 100% 100%, auto; }
/* the drawing sits straight on the panel; it appears when its step is reached */
.step-art {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .5s ease, transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-art.on { opacity: 1; transform: none; }
.st-trigger:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.st-ind {
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bord-l); color: var(--muted);
  font-size: 13px; font-weight: 700;
  transition: background .35s, border-color .35s, color .35s, box-shadow .35s;
}
.st-check { position: absolute; width: 16px; height: 16px; opacity: 0; transition: opacity .25s; }
.st-trigger[data-state="active"] .st-ind {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb),.14);
}
.st-trigger[data-state="completed"] .st-ind { border-color: var(--accent-ink); color: var(--accent-ink); }
.st-trigger[data-state="completed"] .st-num { opacity: 0; }
.st-trigger[data-state="completed"] .st-check { opacity: 1; }
.st-txt { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.st-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.st-desc { font-size: 12px; color: var(--muted); }
.st-trigger[data-state="inactive"] .st-title { color: var(--muted); }
/* fills use --accent-ink: lemon on dark, ink on light grey (a lemon hairline vanishes there) */
.st-panel { width: 100%; display: flex; justify-content: center; }
.st-copy { max-width: 560px; text-align: center; }
.st-content[hidden] { display: none; }
.st-content { animation: st-in .5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes st-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-n {
  display: block; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--accent-ink);
}
.step-t {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700;
  letter-spacing: -.025em; line-height: 1.05; color: var(--txt);
}
.step-d { font-size: 16px; line-height: 1.75; color: var(--muted); }
/* progress of the step on show */
.step-rail {
  height: 2px; margin: 26px auto 0; max-width: 240px; border-radius: 2px;
  background: var(--bord-l); overflow: hidden;
}
.step-rail i { display: block; height: 100%; width: 0; background: var(--accent-ink); }
@media (max-width: 640px) {
  .stepper { padding: 18px 14px 26px; }
  .st-nav { padding: 0 0 18px; }
  .st-trigger { gap: 8px; padding: 2px 0; }
  .st-mark::before, .st-mark::after { width: calc(50% - 22px); }
  .st-desc { display: none; }
  .st-ind { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .st-content { animation: none; } }

.fit-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-bottom: 1px solid var(--bord-l);
}
.fit-row li {
  padding: 22px 24px 24px 0;
  border-top: 1px solid var(--bord-l);
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
.fit-row b {
  display: block; margin-bottom: 6px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--txt);
}
.fit-stack {
  margin-top: 22px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--subtle);
}

/* ── USE CASES ── */
.trusted { text-align: center; margin-bottom: 64px; }
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 60px);
}
.client-slot {
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  position: relative;
}
.client-slot::after {
  content: attr(data-name) ' ↗';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-2);
  color: var(--txt);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  border: 1px solid var(--bord-l);
  z-index: 10;
}
.client-slot.no-link::after { content: attr(data-name); }
.client-slot:hover::after, .client-slot:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* the files are cropped to the mark itself; --h (on each <img>) evens out their visual
   weight: thin marks (Laburnum, Crescent) run taller, solid wordmarks (Loone, HoS) shorter */
.client-logo-img {
  height: var(--h, 48px); width: auto;
  object-fit: contain;
  /* every logo is one colour on transparent, so render each as a white silhouette.
     brightness(10) couldn't do it: pure-black marks (Laburnum, Life in Patterns) stay black. */
  filter: var(--logo-filter);
  opacity: .85;
  transition: all .3s ease;
}
@media (max-width: 768px) { .client-logo-img { height: calc(var(--h, 48px) * .8); } }
.client-slot:hover .client-logo-img { opacity: 1; transform: scale(1.05); }

.cases { display: grid; gap: 24px; }
/* A case card: the video (or screenshot) on one side, the story on the other,
   alternating from card to card (video left on the first, right on the second…).
   "See how it works" swaps the story for the product; both faces share one grid
   cell, so the card keeps its height when it flips. */
.case {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  /* near-opaque base so the scroll thread reads behind cases, not through their text */
  background: var(--panel);
  border: 1px solid var(--bord);
  border-radius: 24px; overflow: hidden;
}
@media (min-width: 901px) {
  .case:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .case:nth-of-type(even) .case-media { order: 2; }
}

/* SCROLL STACK (spike) — desktop only: each case pins under the nav and the
   next one slides over it; covered cards shrink a little (initCaseStack).
   Cards on mobile are taller than the screen, so they stay a plain list. */
@media (min-width: 901px) {
  .cases.stack { display: block; padding-bottom: 12vh; }
  .cases.stack .case {
    position: sticky;
    top: calc(var(--stack-top) + var(--i) * var(--stack-gap));
    margin-bottom: 18vh;
    transform-origin: 50% 0;
    /* opaque: a card underneath must not show through the one on top */
    background: linear-gradient(var(--panel), var(--panel)), var(--bg);
    box-shadow: 0 -12px 40px var(--shadow);
    will-change: transform;
  }
  .cases.stack .case:last-child { margin-bottom: 0; }
}
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
}
.case-media {
  position: relative; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb),.06), transparent 65%), rgba(var(--shade),.16);
}
@media (max-width: 900px) { .case-media { padding: 22px 16px; } }

/* a real screenshot, framed as the browser window it lives in */
.shot {
  width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--bord-l);
  background: var(--shot-bg);
  box-shadow: 0 24px 60px var(--shadow);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.case:hover .shot { transform: translateY(-4px); }
.shot-bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: var(--shot-bar); border-bottom: 1px solid var(--bord);
}
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--tint),.2); }
.shot-bar span {
  margin-left: 10px; font-size: 10.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot img { display: block; width: 100%; height: auto; }
/* a case video (shot.video): muted loop while in view, pause + full screen in the bar */
.shot-bar span { min-width: 0; }
.shot-btn {
  flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s;
}
.shot-btn:first-of-type { margin-left: auto; }
.shot-btn + .shot-btn { margin-left: 2px; }
.shot-btn:hover { background: rgba(var(--tint),.08); color: var(--txt); }
.shot-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; }
.shot-btn .i-play, .shot-btn.paused .i-pause { display: none; }
.shot-btn.paused .i-play { display: block; }
.shot-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: var(--shot-ph); cursor: zoom-in;
}
.shot-video:fullscreen { cursor: auto; }
/* end of a case video: watch again, or straight to contact */
.shot-stage { position: relative; }
.vid-end {
  position: absolute; inset: 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 12px;
  /* under the end frame's tagline: ~80% down a 16:9 frame (padding % is of the width) */
  padding-top: calc(44.7% - 18px);
  background: rgba(var(--shade),.25);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.shot-stage.ended .vid-end { opacity: 1; visibility: visible; transition: opacity .35s; }
.pill-cta, .pill-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--f); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.pill-cta { background: var(--accent); color: var(--on-accent); }
.pill-ghost { background: var(--bg); color: var(--txt); }
.pill-cta:hover, .pill-ghost:hover { transform: scale(1.04); }
.pill-cta:focus-visible, .pill-ghost:focus-visible { outline: 2px solid var(--txt); outline-offset: 2px; }
/* stands in until the real screenshot is dropped into the project's `shot.src` */
.shot-ph {
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(var(--tint),.025) 0 12px, transparent 12px 24px), var(--shot-ph);
  color: var(--muted); font-size: 13px; line-height: 1.5;
}
.shot-ph svg { color: var(--accent-ink); opacity: .6; margin-bottom: 4px; }
.shot-ph small {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle);
}

.case-body { padding: 28px 40px 26px; display: grid; align-items: center; }
@media (max-width: 900px) { .case-body { padding: 26px 22px 28px; align-items: start; } }
.case-face {
  grid-area: 1 / 1; display: flex; flex-direction: column;
  transition: opacity .45s ease .1s, transform .55s cubic-bezier(.22,1,.36,1) .1s, visibility 0s;
}
.case-detail, .case.open .case-front {
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .35s ease, visibility 0s .35s;
}
.case-detail { transform: translateY(16px); }
.case.open .case-front { transform: translateY(-16px); }
.case.open .case-detail {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s ease .1s, transform .55s cubic-bezier(.22,1,.36,1) .1s, visibility 0s;
}
@media (prefers-reduced-motion: reduce) { .case-face { transition: none !important; } }
.case-cat {
  display: block; margin-bottom: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-ink); opacity: .85;
}
/* the client's wordmark, linking to their live site (site + logo) */
.case-logo { align-self: flex-start; display: block; margin-bottom: 20px; }
.case-logo img {
  display: block; height: 22px; width: auto;
  filter: var(--logo-filter); opacity: .85; transition: opacity .25s;
}
.case-logo:hover img { opacity: 1; }
.case-logo:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 2px; }
.case-title {
  font-size: clamp(1.3rem, 1.8vw, 1.45rem); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.12; color: var(--txt);
  margin-bottom: 14px; text-wrap: balance;
}
.case-need, .case-does { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* the client's own words, inside their case; without them, a result line in the same place */
.case-quote { margin: 24px 0 0; }
.case-quote blockquote, .case-result {
  padding-left: 18px; border-left: 2px solid rgba(var(--accent-rgb),.6);
  font-size: 14.5px; line-height: 1.75; color: var(--txt-2);
}
.case-result { margin-top: 24px; }
.case-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.q-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
  background: rgba(var(--tint),.04);
  border: 1px solid var(--bord-l);
  display: flex; align-items: center; justify-content: center;
}
.q-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-avatar.logo { padding: 7px; }
.q-avatar.logo img { object-fit: contain; filter: var(--logo-filter); opacity: .85; }
.q-name { display: block; font-size: 13px; font-weight: 700; color: var(--txt); }
.q-role {
  display: block; font-size: 10px; color: var(--muted);
  margin-top: 3px; letter-spacing: .08em; text-transform: uppercase;
}

.case-open {
  align-self: flex-start; margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(var(--accent-rgb),.4);
  color: var(--accent-ink); cursor: pointer;
  font-family: var(--f); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  transition: background .25s, color .25s;
}
.case-open:hover { background: var(--accent); color: var(--on-accent); }
.case-open span { transition: transform .25s; }
.case-open:hover span { transform: translateY(2px); }

/* the open card: what the tool is, its typical setup, and the call */
.case-back {
  align-self: flex-start; margin-bottom: 16px; padding: 0;
  background: none; border: 0; cursor: pointer; font-family: var(--f);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted);
  transition: color .2s;
}
.case-back:hover { color: var(--txt); }
.case-setup-k {
  display: block; margin: 22px 0 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--subtle);
}
.case-setup { list-style: none; }
.case-setup li {
  position: relative; padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--bord);
  font-size: 14px; line-height: 1.55; color: var(--txt-2);
}
.case-setup li::before {
  content: ''; position: absolute; left: 2px; top: 19px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-ink); opacity: .7;
}
/* changed: "before → after", the before side muted */
/* one line each on desktop: no bullet (the arrow carries the structure), a step smaller */
.case-setup.changed li { padding: 9px 0; font-size: 13.5px; }
.case-setup.changed li::before { content: none; }
.case-was { color: var(--muted); }
.case-arrow { color: var(--accent-ink); font-weight: 700; padding: 0 2px; }
/* the stack as chips, so it reads apart from the copy above */
.case-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 26px; }
.case-stack .case-setup-k { margin: 0 6px 0 0; }
.case-chip {
  padding: 3px 8px; border: 1px solid var(--bord-l); border-radius: 999px;
  background: rgba(var(--tint),.04);
  font-size: 11.5px; line-height: 1.4; color: var(--txt-2); white-space: nowrap;
}
.case-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
.case-cta-k { font-size: 14px; color: var(--muted); }
.case-call {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  transition: transform .2s, box-shadow .25s;
}
.case-call:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(var(--accent-rgb),.25); }
.case-call:focus-visible, .case-open:focus-visible, .case-back:focus-visible { outline: 2px solid var(--txt); outline-offset: 2px; }

/* ── TEAM ── the core team on metal cards (assets/js/reflective.js), among
   blank, blurred ghost cards that fade off both edges: the wider network */
.team-row {
  --rc-w: 300px; --rc-h: 480px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  /* full bleed, with room above and below for the shadows and the tilt */
  margin: -40px -24px 0; padding: 48px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(50% - 860px), #000 calc(50% - 490px), #000 calc(50% + 490px), transparent calc(50% + 860px));
          mask-image: linear-gradient(90deg, transparent calc(50% - 860px), #000 calc(50% - 490px), #000 calc(50% + 490px), transparent calc(50% + 860px));
}
.team-note {
  margin-top: 16px; text-align: center;
  font-size: 15px; line-height: 1.6; color: var(--muted);
}

/* design test: portrait cards (team.js, initTeamPortraits), after 21st.dev's
   "Team Section": on hover a lemon halo rises from the bottom, the portrait gets
   a lemon ring and the social links fade in */
.tm-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 290px));
  justify-content: center; gap: 32px;
  max-width: 1100px; margin: 8px auto 0; padding: 0 24px;
}
@media (max-width: 900px) { .tm-grid { grid-template-columns: minmax(0, 340px); } }
.tm-grid + .team-note { margin-top: 56px; }
.tm-card {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36px 24px 28px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--bord);
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tm-card:hover { transform: scale(1.02); box-shadow: 0 28px 56px var(--shadow); }
.tm-halo {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(to top, var(--halo), transparent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s ease-out .05s;
  pointer-events: none;
}
.tm-card:hover .tm-halo, .tm-card:focus-within .tm-halo { transform: scaleY(1); }
/* the pixel field (pixel-card.js): fills the card on hover, from the centre out */
.tm-pixels { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.tm-card > :not(.tm-halo):not(.tm-pixels) { position: relative; z-index: 1; }
.tm-avatar {
  width: 136px; height: 136px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  /* the ring sits outside, past a gap the colour of the card, so it shows on the lemon initials too */
  box-shadow: 0 0 0 0 var(--panel-solid), 0 0 0 0 var(--accent);
  transition: transform .5s ease-out .1s, box-shadow .5s ease-out .1s;
}
.tm-card:hover .tm-avatar { transform: scale(1.05); box-shadow: 0 0 0 4px var(--panel-solid), 0 0 0 7px var(--accent); }
.tm-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.tm-card:hover .tm-avatar img { transform: scale(1.1); }
.tm-avatar span { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.tm-name {
  margin-top: 20px; font-size: 20px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--txt);
}
.tm-role { margin-top: 4px; font-size: 14px; color: var(--muted); }
.tm-links {
  display: flex; justify-content: center; gap: 14px; margin-top: 18px;
  opacity: 0; transition: opacity .3s ease;
}
.tm-card:hover .tm-links, .tm-card:focus-within .tm-links { opacity: 1; }
@media (hover: none) { .tm-links { opacity: 1; } }  /* no hover on touch: keep the links visible */
.tm-links a { display: grid; color: var(--muted); transition: color .2s; }
.tm-links a:hover, .tm-links a:focus-visible { color: var(--txt); }
.tm-links a:focus-visible { outline: 2px solid var(--txt); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .tm-card, .tm-halo, .tm-avatar, .tm-avatar img { transition: none; }
  .tm-card:hover, .tm-card:hover .tm-avatar, .tm-card:hover .tm-avatar img { transform: none; }
}

.rc {
  position: relative; flex: none;
  width: var(--rc-w); height: var(--rc-h);
  perspective: 900px;
  color: var(--txt);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.rc-body {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: 24px;
  background: var(--rc-base);
  box-shadow: var(--rc-shadow);
  transform: translate3d(0, var(--rc-lift, 0px), 0) rotateX(var(--rc-rx, 0deg)) rotateY(var(--rc-ry, 0deg));
  opacity: var(--rc-presence, 1);
  isolation: isolate; will-change: transform;
}
.rc-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.rc-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; height: 100%;
  padding: 20px;
}
.rc-head { display: flex; align-items: center; gap: 12px; }
/* the logo SVG is a 1000×1000 box with the wordmark in the middle: drawn oversized
   and cropped to its ink, like .nav-logo */
.rc-mark { display: block; width: 50px; height: 20px; overflow: hidden; }
.rc-mark img { display: block; width: 61px; height: 61px; margin: -20.4px 0 0 -5.5px; filter: var(--logo-filter); }
.rc-status {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.rc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: var(--rc-dot-edge); }
.rc-id { margin-top: auto; }
.rc-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.rc-role {
  margin-top: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.rc-points { list-style: none; margin-top: 16px; }
.rc-points li {
  position: relative; padding: 7px 0 7px 16px;
  border-top: 1px solid var(--rc-rim);
  font-size: 13px; line-height: 1.45; color: var(--txt-2);
}
.rc-points li::before {
  content: ''; position: absolute; left: 1px; top: 14px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-ink); opacity: .7;
}
.rc-tile {
  position: relative; flex: none; align-self: flex-end; margin-top: 16px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--rc-tile); box-shadow: var(--rc-tile-shadow);
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.rc-tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--rc-tile-edge), inset 0 1px 0 var(--rc-tile-hi);
  pointer-events: none;
}
.rc-rim {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--rc-rim), inset 0 1px 0 var(--rc-rim-hi);
  pointer-events: none;
}

/* ghost cards: --d is the distance from the core, 1 = nearest */
.rc-ghost {
  --s: calc(1 - var(--d) * .08);
  flex: none; position: relative;
  width: calc(var(--rc-w) * var(--s)); height: calc(var(--rc-h) * var(--s));
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: 22px;
  background: linear-gradient(158deg, transparent 22%, var(--rc-sheen) 34%, transparent 48%), var(--rc-ghost);
  box-shadow: inset 0 0 0 1px var(--rc-rim), inset 0 1px 0 var(--rc-rim-hi), var(--rc-shadow);
  opacity: calc(.85 - var(--d) * .2);
  filter: blur(calc(var(--d) * 3px));
  pointer-events: none;
}
.rc-ghost span { display: block; border-radius: 6px; background: var(--rc-ghost-ink); }
.rc-ghost .g-mark { width: 30px; height: 30px; border-radius: 50%; }
.rc-ghost .g-bar { height: 10px; }
.rc-ghost .g-name { width: 58%; height: 20px; margin-top: auto; }
.rc-ghost .g-role { width: 42%; }
.rc-ghost .g-tile { width: 44px; height: 44px; border-radius: 12px; align-self: flex-end; margin-top: 18px; }

/* below the width of the full row, the cards scroll sideways and the network
   trails off to the right */
@media (max-width: 1040px) {
  .team-row {
    --rc-w: min(300px, calc(100vw - 88px));
    justify-content: flex-start;
    padding-inline: 24px; scroll-padding-inline: 24px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
  }
  .team-row::-webkit-scrollbar { display: none; }
  .rc { scroll-snap-align: start; touch-action: pan-x pan-y; }
  .rc-ghost.g-l { display: none; }
}

/* ── CONTACT ── the call first, then a three-field form */
#contact { padding: 144px 24px; }
.contact-wrap { max-width: 1040px; margin: 0 auto; }
.contact-title {
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1.05; text-transform: uppercase;
  text-align: center; margin-bottom: 24px;
}
.contact-title .mute { color: var(--muted); }
.contact-sub {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: var(--muted); text-align: center;
  max-width: 520px; margin: 0 auto 48px; line-height: 1.7;
}
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 20px; align-items: stretch;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.call {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 36px 32px; border-radius: 22px;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 40px rgba(var(--accent-rgb),.16);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.call:hover { transform: translateY(-3px); box-shadow: 0 0 56px rgba(var(--accent-rgb),.3); }
.call:focus-visible { outline: 2px solid var(--txt); outline-offset: 3px; }
.call-k { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .72; }
.call-t { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.call-d { font-size: 14px; line-height: 1.6; opacity: .8; }
.contact-box {
  background: var(--panel);
  border: 1px solid var(--bord);
  border-radius: 22px; padding: 32px;
}
@media (max-width: 640px) { .contact-box { padding: 24px 18px; } .call { padding: 28px 22px; } }

/* ── FORMS ── */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: flex; gap: 16px; }
/* honeypot: off-screen rather than display:none, which some bots skip */
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .cf-row { flex-direction: column; } }
.cf-field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cf-label {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.cf-input, .cf-textarea {
  background: rgba(var(--tint),.05);
  border: 1px solid var(--bord-l);
  border-radius: 10px; color: var(--txt);
  font-family: var(--f); font-size: 14px;
  padding: 14px 16px; width: 100%;
  transition: border-color .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.cf-input::placeholder, .cf-textarea::placeholder { color: var(--subtle); }
.cf-input:focus, .cf-textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb),.55);
  background: rgba(var(--tint),.07);
}
.cf-textarea { resize: vertical; min-height: 120px; }
.cf-submit {
  width: 100%; padding: 16px;
  background: var(--accent); color: var(--on-accent);
  border: none; border-radius: 10px;
  font-family: var(--f); font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: .04em;
  transition: background .25s, transform .2s;
}
.cf-submit:hover { background: white; transform: translateY(-1px); }
.cf-submit:active { transform: translateY(0); }
.cf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.cf-note { margin-top: -6px; font-size: 12px; color: var(--subtle); }
.cf-note a, .footer-copy a { color: inherit; text-underline-offset: 3px; }
.cf-note a:hover, .footer-copy a:hover { color: var(--txt); }
.cf-error { font-size: 12px; color: var(--error); min-height: 0; }
.cf-error:empty { display: none; }
.cf-success {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 24px; text-align: center; height: 100%;
}
.cf-success.show { display: flex; }
.cf-success-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb),.1); border: 1px solid rgba(var(--accent-rgb),.35);
  color: var(--accent-ink); font-size: 20px;
}
.cf-success-title { font-size: 18px; font-weight: 700; color: var(--txt); }
.cf-success-sub { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 380px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--bord-l);
  padding: 36px 24px;
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 12px; align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-desc { font-size: 11px; color: var(--subtle); letter-spacing: .08em; }
.footer-copy { font-size: 11px; color: var(--subtle); }

@media (max-width: 768px) {
  .hero-content { bottom: 32px; }
}
