/* ==========================================================================
   Zeron — site.css
   Dark warm-stone base, hairline grid, mono labels (Griffin);
   big tight grotesk, grain, rounded paper sections, marquee (Zera);
   one accent: the logo gradient.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #0e0c0c;
  --bg-2: #151212;
  --bg-3: #1c1818;
  --line: #2a2525;
  --line-2: #3a3333;
  --fg: #f6f1ec;
  --fg-2: #a69e97;
  --fg-3: #6d655f;

  --z-red: #ee3744;
  --z-orange: #f6893a;
  --z-yellow: #fbd63c;
  --grad: linear-gradient(45deg, #ee3744 0%, #f6893a 52%, #fbd63c 100%);
  --grad-h: linear-gradient(90deg, #ee3744 0%, #f6893a 52%, #fbd63c 100%);

  --paper: #f3efe8;
  --paper-2: #e9e4db;
  --paper-line: #d6cfc4;
  --ink: #171313;
  --ink-2: #6a625c;

  --sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1400px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 68px;
  --radius: 20px;
  --radius-sm: 12px;

  --fs-display: clamp(2.6rem, 1.2rem + 5.6vw, 5.9rem);
  --fs-h1: clamp(2rem, 1rem + 3.1vw, 3.9rem);
  --fs-h2: clamp(1.5rem, 1.05rem + 1.5vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --fs-lede: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-mono: .75rem;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(246, 137, 58, .35); color: var(--fg); }
:focus-visible { outline: 2px solid var(--z-orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- grain (Zera) ---------- */
body::after {
  content: "";
  position: fixed; inset: -10%;
  z-index: 9000;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ---------- typography ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); letter-spacing: -.045em; line-height: .96; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.04em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.display em, .h1 em, .h2 em, .h3 em, .em {
  font: inherit;
  font-style: normal;
  letter-spacing: inherit;
  background: var(--grad-h);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.lede { font-size: var(--fs-lede); line-height: 1.45; color: var(--fg-2); text-wrap: pretty; max-width: 56ch; }
.lede strong, .lede b { color: var(--fg); font-weight: 500; }
.body { font-size: var(--fs-body); color: var(--fg-2); text-wrap: pretty; }
.body strong { color: var(--fg); font-weight: 500; }
.small { font-size: var(--fs-small); color: var(--fg-2); }
.mono, .eyebrow, .label {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.eyebrow { color: var(--fg-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.eyebrow.plain::before { display: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lc { text-transform: none; letter-spacing: .02em; }
.grad-text {
  background: var(--grad-h);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { position: relative; border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 140px) 0; }
.section.tight { padding: clamp(48px, 6vw, 88px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .h1 { max-width: 16ch; }
.section-head .lede { max-width: 52ch; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 48px; }
  .section-head.split .eyebrow { grid-column: 1 / -1; }
  .section-head.split .lede { justify-self: end; margin-bottom: .4em; }
}
.grid { display: grid; gap: var(--pad); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- ui labels (buttons, nav, tags): the grotesk, small, tracked ---------- */
.btn, .nav a, .menu-btn, .tag, .chips span, .link-arrow, .svc-nav a, .toc a, .msg .actions span {
  font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
}
.btn, .nav a, .menu-btn, .link-arrow, .svc-nav a { font-size: .8125rem; }
.tag, .chips span, .toc a, .msg .actions span { font-size: .6875rem; letter-spacing: .06em; }

/* ---------- buttons ---------- */
.btn {
  position: relative; z-index: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  white-space: nowrap; overflow: clip;
  transition: color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
  -webkit-user-select: none; user-select: none;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-hover, transparent);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .35s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.sm { height: 38px; padding: 0 16px; font-size: .75rem; }
.btn.lg { height: 54px; padding: 0 28px; }
.btn-primary { background: var(--fg); color: var(--bg); --btn-hover: #fff; }
.btn-brand { background: var(--grad); color: #1a0f0d; --btn-hover: rgba(255, 255, 255, .28); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); --btn-hover: var(--bg-3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--fg-3); }
.btn-dark { background: var(--ink); color: var(--paper); --btn-hover: #2b2424; }
.btn-paper { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper-line); --btn-hover: var(--paper-2); }
.btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg); transition: color .3s;
}
.link-arrow svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--z-orange); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.link-arrow.pulse::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--z-orange);
  box-shadow: 0 0 0 0 rgba(246, 137, 58, .6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(246, 137, 58, .6); } 70% { box-shadow: 0 0 0 9px rgba(246, 137, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(246, 137, 58, 0); } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.logo { display: inline-flex; align-items: center; color: var(--fg); }
.logo svg { height: 26px; width: auto; overflow: visible; }
.logo .bubble { transform-box: fill-box; transform-origin: 50% 50%; }
.logo .bubble { transition: transform .4s var(--ease); }
.logo:hover .bubble { transform: scale(1.22); transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  color: var(--fg-2); transition: color .25s, background .25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--bg-3); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.menu-btn .bars { position: relative; width: 16px; height: 10px; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 8.5px; }
html.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
html.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
}
/* mobile menu (Zera-style overlay) */
.menu {
  position: fixed; inset: 0; z-index: 490;
  background: var(--bg);
  display: grid; grid-template-rows: var(--header-h) 1fr auto;
  padding: 0 var(--pad) 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s;
}
html.menu-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s; }
html.menu-open { overflow: hidden; }
.menu-links { align-self: center; display: grid; gap: 4px; }
.menu-links a {
  font-size: clamp(2.1rem, 8vw, 3.6rem); letter-spacing: -.04em; line-height: 1.05; font-weight: 500;
  display: flex; align-items: baseline; gap: 16px; padding: 6px 0;
  border-bottom: 1px solid var(--line);
  transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.menu-links a .num { font-size: .75rem; color: var(--fg-3); letter-spacing: .08em; }
html.menu-open .menu-links a { transform: none; opacity: 1; }
html.menu-open .menu-links a:nth-child(2) { transition-delay: .05s; }
html.menu-open .menu-links a:nth-child(3) { transition-delay: .1s; }
html.menu-open .menu-links a:nth-child(4) { transition-delay: .15s; }
html.menu-open .menu-links a:nth-child(5) { transition-delay: .2s; }
html.menu-open .menu-links a:nth-child(6) { transition-delay: .25s; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

/* ---------- reveal (Zera appearTitle) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: .08s; }
html.js .reveal[data-delay="2"] { transition-delay: .16s; }
html.js .reveal[data-delay="3"] { transition-delay: .24s; }
html.js .reveal[data-delay="4"] { transition-delay: .32s; }
.lines .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.lines .line > span { display: block; }
html.js .lines .line > span { transform: translateY(110%) skewY(1.5deg); transition: transform 1s var(--ease); }
html.js .lines.in .line > span { transform: none; }
html.js .lines.in .line:nth-child(2) > span { transition-delay: .08s; }
html.js .lines.in .line:nth-child(3) > span { transition-delay: .16s; }
html.js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .stagger.in > * { opacity: 1; transform: none; }
html.js .stagger.in > *:nth-child(2) { transition-delay: .07s; }
html.js .stagger.in > *:nth-child(3) { transition-delay: .14s; }
html.js .stagger.in > *:nth-child(4) { transition-delay: .21s; }
html.js .stagger.in > *:nth-child(5) { transition-delay: .28s; }
html.js .stagger.in > *:nth-child(6) { transition-delay: .35s; }
html.js .stagger.in > *:nth-child(7) { transition-delay: .42s; }
html.js .stagger.in > *:nth-child(8) { transition-delay: .49s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .lines .line > span, html.js .stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow-x: clip; }
.hero .wrap {
  min-height: calc(100svh - var(--header-h) - 254px);
  display: grid; align-content: end;
  padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(36px, 4vw, 56px);
  gap: 28px;
}
.hero-top { display: grid; gap: 24px; }
.hero .display { max-width: 22ch; }
.hero-bottom { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) {
  .hero-bottom { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero-bottom .hero-cta { justify-self: end; text-align: right; display: grid; justify-items: end; gap: 22px; }
}
.hero .lede { max-width: 54ch; }
.hero .lede span { color: var(--fg-3); }
.hero-services { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--fg-2); }
.hero-services span { display: inline-flex; align-items: center; gap: 10px; }
.hero-services span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-3); }
.hero-services span:first-child::before { background: var(--grad); width: 8px; height: 8px; }
.hero-services span.dim { color: var(--fg-3); }

/* ASCII terrain banner (Griffin) */
.terrain { position: relative; height: 254px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: clip; background: var(--bg); }
.terrain canvas { width: 100%; height: 100%; }
.terrain::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(14, 12, 12, .9) 100%); }
@media (max-width: 700px) {
  .terrain { height: 180px; }
  /* phones: content-sized hero with a modest top margin instead of bottom-aligning into a tall empty box */
  .hero .wrap { min-height: 0; align-content: start; padding-top: 72px; padding-bottom: 40px; gap: 22px; }
  .hero-top { gap: 18px; }
  .hero-bottom { gap: 22px; }
  .hero-services { font-size: .6875rem; letter-spacing: .06em; gap: 6px 16px; }
  .hero-services span { gap: 8px; }
  .tag { font-size: .625rem; height: 20px; padding: 0 8px; }
}

/* ---------- standard strip (dashed grid) ---------- */
.strip { --cols: 6; --cell-h: 96px; }
.strip .cells { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.strip .cell { min-height: var(--cell-h); padding: 18px 20px; border-top: 1px dashed var(--line-2); border-left: 1px dashed var(--line-2); display: grid; align-content: center; gap: 6px; position: relative; overflow: clip; }
.strip .cell:nth-child(6n+1) { border-left: 0; }
.strip .cell:nth-child(-n+6) { border-top: 0; }
.strip .cell.head { grid-column: span 2; display: grid; align-content: center; justify-items: start; gap: 8px; }
.strip .cell.note { grid-column: span 2; }
.strip .cell .val { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -.04em; line-height: 1; font-weight: 500; }
.strip .cell .val small { font-size: .55em; color: var(--fg-2); letter-spacing: -.01em; margin-left: .15em; }
.strip .cell .key { color: var(--fg-2); }
.strip .cell::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 50%), rgba(246, 137, 58, .12), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.strip .cell:hover::after { opacity: 1; }
@media (max-width: 900px) {
  .strip { --cols: 2; }
  .strip .cell:nth-child(n) { border-left: 1px dashed var(--line-2); border-top: 1px dashed var(--line-2); }
  .strip .cell:nth-child(2n+1) { border-left: 0; }
  .strip .cell:nth-child(-n+1) { border-top: 0; }
  .strip .cell.head, .strip .cell.note { grid-column: span 2; }
}

/* ---------- pinned stack (after Griffin's platform section) ----------
   The outer track is N steps tall; the inner box is sticky for one viewport.
   Layer positions are scrubbed by scroll in JS; text steps switch discretely
   with the same wipe / fade / slide enters Griffin uses. */
.stack { border-top: 1px solid var(--line); }
.stack-track { height: 350dvh; }
.stack-sticky { position: sticky; top: 0; height: 100dvh; overflow: clip; }
.stack-layout { display: grid; grid-template-areas: "content" "visual"; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.stack-content { grid-area: content; position: relative; padding: calc(var(--header-h) + 20px) 0 20px; min-height: 280px; }
@media (max-width: 899px) { .step-panel .desc { font-size: 1rem; margin-top: 10px; } .step-panel .step-cta { margin-top: 18px; } .step-panel .h1.intro { font-size: clamp(1.7rem, 1rem + 3vw, 2.4rem); } }
.stack-visual { grid-area: visual; position: relative; overflow: clip; }
@media (min-width: 900px) {
  .stack-layout { grid-template-areas: "content visual"; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .stack-content { display: grid; grid-template-areas: "prev" "panel" "next"; grid-template-rows: 200px 1fr 200px; padding: calc(var(--header-h) + 8px) 48px 40px 40px; border-left: 1px solid var(--line); }
  .stack-visual { border-left: 1px solid var(--line); background-image: radial-gradient(circle, var(--line) 1px, transparent 1px); background-size: 16px 16px; }
}
/* the beam: a coloured segment of the track line that grows with progress */
.step-track { display: none; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px;
  --_beam: color-mix(in srgb, var(--beam-color, var(--z-orange)) calc(var(--beam-opacity, 1) * 100%), transparent);
  background:
    linear-gradient(to bottom,
      transparent 0, transparent calc(var(--beam-fade-start, 0) * 100%),
      var(--_beam) min(calc(var(--beam-fade-start, 0) * 100% + var(--beam-fade-top-px, 0px)), calc(var(--beam-end, 0) * 100%)),
      var(--_beam) max(calc(var(--beam-end, 0) * 100% - 200px), min(calc(var(--beam-fade-start, 0) * 100% + var(--beam-fade-top-px, 0px)), calc(var(--beam-end, 0) * 100%))),
      transparent calc(var(--beam-end, 0) * 100%)),
    linear-gradient(var(--line), var(--line)); }
@media (min-width: 900px) { .step-track { display: block; } }
.step-nav { display: none; flex-direction: column; row-gap: 16px; }
@media (min-width: 900px) { .step-nav { display: flex; } }
.step-nav.prev { grid-area: prev; align-self: start; }
.step-nav.next { grid-area: next; align-self: end; }
.step-nav.prev > .step-item { animation: stepSlideUp .35s ease-out both; }
.step-nav.next > .step-item { animation: stepSlideDown .35s ease-out both; }
@keyframes stepSlideUp { 0% { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes stepSlideDown { 0% { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
.step-item { position: relative; display: flex; align-items: center; font-family: var(--mono); font-size: .75rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; cursor: default; }
.step-item .content { display: flex; column-gap: 12px; }
.step-item .content > span:first-child { color: var(--fg-3); }
.step-item .content > span:last-child { color: var(--fg-2); }
.step-item.active .content { clip-path: inset(0 100% 0 0); animation: stepWipe .5s ease-out .05s both; }
.step-item.active .content > span:first-child { color: var(--fg-2); }
.step-item.active .content > span:last-child { color: var(--fg); }
@keyframes stepWipe { 0% { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.step-marker { --size: 8px; --surface: var(--bg); position: absolute; left: calc(-40px - var(--size) / 2 - .5px); width: var(--size); height: var(--size); border-radius: 50%; color: var(--marker, var(--fg-3)); background: currentColor;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px color-mix(in srgb, currentColor 60%, transparent), 0 0 0 7px var(--surface); display: none; }
@media (min-width: 900px) { .step-marker { display: block; } }
.step-marker.active { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px color-mix(in srgb, currentColor 60%, transparent), 0 0 0 7px var(--surface), 0 0 0 8px color-mix(in srgb, currentColor 30%, transparent), 0 0 0 11px var(--surface), 0 0 0 11.5px color-mix(in srgb, currentColor 30%, transparent), 0 0 0 14.5px var(--surface); }
.step-panel { grid-area: panel; display: flex; flex-direction: column; justify-content: center; }
.step-panel .step-item { margin-bottom: 14px; }
.step-panel .h1 { max-width: 12ch; animation: stepEnter .5s ease-out .06s both; }
.step-panel .h1.intro { max-width: 20ch; font-size: clamp(1.9rem, 1rem + 2.6vw, 3.4rem); }
.step-panel .desc { max-width: 44ch; margin-top: 16px; color: var(--fg-2); font-size: var(--fs-lede); line-height: 1.45; text-wrap: pretty; animation: stepEnter .5s ease-out .12s both; }
.step-panel .desc a { color: var(--fg); text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor, transparent 50%); }
.step-panel .desc a:hover { text-decoration-color: currentColor; }
.step-panel .step-cta { margin-top: 28px; animation: stepEnter .5s ease-out .18s both; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@keyframes stepEnter { 0% { opacity: 0; } to { opacity: 1; } }
.stack-svg { position: absolute; left: 50%; top: 50%; width: 100%; max-width: 420px; transform: translate(-50%, -50%); overflow: visible; }
@media (min-width: 640px) { .stack-svg { width: 84%; max-width: none; } }
.stack-svg .layer { transform-box: view-box; transform-origin: 50% 50%; --l: var(--line-2); --l2: var(--line); --fill: var(--bg); }
.stack-svg .layer * { transition: fill .4s ease-out, stroke .4s ease-out, opacity .4s ease-out; }
.stack-svg .layer[data-state="active"] { --l: var(--fg-3); --l2: var(--line-2); }
.stack-svg .layer[data-state="placed"] { --l: var(--fg-3); --l2: var(--line-2); }
.stack-svg .layer[data-state="pending"] { --l: var(--line-2); --l2: color-mix(in srgb, var(--line) 60%, transparent); opacity: .7; }
.stack-svg .layer[data-state="pending"] .top { stroke-dasharray: 4 4; }
.stack-svg .layer[data-state="active"] .top { stroke: var(--accent); }
.stack-svg .layer .art .ac { fill: var(--accent); }
.stack-svg .layer .art .ac-s { stroke: var(--accent); }
.stack-svg .layer[data-state="pending"] .art .ac { fill: var(--line-2); }
.stack-svg .layer[data-state="pending"] .art .ac-s { stroke: var(--line-2); }
/* loose pieces drift; placed ones sit still */
.stack-svg .layer .float { animation: pieceFloat 5.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.stack-svg .layer[data-state="active"] .float, .stack-svg .layer[data-state="placed"] .float { animation: none; }
@keyframes pieceFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .stack-svg .layer .float { animation: none; } }
.stack-svg .annot { pointer-events: none; }
.stack-svg .annot circle { opacity: 0; }
.stack-svg .annot path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.stack-svg .annot text { opacity: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: var(--fg); }
.stack-svg .layer[data-state="active"] .annot circle { animation: annotIn .3s ease-out .6s forwards; }
.stack-svg .layer[data-state="active"] .annot path { animation: annotLine .55s ease-out .1s forwards; }
.stack-svg .layer[data-state="active"] .annot text { animation: annotIn .3s ease-out .6s forwards; }
@keyframes annotIn { to { opacity: 1; } }
.stack-svg .layer[data-state="active"] .core { animation: corePulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes corePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .55; } }
@keyframes annotLine { to { stroke-dashoffset: 0; } }
/* no-JS fallback: show every step as plain stacked content */
html:not(.js) .stack-track { height: auto; }
html:not(.js) .stack-sticky { position: static; height: auto; }
html:not(.js) .stack-visual { display: none; }
html:not(.js) .step-panel > * { display: block !important; margin-bottom: 40px; }

/* UI mock cards */
.ui {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  font-size: .8125rem;
  color: var(--fg-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.ui::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 80% -10%, rgba(246, 137, 58, .10), transparent 60%); }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ui-head .dots { display: flex; gap: 6px; }
.ui-head .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.ui-head .dots i:first-child { background: var(--z-orange); }
.ui-body { padding: 18px; display: grid; gap: 14px; position: relative; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); white-space: nowrap; }
.tag.hot { color: var(--z-orange); box-shadow: inset 0 0 0 1px rgba(246, 137, 58, .45); }
.tag.ok { color: #8bd7a4; box-shadow: inset 0 0 0 1px rgba(139, 215, 164, .4); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .625rem; letter-spacing: .04em; color: var(--fg); background: var(--bg-3); border: 1px solid var(--line-2); flex: none; }
.avatar.z { background: var(--grad); color: #1a0f0d; border: 0; }

/* inbox mock */
.inbox { display: grid; grid-template-columns: 200px 1fr; }
.inbox-list { border-right: 1px solid var(--line); }
.inbox-item { display: grid; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.inbox-item .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inbox-item .who { color: var(--fg); font-weight: 500; }
.inbox-item .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item.active { background: var(--bg-3); }
.inbox-item.active .sub { color: var(--fg-2); }
.inbox-thread { display: grid; gap: 14px; padding: 16px; align-content: start; }
.msg { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.msg .bubble { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; line-height: 1.45; color: var(--fg-2); }
.msg .meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.msg .meta b { color: var(--fg); font-weight: 500; }
.msg.draft .bubble { border-color: rgba(246, 137, 58, .35); background: linear-gradient(180deg, rgba(246, 137, 58, .07), transparent); color: var(--fg); }
.msg .actions { display: flex; gap: 8px; margin-top: 10px; }
.msg .actions span { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); }
.msg .actions span.primary { background: var(--fg); color: var(--bg); box-shadow: none; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--z-orange); animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 600px) { .inbox { grid-template-columns: 1fr; } .inbox-list { display: none; } }

/* chart mock */
.chart { padding: 18px 18px 8px; }
.chart svg { width: 100%; height: auto; }
.chart .legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 6px 0 10px; }
.chart .legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart .legend i { width: 18px; height: 2px; background: var(--fg-3); }
.chart .legend i.z { background: var(--grad-h); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.kpis div { padding: 14px 18px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.kpis div:first-child { border-left: 0; }
.kpis .v { font-size: 1.35rem; letter-spacing: -.03em; color: var(--fg); font-weight: 500; line-height: 1; }
.kpis .v.up { color: #8bd7a4; }
html.js .draw path.line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
html.js .draw.in path.line { animation: draw 2.2s var(--ease) forwards; }
html.js .draw.in path.line.l2 { animation-delay: .25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* journey mock */
.journey { padding: 18px; display: grid; gap: 12px; }
.journey .row { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.journey .day { color: var(--fg-3); }
.journey .node { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); color: var(--fg); position: relative; }
.journey .node .ch { margin-left: auto; }
.journey .node.branch { border-style: dashed; color: var(--fg-2); background: transparent; }
.journey .node.win { border-color: rgba(246, 137, 58, .4); background: linear-gradient(90deg, rgba(246, 137, 58, .08), transparent); }
.journey .row + .row .node::before { content: ""; position: absolute; left: 20px; top: -13px; width: 1px; height: 12px; background: var(--line-2); }
.journey .stat { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.journey .stat b { color: var(--fg); font-weight: 500; }

/* routing mock */
.routing { padding: 18px; display: grid; gap: 10px; }
.routing .r { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; }
.routing .r .name { color: var(--fg); }
.routing .r .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.routing .r .bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--fg-3); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.routing .r .bar i.z { background: var(--grad-h); }
.routing.in .r .bar i { transform: none; }
.routing .r .route { display: inline-flex; gap: 6px; align-items: center; }
.routing .r .route .arrow { color: var(--fg-3); }
.routing .sum { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.routing .sum b { color: var(--fg); font-weight: 500; }

/* ---------- AI section ---------- */
.ai { display: grid; gap: 48px; }
@media (min-width: 1000px) { .ai { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; } }
.ai-text { display: grid; gap: 24px; }
.ai-text .h1 { max-width: 14ch; }
.checklist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.checklist li i { width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='black'/><path d='M4.5 8.3l2.4 2.4L11.6 6' stroke='white' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='black'/><path d='M4.5 8.3l2.4 2.4L11.6 6' stroke='white' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.checklist li b { display: block; color: var(--fg); font-weight: 500; }
.checklist li span { color: var(--fg-2); font-size: var(--fs-small); }
.ai-visual { position: relative; }
.ai-visual::before { content: ""; position: absolute; inset: 10% -5% -10% -5%; background: var(--grad); filter: blur(90px); opacity: .28; border-radius: 50%; pointer-events: none; }
.code {
  position: relative;
  background: #0b0909; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--mono); font-size: .8125rem; line-height: 1.7; color: var(--fg-2);
  overflow: clip; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
}
.code .ui-head { background: var(--bg-2); }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; white-space: pre; }
.code .k { color: var(--fg); }
.code .s { color: var(--z-yellow); }
.code .c { color: var(--fg-3); }
.code .o { color: var(--z-orange); }
.code .n { color: #8bd7a4; }
html.js .code .ln { display: inline; opacity: 0; }
html.js .code.in .ln { animation: lineIn .35s ease-out both; animation-delay: calc(var(--i) * 60ms + .1s); }
@keyframes lineIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.code .cursor { display: inline-block; width: .55em; height: 1.1em; background: var(--z-orange); vertical-align: -.2em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- paper section (Zera light) ---------- */
.paper {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  margin: 0 var(--pad);
  padding: clamp(64px, 8vw, 120px) 0;
}
.paper .wrap { padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.paper .eyebrow { color: var(--ink-2); }
.paper .lede, .paper .body, .paper .small { color: var(--ink-2); }
.paper .lede strong { color: var(--ink); }
.paper ::selection { background: rgba(246, 137, 58, .3); color: var(--ink); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--paper-line); display: grid; gap: 14px; align-content: start; position: relative; }
@media (min-width: 900px) { .step { border-bottom: 0; border-left: 1px solid var(--paper-line); padding: 32px 24px 8px; } .step:first-child { border-left: 0; padding-left: 0; } }
.step .when { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.step .when::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.step .h3 { color: var(--ink); }
.step p { color: var(--ink-2); font-size: var(--fs-small); }
.step ul { display: grid; gap: 6px; margin-top: 6px; }
.step ul li { font-size: var(--fs-small); color: var(--ink); display: flex; gap: 10px; }
.step ul li::before { content: "—"; color: var(--z-orange); }
.paper-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--paper-line); }

/* ---------- comparison ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.compare table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.compare th, .compare td { text-align: left; padding: 18px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); font-weight: 400; padding: 16px 20px; background: var(--bg-2); }
.compare tbody th { font-weight: 500; color: var(--fg); width: 22%; }
.compare td { color: var(--fg-2); }
.compare td.z { color: var(--fg); background: linear-gradient(180deg, rgba(246, 137, 58, .06), rgba(246, 137, 58, .03)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; }
.compare thead th.z { color: var(--fg); background: linear-gradient(90deg, rgba(238, 55, 68, .18), rgba(251, 214, 60, .12)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.compare thead th.z::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-h); }
.compare thead th { position: relative; }
@media (max-width: 760px) {
  .compare table, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .compare tr:first-child { border-top: 0; }
  .compare tbody th { width: auto; padding: 14px 20px 6px; border: 0; }
  .compare td { padding: 6px 20px; border: 0; }
  .compare td::before { content: attr(data-col); display: block; font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 2px; }
  .compare td.z { border: 0; border-radius: 8px; margin: 4px 12px; padding: 10px 8px; }
}

/* ---------- marquee (Zera infinite text) ---------- */
.marquee { overflow: clip; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(2rem, 1rem + 3.6vw, 4.4rem); letter-spacing: -.04em; line-height: 1; font-weight: 500; padding: 0 .35em; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--fg-3); }
.marquee-track span::after { content: "·"; margin-left: .7em; color: var(--z-orange); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- models (cards) ---------- */
.models { display: grid; gap: 16px; }
@media (min-width: 900px) { .models { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; align-content: start; position: relative; transition: border-color .3s, transform .5s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card.featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card .card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.card .best { color: var(--fg-2); font-size: var(--fs-small); }
.card .best b { color: var(--fg); font-weight: 500; }
.card ul { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.card ul li { display: flex; gap: 10px; font-size: var(--fs-small); color: var(--fg-2); }
.card ul li::before { content: "—"; color: var(--z-orange); flex: none; }
.card .card-foot { margin-top: auto; padding-top: 8px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 20px; align-items: center; padding: 22px 0; font-size: var(--fs-h3); letter-spacing: -.02em; font-weight: 500; line-height: 1.2; transition: color .3s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--z-orange); }
.faq-list summary .plus { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.faq-list summary .plus::before, .faq-list summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-list summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list .answer { padding: 0 0 26px; color: var(--fg-2); max-width: 62ch; text-wrap: pretty; animation: fadeUp .5s var(--ease); }
.faq-list .answer p + p { margin-top: 10px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(96px, 14vw, 200px) 0; position: relative; overflow: clip; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: 70vw; height: 60%; transform: translateX(-50%); background: var(--grad); filter: blur(120px); opacity: .18; pointer-events: none; }
.cta .wrap { display: grid; justify-items: center; gap: 28px; position: relative; }
.cta .display { max-width: 18ch; font-size: clamp(2.4rem, 1rem + 5vw, 5.4rem); }
.cta .small { color: var(--fg-2); }
.cta .small a { color: var(--fg); border-bottom: 1px solid var(--fg-3); transition: border-color .3s, color .3s; }
.cta .small a:hover { color: var(--z-orange); border-color: var(--z-orange); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 0; }
.footer-grid { display: grid; gap: 40px; padding-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; } }
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 36ch; }
.footer-brand .logo svg { height: 30px; }
.footer-brand p { color: var(--fg-2); font-size: var(--fs-small); }
.footer h3 { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); font-weight: 400; margin-bottom: 16px; }
.footer ul { display: grid; gap: 8px; }
.footer ul a { color: var(--fg-2); font-size: var(--fs-small); transition: color .25s; }
.footer ul a:hover { color: var(--fg); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--fg-3); font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom a:hover { color: var(--fg); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(64px, 9vw, 140px) 0 clamp(40px, 6vw, 80px); }
.page-hero .wrap { display: grid; gap: 24px; }
.page-hero .display { max-width: 16ch; }
.page-hero .lede { max-width: 56ch; }
@media (min-width: 900px) {
  .page-hero.split .wrap { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 48px; }
  .page-hero.split .eyebrow { grid-column: 1 / -1; }
  .page-hero.split .lede { margin-bottom: .5em; }
}

/* ---------- about ---------- */
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle { display: grid; gap: 12px; padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); align-content: start; }
@media (min-width: 900px) { .principle:nth-child(even) { border-left: 1px solid var(--line); padding-left: 32px; } }
.principle .idx { color: var(--fg-3); }
.principle .h3 { max-width: 20ch; }
.principle p { color: var(--fg-2); font-size: var(--fs-small); max-width: 46ch; }
.pod { display: grid; gap: 12px; }
@media (min-width: 700px) { .pod { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pod .role { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; display: grid; gap: 8px; background: var(--bg-2); }
.pod .role b { font-weight: 500; }
.pod .role span { font-size: var(--fs-small); color: var(--fg-2); }
.pod .role.lead { border-color: rgba(246, 137, 58, .4); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding: 22px 20px 22px 0; display: grid; gap: 6px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .facts div { border-bottom: 0; border-left: 1px solid var(--line); padding-left: 20px; } .facts div:first-child { border-left: 0; padding-left: 0; } }
.facts .val { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -.04em; line-height: 1; font-weight: 500; }
.facts .key { color: var(--fg-2); }

/* ---------- contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } }
.contact-side { display: grid; gap: 32px; align-content: start; }
.contact-side .big { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; font-weight: 500; }
.contact-side .big a { border-bottom: 1px solid var(--fg-3); transition: color .3s, border-color .3s; }
.contact-side .big a:hover { color: var(--z-orange); border-color: var(--z-orange); }
.next-steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); color: var(--fg-2); }
.next-steps li b { color: var(--fg); font-weight: 500; display: block; }
.next-steps li .num { color: var(--fg-3); padding-top: 3px; }
.form { display: grid; gap: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .lbl { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.field label i { color: var(--z-orange); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 14px; color: var(--fg); transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a69e97' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field select option { background: var(--bg-2); color: var(--fg); }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--z-orange); box-shadow: 0 0 0 3px rgba(246, 137, 58, .18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); transition: all .25s; }
.chips input:checked + span { color: #1a0f0d; background: var(--grad); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--z-orange); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot .small { max-width: 40ch; }
.form-foot .small a { color: var(--fg); border-bottom: 1px solid var(--fg-3); }
.form-success { display: none; padding: 40px 8px; text-align: center; gap: 12px; }
.form-success .h2 { margin-bottom: 6px; }
.form.sent > :not(.form-success) { display: none; }
.form.sent .form-success { display: grid; justify-items: center; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 72ch; display: grid; gap: 18px; color: var(--fg-2); }
.prose h2 { color: var(--fg); font-size: var(--fs-h3); letter-spacing: -.02em; font-weight: 500; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p strong { color: var(--fg); font-weight: 500; }
.prose ul { display: grid; gap: 8px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--z-orange); }
.prose li b { color: var(--fg); font-weight: 500; }
.prose a { color: var(--fg); border-bottom: 1px solid var(--fg-3); }
.prose a:hover { color: var(--z-orange); border-color: var(--z-orange); }
.prose .meta { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.toc a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); transition: all .25s; }
.toc a:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-3); }

/* ---------- services page ---------- */
.svc-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-nav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); transition: all .25s; }
.svc-nav a:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-3); }
.svc-nav a .num { color: var(--fg-3); }
.svc-detail { display: grid; gap: 40px; }
@media (min-width: 1000px) { .svc-detail { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }
.svc-detail .sticky { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; align-content: start; }
.svc-detail .sticky .h1 { max-width: 12ch; }
.svc-blocks { display: grid; gap: 40px; }
.svc-block { display: grid; gap: 14px; }
.svc-block .h3 { color: var(--fg); }
.svc-block p { color: var(--fg-2); max-width: 60ch; text-wrap: pretty; }
.svc-block .two { display: grid; gap: 12px 32px; }
@media (min-width: 640px) { .svc-block .two { grid-template-columns: 1fr 1fr; } }
.svc-block ul { display: grid; gap: 8px; }
.svc-block ul li { display: flex; gap: 10px; font-size: var(--fs-small); color: var(--fg-2); }
.svc-block ul li::before { content: "—"; color: var(--z-orange); flex: none; }
.sla { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: clip; }
.sla div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--fg-2); }
.sla div:first-child { border-top: 0; }
.sla div b { color: var(--fg); font-weight: 500; font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .8125rem; color: var(--fg-2); }

/* ---------- services page: one row per service ---------- */
.svc-row { display: grid; gap: 36px; }
@media (min-width: 1000px) { .svc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; } .svc:nth-of-type(odd) .svc-visual { order: -1; } }
.svc-text { display: grid; gap: 20px; align-content: start; }
.svc-text .index { display: flex; align-items: center; gap: 14px; color: var(--fg-2); }
.svc-text .index .verb { color: var(--fg); }
.svc-text .h1 { max-width: 12ch; }
.svc-text .lede { max-width: 40ch; }
.svc-list { display: grid; border-top: 1px solid var(--line); }
.svc-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: var(--fs-small); }
.svc-list li::before { content: "—"; color: var(--z-orange); flex: none; }
@media (min-width: 900px) { .principles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .principles.three .principle:nth-child(even) { border-left: 0; padding-left: 0; } .principles.three .principle + .principle { border-left: 1px solid var(--line); padding-left: 32px; } }

/* ---------- blog ---------- */
.posts { display: grid; gap: 16px; }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { position: relative; display: grid; gap: 14px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color .3s, transform .5s var(--ease); }
.post-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.post-card .cover { display: block; aspect-ratio: 16 / 9; margin: -8px -8px 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.post-card:hover .cover img { transform: scale(1.04); }
.post-cover { margin: 0 0 clamp(32px, 4vw, 56px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 2 / 1; background: var(--bg-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--fg-3); }
.post-card h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.55rem); letter-spacing: -.03em; line-height: 1.15; font-weight: 500; text-wrap: balance; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { color: var(--fg-2); font-size: var(--fs-small); }
.post-card .read { margin-top: 6px; }
.post-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(32px, 4vw, 56px); }
.post-hero .wrap { display: grid; gap: 22px; }
.post-hero .display { max-width: 22ch; font-size: clamp(2.1rem, 1rem + 3.9vw, 4.4rem); }
.post-hero .lede { max-width: 60ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--fg-3); }
.post-meta b { color: var(--fg-2); font-weight: 400; }
.post-body { display: grid; gap: 40px; }
@media (min-width: 1000px) { .post-body { grid-template-columns: minmax(0, 68ch) minmax(0, 1fr); gap: 72px; align-items: start; } }
.post-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.post-side .card { gap: 12px; }
.prose p { font-size: 1.0625rem; line-height: 1.65; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
.prose blockquote { margin: 8px 0; padding-left: 22px; border-left: 2px solid var(--z-orange); color: var(--fg); font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.02em; text-wrap: pretty; }
.prose ol { display: grid; gap: 10px; counter-reset: li; }
.prose ol li { position: relative; padding-left: 38px; counter-increment: li; }
.prose ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 5px; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .08em; color: var(--z-orange); }
.takeaways { position: relative; display: grid; gap: 12px; padding: 24px 24px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); overflow: clip; }
.takeaways::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.takeaways .eyebrow { margin-bottom: 4px; }
.takeaways li { display: flex; gap: 12px; color: var(--fg-2); font-size: var(--fs-small); }
.takeaways li::before { content: "—"; color: var(--z-orange); flex: none; }
.prose .callout { padding: 20px 22px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--fg-2); font-size: var(--fs-small); }
.prose .callout b { color: var(--fg); font-weight: 500; }
.post-foot { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.post-foot .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; text-align: center; gap: 24px; }
.nf .big { font-size: clamp(6rem, 22vw, 20rem); letter-spacing: -.06em; line-height: .85; font-weight: 500; background: var(--grad-h); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- misc ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-family: var(--mono); font-size: .75rem; }
.skip:focus { top: 12px; }
