:root {
  --bg: #030308;
  --fg: #f2f3f7;
  --muted: #8b8fa3;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #3d5bff;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-intro { overflow: hidden; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;                   /* phones: stay full-height as the address bar hides */
  display: block;
  z-index: 0;
}

#scroll-track { height: 1000vh; height: 1000svh; }   /* svh: stable on phones */
#dive-track { height: 360vh; height: 360svh; }
#dive-label {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
}
#dive-label strong {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: calc(-0.02em + (1 - var(--lin, 1)) * 0.12em);
  transform: translateY(calc((1 - var(--lin, 1)) * 10px));
  color: var(--fg);
  text-transform: none;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
}
#loader .wire {
  width: min(78vmin, 640px);
  height: auto;
  overflow: visible;
}
#loader line,
#loader circle,
#loader path {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
/* blueprint: full-screen construction drawing behind the mark */
#blueprint { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#blueprint .bp-main { stroke: rgba(255, 255, 255, 0.2); stroke-width: 0.8; }
#blueprint .bp-faint { stroke: rgba(255, 255, 255, 0.09); stroke-width: 0.8; }
#blueprint .bp-strong { stroke: rgba(255, 255, 255, 0.45); stroke-width: 1; }
#blueprint .bp-tick { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
#blueprint .bp-accent { stroke: rgba(125, 150, 255, 0.75); stroke-width: 1; }
#blueprint .bp-grid {
  stroke: rgba(255, 255, 255, 0.035);
  stroke-width: 0.5;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: bp-fade 1.2s ease forwards;
}
#blueprint .bp-text {
  font: 500 9px var(--mono);
  letter-spacing: 0.14em;
  fill: rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: bp-fade 0.6s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes bp-fade { to { opacity: 1; } }
#loader .mark path { stroke-linejoin: round; stroke-linecap: round; }
#loader #z-outer { stroke: #fff; stroke-width: 7; }
#loader #z-inner { stroke: var(--bg); stroke-width: 3.4; }
#loader .mark { transform-origin: 300px 300px; transition: filter 0.4s ease; }
#loader #portal-origin { animation: none; stroke: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes undraw { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }

/* exit: guides retract (staggered), Z outline glows before the 3D one takes over */
#loader.exit .guides line,
#loader.exit .guides circle,
#loader.exit .guides path {
  animation: undraw 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0s) * 0.6);
}
#loader.exit .mark { filter: drop-shadow(0 0 6px rgba(140, 170, 255, 0.9)) drop-shadow(0 0 22px rgba(90, 120, 255, 0.6)); }

.loader-label { transition: opacity 0.4s; }
#loader.idle .loader-label { animation: breathe 2.4s ease-in-out infinite; }
#loader.exit .loader-label { opacity: 0; animation: none; }
#loader.exit .bp-grid,
#loader.exit .bp-text { opacity: 0; animation: none; transition: opacity 0.4s; }
@keyframes breathe { 50% { opacity: 0.45; } }

.loader-label {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 3vw, 40px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
body.is-ready .nav { opacity: 1; transform: none; }
.brand { color: var(--fg); text-decoration: none; font-weight: 700; font-size: 24px; letter-spacing: 0.04em; }
.brand span { color: var(--muted); font-weight: 400; }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 36px); }   /* six links: tighten on smaller screens */
.nav nav a { color: var(--fg); text-decoration: none; font-family: var(--mono); font-size: clamp(13px, 1.35vw, 15px); opacity: 0.8; }
.nav nav a:hover { opacity: 1; }

.pill {
  font: 500 14px var(--mono);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.pill { display: inline-block; text-decoration: none; }
.pill:hover { background: rgba(255, 255, 255, 0.12); }
.pill-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill-solid:hover { background: #fff; }
.pill:active { transform: scale(0.97); }

/* ---------- Quaternion readout (nod to the original's debug panel) ---------- */
.quat {
  position: fixed;
  top: 96px;
  right: clamp(16px, 3vw, 40px);
  z-index: 10;
  text-align: right;
  color: var(--muted);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.8s 0.2s;
}
.quat-title { color: var(--fg); margin-bottom: 4px; }
body.is-ready .quat { opacity: 1; }

/* ---------- Copy blocks ---------- */
.hero-copy,
.work-copy {
  position: fixed;
  z-index: 10;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(24px, 6vh, 64px);
  max-width: 420px;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.eyebrow { color: var(--muted); margin-bottom: 12px; }
.hero-copy h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; }
.scroll-hint { margin-top: 18px; color: var(--fg); opacity: 0.7; }

.hero-copy, .work-copy { opacity: 0; transform: translateY(12px); }
/* scroll-driven (--hk / --wk from main.js); the hero line's first fade-in ends the intro */
body.is-ready .hero-copy { opacity: var(--hk, 1); transform: translateY(calc((1 - var(--hk, 1)) * -12px)); }
body.is-ready .work-copy { opacity: var(--wk, 0); transform: translateY(calc((1 - var(--wk, 0)) * 12px)); transition: none; }
body.is-ready.scrolled .hero-copy { transition: none; }

.work-copy h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.work-copy p#work-desc { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.work-copy { max-width: 460px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.tags li {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--fg);
  opacity: 0.85;
}
.work-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  pointer-events: auto;
  transition: border-color 150ms ease;
}
.work-link:hover { border-color: var(--fg); }
/* each project's text follows its card (--tk from main.js: 1 = card at the front) */
.work-copy h2, .work-copy #work-desc, .work-copy .tags, .work-copy .eyebrow {
  opacity: var(--tk, 1);
  transform: translateY(calc((1 - var(--tk, 1)) * 8px));
}

/* ---------- Progress ---------- */
.progress {
  position: fixed;
  z-index: 10;
  left: clamp(16px, 3vw, 40px);
  top: 50%;
  width: 2px;
  height: 120px;
  transform: translateY(-50%);
  background: var(--line);
  opacity: 0;
  transition: opacity 0.8s;
}
body.is-ready .progress { opacity: 1; }
.progress i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--fg); transform-origin: top; transform: scaleY(0); }

/* ---------- Controls ---------- */
.panel {
  position: fixed;
  z-index: 15;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 4vh, 40px);
  width: 250px;
  padding: 12px 14px;
  background: rgba(10, 11, 20, 0.62);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.8s 0.3s;
}
body.is-ready .panel { opacity: 1; }
.panel summary { cursor: pointer; color: var(--fg); list-style: none; }
.panel summary::before { content: "▸ "; }
.panel[open] summary::before { content: "▾ "; }
.panel label {
  display: grid;
  grid-template-columns: 82px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font: 11px var(--mono);
  color: var(--muted);
}
.panel output { text-align: right; color: var(--fg); }
.panel input[type="range"] { width: 100%; accent-color: var(--accent); }
.panel .pill { margin-top: 12px; width: 100%; }

.menu-btn { display: none; }

@media (max-width: 700px) {
  .quat { display: none; }
  .panel { width: auto; left: 16px; right: 16px; bottom: 16px; }
  .panel:not([open]) { left: auto; }
  .progress { display: none; }

  /* top bar: logo + quote button + menu toggle; links drop down under it */
  .nav { padding: 14px 16px; gap: 8px; }
  .brand, .nav .pill, .menu-btn { white-space: nowrap; flex-shrink: 0; }
  .brand { font-size: 18px; }
  .nav .pill { font-size: 12px; padding: 8px 12px; margin-left: auto; }
  .menu-btn {
    display: inline-block;
    font-size: 12px;
    color: var(--fg);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 8px 0;
    width: 64px;                    /* same width for "Menu" and "Close" */
    text-align: center;
    cursor: pointer;
  }
  @media (max-width: 360px) { .brand span { display: none; } }   /* very small phones: "Z-INDEX" only */
  .nav nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px 18px;
    background: rgba(8, 9, 18, 0.94);
    border: 1px solid var(--line);
    border-radius: 14px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  }
  .nav.open nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav nav a { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav nav a:last-child { border-bottom: none; }

  /* floating copy: full width at the bottom, smaller type */
  .hero-copy, .work-copy { left: 16px; right: 16px; bottom: 28px; max-width: none; }
  .hero-copy h1 { font-size: 34px; }
  .work-copy h2 { font-size: 26px; }
  .work-copy p#work-desc { font-size: 14px; line-height: 1.45; margin-top: 6px; }
  .tags { margin-top: 10px; gap: 5px; }
  .tags li { padding: 3px 8px; font-size: 10px; }
  .work-link { margin-top: 12px; }
  body::after { height: 60vh; }

  /* content sections */
  .content { padding-top: 0; }
  .c-section { padding: 64px 16px; }
  .c-lead { margin-top: 18px; }
  .c-cols { margin-top: 36px; gap: 28px; }
  .c-grid, .c-checks, .c-steps { margin-top: 32px; }
  .c-card { padding: 22px 18px 18px; }
  .c-actions .pill { flex: 1 1 auto; text-align: center; }
  .c-footer { flex-direction: column; align-items: flex-start; }
  #dive-label strong { font-size: 30px; }
}

/* soft shade behind the bottom-left copy so it stays readable over the LED wall */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 45vh;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 3, 8, 0.85), rgba(3, 3, 8, 0));
  opacity: 0;
  transition: opacity 0.8s;
}
body.is-ready::after { opacity: var(--wk, 0); transition: none; }

/* reduced motion: no line drawing / pulsing / sliding copy - just show and fade */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #loader line,
  #loader circle,
  #loader path { animation: none; stroke-dashoffset: 0; }
  #loader.idle .loader-label { animation: none; }
  #loader.exit .guides line,
  #loader.exit .guides circle,
  #loader.exit .guides path { animation: none; opacity: 0; }
  #blueprint .bp-grid,
  #blueprint .bp-text { animation: none; opacity: 1; }
  .hero-copy, .work-copy, .nav { transform: none !important; }
}

/* ---------- company content (normal scrolling sections after the 3D journey) ---------- */
.content {
  position: relative;
  z-index: 6;                       /* above the WebGL canvas and the bottom shade */
  padding-top: 0;                  /* About arrives as the chapter label fades: no dead scroll */
  background: linear-gradient(to bottom, rgba(3, 3, 8, 0) 0, var(--bg) 40vh);
}
body.phase-content .work-copy,
body.phase-content .progress,
body.phase-content .quat,
body.phase-content .hero-copy { opacity: 0; pointer-events: none; }
body.phase-content::after { opacity: 0; }
.nav { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), background 0.4s; }
body.phase-content .nav {
  background: rgba(3, 3, 8, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.c-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 48px);
  scroll-margin-top: 80px;
}
.c-section + .c-section { border-top: 1px solid var(--line); }
.c-title {
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.c-lead {
  margin-top: 24px;
  max-width: 640px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: #c9ccd8;
}
.c-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 56px;
}
.c-cols h3, .c-steps h3 { font-size: 12px; color: var(--muted); margin-bottom: 12px; letter-spacing: 0.1em; }
.c-cols p { color: #b8bbc8; line-height: 1.65; font-size: 16px; }

.c-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 x 2 on medium screens */
  gap: 16px;
  margin-top: 48px;
}
.c-card {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(90, 120, 255, 0.07), rgba(255, 255, 255, 0.015));
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .c-card:hover { border-color: rgba(150, 175, 255, 0.45); transform: translateY(-3px); }
}
.c-num { color: #7d92ff; font-size: 12px; }   /* accent, lifted to pass 4.5:1 on black at 12px */
@media (min-width: 1100px) {
  .c-grid, .c-steps { grid-template-columns: repeat(4, 1fr); }
  .c-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .c-grid, .c-steps { grid-template-columns: 1fr; } }
.c-card h3 { margin-top: 18px; font-size: 22px; letter-spacing: -0.01em; }
.c-card p { margin-top: 10px; color: #b8bbc8; line-height: 1.6; font-size: 15px; }
.c-card .c-stack { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.c-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 x 2 on medium screens, 4 across on wide */
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.c-steps::before {                   /* top rule: draws left -> right when the section enters */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out) 100ms;
}
.c-section.is-in .c-steps::before { transform: none; }
.c-steps li { padding: 28px 24px 8px 0; }
.c-steps li > span { color: var(--accent); font-size: 12px; }
.c-steps h3 { margin-top: 14px; font-size: 20px; color: var(--fg); font-family: var(--sans); letter-spacing: -0.01em; }
.c-steps p { color: #b8bbc8; line-height: 1.6; font-size: 15px; }

.c-contact { text-align: left; }
.c-contact .c-title { font-size: clamp(44px, 8vw, 120px); }
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.c-actions .pill { font-size: 15px; padding: 14px 26px; }

.c-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.c-footer .dim { color: var(--muted); }
.c-footer > span:first-child { color: var(--fg); font-family: var(--sans); font-weight: 700; font-size: 16px; }
.c-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.c-footer > * { min-width: 0; max-width: 100%; }
.c-footer a { color: var(--muted); text-decoration: none; }
.c-footer a:hover { color: var(--fg); }

/* "included with every website" checklist */
.c-checks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.c-checks li {
  position: relative;
  padding: 22px 0 22px 30px;
  border-bottom: 1px solid var(--line);
}
.c-checks li::before {            /* small accent dot marker */
  content: "";
  position: absolute;
  left: 2px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: radial-gradient(circle, var(--accent) 0 2.5px, transparent 3px);
}
.c-checks h3 { font-size: 18px; letter-spacing: -0.01em; }
.c-checks p { margin-top: 6px; color: #b8bbc8; font-size: 15px; line-height: 1.5; }
@media (min-width: 1100px) { .c-checks { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .c-checks { grid-template-columns: 1fr; } }

/* ---------- long-jump veil ---------- */
#jump-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out);
}
#jump-veil.on { opacity: 1; transition-duration: 150ms; }

/* ---------- section reveals (content after the 3D) ---------- */
[data-reveal] {                     /* scroll-driven: --r goes 0 -> 1 as it comes up the screen (main.js) */
  opacity: var(--r, 0);
  transform: translateY(calc((1 - var(--r, 0)) * 16px));
}


/* process: step numbers light up in turn after the line draws */
.c-steps li > span { color: var(--muted); transition: color 400ms ease; }
.c-section.is-in .c-steps li > span { color: var(--accent); transition-delay: calc(300ms + var(--i, 0) * 120ms); }

/* checklist: dots pop in one after another, like items being ticked */
.c-checks li::before {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
  transition-delay: calc(250ms + var(--i, 0) * 40ms);
}
.c-section.is-in .c-checks li::before { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; }
  .c-steps::before { transform: none; transition: none; }
  .c-checks li::before { transform: none; }
  #dive-label strong { letter-spacing: -0.02em; transform: none; }
}

/* the first section starts right at the hand-over from the chapter label */
#about { padding-top: 32px; }

/* visually hidden but readable by search engines / screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* "who it's for": two audience cards */
.c-aud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.c-aud-card {
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(90, 120, 255, 0.1), rgba(255, 255, 255, 0.015));
}
.c-aud-card h3 { margin-top: 16px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
.c-aud-card > p { margin-top: 12px; color: #c9ccd8; line-height: 1.6; font-size: 16px; }
.c-aud-card ul { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.c-aud-card li {
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--fg);
  font-size: 12px;
}
.c-aud-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* FAQ accordion */
.c-faq { margin-top: 40px; border-top: 1px solid var(--line); max-width: 880px; }
.c-faq details { border-bottom: 1px solid var(--line); }
.c-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary h3 { font-size: clamp(17px, 1.6vw, 20px); letter-spacing: -0.01em; font-weight: 500; }
.c-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 22px var(--mono);
  color: var(--accent);
  transition: transform 200ms var(--ease-out);
}
.c-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.c-faq details p { padding: 0 40px 24px 0; color: #b8bbc8; line-height: 1.65; font-size: 16px; }

@media (max-width: 700px) {
  .c-aud { grid-template-columns: 1fr; margin-top: 32px; }
  .c-aud-card { padding: 24px 20px 20px; }
  .c-faq { margin-top: 28px; }
}

/* ---------- carried over from the full version (catalog): contact, highlights, a11y ---------- */
.ct { --ct: #8fe4ff; max-width: 1240px; overflow: hidden; padding-top: clamp(40px, 6vh, 64px); }
.ct::before {                        /* blueprint grid, fading out towards the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(143, 228, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(143, 228, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}
.ct::after {                         /* one soft glow behind the form */
  content: "";
  position: absolute;
  right: 4%; top: 22%;
  width: min(620px, 60vw); height: 480px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(61, 91, 255, 0.16), transparent);
  pointer-events: none;
}
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.ct .c-title { font-size: clamp(44px, 6.4vw, 96px); text-wrap: balance; }
.ct .c-lead { max-width: 46ch; }
.ct-next { list-style: none; margin: 20px 0 0; padding: 0; }
.ct-next li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-bottom: 20px; }
.ct-next li:not(:last-child)::before {             /* the route between the dots */
  content: "";
  position: absolute;
  left: 5px; top: 16px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--ct), rgba(143, 228, 255, 0.15));
}
.ct-dot { width: 11px; height: 11px; margin-top: 5px; border: 1px solid var(--ct); border-radius: 50%; background: #070b1c; box-shadow: 0 0 10px rgba(143, 228, 255, 0.35); }
.ct-next h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ct-next p { margin-top: 3px; font-size: 14px; color: #a9aec0; }
.ct-link { display: inline-block; margin-top: 10px; font-size: 12px; letter-spacing: 0.12em; color: var(--ct); text-decoration: none; }
.ct-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ct-form {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(143, 228, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(20, 30, 70, 0.55), rgba(6, 8, 20, 0.9));
  box-shadow: 0 30px 80px -30px rgba(20, 40, 140, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ct-form-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 18px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ct-field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.ct-field label, .ct-choice legend { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: #cfd3e0; }
.ct-opt { margin-left: 6px; font-size: 11px; color: var(--muted); font-weight: 400; }
.ct-field input, .ct-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(3, 5, 14, 0.7);
  color: var(--fg);
  font: 400 15px/1.45 var(--sans);
  caret-color: var(--ct);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.ct-field textarea { resize: vertical; min-height: 104px; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: rgba(207, 211, 224, 0.4); }
@media (hover: hover) and (pointer: fine) {
.ct-field input:hover, .ct-field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
}
.ct-field input:focus-visible, .ct-field textarea:focus-visible { outline: none; border-color: var(--ct); box-shadow: 0 0 0 3px rgba(143, 228, 255, 0.18); background: rgba(3, 5, 14, 0.9); }
.ct-field [aria-invalid="true"] { border-color: #ff7a8a; box-shadow: 0 0 0 3px rgba(255, 122, 138, 0.14); }
.ct-err { min-height: 0; margin-top: 6px; font-size: 12.5px; color: #ff9aa6; }
.ct-err:empty { display: none; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips label { margin: 0; position: relative; }
.ct-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chips span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
  color: #cfd3e0;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
.ct-chips span:hover { border-color: rgba(143, 228, 255, 0.5); }
}
.ct-chips input:checked + span { border-color: var(--ct); background: rgba(143, 228, 255, 0.12); color: #fff; }
.ct-chips input:focus-visible + span { outline: 2px solid var(--ct); outline-offset: 2px; }
.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.ct-btn {
  position: relative;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 600 15px var(--sans);
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 180ms ease, opacity 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
.ct-btn:hover { background: #fff; }
}
.ct-btn:active { transform: scale(0.97); }
.ct-btn:focus-visible { outline: 2px solid var(--ct); outline-offset: 3px; }
.ct-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.ct-note { font-size: 13px; color: var(--muted); }
.ct-status { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #cfd3e0; }
.ct-status:empty { display: none; }
.ct-status.ok { color: var(--ct); }
.ct-status.bad { color: #ff9aa6; }
.ct-form.sent .ct-row, .ct-form.sent .ct-field, .ct-form.sent .ct-send { display: none; }
.ct-form.sent .ct-status { font-size: 17px; }
@media (max-width: 860px) {
.ct-grid { grid-template-columns: 1fr; gap: 36px; }
.ct .c-title { font-size: clamp(40px, 11vw, 64px); }
.ct-next { margin-top: 24px; }
}
@media (max-width: 520px) {
.ct-row { grid-template-columns: 1fr; }
.ct-form { padding: 20px 16px; border-radius: 16px; }
.ct-btn { width: 100%; }
}
.hl { font-weight: 600; color: #8fe4ff; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: #fff; color: #05060c; font-size: 14px; font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }
@media (pointer: coarse) {
.ct-link { display: inline-block; padding-block: 14px; margin-block: -14px; }
}
.ct-head { --h: 0; margin-bottom: 28px; }
.ct-hello-k {
  color: #8fe4ff; font-size: 12px; letter-spacing: 0.2em;
  opacity: clamp(0, calc(var(--h) * 5 - 0.2), 1);
}
.ct-hello-k span { color: #fff; }
.ct-hello-line {                     /* thin rules drawn out from the left */
  display: block; width: 100%; height: 1px; margin: 18px 0;
  background: linear-gradient(90deg, rgba(143, 228, 255, 0.8), rgba(143, 228, 255, 0.35) 70%, transparent);
  transform-origin: 0 50%;
  transform: scaleX(clamp(0, calc(var(--h) * 2.6 - 0.15), 1));
}
.ct-hello-l2 { transform: scaleX(clamp(0, calc(var(--h) * 2.6 - 0.45), 1)); }
.ct-hello-w {
  display: flex;
  font-size: clamp(56px, 7.4vw, 124px); font-weight: 700; line-height: 0.95; letter-spacing: -0.045em;
  color: #fff; white-space: nowrap;
}
.ct-hello-ls { display: contents; }
.ct-hello-w span {                   /* each letter rises in after the one before */
  --r: clamp(0, calc(var(--h) * 2.2 - 0.2 - var(--i) * 0.07), 1);
  display: inline-block;
  opacity: var(--r);
  transform: translateY(calc((1 - var(--r)) * 0.45em)) scale(calc(0.92 + var(--r) * 0.08));
}
.ct-hello-dot { color: #8fe4ff; }
@media (max-width: 700px) {
.ct-hello-w { font-size: clamp(52px, 17vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
.ct-hello-w span { transform: none; }
}
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid #8fe4ff; outline-offset: 3px; border-radius: 4px; }

.c-grid-9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .c-grid-9 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .c-grid-9 { grid-template-columns: 1fr; } }
.c-more { color: #8fe4ff; text-decoration: none; border-bottom: 1px solid rgba(143, 228, 255, 0.4); white-space: nowrap; }
.c-more:hover { border-color: #8fe4ff; }
.c-after { margin-top: 28px; }
@media (pointer: coarse) {
  .pill { min-height: 44px; display: inline-flex; align-items: center; }
  .menu-btn { min-height: 44px; }
  .work-link, .c-more, .ct-link, .c-footer nav a { display: inline-block; padding-block: 14px; margin-block: -14px; }
}
