/* Hanza Games — studio site. One stylesheet, no framework.
   Tokens first; components use tokens only. Dark by design (the games' art carries the colour). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* colour */
  --ink: #0a0e17;
  --ink-2: #0e1320;
  --night: #131a2a;
  --night-2: #1a2336;
  --line: rgba(244, 241, 234, 0.09);
  --line-strong: rgba(244, 241, 234, 0.18);
  --paper: #f4f1ea;
  --muted: #a6adbd;
  --faint: #7f889b;
  --accent: #ffb547;
  --accent-hover: #ffc56b;
  --accent-ink: #1b1305;
  --teal: #3de0d2;

  /* type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1rem + 0.6vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);

  /* space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--step-0)/1.65 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p a, li a, dd a { color: var(--accent); }
p a:hover, li a:hover, dd a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: min(780px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

.eyebrow {
  font: 600 var(--step--1)/1 var(--font-display);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.34em; text-decoration: none;
  font: 700 1.06rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase;
}
.wordmark .wm-2 { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--paper); background: var(--night); }
.nav a[aria-current="page"] { color: var(--paper); }

/* mobile menu: <details>, works without JavaScript */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 18px; height: 2px; background: var(--paper); border-radius: 2px; position: relative; transition: transform 0.25s var(--ease);
}
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; }
.menu summary span::after { top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
.menu nav {
  position: absolute; right: 0; top: 54px; min-width: 210px; padding: 8px;
  background: var(--night); border: 1px solid var(--line-strong); border-radius: var(--radius-m); box-shadow: var(--shadow);
  display: grid;
}
.menu nav a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu nav a:hover { background: var(--night-2); }

@media (max-width: 720px) {
  .site-header .nav { display: none; }
  .menu { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-display); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); background: rgba(244, 241, 234, 0.02); }
.btn-ghost:hover { border-color: var(--paper); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn small { font: 500 0.78rem/1 var(--font-body); opacity: 0.8; }
.btn-stack { flex-direction: column; gap: 4px; padding-block: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 860px); display: flex; align-items: flex-end;
  padding-block: clamp(120px, 18vh, 200px) clamp(56px, 9vh, 104px);
}
/* the art sits to the right so the headline stays in the dark sky; the left edge fades into the page */
.hero-media { position: absolute; inset: 0 0 0 clamp(0px, 30vw, 520px); z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) clamp(0px, 30vw, 520px), rgba(10, 14, 23, 0.5) calc(clamp(0px, 30vw, 520px) + 14vw), rgba(10, 14, 23, 0) 78%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 14, 23, 0) 34%);
}
.hero h1 { font-size: var(--step-4); max-width: 13ch; margin-block: 22px 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 36px; }

@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 240px; }
  .hero-media { inset: 0; }
  .hero-media img { object-position: 64% 30%; }
  .hero::before { background: linear-gradient(0deg, var(--ink) 18%, rgba(10, 14, 23, 0.55) 60%, rgba(10, 14, 23, 0.25) 100%); }
}

/* ---------- section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); margin-top: 16px; }
.section-head p { color: var(--muted); max-width: 46ch; }

/* ---------- game cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.game-card {
  grid-column: span 8; position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--night);
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.game-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card-media { position: absolute; inset: 0; z-index: -2; }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.game-card:hover .game-card-media img { transform: scale(1.04); }
.game-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 14, 23, 0.96) 8%, rgba(10, 14, 23, 0.55) 46%, rgba(10, 14, 23, 0) 72%);
}
.game-card-body { padding: clamp(24px, 3vw, 36px); }
.game-card h3 { font-size: var(--step-2); }
.game-card h3 span { display: block; font: 500 var(--step--1)/1.4 var(--font-body); letter-spacing: 0.04em; color: var(--muted); margin-top: 8px; }
.game-card p { color: var(--muted); margin-top: 14px; max-width: 48ch; }
.game-card .more { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font: 600 0.95rem/1 var(--font-display); color: var(--accent); }
.game-card:hover .more .arrow { transform: translateX(4px); }
.more .arrow { transition: transform 0.2s var(--ease); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font: 500 0.78rem/1 var(--font-body); letter-spacing: 0.02em; color: var(--paper);
  padding: 7px 11px; border-radius: 999px; background: rgba(244, 241, 234, 0.08); border: 1px solid var(--line);
}
.tag-live { color: var(--accent-ink); background: var(--accent); border-color: transparent; }

.placeholder-card {
  grid-column: span 4; border-radius: var(--radius-l); border: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 36px);
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 181, 71, 0.07), transparent 60%), var(--ink-2);
}
.placeholder-card { position: relative; overflow: hidden; }
.placeholder-card::before, .placeholder-card::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); pointer-events: none;
}
.placeholder-card::before { width: 260px; height: 260px; right: -70px; top: -70px; }
.placeholder-card::after { width: 120px; height: 120px; right: 0; top: 0; border-color: rgba(255, 181, 71, 0.35); box-shadow: inset 0 0 40px rgba(255, 181, 71, 0.12); }
.placeholder-card h3 { font-size: var(--step-1); }
.placeholder-card p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

@media (max-width: 900px) {
  .game-card, .placeholder-card { grid-column: 1 / -1; }
  .game-card { min-height: 420px; }
  .placeholder-card { min-height: 180px; }
}

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.principle { background: var(--ink); padding: clamp(28px, 3.4vw, 44px); }
.principle .num { font: 600 var(--step--1)/1 var(--font-display); color: var(--accent); letter-spacing: 0.1em; }
.principle h3 { font-size: var(--step-1); margin-top: 26px; }
.principle p { color: var(--muted); margin-top: 12px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* ---------- contact band ---------- */
.band {
  border-radius: var(--radius-l); border: 1px solid var(--line);
  background: radial-gradient(80% 140% at 0% 0%, rgba(255, 181, 71, 0.14), transparent 55%), var(--night);
  padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.band h2 { font-size: var(--step-3); }
.band p { color: var(--muted); margin-top: 12px; max-width: 46ch; }

/* ---------- game page ---------- */
.game-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(140px, 22vh, 240px) clamp(48px, 8vh, 88px);
}
.game-hero-media { position: absolute; inset: 0; z-index: -2; }
.game-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.game-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--ink) 4%, rgba(10, 14, 23, 0.6) 46%, rgba(10, 14, 23, 0.2) 100%),
    linear-gradient(90deg, rgba(10, 14, 23, 0.85) 0%, rgba(10, 14, 23, 0) 60%);
}
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--paper); }
.game-title { font-size: var(--step-4); }
.game-title span { display: block; font-size: 0.36em; letter-spacing: 0.02em; color: var(--accent); margin-top: 14px; font-weight: 500; }
.game-hero .lead { margin-block: 22px 30px; max-width: 46ch; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--line); gap: 1px; }
.fact { background: var(--ink-2); padding: 20px 22px; }
.fact dt { font-size: var(--step--1); color: var(--faint); }
.fact dd { font: 600 1.05rem/1.3 var(--font-display); margin-top: 6px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split h2 { font-size: var(--step-3); margin-top: 16px; }
.split p { color: var(--muted); margin-top: 18px; }
.split figure img { border-radius: var(--radius-l); border: 1px solid var(--line); box-shadow: var(--shadow); }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--ink-2);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.3s, background 0.3s;
}
.feature:hover { border-color: var(--line-strong); background: var(--night); }
.feature img { width: 132px; height: 132px; object-fit: contain; margin: -4px 0 6px -6px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.planets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; counter-reset: p; }
.planets li {
  counter-increment: p; font: 500 0.92rem/1 var(--font-display); padding: 10px 14px 10px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); display: inline-flex; gap: 10px; align-items: center;
}
.planets li::before { content: counter(p); font-size: 0.75rem; color: var(--accent); }
.planets li:last-child { border-color: var(--accent); }

.checklist { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.52em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.checklist strong { color: var(--paper); font-weight: 600; }

.download {
  border-radius: var(--radius-l); border: 1px solid var(--line);
  background: radial-gradient(90% 140% at 100% 0%, rgba(61, 224, 210, 0.1), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgba(255, 181, 71, 0.12), transparent 60%), var(--night);
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.download h2 { font-size: var(--step-3); }
.download p { color: var(--muted); margin-top: 14px; }
.download .fine { font-size: var(--step--1); color: var(--faint); margin-top: 18px; }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about h2 { font-size: var(--step-3); margin-top: 16px; }
.about p { color: var(--muted); }
.about p + p { margin-top: 16px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* store row (Atropion): Google Play test sign-up + store badges, "coming soon" until live */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 20px 8px 16px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(10, 14, 23, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--paper); text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-text { display: grid; gap: 3px; line-height: 1.05; }
.store-text small { font: 500 0.72rem/1.1 var(--font-body); color: var(--muted); letter-spacing: 0.02em; }
.store-text strong { font: 600 1.05rem/1.1 var(--font-display); }
.store-btn[aria-disabled="true"] { cursor: default; pointer-events: none; opacity: 0.72; }
.store-btn.is-live { background: var(--accent); border-color: transparent; color: var(--accent-ink); opacity: 1; }
.store-btn.is-live small { color: rgba(27, 19, 5, 0.75); }
.store-btn.is-live:hover { background: var(--accent-hover); transform: translateY(-1px); }
.stores-note { margin-top: 14px; font-size: var(--step--1); color: var(--muted); }

/* ---------- prose (legal, support) ---------- */
.page-head { padding-block: clamp(72px, 12vw, 128px) clamp(32px, 5vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: var(--step-3); margin-top: 18px; }
.page-head p { color: var(--muted); margin-top: 16px; }

.prose { padding-bottom: var(--section); }
.prose h2 { font-size: var(--step-2); margin-top: 56px; scroll-margin-top: 96px; }
.prose h3 { font-size: var(--step-1); margin-top: 32px; }
.prose p, .prose ul, .prose ol { margin-top: 16px; color: #cfd3dc; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--paper); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfd3dc; }
.prose th { font: 600 0.85rem/1.3 var(--font-display); color: var(--paper); letter-spacing: 0.02em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); margin-top: 20px; }
.table-wrap table { margin-top: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--ink-2); padding: 22px 26px; }
.toc p { margin: 0; font: 600 var(--step--1)/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.toc ol { margin-top: 14px; columns: 2; column-gap: 32px; display: block; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--paper); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--ink-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font: 600 1.05rem/1.4 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 22px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }

.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(28px, 4vw, 44px);
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 181, 71, 0.1), transparent 60%), var(--night);
}
.contact-card h2 { font-size: var(--step-2); margin: 0; }
.contact-card p { color: var(--muted); margin-top: 12px; }
.contact-card .btn { margin-top: 22px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.notfound .code { font: 700 clamp(5rem, 18vw, 11rem)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.notfound h1 { font-size: var(--step-2); margin-top: 8px; }
.notfound p { color: var(--muted); margin: 14px auto 28px; max-width: 40ch; }
.notfound .actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); padding-block: 56px 40px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font: 600 var(--step--1)/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--paper); }
.footer-about p { margin-top: 16px; max-width: 34ch; font-size: 0.95rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step--1); color: var(--faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.9s var(--ease) both; }
  .reveal-2 { animation-delay: 0.08s; }
  .reveal-3 { animation-delay: 0.16s; }
  .reveal-4 { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
