/* Shira landing — "Shiranui" palette from module/gui/theme.py.
   Accent and gold are marks and lines only; small primary-coloured text uses --primary-hover (AA on every background). */
:root {
  --window: #FBF6F0;
  --card: #FFFFFF;
  --sidebar: #F5EDE4;
  --border: #E9DCCD;
  --input-border: #D8C6B4;
  --hover: #EFE3D6;
  --text: #2E2420;
  --muted: #75655C;
  --primary: #C4501A;
  --primary-hover: #AE4514;
  --primary-disabled: #E4B79E;
  --accent: #EE7A32;
  --gold: #B8862B;
  --error: #B3261E;
  --success: #2F7D5B;
  --selection: #FADBC6;
  --tint: #FFF1E6;

  --font-display: "Zen Maru Gothic", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: Consolas, ui-monospace, "Cascadia Mono", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --step-3: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem);
  --step-4: clamp(2.25rem, 1.2rem + 3.2vw, 3.75rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(46 36 32 / 0.06);
  --shadow: 0 1px 2px rgb(46 36 32 / 0.05), 0 10px 28px -12px rgb(120 60 20 / 0.22);
  --shadow-lg: 0 2px 6px rgb(46 36 32 / 0.06), 0 30px 70px -24px rgb(120 56 18 / 0.38);

  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--window);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary-hover); text-underline-offset: 3px; }
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.08em 0.38em;
  border-radius: 6px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  white-space: nowrap;
}
kbd { background: var(--card); border-bottom-width: 2px; font-family: var(--font-body); font-weight: 600; }
::selection { background: var(--selection); color: var(--text); }

:focus-visible {
  outline: 3px solid var(--primary-hover);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

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

/* ---------- Type ---------- */
h1, h2, h3, .brand-name, .eyebrow, .btn, .step-num, .req strong, .field-label, .footer-name {
  font-family: var(--font-display);
}
h1 { font-size: var(--step-4); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: var(--step-3); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-hover);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }

.lead, .section-lead { color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); text-wrap: pretty; }

.ink {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(transparent 60%, var(--selection) 60% 92%, transparent 92%);
  padding-inline: 0.06em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms, border-color 200ms, color 200ms, transform 200ms var(--ease-out), box-shadow 200ms;
}
.btn-sm { --btn-h: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 8px 18px -8px rgb(196 80 26 / 0.65);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { background: var(--primary-disabled); box-shadow: none; cursor: progress; transform: none; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--input-border); }
.btn-ghost:hover { border-color: var(--accent); background: #FFF6EE; }
.btn-ghost:active { transform: scale(0.98); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 246 240 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; color: var(--text); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-name { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: color 200ms;
}
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }
@media (min-width: 820px) {
  .site-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 9vw, 128px);
  background:
    radial-gradient(60% 55% at 82% 38%, rgb(250 219 198 / 0.55), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgb(245 237 228 / 0.9), transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 20px; }
.wordmark { width: clamp(150px, 16vw, 196px); margin-block: 4px -6px; filter: drop-shadow(0 6px 10px rgb(120 70 30 / 0.15)); }
.hero .lead { max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 520px) {
  .hero-actions { justify-self: stretch; }
  .hero-actions .btn { flex: 1 1 100%; }
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.9375rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--primary); width: 1.1em; height: 1.1em; }

.hero-shot { position: relative; margin-inline: 4px; }
.hero-shot::before {
  content: ""; position: absolute; z-index: -1;
  width: 78%; aspect-ratio: 1; right: -12%; top: 50%; translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FDE7D6, var(--selection) 70%);
}

.window {
  position: relative;
  border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 0 0 12px;
  background: var(--sidebar); border-bottom: 1px solid var(--border);
  font-size: 0.75rem; color: var(--muted);
}
.window-bar img { width: 16px; height: 16px; border-radius: 4px; }
.window-controls { display: flex; margin-left: auto; height: 100%; }
.window-controls i { position: relative; width: 44px; height: 100%; }
.window-controls i::before, .window-controls i::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.wc-min::before { width: 10px; height: 1px; background: var(--muted); }
.wc-max::before { width: 9px; height: 9px; border: 1px solid var(--muted); border-radius: 2px; }
.wc-close::before, .wc-close::after { width: 12px; height: 1px; background: var(--muted); }
.wc-close::before { rotate: 45deg; }
.wc-close::after { rotate: -45deg; }
.window-img { width: 100%; }

.mascot-sticker {
  position: absolute; left: -14px; bottom: -26px;
  width: clamp(68px, 10vw, 118px); aspect-ratio: 1;
  border-radius: 28%; border: 4px solid var(--card);
  box-shadow: var(--shadow);
  rotate: -8deg;
}
.float-chip {
  position: absolute; right: 10px; bottom: -20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 0.875rem; font-weight: 600; color: var(--text);
}
.float-chip .icon { color: var(--primary); width: 1.05em; height: 1.05em; }

.foxfire { position: absolute; inset: 0; pointer-events: none; }
.foxfire span {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, rgb(238 122 50 / 0.9), rgb(238 122 50 / 0) 70%);
  opacity: 0.55;
}
.foxfire span:nth-child(1) { left: 54%; top: 14%; }
.foxfire span:nth-child(2) { left: 92%; top: 22%; width: 18px; height: 18px; }
.foxfire span:nth-child(3) { left: 48%; top: 78%; width: 9px; height: 9px; }
.foxfire span:nth-child(4) { left: 96%; top: 70%; width: 14px; height: 14px; }
.foxfire span:nth-child(5) { left: 6%; top: 8%; width: 10px; height: 10px; }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shot { margin-right: -24px; }
  .float-chip { right: -12px; bottom: auto; top: 16%; }
}
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-tight-top { padding-top: 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.band { background: var(--sidebar); border-block: 1px solid var(--border); }
.band-pattern::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 220px; pointer-events: none;
  background: url("/assets/seigaiha.svg") 0 0 / 40px 20px repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.band-pattern > .container { position: relative; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 20px; }
.feature {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  transition: transform 250ms var(--ease-out), box-shadow 250ms, border-color 250ms;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #EBC7AA; }
.feature-top { display: flex; align-items: center; gap: 14px; }
.feature-top h3 { font-size: var(--step-2); }
.feature-top small { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; color: var(--muted); padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; vertical-align: 0.25em; margin-left: 4px; }
.feature-icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 14px; background: var(--tint); color: var(--primary);
  box-shadow: inset 0 0 0 1px #F6D9C3;
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-tagline { color: var(--muted); }
.ticks { display: grid; gap: 10px; font-size: 0.96875rem; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px;
  background: var(--gold); rotate: 45deg; border-radius: 1px;
}
.start-on {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--window); border: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text);
}
.start-on span { color: var(--muted); }
.start-on .icon { color: var(--primary); width: 1.05em; height: 1.05em; }
.feature .start-on { margin-top: auto; }
.feature .ticks { margin-bottom: 6px; }

.note-strip {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center;
  margin-top: 24px; padding: 14px 20px; border-radius: var(--radius);
  border: 1px dashed var(--input-border); color: var(--muted); font-size: 0.9375rem;
}
.note-strip .icon { color: var(--success); }

@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- How it works ---------- */
.how-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: start; }
.steps { display: grid; gap: 0; counter-reset: none; }
.step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 25px; top: 56px; bottom: 6px; width: 0;
  border-left: 2px dashed var(--gold); opacity: 0.7;
}
.step:last-child::before { display: none; }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--primary); font-size: 1.5rem; font-weight: 700;
}
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--muted); }
.step em { font-style: normal; font-weight: 600; color: var(--text); }

.how-shot figcaption { margin-top: 14px; color: var(--muted); font-size: 0.875rem; text-align: center; }

.pillars { display: grid; gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.pillar { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 28px); }
.pillar p { color: var(--muted); font-size: 0.96875rem; }

@media (min-width: 1000px) {
  .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .how-shot { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Safety ---------- */
.safety-grid { display: grid; gap: 8px; align-items: center; }
.ledger { position: relative; display: grid; overflow: hidden; }
.ledger-col { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 3vw, 32px); }
.ledger-col + .ledger-col { border-top: 1px solid var(--border); }
.ledger h3 { font-size: 1.0625rem; }
.ledger-list { display: grid; gap: 14px; }
.ledger-list li { display: flex; gap: 12px; align-items: flex-start; }
.ledger-list .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%; stroke-width: 2.4; margin-top: -1px;
}
.is-yes .icon { color: var(--success); background: #E6F2EC; }
.is-no li { font-weight: 600; }
.is-no .icon { color: var(--error); background: #FBE9E7; }
.ledger-foot {
  grid-column: 1 / -1; padding: 16px clamp(22px, 3vw, 32px);
  background: var(--window); border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.9375rem;
}

@media (min-width: 720px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-col + .ledger-col { border-top: 0; border-left: 1px solid var(--border); }
}
@media (min-width: 1000px) {
  .safety-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .safety-grid .section-head { margin-bottom: 0; }
}

/* ---------- Requirements ---------- */
.req-grid {
  display: grid; gap: 1px; overflow: hidden; overflow: clip;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--border);
}
.req { display: grid; gap: 6px; align-content: start; padding: clamp(20px, 2.6vw, 28px); background: var(--card); }
.req dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.req dd { display: grid; gap: 6px; }
.req strong { font-size: var(--step-2); line-height: 1.25; }
.req dd span { color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 640px) { .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .req-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Download ---------- */
.download-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
.download-copy { display: grid; gap: 16px; justify-items: start; }
.download-facts { display: grid; gap: 12px; margin-top: 8px; }
.download-facts li { display: flex; gap: 12px; align-items: flex-start; }
.download-facts .icon { color: var(--primary-hover); margin-top: 2px; }

.ofuda {
  position: relative; display: grid; gap: 14px;
  padding: clamp(28px, 4vw, 40px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.ofuda::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid var(--gold); border-radius: 14px; opacity: 0.55;
}
.ofuda h3 { font-size: var(--step-2); padding-right: 64px; margin-bottom: 4px; }
.seal {
  position: absolute; top: -18px; right: 28px;
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 12px; background: var(--primary); color: #FFFFFF;
  font: 700 1.75rem/1 var(--font-display);
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.85), inset 0 0 0 4px var(--primary);
  rotate: 6deg;
}
.seal.is-stamped { animation: stamp 520ms var(--ease-out); }
@keyframes stamp {
  0% { transform: scale(1.5); opacity: 0; }
  55% { transform: scale(0.92); opacity: 1; }
  100% { transform: scale(1); }
}

.field-label { font-weight: 700; font-size: 0.9375rem; }
.key-field { position: relative; }
.key-field input {
  width: 100%; height: 54px; padding: 0 56px 0 46px;
  border: 1px solid var(--input-border); border-radius: 14px;
  background: var(--card); color: var(--text);
  font: 500 1rem var(--font-mono); letter-spacing: 0.03em;
  transition: border-color 200ms, box-shadow 200ms;
}
.key-field input::placeholder { color: var(--muted); font-family: var(--font-body); letter-spacing: 0; opacity: 1; }
.key-field input:hover { border-color: #C9B39D; }
.key-field input:focus { outline: none; border-color: var(--primary-hover); box-shadow: 0 0 0 4px rgb(238 122 50 / 0.22); }
.key-field input[aria-invalid="true"] { border-color: var(--error); }
.key-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(179 38 30 / 0.16); }
.key-icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.key-toggle {
  position: absolute; right: 5px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
.key-toggle:hover { background: var(--hover); color: var(--text); }
.key-toggle .i-hide, .key-toggle[aria-pressed="true"] .i-show { display: none; }
.key-toggle[aria-pressed="true"] .i-hide { display: block; }
.ofuda .btn { margin-top: 6px; }

.download-status { min-height: 1.6em; font-size: 0.9375rem; }
.download-status:empty { min-height: 0; }
.download-status.is-error {
  color: var(--error); padding: 10px 14px; border-radius: 12px;
  background: #FDF1F0; border-left: 3px solid var(--error);
}
.download-status.is-ok {
  color: var(--text); padding: 10px 14px; border-radius: 12px;
  background: #EEF6F2; border-left: 3px solid var(--success);
}
.download-status strong { font-weight: 700; }
.fine-print { color: var(--muted); font-size: 0.875rem; }

@media (min-width: 1000px) {
  .download-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: var(--window); padding-block: 48px; }
.footer-inner { display: grid; gap: 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; }
.footer-name { font-size: 1.25rem; font-weight: 700; }
.footer-sub, .disclaimer { color: #D2C3B6; font-size: 0.875rem; }
.disclaimer { max-width: 60ch; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px;
  color: var(--window); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.to-top:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent); }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 48px; }
  .to-top { justify-self: end; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .hero-copy > :nth-child(6) { animation-delay: 300ms; }
  .hero-shot { animation: rise 900ms 160ms var(--ease-out) both; }
  .mascot-sticker { animation: bob 6s ease-in-out 1.2s infinite; }
  .float-chip { animation: bob 7s ease-in-out 2s infinite reverse; }
  .foxfire span { animation: flicker 7s ease-in-out infinite; }
  .foxfire span:nth-child(2) { animation-duration: 9s; animation-delay: -3s; }
  .foxfire span:nth-child(3) { animation-duration: 8s; animation-delay: -5s; }
  .foxfire span:nth-child(4) { animation-duration: 10s; animation-delay: -1s; }
  .foxfire span:nth-child(5) { animation-duration: 11s; animation-delay: -6s; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: none; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@keyframes flicker {
  0%, 100% { opacity: 0.25; transform: translate(0, 0) scale(0.9); }
  50% { opacity: 0.75; transform: translate(6px, -22px) scale(1.15); }
}
