/* =====================================================================
   VERTO — design system
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* color */
  --bg:        oklch(0.135 0.010 70);
  --bg-2:      oklch(0.165 0.010 70);
  --bg-3:      oklch(0.195 0.010 70);
  --ink:       oklch(0.975 0.006 85);
  --ink-2:     oklch(0.88  0.006 85);
  --mute:      oklch(0.62  0.006 85);
  --mute-2:    oklch(0.42  0.006 80);
  --line:      oklch(0.30  0.008 75 / 0.55);
  --line-2:    oklch(0.30  0.008 75 / 0.22);
  --yellow:    #FFD60A;
  --yellow-2:  #FFE45C;
  --yellow-deep: #E8B400;
  --yellow-glow: rgba(255,214,10,0.35);

  /* type */
  --f-sans:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --f-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --f-serif:   'Instrument Serif', 'Times New Roman', serif;

  /* scale */
  --t-xs: 11px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --t-3xl: 40px;
  --t-4xl: 56px;
  --t-5xl: 80px;
  --t-6xl: 112px;
  --t-7xl: 160px;

  /* layout */
  --pad-x: clamp(24px, 4vw, 56px);
  --nav-h: 64px;
  --maxw: 1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--yellow); color: #000; }

/* =====================================================================
   typography
   ===================================================================== */

.kicker {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
}
.kicker .yel { color: var(--yellow); }
.kicker .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  margin: 0 .6em 1px 0;
  vertical-align: middle;
  box-shadow: 0 0 10px var(--yellow-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

h1, h2, h3, h4 {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(48px, 9vw, var(--t-6xl));
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.display em, .editorial {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h-xl { font-size: clamp(36px, 5.5vw, var(--t-5xl)); letter-spacing: -0.03em; line-height: 0.98; }
.h-lg { font-size: clamp(28px, 3.6vw, var(--t-4xl)); letter-spacing: -0.025em; line-height: 1.02; }
.h-md { font-size: clamp(22px, 2.4vw, var(--t-3xl)); letter-spacing: -0.02em; line-height: 1.08; }
.h-sm { font-size: var(--t-2xl); letter-spacing: -0.015em; }

p { color: var(--ink-2); }
.lead { font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-2); max-width: 60ch; line-height: 1.5; }
.mono { font-family: var(--f-mono); }
.small { font-size: var(--t-sm); }
.tabular { font-variant-numeric: tabular-nums; }

/* =====================================================================
   layout
   ===================================================================== */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(80px, 10vw, 160px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.divider { height: 1px; background: var(--line); }
.divider-yel { height: 1px; background: linear-gradient(90deg, transparent, var(--yellow) 30%, var(--yellow) 70%, transparent); opacity: .6; }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* numbered section heads */
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.section-head__num {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--yellow);
  letter-spacing: 0.1em;
}
.section-head__title { font-size: clamp(28px, 4vw, 56px); font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.section-head__meta { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--mute); text-transform: uppercase; letter-spacing: 0.12em; }
@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* =====================================================================
   nav
   ===================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 500; letter-spacing: -0.01em; font-size: 16px;
}
.brand__mark {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 34px;
  border-radius: 8px;
  overflow: hidden;
  filter: drop-shadow(0 0 10px color-mix(in oklab, var(--yellow) 26%, transparent));
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.brand__name { font-weight: 500; }
.brand__dot { color: var(--yellow); }

.nav__links {
  display: flex; gap: 4px;
  justify-self: center;
  background: color-mix(in oklab, var(--bg-2) 75%, transparent);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
}
.nav__links a {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  position: relative;
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.nav__links a.is-active { color: #000; background: var(--yellow); }

.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.nav__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase;
}
.nav__status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 8px var(--yellow-glow); animation: pulse 2.4s ease-in-out infinite; }

@media (max-width: 1100px) { .nav__status { display: none; } }
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: auto 1fr; }
}

/* =====================================================================
   buttons
   ===================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s, border-color .25s, color .25s;
  position: relative;
  white-space: nowrap;
}
.btn__arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--y { background: var(--yellow); color: #0c0c0c; }
.btn--y:hover { background: var(--yellow-2); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn--big {
  padding: 16px 26px;
  font-size: 14px;
}

/* magnetic wrapper handled in JS via data-magnet */

/* =====================================================================
   AI Core stage
   ===================================================================== */

.aicore-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 720px;
  margin-inline: auto;
}
.aicore-stage--lg { max-width: 880px; }
.aicore-stage__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.aicore-stage__ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.aicore-stage__ring--1 { inset: 8%;  border-color: color-mix(in oklab, var(--yellow) 18%, transparent); }
.aicore-stage__ring--2 { inset: 22%; border-color: var(--line); }
.aicore-stage__ring--3 { inset: 36%; border-style: dashed; border-color: var(--line-2); }
.aicore-stage__crosshair {
  position: absolute; inset: 0; pointer-events: none;
}
.aicore-stage__crosshair::before,
.aicore-stage__crosshair::after {
  content: ''; position: absolute; background: var(--line);
}
.aicore-stage__crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.aicore-stage__crosshair::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }

.aicore-prompt {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
  animation: promptFade 12s linear infinite;
  opacity: 0;
}
.aicore-prompt::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 8px var(--yellow-glow);
}
.aicore-prompt[data-role="response"]::before { background: var(--ink); box-shadow: none; }
.aicore-prompt[data-role="response"] { color: var(--mute); border-style: dashed; }

@keyframes promptFade {
  0%, 100% { opacity: 0; }
  8%, 92%  { opacity: 1; }
}

/* =====================================================================
   hero
   ===================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(18px, 3vh, 42px));
  overflow: hidden;
}
.hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-block: 24px;
  align-items: end;
}
.hero__bot {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-bottom: 88px;
}
.hero__title {
  font-size: clamp(48px, 5.4vw, 92px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.hero__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--yellow); }
.hero__sub { margin-top: clamp(20px, 2.4vh, 28px); max-width: 42ch; }
.hero__ctas { margin-top: clamp(22px, 2.8vh, 30px); display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x);
  bottom: 28px;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
}
.hero__meta b { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    overflow: visible;
  }
  .hero__bot {
    grid-template-columns: 1fr;
    padding-bottom: 36px;
  }
  .hero__title { font-size: clamp(46px, 13vw, 72px); }
  .hero__meta { position: static; margin-top: 8px; flex-wrap: wrap; }
  .aicore-stage--lg { max-width: min(520px, 100%); }
}

/* =====================================================================
   reveal
   ===================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.split-word.in > span { transform: none; }

/* =====================================================================
   capability matrix
   ===================================================================== */

.matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.matrix__cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  background: var(--bg);
  transition: background .3s;
}
.matrix__cell:hover { background: var(--bg-2); }
.matrix__cell:hover .matrix__cell-num { color: var(--yellow); }
.matrix__cell-num { font-family: var(--f-mono); font-size: 11px; color: var(--mute); letter-spacing: 0.12em; transition: color .3s; }
.matrix__cell-title { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.matrix__cell-desc { font-size: 13px; color: var(--mute); line-height: 1.5; margin-top: 12px; }
.matrix__cell-link { font-family: var(--f-mono); font-size: 11px; color: var(--ink); letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; }
.matrix__cell-link .arrow { transition: transform .3s; }
.matrix__cell:hover .arrow { transform: translateX(4px); color: var(--yellow); }

@media (max-width: 1000px) { .matrix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .matrix { grid-template-columns: 1fr; } }

/* =====================================================================
   tag pills
   ===================================================================== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
}
.pill--y { color: var(--yellow); border-color: color-mix(in oklab, var(--yellow) 35%, transparent); }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mute); }
.pill--y .dot { background: var(--yellow); box-shadow: 0 0 8px var(--yellow-glow); }

/* =====================================================================
   case cards
   ===================================================================== */

.cases {
  display: grid; gap: 16px;
}
.case {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .3s, transform .4s;
}
.case:hover { border-color: color-mix(in oklab, var(--yellow) 40%, transparent); }
.case__body { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.case__num { font-family: var(--f-mono); font-size: 11px; color: var(--yellow); letter-spacing: 0.12em; }
.case__title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.case__desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.case__metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.case__metric .v { font-family: var(--f-sans); font-size: 26px; font-weight: 500; letter-spacing: -0.015em; }
.case__metric .v em { font-family: var(--f-serif); font-style: italic; color: var(--yellow); }
.case__metric .l { font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.case__visual {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg) 100%);
  overflow: hidden;
}

@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

/* =====================================================================
   thesis section (editorial)
   ===================================================================== */

.thesis {
  position: relative;
  padding-block: clamp(100px, 12vw, 200px);
}
.thesis__quote {
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 22ch;
}
.thesis__quote em { font-family: var(--f-serif); color: var(--yellow); }
.thesis__quote .strike { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--mute-2); }

/* =====================================================================
   marquee
   ===================================================================== */

.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex; gap: 56px;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 56px;
}
.marquee__item {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 14px;
}
.marquee__item .glyph { color: var(--yellow); }
@keyframes scroll { to { transform: translateX(-100%); } }

/* =====================================================================
   process / method
   ===================================================================== */

.method {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
}
@media (max-width: 900px) { .method { grid-template-columns: 1fr; gap: 32px; } }
.method__steps { display: flex; flex-direction: column; }
.method__step {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  gap: 32px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding .3s;
}
.method__step:last-child { border-bottom: 1px solid var(--line); }
.method__step:hover { background: linear-gradient(90deg, color-mix(in oklab, var(--yellow) 4%, transparent), transparent 60%); }
.method__step-num {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--yellow); letter-spacing: 0.12em;
}
.method__step-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.method__step-desc { font-size: 13px; color: var(--mute); margin-top: 8px; max-width: 50ch; }
.method__step-meta { font-family: var(--f-mono); font-size: 11px; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
@media (max-width: 700px) { .method__step { grid-template-columns: 60px 1fr; } .method__step-meta { grid-column: 1 / -1; text-align: left; } }

/* =====================================================================
   footer
   ===================================================================== */

footer.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  margin-top: 64px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__col h4 { font-family: var(--f-mono); font-size: 11px; color: var(--mute); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; margin-bottom: 18px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--ink-2); transition: color .25s; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--f-mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  flex-wrap: wrap;
}
.footer__legal {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.footer__legal a {
  color: var(--mute);
  transition: color .2s;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.footer__legal a:hover { color: var(--yellow); }
.footer__legal span { color: var(--line); }

/* big footer wordmark */
.footer__word {
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  margin-top: 64px;
  white-space: nowrap;
  user-select: none;
  position: relative;
  display: flex; align-items: baseline; gap: 16px;
}
.footer__word .y { color: var(--yellow); -webkit-text-stroke: 0; }
.footer__word small {
  font-family: var(--f-mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.12em; text-transform: uppercase; -webkit-text-stroke: 0;
}

/* =====================================================================
   page header (for inner pages)
   ===================================================================== */

.pageheader {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 56px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.pageheader__meta {
  display: flex; gap: 16px; align-items: center; margin-bottom: 32px;
  font-family: var(--f-mono); font-size: 11px; color: var(--mute); letter-spacing: 0.12em; text-transform: uppercase;
}
.pageheader__meta .bullet { color: var(--yellow); }
.pageheader__title {
  font-size: clamp(40px, 6.5vw, 112px);
  font-weight: 500; letter-spacing: -0.035em; line-height: 0.95;
  max-width: 16ch;
}
.pageheader__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--yellow); }
.pageheader__sub { margin-top: 28px; max-width: 60ch; }
.pageheader__nav {
  margin-top: 56px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pageheader__nav a { color: var(--ink-2); transition: color .25s; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.pageheader__nav a:hover, .pageheader__nav a.is-active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* =====================================================================
   feature blocks
   ===================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-grid > * { background: var(--bg); padding: 32px; min-height: 220px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--yellow);
  margin-bottom: 18px;
}
.feature__title { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 8px; }
.feature__desc  { font-size: 13px; color: var(--mute); line-height: 1.55; }

/* =====================================================================
   stat strip
   ===================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat__v { font-size: clamp(36px, 4vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat__v em { font-family: var(--f-serif); font-style: italic; color: var(--yellow); font-weight: 400; }
.stat__v small { font-size: 0.45em; color: var(--mute); font-weight: 400; letter-spacing: 0; vertical-align: super; margin-left: 4px; }
.stat__l { font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* =====================================================================
   CTA strip
   ===================================================================== */
.cta-strip {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-strip__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, color-mix(in oklab, var(--yellow) 18%, transparent), transparent 70%);
  opacity: .9;
  pointer-events: none;
}
.cta-strip__inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 900px) { .cta-strip__inner { grid-template-columns: 1fr; } }
.cta-strip__title { font-size: clamp(40px, 6vw, 96px); font-weight: 500; letter-spacing: -0.035em; line-height: 0.95; }
.cta-strip__title em { font-family: var(--f-serif); font-style: italic; color: var(--yellow); }
.cta-strip__side { display: flex; flex-direction: column; gap: 24px; }

/* =====================================================================
   custom cursor
   ===================================================================== */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, border-color .25s;
  mix-blend-mode: difference;
  display: none;
}
.cursor.is-hover { width: 44px; height: 44px; background: color-mix(in oklab, var(--yellow) 12%, transparent); }
@media (pointer: fine) { .cursor { display: block; } }

/* =====================================================================
   tweaks panel
   ===================================================================== */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  width: 280px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 90;
  padding: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  display: none;
}
.tweaks.is-open { display: block; }
.tweaks__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
.tweaks__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tweaks__row label { color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.tweaks__row input[type=range] { width: 100%; accent-color: var(--yellow); }
.tweaks__row .swatches { display: flex; gap: 6px; }
.tweaks__row .sw { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 1px solid var(--line); }
.tweaks__row .sw.is-active { outline: 1px solid var(--yellow); outline-offset: 2px; }
.tweaks__close { color: var(--mute); cursor: pointer; }

/* =====================================================================
   misc
   ===================================================================== */
.subgrid-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.subgrid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .subgrid-cols-2, .subgrid-cols-3 { grid-template-columns: 1fr; } }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.subhead-row {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.subhead-row h2 { font-size: clamp(28px, 3.6vw, 56px); font-weight: 500; letter-spacing: -0.025em; line-height: 1; max-width: 18ch; }

/* sliding number tag */
.tag-num { font-family: var(--f-mono); font-size: 11px; color: var(--mute); letter-spacing: 0.12em; }

/* yellow accent rule */
.rule-y { display: inline-block; width: 32px; height: 1px; background: var(--yellow); vertical-align: middle; margin-right: 12px; }

/* code-like card */
.codecard {
  font-family: var(--f-mono);
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 18px;
  color: var(--ink-2);
  line-height: 1.65;
}
.codecard .c-comment { color: var(--mute); }
.codecard .c-key { color: var(--yellow); }
.codecard .c-str { color: var(--ink); }

/* halftone-ish placeholder */
.imgslot {
  background:
    repeating-linear-gradient(135deg, color-mix(in oklab, var(--ink) 4%, transparent) 0 1px, transparent 1px 8px),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 10px; color: var(--mute);
  letter-spacing: 0.1em; text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.imgslot::after {
  content: ''; position: absolute; inset: 8px;
  border: 1px dashed var(--line-2);
}
