/* SiteForge — redesign system
   Dark luxury tech · monospace-forward · hairline borders · subtle motion
   ---------------------------------------------------------------- */

:root {
  /* Density-driven scale */
  --gap: 28px;
  --pad-x: clamp(24px, 6vw, 96px);
  --pad-y: 140px;
  --rule: 0.5px solid rgba(255, 255, 255, 0.08);
  --rule-strong: 0.5px solid rgba(255, 255, 255, 0.16);

  /* Palette */
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --bg-3: #131318;
  --fg: #e9e6df;
  --fg-dim: #8a8a8f;
  --fg-faint: #5a5a60;
  --accent: #5b9eff;       /* overridden by tweaks */
  --accent-soft: rgba(91, 158, 255, 0.16);
  --grid-line: rgba(255, 255, 255, 0.05);

  /* Type */
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Geist", "Inter", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: var(--sans);
}

[data-density="tight"] {
  --gap: 18px;
  --pad-y: 96px;
}
[data-density="comfy"] {
  --gap: 40px;
  --pad-y: 180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%),
      color-mix(in oklab, var(--accent) 14%, transparent) 0%,
      transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: opacity 240ms ease;
}
[data-motion="off"] .cursor-glow { display: none; }

/* Background grid */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
}

/* Layout helpers */
.wrap { position: relative; z-index: 2; }
.section {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  border-top: var(--rule);
}
.section:first-of-type { border-top: 0; }
.row { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 900px) {
  .row.cols-2 { grid-template-columns: 1fr 1fr; }
  .row.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .row.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .row.cols-12-8 { grid-template-columns: 5fr 7fr; }
  .row.cols-8-12 { grid-template-columns: 7fr 5fr; }
}

/* Typography */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(48px, 8vw, 120px); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 5.2vw, 76px); line-height: 1.0; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
h4 { font-size: 16px; line-height: 1.3; font-weight: 500; }
p { color: var(--fg-dim); font-size: 16px; line-height: 1.55; margin: 0; text-wrap: pretty; }
p.lede { color: var(--fg); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 60ch; }
.mono { font-family: var(--mono); }
.dim { color: var(--fg-dim); }
.faint { color: var(--fg-faint); }
.fg { color: var(--fg); }
.accent-fg { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 999px;
  border: 0.5px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.btn.primary {
  background: var(--accent);
  color: #0a0a0c;
  border-color: var(--accent);
}
.btn.primary:hover { background: color-mix(in oklab, var(--accent) 88%, white); transform: translateY(-1px); }
.btn .arr { transition: transform 200ms ease; }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn-ghost {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-dim); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { color: var(--fg); }
.btn-ghost .arr { transition: transform 200ms ease; }
.btn-ghost:hover .arr { transform: translate(2px, -2px); color: var(--accent); }

/* Nav */
.nav {
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  border: 0.5px solid rgba(255,255,255,0.10);
  background: rgba(10, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  font-family: var(--mono);
  font-size: 12px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.nav-logo .mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  color: #0a0a0c;
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px;
  box-shadow: 0 0 24px color-mix(in oklab, var(--accent) 38%, transparent);
}
.nav-links { display: none; gap: 4px; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--fg-dim); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-links a .idx { color: var(--fg-faint); margin-right: 8px; }

/* Hero — common */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 56px;
  border-top: 0 !important;
  overflow: hidden;
}
.hero .corners {
  position: absolute; top: 110px; left: var(--pad-x); right: var(--pad-x); bottom: 40px;
  pointer-events: none;
  font-family: var(--mono); font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.1em;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero .corners .row-c {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.hero .corners span { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.hero .corners .end { text-align: right; }
.hero .corners .tick { width: 8px; height: 1px; background: var(--fg-faint); }

/* Hero variant — Specimen */
.hero-specimen .specimen {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
  font-size: clamp(60px, 16vw, 260px);
  line-height: 0.86;
  color: var(--fg);
}
.hero .stroke {
  -webkit-text-stroke: 3px rgba(233, 230, 223, 1);
  color: rgba(233, 230, 223, 0.06);
}
.hero-specimen .specimen .accent { color: var(--accent); }
.hero-specimen .meta {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  align-items: end;
  border-top: var(--rule); padding-top: 28px;
}
@media (min-width: 900px) {
  .hero-specimen .meta { grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; }
}

/* Hero variant — Console */
.hero-console { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: end; }
@media (min-width: 1000px) { .hero-console { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.hero-console h1 { font-size: clamp(44px, 6.4vw, 96px); }
.hero-console .terminal {
  border: var(--rule-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 18px;
  font-family: var(--mono); font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero-console .terminal .bar {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--fg-faint); letter-spacing: 0.08em;
  padding-bottom: 12px; border-bottom: var(--rule);
  margin-bottom: 14px;
}
.hero-console .terminal .bar .dots { display: flex; gap: 6px; }
.hero-console .terminal .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); display: inline-block; }
.hero-console .terminal .line { display: flex; gap: 12px; padding: 2px 0; }
.hero-console .terminal .ln { color: var(--fg-faint); min-width: 22px; text-align: right; }
.hero-console .terminal .tk-key { color: #b6e3ff; }
.hero-console .terminal .tk-str { color: var(--accent); }
.hero-console .terminal .tk-tag { color: #c1b5ff; }
.hero-console .terminal .tk-com { color: var(--fg-faint); }

/* Hero variant — Manifesto */
.hero-manifesto { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.hero-manifesto h1 {
  font-size: clamp(38px, 5vw, 76px); line-height: 1.05; letter-spacing: -0.025em;
  max-width: 22ch; font-weight: 400;
}
.hero-manifesto h1 em { font-style: italic; color: var(--accent); font-family: "Newsreader", "Source Serif Pro", Georgia, serif; font-weight: 400; }
.hero-manifesto .ledger {
  border-top: var(--rule); padding-top: 28px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 800px) { .hero-manifesto .ledger { grid-template-columns: repeat(4, 1fr); } }

/* Hero animation — ambient aurora, entrance reveal, word shimmer */
.hero > *:not(.hero-aurora) { position: relative; z-index: 1; }
.hero-aurora {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
  z-index: 0;
}
.hero-aurora::before,
.hero-aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  opacity: 0;
  animation-fill-mode: forwards;
}
.hero-aurora::before {
  width: 62vw; height: 62vw;
  left: -14vw; top: -24vw;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 32%, transparent) 0%, transparent 62%);
  animation: heroAuroraIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards,
             heroDrift1 22s ease-in-out 1.7s infinite alternate;
}
.hero-aurora::after {
  width: 52vw; height: 52vw;
  right: -12vw; bottom: -22vw;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 24%, transparent) 0%, transparent 62%);
  animation: heroAuroraIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards,
             heroDrift2 28s ease-in-out 1.95s infinite alternate;
}
@keyframes heroAuroraIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 0.85; transform: scale(1); }
}
@keyframes heroDrift1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(7vw, 5vh, 0) scale(1.14); }
}
@keyframes heroDrift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-6vw, -7vh, 0) scale(1.1); }
}
[data-motion="low"] .hero-aurora::before { animation-duration: 1.6s, 40s; }
[data-motion="low"] .hero-aurora::after  { animation-duration: 1.8s, 50s; }
[data-motion="off"] .hero-aurora { display: none; }

/* Hero entrance reveal — opacity + translate, staggered via --rise-delay */
.hero-rise {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  animation: heroRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--rise-delay, 0ms);
  will-change: transform, opacity;
}
@keyframes heroRise {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
[data-motion="off"] .hero-rise {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Word shimmer — gradient sweep across accent fills */
.shimmer {
  background-image: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent) 32%,
    color-mix(in oklab, var(--accent) 35%, white) 50%,
    var(--accent) 68%,
    var(--accent) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerSweep 5.5s ease-in-out 1.2s infinite;
}
@keyframes shimmerSweep {
  0%, 55%    { background-position: 100% 0; }
  85%, 100%  { background-position: -20% 0; }
}
[data-motion="off"] .shimmer {
  animation: none;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* Shimmer for the outlined "stroke" word — animates the stroke color */
.shimmer-stroke {
  animation: strokePulse 4.8s ease-in-out 1.4s infinite;
}
@keyframes strokePulse {
  0%, 100% { -webkit-text-stroke-color: rgba(233, 230, 223, 1); }
  50%      { -webkit-text-stroke-color: color-mix(in oklab, var(--accent) 85%, white); }
}
[data-motion="off"] .shimmer-stroke { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-aurora::before, .hero-aurora::after,
  .hero-rise, .shimmer, .shimmer-stroke { animation: none; }
  .hero-rise { opacity: 1; transform: none; }
  .shimmer { color: var(--accent); -webkit-text-fill-color: var(--accent); }
}

/* Stat block */
.stat .num {
  font-family: var(--display); font-size: clamp(40px, 4.4vw, 64px);
  letter-spacing: -0.03em; line-height: 1; color: var(--fg);
}
.stat .num .unit { color: var(--fg-faint); font-size: 0.5em; vertical-align: super; margin-left: 2px; }
.stat .lbl { margin-top: 10px; color: var(--fg-dim); font-size: 13px; max-width: 28ch; }

/* Marquee */
.marquee {
  border-top: var(--rule); border-bottom: var(--rule);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-2);
}
.marquee .track {
  display: inline-flex; gap: 56px; white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em;
  color: var(--fg);
}
[data-motion="off"] .marquee .track { animation: none; }
[data-motion="low"] .marquee .track { animation-duration: 70s; }
.marquee .track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Service card */
.svc {
  position: relative;
  border: var(--rule);
  border-radius: 14px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}
.svc:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, rgba(255,255,255,0.16));
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 6%, rgba(255,255,255,0.02)), rgba(255,255,255,0));
}
.svc .idx { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.1em; }
.svc h3 { margin-top: 38px; }
.svc p { margin-top: 12px; max-width: 34ch; }
.svc .more {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--fg-dim); text-transform: uppercase; text-decoration: none;
  margin-top: 28px;
}
.svc:hover .more { color: var(--accent); }
.svc .arr { transition: transform 200ms ease; }
.svc:hover .arr { transform: translate(3px, -3px); }

/* Process timeline */
.process { display: grid; gap: 0; }
.process .step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: var(--rule);
  align-items: start;
}
@media (min-width: 800px) {
  .process .step { grid-template-columns: 80px 200px 1fr 1fr; gap: 40px; }
}
.process .step:last-child { border-bottom: var(--rule); }
.process .step .num {
  font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.12em;
}
.process .step h3 { font-size: 24px; }
.process .step .weeks { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }

/* Metrics panel */
.metrics {
  border: var(--rule-strong);
  border-radius: 18px;
  padding: 36px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.03), rgba(255,255,255,0) 60%), var(--bg-2);
  display: grid; gap: 32px;
}
.metrics .gauges { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .metrics .gauges { grid-template-columns: repeat(4, 1fr); } }
.gauge {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono);
}
.gauge .ring { position: relative; width: 96px; height: 96px; }
.gauge .ring svg { transform: rotate(-90deg); }
.gauge .ring .v {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 22px; color: var(--fg); letter-spacing: -0.01em;
}
.gauge .lbl { font-size: 11px; letter-spacing: 0.1em; color: var(--fg-dim); text-transform: uppercase; }
.metrics .vitals { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .metrics .vitals { grid-template-columns: repeat(4, 1fr); } }
.vital { font-family: var(--mono); display: flex; flex-direction: column; gap: 4px; }
.vital .v { font-size: 28px; color: var(--fg); letter-spacing: -0.01em; }
.vital .l { font-size: 11px; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; }

/* Pricing */
.price-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price {
  border: var(--rule);
  border-radius: 18px;
  padding: 36px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
}
.price.featured {
  border-color: color-mix(in oklab, var(--accent) 55%, rgba(255,255,255,0.1));
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.price .tag {
  position: absolute; top: -10px; left: 32px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent); color: #0a0a0c;
  padding: 4px 10px; border-radius: 999px;
}
.price h3 { font-size: 22px; }
.price .price-num { font-family: var(--display); font-size: 48px; letter-spacing: -0.025em; line-height: 1; }
.price .price-num .per { font-family: var(--mono); font-size: 13px; color: var(--fg-faint); letter-spacing: 0.06em; margin-left: 4px; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.price li { font-family: var(--mono); font-size: 13px; color: var(--fg); display: flex; gap: 12px; align-items: flex-start; }
.price li::before {
  content: ""; flex: 0 0 auto;
  width: 6px; height: 6px; margin-top: 7px; border-radius: 50%;
  background: var(--accent);
}

/* FAQ */
.faq { border-top: var(--rule); }
.faq details { border-bottom: var(--rule); padding: 24px 0; }
.faq summary {
  list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; letter-spacing: -0.01em; transition: color 200ms ease; }
.faq details[open] summary h3 { color: var(--accent); }
.faq summary .toggle {
  font-family: var(--mono); font-size: 18px; color: var(--fg-dim); transition: transform 200ms ease;
  flex: 0 0 auto;
}
.faq details[open] summary .toggle { transform: rotate(45deg); color: var(--accent); }
.faq .ans { margin-top: 18px; max-width: 70ch; color: var(--fg-dim); line-height: 1.6; font-size: 15px; }

/* Contact form */
.contact-panel {
  border: var(--rule-strong); border-radius: 18px;
  padding: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  display: grid; gap: 18px;
}
.contact-panel label { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.1em; text-transform: uppercase; display: grid; gap: 8px; }
.contact-panel input, .contact-panel select, .contact-panel textarea {
  font-family: var(--mono); font-size: 14px; color: var(--fg);
  background: rgba(0,0,0,0.4);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 14px;
  outline: none; resize: vertical;
}
.contact-panel input:focus, .contact-panel select:focus, .contact-panel textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2,.7,0,1), transform 700ms cubic-bezier(.2,.7,0,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Footer */
.footer {
  padding: 96px var(--pad-x) 36px;
  border-top: var(--rule);
  display: grid; gap: 64px;
  position: relative;
  z-index: 2;
}
.footer .big {
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--fg-dim); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--fg); }
.footer .legal { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--fg-faint); border-top: var(--rule); padding-top: 24px; letter-spacing: 0.1em; }

/* Section header */
.sec-head { display: grid; gap: 16px; max-width: 980px; }
.sec-head .row-top { display: flex; gap: 18px; align-items: baseline; justify-content: space-between; }

/* Dashboard mock */
.beyond {
  border: var(--rule-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.4));
  overflow: hidden;
}
.beyond .titlebar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border-bottom: var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
}
.beyond .titlebar .dots { display: flex; gap: 6px; }
.beyond .titlebar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); display: inline-block; }
.beyond .body { display: grid; grid-template-columns: 180px 1fr; min-height: 380px; }
@media (max-width: 700px) { .beyond .body { grid-template-columns: 1fr; } .beyond .sidebar { display: none; } }
.beyond .sidebar { border-right: var(--rule); padding: 18px; font-family: var(--mono); font-size: 12px; display: grid; gap: 4px; align-content: start; }
.beyond .sidebar .group { font-size: 10px; color: var(--fg-faint); letter-spacing: 0.12em; text-transform: uppercase; margin: 10px 0 4px; }
.beyond .sidebar a { color: var(--fg-dim); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.beyond .sidebar a.active { background: rgba(255,255,255,0.05); color: var(--fg); }
.beyond .main { padding: 24px; display: grid; gap: 18px; }
.beyond .stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 600px) { .beyond .stat-row { grid-template-columns: repeat(4, 1fr); } }
.beyond .card { border: var(--rule); border-radius: 10px; padding: 14px; background: rgba(255,255,255,0.02); }
.beyond .card .lbl { font-family: var(--mono); font-size: 10px; color: var(--fg-faint); letter-spacing: 0.12em; text-transform: uppercase; }
.beyond .card .val { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.beyond .chart { border: var(--rule); border-radius: 10px; padding: 16px; height: 200px; background: rgba(255,255,255,0.02); position: relative; }

/* Utility */
.divider { height: 1px; background: rgba(255,255,255,0.08); }
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 6px 10px; border-radius: 999px;
  border: var(--rule); color: var(--fg-dim);
  text-transform: uppercase;
}
.tag-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.caret {
  display: inline-block; width: 0.55ch; background: var(--accent);
  margin-left: 6px;
  animation: blink 1s steps(1) infinite;
  vertical-align: -0.06em;
}
[data-motion="off"] .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* Story scroll */
.story { position: relative; border-top: var(--rule); background: var(--bg); }
.story-track { position: relative; height: 500vh; padding: 0 var(--pad-x); }
.story-pin {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding: 96px 0 56px;
  overflow: hidden;
}
.story-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  font-family: var(--mono);
}
.story-head .label { font-size: 11px; letter-spacing: 0.14em; color: var(--fg-faint); text-transform: uppercase; }
.story-head .counter { font-size: 11px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.story-stage {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  border-top: var(--rule); border-bottom: var(--rule);
}
@media (min-width: 900px) { .story-stage { grid-template-columns: 1.2fr 1fr; } }
.story-frame {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(.2,.7,0,1), transform 600ms cubic-bezier(.2,.7,0,1);
  pointer-events: none;
}
@media (min-width: 900px) { .story-frame { grid-template-columns: 1.2fr 1fr; gap: 80px; padding: 0; } }
.story-frame.active { opacity: 1; transform: none; pointer-events: auto; }
[data-motion="off"] .story-frame { transition: none; }
.story-frame .text { display: grid; gap: 16px; align-content: center; }
.story-frame .text .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.story-frame .text h2 { font-size: clamp(30px, 4.4vw, 60px); letter-spacing: -0.025em; line-height: 1.02; max-width: 14ch; }
.story-frame .text p { font-family: var(--mono); font-size: 14px; color: var(--fg-dim); max-width: 44ch; line-height: 1.6; }
.story-frame .visual { position: relative; min-height: 280px; display: grid; place-items: center; font-family: var(--mono); }

/* Story visual variants */
.viz-tap { position: relative; width: 280px; height: 200px; background: var(--bg-2); border: var(--rule); border-radius: 12px; overflow: hidden; }
.viz-tap .bar { position: absolute; top: 14px; left: 14px; right: 14px; height: 22px; border-radius: 999px; border: 0.5px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.4); font-size: 10px; padding: 0 12px; display: flex; align-items: center; color: var(--fg-dim); letter-spacing: 0.04em; }
.viz-tap .bar .lock { color: var(--accent); margin-right: 8px; }
.viz-tap .tap-dot { position: absolute; left: 50%; top: 60%; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 30%, transparent), 0 0 0 24px color-mix(in oklab, var(--accent) 14%, transparent), 0 0 48px color-mix(in oklab, var(--accent) 60%, transparent); }
.viz-tap .tap-dot::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; border: 1px solid var(--accent); animation: ripple 1.6s ease-out infinite; }
[data-motion="off"] .viz-tap .tap-dot::after { animation: none; opacity: 0; }
@keyframes ripple { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

.viz-loading { width: min(380px, 100%); display: grid; gap: 14px; font-family: var(--mono); font-size: 11px; }
.viz-loading .row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; color: var(--fg-dim); padding: 8px 0; border-bottom: var(--rule); }
.viz-loading .row .name { color: var(--fg); }
.viz-loading .row .kb { color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.viz-loading .row .bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.viz-loading .row .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); animation: load 2.4s ease-out forwards; }
.viz-loading .row.r2 i { animation-duration: 3.6s; }
.viz-loading .row.r3 i { animation-duration: 5.0s; }
.viz-loading .row.r4 i { animation-duration: 6.8s; }
[data-motion="off"] .viz-loading .row .bar i { animation: none; width: 70%; }
@keyframes load { 0% { width: 0%; } 60% { width: 70%; } 100% { width: 100%; } }

.viz-bounce { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.viz-bounce .pct { font-family: var(--display); font-size: clamp(120px, 18vw, 220px); letter-spacing: -0.05em; line-height: 0.85; color: var(--accent); }
.viz-bounce .pct .small { color: var(--fg-faint); font-size: 0.35em; vertical-align: super; margin-left: 8px; }
.viz-bounce .sub { color: var(--fg-dim); font-size: 13px; max-width: 30ch; }

.viz-gauges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 600px) { .viz-gauges { grid-template-columns: repeat(4, 1fr); } }

.viz-call { border: var(--rule-strong); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); padding: 24px; display: grid; gap: 14px; width: min(380px, 100%); font-family: var(--mono); font-size: 13px; }
.viz-call .event { display: grid; grid-template-columns: 70px 1fr; gap: 14px; color: var(--fg-dim); padding: 10px 0; border-bottom: var(--rule); }
.viz-call .event .t { color: var(--accent); }
.viz-call .event .e { color: var(--fg); }
.viz-call .event:last-child { border-bottom: 0; }

.story-progress { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.1em; }
.story-progress .pips { display: flex; gap: 8px; }
.story-progress .pip { width: 28px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 999px; transition: background 280ms ease; }
.story-progress .pip.active { background: var(--accent); }
.story-progress .pip.done { background: rgba(255,255,255,0.35); }

/* Workshop specimens */
.spec-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .spec-grid { grid-template-columns: repeat(6, 1fr); } }
.spec-grid .span-2 { grid-column: span 1; }
.spec-grid .span-3 { grid-column: span 1; }
.spec-grid .span-4 { grid-column: span 1; }
@media (min-width: 900px) {
  .spec-grid .span-2 { grid-column: span 2; }
  .spec-grid .span-3 { grid-column: span 3; }
  .spec-grid .span-4 { grid-column: span 4; }
}
.spec { position: relative; border: var(--rule); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)); overflow: hidden; display: flex; flex-direction: column; transition: border-color 240ms ease, background 240ms ease; min-height: 340px; }
.spec:hover { border-color: color-mix(in oklab, var(--accent) 36%, rgba(255,255,255,0.18)); }
.spec .head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 22px; border-bottom: var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg-faint); text-transform: uppercase; }
.spec .head .idx { color: var(--accent); }
.spec .body { padding: 28px 22px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.spec .foot { padding: 14px 22px; border-top: var(--rule); font-family: var(--mono); font-size: 11px; color: var(--fg-dim); display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.spec-type .glyphs { font-family: var(--display); font-size: clamp(120px, 14vw, 200px); letter-spacing: -0.04em; line-height: 0.9; color: var(--fg); display: flex; align-items: flex-end; gap: 24px; flex: 1; }
.spec-type .glyphs .mono { font-family: var(--mono); font-size: 0.42em; color: var(--accent); letter-spacing: -0.02em; }
.spec-type .meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; font-family: var(--mono); }
.spec-type .meta-row .k { color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.spec-type .meta-row .v { color: var(--fg); margin-top: 4px; font-size: 13px; letter-spacing: -0.01em; }

.spec-color .swatches { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: center; }
.spec-color .sw { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; font-family: var(--mono); font-size: 12px; }
.spec-color .sw .chip { width: 56px; height: 56px; border-radius: 10px; border: 0.5px solid rgba(255,255,255,0.08); }
.spec-color .sw .lbl { color: var(--fg); }
.spec-color .sw .hex { color: var(--fg-faint); }

.spec-perf { font-family: var(--mono); }
.spec-perf .total { font-family: var(--display); font-size: clamp(40px, 5vw, 56px); letter-spacing: -0.03em; color: var(--fg); display: flex; align-items: baseline; gap: 10px; }
.spec-perf .total .of { color: var(--fg-faint); font-size: 16px; letter-spacing: 0.04em; }
.spec-perf .progress-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; margin: 16px 0 8px; }
.spec-perf .progress-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 74%; background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 50%, white)); border-radius: 999px; }
.spec-perf .cap-label { font-size: 10px; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.spec-perf .breakdown { display: grid; gap: 8px; margin-top: 18px; font-size: 12px; }
.spec-perf .breakdown .row { display: grid; grid-template-columns: 70px 1fr 56px; gap: 12px; align-items: center; color: var(--fg-dim); }
.spec-perf .breakdown .row .k { color: var(--fg); }
.spec-perf .breakdown .row .bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.spec-perf .breakdown .row .bar i { position: absolute; left:0; top:0; bottom:0; background: var(--accent); border-radius: 999px; }
.spec-perf .breakdown .row .v { text-align: right; font-variant-numeric: tabular-nums; }

.spec-comp .body { gap: 18px; }
.spec-comp .row-set { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spec-comp .mini-input { font-family: var(--mono); font-size: 13px; color: var(--fg); background: rgba(0,0,0,0.4); border: 0.5px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 12px; width: 100%; outline: none; }
.spec-comp .mini-input:focus { border-color: var(--accent); }
.spec-comp .switch { width: 38px; height: 22px; border-radius: 999px; background: var(--accent); position: relative; flex: 0 0 auto; }
.spec-comp .switch i { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: #0a0a0c; border-radius: 50%; display: block; }
.spec-comp .gauge-mini { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.spec-comp .meter { height: 6px; flex: 1; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; position: relative; }
.spec-comp .meter i { position: absolute; left:0; top:0; bottom:0; right: 36%; background: var(--accent); border-radius: 999px; }
.spec-comp .lbl-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; }

.spec-code .code, .spec-schema .code { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--fg); flex: 1; overflow: auto; white-space: pre; scrollbar-width: thin; }
.spec-code .code .ln, .spec-schema .code .ln { color: var(--fg-faint); display: inline-block; width: 22px; text-align: right; margin-right: 14px; user-select: none; }
.spec-code .code .com, .spec-schema .code .com { color: var(--fg-faint); }
.spec-code .code .key, .spec-schema .code .key { color: #b6e3ff; }
.spec-code .code .str, .spec-schema .code .str { color: var(--accent); }
.spec-code .code .tag, .spec-schema .code .tag { color: #c1b5ff; }
.spec-code .code .pun, .spec-schema .code .pun { color: var(--fg-dim); }
.spec-code .code .num, .spec-schema .code .num { color: #b6e3ff; }
