/* ============================================================
   JOE SPENCER — PORTFOLIO
   Engineered "spec-sheet" system. Mono metadata, hairline grid.
   ============================================================ */

:root {
  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Accent (swappable via Tweaks) */
  --accent: oklch(0.70 0.20 47);          /* electric orange */
  --accent-ink: oklch(0.22 0.06 47);      /* text on accent */

  /* Light theme (default) */
  --bg:        oklch(0.975 0.003 250);
  --bg-2:      oklch(0.945 0.004 250);
  --surface:   oklch(1 0 0);
  --ink:       oklch(0.20 0.012 260);
  --ink-2:     oklch(0.42 0.012 260);
  --muted:     oklch(0.58 0.010 260);
  --hairline:  oklch(0.88 0.006 260);
  --hairline-2:oklch(0.82 0.008 260);
  --grid-line: oklch(0.90 0.005 260 / 0.7);

  /* Geometry */
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --tick: 7px;            /* crosshair tick size */
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg:        oklch(0.165 0.012 260);
  --bg-2:      oklch(0.205 0.014 260);
  --surface:   oklch(0.225 0.014 260);
  --ink:       oklch(0.955 0.004 260);
  --ink-2:     oklch(0.74 0.010 260);
  --muted:     oklch(0.60 0.012 260);
  --hairline:  oklch(0.34 0.012 260);
  --hairline-2:oklch(0.42 0.014 260);
  --grid-line: oklch(0.40 0.010 260 / 0.5);
  --accent-ink: oklch(0.18 0.04 47);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Mono utility ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono-sm { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
.accent { color: var(--accent); }
.dim { color: var(--muted); }

/* ============================================================
   GLOBAL GRID OVERLAY (toggleable via .grid-off on body)
   ============================================================ */
.grid-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
.grid-off .grid-overlay { opacity: 0; }
.grid-overlay .col-lines {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}
.grid-overlay .col-lines span {
  border-left: 1px solid var(--grid-line);
}
.grid-overlay .col-lines span:last-child { border-right: 1px solid var(--grid-line); }
@media (max-width: 720px) {
  .grid-overlay .col-lines span:nth-child(n+5) { display: none; }
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.shell { position: relative; z-index: 2; }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Status bar ---------- */
.statusbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.statusbar .row {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 38px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.status-left, .status-right { display: flex; align-items: center; gap: 18px; }
.status-item { display: flex; align-items: center; gap: 7px; color: var(--ink-2); white-space: nowrap; }
.status-item .led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (max-width: 720px) { .status-hide-sm { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 38px; z-index: 49;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav .row {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand .mark b { color: var(--accent); }
.brand .role { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--radius);
  position: relative; transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link .idx { color: var(--muted); margin-right: 6px; font-size: 0.85em; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 5px 11px; font-family: var(--font-mono); font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--ink); }
.theme-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

.menu-btn { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ============================================================
   VIEWS / ROUTER
   ============================================================ */
.view { display: none; }
.view.active { display: block; }

/* ---------- Section header ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.02em;
}
.section-head .meta { text-align: right; color: var(--muted); }
.section-index { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}
.hero-eyebrow {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  color: var(--ink-2); margin-bottom: 26px;
}
.hero-eyebrow .pill {
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 4px 10px; display: inline-flex; align-items: center; gap: 7px;
}
.hero h1 {
  font-size: clamp(2.8rem, 9vw, 7.2rem);
  line-height: 0.92; font-weight: 500; letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 em {
  font-style: normal; color: var(--accent);
}
.hero-cursor {
  display: inline-block; width: 0.5em; height: 0.86em; background: var(--accent);
  transform: translateY(0.06em); margin-left: 0.06em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lower {
  display: grid; grid-template-columns: 1fr; gap: clamp(24px,4vw,48px);
  margin-top: clamp(28px, 4vw, 44px);
  align-items: start;
}
@media (min-width: 880px) {
  .hero-lower { grid-template-columns: 1.4fr 1fr; }
}
.hero-bio { max-width: 46ch; color: var(--ink-2); font-size: 1.06rem; line-height: 1.6; }
.hero-bio strong { color: var(--ink); font-weight: 500; }

/* readout panel */
.readout {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.readout .ro-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-bottom: 1px solid var(--hairline);
  background: var(--bg-2);
}
.readout .ro-dots { display: flex; gap: 5px; }
.readout .ro-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline-2); }
.readout .ro-body { padding: 12px 14px; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.8; color: var(--ink-2); }
.readout .ro-body .k { color: var(--muted); }
.readout .ro-body .v { color: var(--ink); }
.readout .ro-line { display: flex; gap: 10px; }
.readout .ro-line .ok { color: var(--accent); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 13px 18px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.btn-ghost:hover { border-color: var(--ink); }

/* crosshair corner ticks */
.ticked { position: relative; }
.ticked::before, .ticked::after,
.ticked > .tick-tl, .ticked > .tick-tr { }
.tk { position: absolute; width: var(--tick); height: var(--tick); pointer-events: none; color: var(--accent); }
.tk::before, .tk::after { content: ""; position: absolute; background: currentColor; }
.tk::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-0.5px); }
.tk::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-0.5px); }
.tk.tl { top: -3.5px; left: -3.5px; } .tk.tr { top: -3.5px; right: -3.5px; }
.tk.bl { bottom: -3.5px; left: -3.5px; } .tk.br { bottom: -3.5px; right: -3.5px; }

/* hero crosshair follower */
.hero-crosshair { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 0.3s; }
.hero:hover .hero-crosshair { opacity: 1; }
.hero-crosshair .ch-x, .hero-crosshair .ch-y { position: absolute; background: var(--grid-line); }
.hero-crosshair .ch-x { left: 0; right: 0; height: 1px; }
.hero-crosshair .ch-y { top: 0; bottom: 0; width: 1px; }
.hero-crosshair .ch-read {
  position: absolute; font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--muted); padding: 2px 5px; background: var(--bg);
  border: 1px solid var(--hairline); transform: translate(8px, 8px);
}
.hero > .wrap { position: relative; z-index: 1; }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-list { border-top: 1px solid var(--hairline); }
.proj-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px; align-items: center;
  padding: clamp(20px, 3vw, 34px) 4px;
  border-bottom: 1px solid var(--hairline);
  position: relative; cursor: pointer;
  transition: padding-left 0.35s var(--ease), background 0.35s var(--ease);
}
.proj-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent); transition: width 0.35s var(--ease);
}
.proj-row:hover { padding-left: 22px; background: color-mix(in oklab, var(--accent) 5%, transparent); }
.proj-row:hover::before { width: 3px; }
.proj-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.proj-main { min-width: 0; }
.proj-co { color: var(--accent); margin-bottom: 7px; }
.proj-title {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.05; transition: color 0.25s;
}
.proj-row:hover .proj-title { color: var(--accent); }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--hairline-2); border-radius: 999px; padding: 3px 9px;
}
.proj-side { display: flex; align-items: center; gap: 22px; }
.proj-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.proj-go {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline-2);
  display: grid; place-items: center; flex: none;
  transition: all 0.25s var(--ease);
}
.proj-row:hover .proj-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
/* hover preview thumbnail */
.proj-peek {
  position: absolute; right: 90px; top: 50%; transform: translateY(-50%) scale(0.96);
  width: 220px; height: 138px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--hairline-2);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 5; background: var(--bg-2);
}
.proj-peek img { width: 100%; height: 100%; object-fit: cover; }
.proj-row:hover .proj-peek { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 860px) {
  .proj-peek { display: none; }
  .proj-row { grid-template-columns: 44px 1fr auto; }
  .proj-side { gap: 12px; }
  .proj-year { display: none; }
}

/* ============================================================
   PLACEHOLDER IMAGE
   ============================================================ */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, var(--bg-2) 0 10px, transparent 10px 20px),
    var(--surface);
  display: grid; place-items: center; color: var(--muted);
  overflow: hidden;
}
.ph .ph-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--hairline-2);
  background: var(--bg); border-radius: var(--radius); color: var(--ink-2);
}
.ph .ph-dim { position: absolute; bottom: 8px; right: 10px; font-family: var(--font-mono); font-size: 0.56rem; color: var(--muted); }

/* ============================================================
   TESTIMONIALS (marquee)
   ============================================================ */
.testi { padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.marquee { position: relative; display: flex; gap: 20px; width: max-content; animation: scroll-x 48s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.testi-wrap:nth-child(2) .marquee { animation-duration: 60s; animation-direction: reverse; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.quote-card {
  width: min(440px, 80vw); flex: none;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface); padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.quote-card p { font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); }
.quote-mark { font-family: var(--font-mono); color: var(--accent); }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--hairline-2); }
.quote-by .nm { font-weight: 500; }
.quote-by .co { color: var(--muted); }
.testi-wrap { margin-bottom: 20px; }

/* ============================================================
   STACK
   ============================================================ */
.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline);
}
.stack-cell {
  border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 26px 24px; min-height: 168px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: background 0.3s var(--ease);
}
.stack-cell:hover { background: var(--bg-2); }
.stack-cell .num { position: absolute; top: 14px; right: 16px; font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); }
.stack-ico {
  width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--hairline-2);
  display: grid; place-items: center; background: var(--bg);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--accent);
}
.stack-cell h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; }
.stack-cell .role { color: var(--muted); margin-top: -8px; }
.stack-cell .cat { margin-top: auto; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-hero { padding: clamp(40px,6vw,80px) 0 40px; }
.about-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; max-width: 18ch; line-height: 1.04; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px,5vw,64px); padding: 40px 0 0; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.5fr 1fr; } }
.about-body p { font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); margin-bottom: 18px; max-width: 58ch; }
.about-portrait { aspect-ratio: 4/5; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.about-facts { display: grid; gap: 0; border-top: 1px solid var(--hairline); margin-top: 10px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.fact .k { color: var(--muted); } .fact .v { text-align: right; }

/* timeline */
.timeline { border-top: 1px solid var(--hairline); margin-top: 8px; }
.tl-row {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 20px;
  padding: 26px 4px; border-bottom: 1px solid var(--hairline);
  align-items: baseline; transition: background 0.3s; position: relative;
}
.tl-row:hover { background: var(--bg-2); }
.tl-when { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.tl-role { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
.tl-co { color: var(--accent); font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tl-desc { color: var(--ink-2); margin-top: 8px; max-width: 56ch; font-size: 0.98rem; }
@media (max-width: 720px){ .tl-row { grid-template-columns: 1fr; } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.principle { background: var(--bg); padding: 28px 24px; }
.principle .pn { font-family: var(--font-mono); color: var(--accent); font-size: 0.7rem; }
.principle h4 { font-size: 1.2rem; font-weight: 500; margin: 12px 0 8px; letter-spacing: -0.01em; }
.principle p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

/* ============================================================
   CASE STUDY
   ============================================================ */
.case-hero { padding: clamp(36px,5vw,64px) 0; border-bottom: 1px solid var(--hairline); }
.case-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); margin-bottom: 30px; }
.case-back:hover { color: var(--accent); }
.case-hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; margin: 14px 0 22px; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 24px; border-top: 1px solid var(--hairline); padding-top: 22px; margin-top: 28px; }
.case-meta .k { color: var(--muted); display: block; margin-bottom: 6px; }
.case-cover { aspect-ratio: 16/9; border: 1px solid var(--hairline); border-radius: var(--radius); margin: clamp(28px,4vw,48px) 0; overflow: hidden; background: var(--bg-2); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-section { padding: clamp(32px,4vw,56px) 0; border-bottom: 1px solid var(--hairline); }
.case-section .lead { font-size: clamp(1.3rem,2.6vw,1.9rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; max-width: 22ch; }
.case-cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px){ .case-cols { grid-template-columns: 200px 1fr; } }
.case-cols .body p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; margin-bottom: 16px; max-width: 60ch; }
.case-imgs { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.case-fig { margin: 0; }
.case-fig.full { grid-column: 1/-1; }
.case-shot { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.case-shot img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.case-fig:hover .case-shot img { transform: scale(1.02); }
.case-fig figcaption { color: var(--muted); margin-top: 10px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 1px; background: var(--hairline); border:1px solid var(--hairline); margin-top: 12px; }
.metric { background: var(--bg); padding: 26px 22px; }
.metric .big { font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 500; letter-spacing: -0.03em; color: var(--accent); }
.metric .lbl { color: var(--muted); margin-top: 6px; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta { padding: clamp(64px,10vw,140px) 0; text-align: center; position: relative; }
.cta h2 { font-size: clamp(2.4rem, 8vw, 6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta .sub { color: var(--ink-2); margin-top: 22px; font-size: 1.1rem; }
.cta .actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

footer.foot { border-top: 1px solid var(--hairline); padding: 40px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px){ .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot h3 { font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.01em; font-size: 1.1rem; margin-bottom: 10px; }
.foot h3 b { color: var(--accent); }
.foot-col .ttl { color: var(--muted); margin-bottom: 14px; }
.foot-link { display: block; padding: 6px 0; color: var(--ink-2); transition: color 0.2s, padding-left 0.2s; }
.foot-link:hover { color: var(--accent); padding-left: 6px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--muted); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Visible by default — animation only when JS marks the body ready */
.reveal { opacity: 1; transform: none; }
body.anim-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
body.anim-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { body.anim-ready .reveal { opacity: 1; transform: none; transition: none; } }

/* stagger helper */
body.anim-ready .reveal[data-d="1"]{ transition-delay: 0.06s; }
body.anim-ready .reveal[data-d="2"]{ transition-delay: 0.12s; }
body.anim-ready .reveal[data-d="3"]{ transition-delay: 0.18s; }
body.anim-ready .reveal[data-d="4"]{ transition-delay: 0.24s; }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: none; flex-direction: column; padding: 24px var(--gutter); }
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.mobile-menu a { font-size: 2rem; padding: 14px 0; border-bottom: 1px solid var(--hairline); letter-spacing: -0.02em; }
.mobile-menu a .idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-right: 12px; }

/* spacer */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(32px,4vw,56px) 0; }
