/* 28twenty-8 website. Colors, type and spacing come only from tokens.css (the brand system). */
:root {
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 120ms; --base: 200ms; --slow: 320ms;
  --content: 1200px;
  --header-h: 68px;
}
@media (prefers-reduced-motion: reduce) {
  :root { --fast: 0ms; --base: 0ms; --slow: 0ms; }
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--accent); color: var(--on-accent); border-radius: var(--radius-md); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 640px) { .wrap { padding: 0 var(--space-4); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; }
.brand svg { height: 22px; width: auto; }
.nav { display: flex; gap: var(--space-1); margin-left: auto; }
.nav a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-hover); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn { appearance: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); border: 1px solid var(--line); background: transparent; color: var(--ink-muted); cursor: pointer; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.icon-btn:hover { color: var(--ink); background: var(--surface-hover); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 1020px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: var(--space-3) var(--space-4) var(--space-6); background: var(--surface); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility var(--base); }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: var(--space-3) var(--space-3); font-size: 17px; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
}

/* Buttons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-6); border-radius: var(--radius-md); border: 1px solid transparent; font: 600 15px/1 var(--font-text); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--base) var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 38px; padding: 0 var(--space-4); font-size: 14px; }
.btn-lg { height: 52px; padding: 0 var(--space-8); font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn:disabled { background: var(--surface-hover); color: var(--ink-faint); border-color: var(--line); cursor: not-allowed; box-shadow: none; transform: none; }
.link-arrow { color: var(--accent-text); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Type */
.overline { font-family: var(--font-text); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.h-hero { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.04em; }
.h-xl { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; }
.h-md { font-size: 22px; line-height: 30px; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-muted); max-width: 640px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent-text); }

/* Sections */
section { padding: var(--space-24) 0; }
@media (max-width: 640px) { section { padding: var(--space-16) 0; } }
.section-head { display: grid; gap: var(--space-4); max-width: 760px; margin-bottom: var(--space-12); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 11vw, 140px) 0 var(--space-24); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0); background-size: 32px 32px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%); opacity: 0.7; }
.hero-mark { position: absolute; right: -6%; top: 8%; width: min(46vw, 620px); opacity: 0.07; pointer-events: none; color: var(--brand-electric); }
[data-theme="daylight"] .hero-mark { opacity: 0.08; }
.hero .wrap { position: relative; display: grid; gap: var(--space-8); }
.hero-copy { display: grid; gap: var(--space-6); max-width: 900px; }
.status-pill { display: inline-flex; align-items: center; gap: var(--space-2); justify-self: start; height: 32px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--ink-muted); background: var(--surface-sunken); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Idea composer (from the brand system) */
.composer { display: grid; gap: var(--space-3); max-width: 820px; padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); transition: box-shadow var(--base) var(--ease), border-color var(--base) var(--ease); }
.composer:focus-within { border-color: transparent; box-shadow: var(--shadow-glow); }
.composer label { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; padding: var(--space-1) var(--space-1) 0; }
.composer textarea { width: 100%; min-height: 88px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 18px/28px var(--font-text); padding: var(--space-1); }
.composer textarea::placeholder { color: var(--ink-faint); }
.composer-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; margin: 0; padding: 0; }
.chip { appearance: none; height: 34px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-muted); font: 600 13px/1 var(--font-text); cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.chip:hover { background: var(--surface-hover); color: var(--ink); }
.chip[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-text); }
.composer-note { font-size: 13px; line-height: 18px; color: var(--ink-muted); padding: 0 var(--space-1); }
@media (max-width: 560px) { .composer-bar .btn { width: 100%; } }

/* Plan preview (concept demo) */
.plan { scroll-margin-top: calc(var(--header-h) + 16px); max-width: 820px; display: none; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.plan.show { display: grid; animation: rise var(--slow) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); align-items: baseline; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; background: var(--surface-hover); color: var(--ink-muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-col { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); }
.plan-col h3 { font-family: var(--font-text); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.plan-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.plan-col li::before { content: "→ "; color: var(--accent-text); }

/* Journey steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.step { display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3) 0 var(--space-1); border-radius: var(--radius-pill); color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.step b { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 500 12px/1 var(--font-mono); border: 1px solid var(--line-strong); }
.step.done b { color: var(--success); border-color: var(--line); background: var(--surface-hover); }
.step.current { background: var(--accent-soft); color: var(--accent-text); }
.step.current b { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Cards */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(6, 1fr); }
.grid-5 > :nth-child(-n+3) { grid-column: span 2; }
.grid-5 > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 960px) { .grid-3, .grid-5 { grid-template-columns: 1fr 1fr; } .grid-5 > * { grid-column: auto !important; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; } }
.card { position: relative; display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform var(--base) var(--ease), border-color var(--base) var(--ease), box-shadow var(--base) var(--ease); }
a.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-raised); }
.card .card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-3); }
.card h3 { font-size: 22px; line-height: 28px; letter-spacing: -0.015em; }
.card p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }
.card .more { margin-top: var(--space-2); color: var(--accent-text); font-weight: 600; font-size: 14px; }
.product-name { display: inline-flex; align-items: center; gap: var(--space-2); }
.product-name svg { height: 18px; width: auto; color: var(--accent); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: var(--space-8); } }
.feature-copy { display: grid; gap: var(--space-4); }
.ticks { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-2); color: var(--ink-muted); }
.ticks li::before { content: ""; width: 8px; height: 8px; margin: 8px 0 0 4px; border-radius: 2px; background: var(--accent); }
.ticks strong { color: var(--ink); font-weight: 600; }

/* Visual panels (code-drawn diagrams, no stock imagery) */
.panel { position: relative; border-radius: var(--radius-xl); background: var(--surface-sunken); border: 1px solid var(--line); padding: var(--space-6); overflow: hidden; min-height: 320px; }
.layers { display: grid; gap: var(--space-2); }
.layer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); font-size: 14px; }
.layer .mono { font-size: 12px; color: var(--ink-muted); }
.layer.hl { border-color: var(--accent-text); background: var(--accent-soft); }
.layer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
@media (max-width: 480px) { .layer-row { grid-template-columns: 1fr; } }
.cmd { display: flex; align-items: center; gap: var(--space-3); height: 56px; padding: 0 var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line-strong); font-size: 16px; color: var(--ink); }
.cmd kbd { margin-left: auto; font: 500 12px/1 var(--font-mono); color: var(--ink-muted); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 4px 6px; }
.cmd-caret { width: 2px; height: 22px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.feed { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.feed-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); font-size: 14px; }
.evidence { margin: 0; padding: var(--space-3) var(--space-4); list-style: none; border-radius: var(--radius-md); background: var(--surface-raised); font: 400 12px/18px var(--font-mono); color: var(--ink-muted); display: grid; gap: 4px; }
.evidence li::before { content: "→  "; color: var(--accent-text); }

/* Big statement */
.statement { text-align: center; }
.statement p { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4.2vw, 52px); line-height: 1.12; letter-spacing: -0.03em; max-width: 980px; margin: 0 auto; }
.statement p span { color: var(--ink-faint); }

/* Principles list */
.principles { counter-reset: p; display: grid; gap: 0; }
.principle { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: var(--space-6); padding: var(--space-8) 0; border-top: 1px solid var(--line); align-items: baseline; }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .num { font: 500 14px/1 var(--font-mono); color: var(--accent-text); }
.principle h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; }
.principle p { color: var(--ink-muted); }
@media (max-width: 760px) { .principle { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-6) 0; } }

/* Status legend */
.legend { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; font-size: 13px; color: var(--ink-muted); }

/* CTA band */
.cta { text-align: center; }
.cta .inner { display: grid; justify-items: center; gap: var(--space-6); padding: var(--space-16) var(--space-6); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cta .inner > * { position: relative; }
.cta-mark { position: absolute !important; left: 50%; bottom: -38%; width: 520px; transform: translateX(-50%); color: var(--accent); opacity: 0.08; }

/* Forms */
.form { display: grid; gap: var(--space-4); max-width: 560px; }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.field input, .field textarea, .field select { width: 100%; height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: 400 16px/24px var(--font-text); }
.field textarea { height: auto; min-height: 120px; padding: var(--space-3) var(--space-4); resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.form-msg { font-size: 14px; line-height: 20px; min-height: 20px; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 var(--space-16); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: var(--space-6); position: relative; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-16) 0 var(--space-12); margin-top: var(--space-12); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { font-family: var(--font-text); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.foot a { color: var(--ink); text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--accent-text); }
.foot-brand { display: grid; gap: var(--space-4); align-content: start; }
.foot-brand svg { height: 24px; width: auto; color: var(--ink); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Product showcase: each product's own site in a browser frame. Their brands stay theirs. */
.showcase { display: grid; gap: var(--space-8); }
.show-item { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-12); align-items: center; }
.show-item:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.show-item:nth-child(even) .frame { order: 2; }
@media (max-width: 860px) { .show-item, .show-item:nth-child(even) { grid-template-columns: 1fr; gap: var(--space-6); } .show-item:nth-child(even) .frame { order: 0; } }
.frame { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-raised); box-shadow: var(--shadow-raised); transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease); text-decoration: none; }
.frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.frame-bar { display: flex; align-items: center; gap: var(--space-3); height: 36px; padding: 0 var(--space-3); border-bottom: 1px solid var(--line); background: var(--surface-sunken); }
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.frame-url { flex: 1; max-width: 320px; margin: 0 auto; height: 22px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 1px solid var(--line); font: 500 12px/20px var(--font-mono); color: var(--ink-muted); text-align: center; }
.frame img { width: 100%; height: auto; aspect-ratio: 1200 / 504; object-fit: cover; object-position: top; }
.show-copy { display: grid; gap: var(--space-4); align-content: center; }
.show-copy .kicker { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.show-copy h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.025em; }
.show-copy .their-line { font-family: var(--font-display); font-size: 20px; line-height: 28px; color: var(--ink-muted); letter-spacing: -0.01em; }
.show-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); color: var(--ink-muted); font-size: 15px; }
.show-copy li::before { content: "→ "; color: var(--accent-text); }
.show-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }

/* ───────────── Life: light that follows, motion that explains ─────────────
   Brand rule: light, not paint. Soft electric light may follow the pointer or drift behind a hero;
   no gradient fills on controls or text. Every effect below switches off with reduced motion. */

/* Scroll progress: a hairline of electric at the very top */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Hero: the 28 breathes, a pool of electric light drifts behind the headline */
.hero::before, .page-hero::before { content: ""; position: absolute; width: 720px; height: 720px; left: 50%; top: -260px; margin-left: -120px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-electric) 22%, transparent), transparent); filter: blur(20px); opacity: 0.55; pointer-events: none; animation: drift 18s var(--ease) infinite alternate; }
[data-theme="daylight"] .hero::before, [data-theme="daylight"] .page-hero::before { opacity: 0.35; }
@keyframes drift { 0% { transform: translate(-80px, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.08); } 100% { transform: translate(-20px, 80px) scale(0.96); } }
.hero-mark { animation: breathe 9s ease-in-out infinite; transform-origin: 70% 40%; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14px) scale(1.015); } }
.hero-grid { animation: pan 40s linear infinite; }
@keyframes pan { to { background-position: 32px 32px; } }

/* Headlines arrive in two beats */
.hero-copy > *, .page-hero .wrap > * { animation: arrive 900ms var(--ease) both; }
.hero-copy > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: 180ms; }
.hero .composer, .page-hero .wrap > :nth-child(4) { animation: arrive 900ms var(--ease) 280ms both; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* The live dot pulses */
.status-pill .dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* Spotlight: cards light up under the pointer (JS sets --mx/--my) */
.card, .panel, .frame, .composer, .cta .inner { --mx: 50%; --my: 0%; }
.card::after, .panel::after, .cta .inner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--base) var(--ease); background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand-electric) 12%, transparent), transparent 60%); }
.card:hover::after, .panel:hover::after, .cta .inner:hover::after { opacity: 1; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity var(--base) var(--ease);
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent), transparent 65%);
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before { opacity: 0.9; }
.panel, .cta .inner { position: relative; }

/* Product frames: the site scrolls gently inside the window on hover */
.frame { position: relative; }
.frame img { transition: object-position 2.4s var(--ease), transform var(--slow) var(--ease); }
.frame:hover img { object-position: bottom; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-electric) 0%, transparent); transition: box-shadow var(--slow) var(--ease); }
.frame:hover::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-electric) 60%, transparent); }
.show-item .frame { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.show-item:nth-child(even) .frame { transform: perspective(1400px) rotateY(3deg) rotateX(1deg); }
.show-item .frame:hover { transform: perspective(1400px) rotateY(0) translateY(-4px); }

/* Primary buttons: a quick sheen on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg); background: linear-gradient(90deg, transparent, color-mix(in srgb, white 45%, transparent), transparent); }
.btn-primary:hover::after { transform: translateX(120%) skewX(-20deg); transition: transform 700ms var(--ease); }

/* Nav: a short electric underline grows under the current page */
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--base) var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 1020px) { .nav a::after { display: none; } }

/* Journey panel: steps light up one after another when it comes into view */
.panel.in .step { animation: lit 600ms var(--ease) both; }
.panel.in .step:nth-child(2) { animation-delay: 120ms; } .panel.in .step:nth-child(3) { animation-delay: 240ms; }
.panel.in .step:nth-child(4) { animation-delay: 360ms; } .panel.in .step:nth-child(5) { animation-delay: 480ms; }
.panel.in .step:nth-child(6) { animation-delay: 600ms; } .panel.in .step:nth-child(n+7) { animation-delay: 720ms; }
@keyframes lit { from { opacity: 0.25; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* Statements: the second half brightens as you scroll to it */
@supports (animation-timeline: view()) {
  .statement p span { animation: brighten linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  @keyframes brighten { from { color: var(--ink-faint); } to { color: var(--accent-text); } }
}

/* Overlines get a short leading rule */
.section-head .overline, .page-hero .overline { display: inline-flex; align-items: center; gap: var(--space-3); }
.section-head .overline::before, .page-hero .overline::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.7; }
.section-head.center .overline::before { display: none; }

/* CTA: the big 28 rises slowly behind the call to action */
.cta-mark { animation: rise28 12s ease-in-out infinite alternate; }
@keyframes rise28 { from { transform: translateX(-50%) translateY(10px); } to { transform: translateX(-50%) translateY(-18px); } }

/* Selection in brand colors */
::selection { background: var(--accent); color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .page-hero::before, .hero-mark, .hero-grid, .status-pill .dot, .cta-mark, .hero-copy > *, .page-hero .wrap > *, .hero .composer, .panel.in .step, .progress { animation: none !important; }
  .progress { display: none; }
  .show-item .frame, .show-item:nth-child(even) .frame { transform: none; }
  .frame img { transition: none; }
  .btn-primary::after { display: none; }
}

/* Name roll: an odometer inside the logo's own line. The drawn "-8" slides up, "-eight" and "8" pass through
   the same window, and the drawn "-8" slides back. Hover, tap or focus only. Nothing fades, nothing leaves the line. */
.wm { position: relative; display: inline-block; height: 22px; line-height: 0; clip-path: inset(-1px -260% -7px -1px); }
.wm-svg { height: 22px; width: auto; overflow: visible; }
.wm-tail { transform-box: view-box; }
.wm-roll[hidden] { display: block; }
.wm-roll { position: absolute; left: 84.6%; top: 0; height: 22px; pointer-events: none; }
.wm-roll span { position: absolute; top: 0; left: 0; display: block; height: 22px; line-height: 22px; margin-top: -1px; white-space: nowrap; transform: translateY(160%);
  font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -0.035em; color: currentColor; }
.brand.is-rolling .wm-tail { animation: wm-tail 2.2s cubic-bezier(0.65, 0, 0.35, 1) both; }
.brand.is-rolling .wm-w1 { animation: wm-w1 2.2s cubic-bezier(0.65, 0, 0.35, 1) both; }
.brand.is-rolling .wm-w2 { animation: wm-w2 2.2s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes wm-tail { 0% { transform: none; } 14%, 80% { transform: translateY(-160%); } 80.01% { transform: translateY(160%); } 94%, 100% { transform: none; } }
@keyframes wm-w1 { 0%, 4% { transform: translateY(160%); } 18%, 38% { transform: none; } 52%, 100% { transform: translateY(-160%); } }
@keyframes wm-w2 { 0%, 38% { transform: translateY(160%); } 52%, 70% { transform: none; } 84%, 100% { transform: translateY(-160%); } }
@media (prefers-reduced-motion: reduce) { .brand.is-rolling .wm-tail, .brand.is-rolling .wm-w1, .brand.is-rolling .wm-w2 { animation: none; } }
