/* ============ Theme ============ */
:root {
  --bg: #f6f8fb;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #5b6477;
  --border: #e3e8ef;
  --accent: #047857;
  --accent-strong: #065f46;
  --accent-2: #f59e0b;
  --accent-soft: #e7f7f0;
  --sky: #0ea5e9;
  --grad: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  --glow-1: rgba(16, 185, 129, .18);
  --glow-2: rgba(14, 165, 233, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 20px 40px -12px rgba(15, 23, 42, .18);
  --header-bg: rgba(255, 255, 255, .72);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-2: #0e1524;
  --surface: #111a2b;
  --surface-2: #0e1626;
  --text: #e7ecf3;
  --muted: #94a0b4;
  --border: #1f2a3d;
  --accent: #34d399;
  --accent-strong: #6ee7b7;
  --accent-2: #fbbf24;
  --accent-soft: rgba(52, 211, 153, .12);
  --sky: #38bdf8;
  --glow-1: rgba(16, 185, 129, .16);
  --glow-2: rgba(14, 165, 233, .14);
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -16px rgba(0, 0, 0, .7);
  --header-bg: rgba(10, 15, 26, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1a;
    --bg-2: #0e1524;
    --surface: #111a2b;
    --surface-2: #0e1626;
    --text: #e7ecf3;
    --muted: #94a0b4;
    --border: #1f2a3d;
    --accent: #34d399;
    --accent-strong: #6ee7b7;
    --accent-2: #fbbf24;
    --accent-soft: rgba(52, 211, 153, .12);
    --sky: #38bdf8;
    --glow-1: rgba(16, 185, 129, .16);
    --glow-2: rgba(14, 165, 233, .14);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -16px rgba(0, 0, 0, .7);
    --header-bg: rgba(10, 15, 26, .7);
    color-scheme: dark;
  }
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* Soft animated glow behind the top of every page */
/* Sized and animated so they never extend past the right edge (no sideways scroll on phones) */
body::before, body::after {
  content: "";
  position: absolute;
  z-index: -1;
  height: 620px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
body::before { top: -260px; left: -160px; width: min(620px, 80vw); background: var(--glow-1); animation: drift 18s ease-in-out infinite alternate; }
body::after { top: -200px; right: 48px; width: min(620px, 70vw); background: var(--glow-2); animation: drift-back 22s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(80px, 60px) scale(1.08); }
}
@keyframes drift-back {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-90px, 70px) scale(1.08); }
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.2; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.logo-mark { width: 32px; height: 32px; flex: none; transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; white-space: nowrap;
  font-size: .92rem; font-weight: 600; padding: 7px 12px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; gap: 6px; }
.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 10px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .site-header.open .nav { opacity: 1; transform: none; pointer-events: auto; }
}

/* ============ Page intro ============ */
.intro { padding: 40px 0 12px; }
.intro h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 10px; font-weight: 800; }
.intro p { color: var(--muted); margin: 0; max-width: 680px; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ============ Cards & calculator layout ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin: 20px 0 40px; align-items: start; }
.calc > * { min-width: 0; }
.calc > .card:last-child { position: sticky; top: 84px; }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc > .card:last-child { position: static; }
}
@media (max-width: 420px) { .card { padding: 18px; } }

/* Fields */
.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.field-head label { min-width: 0; }
.field label { font-weight: 600; font-size: .94rem; }
.field input[type="number"], .field select {
  width: 150px; padding: 8px 12px; text-align: right;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input[type="number"]:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.field input[type="number"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
@media (max-width: 420px) { .field input[type="number"] { width: 120px; } }

/* Range slider with filled track (--fill set by JS) */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 99px; margin: 8px 0;
  background: linear-gradient(90deg, #10b981, #0ea5e9) 0 / var(--fill, 50%) 100% no-repeat, var(--bg-2);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(5, 150, 105, .35);
  transition: transform .15s var(--ease), box-shadow .15s;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(5, 150, 105, .35);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.22); box-shadow: 0 0 0 8px var(--accent-soft); }
.range-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 9px;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .25s var(--ease), color .2s, box-shadow .25s;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }

.subhead { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 28px 0 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Results */
.result-main {
  text-align: center; padding: 22px 16px; margin: -8px -8px 20px;
  border-radius: 14px;
  background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 70%);
}
.result-main .label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.result-main .value {
  font-size: clamp(2rem, 5.5vw, 2.8rem); font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-rows { display: grid; gap: 4px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed var(--border); }
.result-row:last-child { border-bottom: 0; }
.result-row span:first-child { color: var(--muted); }
.result-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }

.donut { display: block; margin: 20px auto 0; width: 190px; height: 190px; }
.donut circle { transition: stroke-dasharray .7s var(--ease); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { background: var(--surface-2); font-weight: 700; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.strong, tr.strong td { font-weight: 800; }

section > h2, .related h2 { font-size: 1.45rem; margin: 48px 0 16px; }

/* Regime comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.compare .box { border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px; text-align: center; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.compare .box.win { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.compare .box .label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.compare .box .amt { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.verdict { text-align: center; font-weight: 700; color: var(--accent); margin-bottom: 18px; }

/* ============ Article content ============ */
.content { max-width: 760px; }
.content h2 { font-size: 1.45rem; margin: 48px 0 12px; }
.content h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.content p, .content li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.content li { margin-bottom: 6px; }
.formula {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 16px 20px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .95rem; overflow-x: auto;
}
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 0 18px; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s;
}
details:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
details[open] { box-shadow: var(--shadow); }
summary {
  font-weight: 700; cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details[open] > :not(summary) { animation: fadeUp .35s var(--ease); }
details p { margin: 0 0 16px; }

.contact-card { display: flex; flex-direction: column; gap: 4px; max-width: 420px; margin: 24px 0; }
.contact-card .label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-card a { font-size: 1.2rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; }

.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 36px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ad-slot { margin: 24px 0; min-height: 0; }

/* ============ Tool cards ============ */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--text); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tool-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 8px;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.tool-icon .icon { width: 22px; height: 22px; }
.tool-card:hover .tool-icon { transform: scale(1.08) rotate(-6deg); background: var(--grad); color: #fff; }
.tool-card h2, .tool-card h3 { font-size: 1.08rem; margin: 0; }
.tool-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.tool-go { margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--accent); }
.tool-go span { display: inline-block; transition: transform .3s var(--ease); }
.tool-card:hover .tool-go span { transform: translateX(4px); }

.related { margin-top: 56px; }

/* ============ Home ============ */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 36px; } .hero-visual { display: none; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--muted);
}
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 18px 0 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin: 0 0 28px; }

.search { position: relative; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 16px 18px 16px 48px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.stats span { display: inline-flex; align-items: center; gap: 7px; }
.stats svg { width: 16px; height: 16px; color: var(--accent); }

/* Floating preview card */
.hero-visual { position: relative; height: 380px; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px; }
.float-card.main { inset: 0 40px auto 10px; animation: float 7s ease-in-out infinite; }
.float-card.mini { right: 0; bottom: -6px; width: 210px; animation: float 8s ease-in-out -3s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fc-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.fc-value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fc-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 16px; }
.fc-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--grad); opacity: .9; transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.fc-row { display: flex; justify-content: space-between; font-size: .85rem; margin-top: 12px; color: var(--muted); }
.fc-row b { color: var(--text); }
.fc-up { color: var(--accent); font-weight: 800; }

.group-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 40px 0 14px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.no-results { color: var(--muted); padding: 24px 0; display: none; }

.standards { margin-top: 88px; }
.standards-head { margin-bottom: 24px; }
.standards-head h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; margin: 8px 0 0; }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ============ Footer ============ */
.site-footer { margin-top: 88px; padding: 48px 0 28px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--muted); max-width: 320px; margin: 12px 0 0; }
.site-footer h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; opacity: .85; transition: color .2s, opacity .2s; }
.site-footer ul a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* ============ Motion ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.intro > *, .hero-copy > * { animation: fadeUp .7s var(--ease) both; }
.intro > :nth-child(2), .hero-copy > :nth-child(2) { animation-delay: .06s; }
.intro > :nth-child(3), .hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-visual { animation: fadeUp .9s .2s var(--ease) both; }

/* Scroll reveal: JS adds .reveal, then .in when visible */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.not-found { padding: 72px 0 32px; }
.not-found h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-top: 10px; }
