/* Firmament — concept by Gabriel Cerezo */
:root {
  --bg-deep: #03060e;
  --bg-mid: #071022;
  --bg-soft: #0f1a30;
  --accent: #d4a574;
  --glow: #e8c794;
  --line: #8ba3c7;
  --star: #f5f0e1;
  --text: #e0e3eb;
  --text-mid: #9aa1b3;
  --text-dim: #7b8295;
  --rule: rgba(212, 165, 116, 0.22);
  --rule-cool: rgba(139, 163, 199, 0.16);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
kbd {
  font-family: var(--sans); font-size: 0.78em; padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--rule); color: var(--glow); font-style: normal;
}
::selection { background: rgba(212, 165, 116, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--glow); color: var(--bg-deep); text-decoration: none; font-size: 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .5s ease;
}
.btn-gold { background: var(--glow); color: var(--bg-deep); }
.btn-gold:hover { background: #f3dcb3; box-shadow: 0 0 32px rgba(232, 199, 148, 0.35); }
.btn-ghost { border-color: rgba(232, 199, 148, 0.4); color: var(--glow); background: rgba(3, 6, 14, 0.3); }
.btn-ghost:hover { border-color: var(--glow); background: rgba(232, 199, 148, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .5s ease, border-color .5s ease, backdrop-filter .5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(3, 6, 14, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--rule-cool);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--serif); font-size: 20px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--star);
}
.brand-star { width: 16px; height: 16px; fill: var(--glow); }
.menu { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.menu a:not(.btn) {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--text-mid);
  transition: color .3s ease; padding: 6px 0;
}
.menu a:not(.btn):hover { color: var(--glow); }
.menu .btn { padding: 10px 20px; font-size: 11px; }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--rule); border-radius: 50%; cursor: pointer;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after {
    display: block; width: 16px; height: 1px; background: var(--glow); position: relative; transition: transform .35s ease, background-color .2s;
  }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -5px; }
  .menu-lines::after { top: 5px; }
  .menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-5px) rotate(-45deg); }
  .menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: rgba(3, 6, 14, 0.97);
    border-bottom: 1px solid var(--rule-cool);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .menu.open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }
  .menu li { border-bottom: 1px solid var(--rule-cool); }
  .menu a:not(.btn) { display: block; padding: 16px 0; font-size: 13px; }
  .menu-cta { border: 0 !important; padding-top: 20px; }
  .menu .btn { justify-content: center; width: 100%; padding: 14px; }
  .site-header.menu-open { background: rgba(3, 6, 14, 0.97); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; min-height: clamp(600px, 100svh, 1040px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(15, 26, 48, 0.9), transparent 70%),
    radial-gradient(1px 1px at 12% 24%, #f5f0e1 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 70%, #f5f0e1 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 32%, #f5f0e1 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 82%, #9ca3b8 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 60%, #9ca3b8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 48%, #e8c794 50%, transparent 51%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-mid) 75%, var(--bg-deep));
}
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg-deep));
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 112px; padding-bottom: 120px; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero-title {
  font-family: var(--serif); font-weight: 300; color: var(--star);
  font-size: clamp(44px, 12.5vw, 168px); line-height: 0.95;
  letter-spacing: 0.14em; margin-right: -0.14em; /* optically centre tracked caps */
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(232, 199, 148, 0.18);
}
.hero-rule { display: block; width: 64px; height: 1px; background: var(--accent); opacity: .6; margin: clamp(24px, 3.4vw, 40px) 0 clamp(18px, 2.4vw, 26px); }
.hero-tag { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 34px); color: var(--text); line-height: 1.3; max-width: 22ch; }
.hero-sub { margin-top: 18px; max-width: 48ch; color: var(--text-mid); font-size: clamp(15px, 1.3vw, 17px); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
}
.hero-meta strong { color: var(--glow); font-weight: 500; margin-right: 4px; }
@media (max-width: 640px) {
  .hero { justify-content: flex-start; }
  .hero-inner { padding-top: 120px; padding-bottom: 32px; }
  .hero-meta { position: static; gap: 8px 20px; font-size: 10px; padding-bottom: 72px; max-width: 320px; }
}
@media (max-width: 520px) {
  .hero-title { letter-spacing: 0.1em; margin-right: -0.1em; }
}

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Section heads ---------- */
section { position: relative; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.sec-num {
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent);
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.sec-num::after { content: ""; width: 40px; height: 1px; background: var(--rule); }
.sec-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; color: var(--star); max-width: 18ch; }
.sec-aside { color: var(--text-mid); max-width: 40ch; font-size: 15px; }

/* ---------- Premise ---------- */
.premise { padding-top: clamp(96px, 12vw, 168px); padding-bottom: clamp(80px, 10vw, 140px); }
.premise-quote {
  font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4.4vw, 54px); line-height: 1.18; color: var(--star);
  max-width: 24ch; text-wrap: balance;
}
.premise-cols {
  margin-top: clamp(40px, 5vw, 64px); margin-left: auto; max-width: 760px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; color: var(--text-mid);
  border-top: 1px solid var(--rule-cool); padding-top: 28px;
}
@media (max-width: 680px) { .premise-cols { grid-template-columns: 1fr; } }

/* ---------- How ---------- */
.how { padding: clamp(80px, 9vw, 128px) 0; border-top: 1px solid var(--rule-cool); background: linear-gradient(180deg, var(--bg-deep), var(--bg-mid)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.step { border-top: 1px solid var(--rule); padding-top: 24px; }
.step-art { width: 100%; height: auto; aspect-ratio: 5 / 3; margin-bottom: 22px; background: rgba(15, 26, 48, 0.55); border-radius: 4px; }
.step-num { font-size: 11px; letter-spacing: 0.24em; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-family: var(--serif); font-size: 28px; color: var(--star); margin-bottom: 10px; }
.step p:not(.step-num) { color: var(--text-mid); font-size: 15px; }
.s-dim { fill: #9ca3b8; opacity: .55; }
.s-on { fill: var(--star); }
.s-halo { fill: rgba(139, 163, 199, 0.22); }
.s-gold { fill: var(--glow); }
.s-glow { fill: rgba(232, 199, 148, 0.06); }
.l-draw { stroke: var(--line); stroke-width: 1.4; }
.l-dash { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; opacity: .6; }
.l-gold { stroke: var(--accent); stroke-width: 1.5; fill: none; opacity: .85; }
.how-notes { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.note { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--rule-cool); border-radius: 4px; background: rgba(3, 6, 14, 0.4); }
.note h3 { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--glow); margin-bottom: 10px; }
.note p { color: var(--text-mid); font-size: 15px; }
.note em { color: var(--text); font-style: normal; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .how-notes { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 140px 1fr; column-gap: 20px; }
  .step-art { grid-row: span 3; margin: 0; }
}
@media (max-width: 480px) {
  .step { grid-template-columns: 1fr; }
  .step-art { grid-row: auto; margin-bottom: 18px; }
}

/* ---------- Play ---------- */
.play { padding: clamp(80px, 9vw, 128px) 0; background: var(--bg-mid); border-top: 1px solid var(--rule-cool); }
.sky-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 120px); min-height: 420px;
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  background: linear-gradient(180deg, #03060e, #071022);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(3, 6, 14, 0.6);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
#sky.on-star { cursor: pointer; }
.sky-frame.panning #sky { cursor: grabbing; }
#sky:focus-visible { outline: none; }
.sky-frame:has(#sky:focus-visible) { outline: 2px solid var(--glow); outline-offset: 3px; }
.sky-noscript { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--text-mid); font-family: var(--serif); font-style: italic; font-size: 20px; }
.catalogue .sky-noscript { position: static; }

.hud { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { top: 0; align-items: flex-start; }
.hud-bottom { bottom: 0; align-items: flex-end; background: linear-gradient(0deg, rgba(3, 6, 14, 0.75), transparent); padding-top: 32px; }
.hud-count { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; pointer-events: none; }
.hud-num { font-family: var(--serif); font-size: 26px; color: var(--star); line-height: 1; }
.hud-label { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mid); }
.hud-dots { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 10px; }
.hud-dots i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid rgba(232, 199, 148, 0.4); transition: background-color .6s ease, box-shadow .6s ease; }
.hud-dots i.on { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 8px rgba(232, 199, 148, .6); }
.hud-dots i.gap { margin-left: 6px; }
.sky-status {
  font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; color: var(--text);
  max-width: 46ch; text-shadow: 0 1px 8px #03060e; pointer-events: none;
}
.hud-tools { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn, .pill-btn {
  height: 40px; min-width: 40px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 14, 0.55); border: 1px solid rgba(232, 199, 148, 0.28); color: var(--glow);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .3s ease, background-color .3s ease;
}
.icon-btn:hover, .pill-btn:hover { border-color: var(--glow); background: rgba(232, 199, 148, 0.1); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pill-btn { padding: 0 18px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
#sound-btn .snd-on { display: none; }
#sound-btn[aria-pressed="true"] .snd-on { display: inline; }
#sound-btn[aria-pressed="true"] .snd-off { display: none; }

.drag-chip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 10px 18px; border-radius: 999px; background: rgba(3, 6, 14, 0.7); border: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glow);
  pointer-events: none; opacity: 0; transition: opacity .6s ease; white-space: nowrap;
}
.drag-chip.show { opacity: 1; }

.revelation {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px;
  background: rgba(3, 6, 14, 0.82); cursor: pointer;
  opacity: 0; transition: opacity 1s ease;
}
.revelation.show { opacity: 1; }
.rv-card { max-width: 560px; text-align: center; cursor: default; }
.rv-kicker { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-mid); }
.rv-name { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--accent); font-size: clamp(36px, 6vw, 56px); margin: 10px 0 22px; line-height: 1.05; }
.rv-lines p {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.55; color: var(--text);
  opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s ease;
}
.revelation.show .rv-lines p { opacity: 1; transform: none; }
.rv-close { margin-top: 28px; opacity: 0; transition: opacity .6s ease 1.6s, border-color .4s, background-color .4s; }
.revelation.show .rv-close { opacity: 1; }

.log { margin-top: 28px; border-top: 1px solid var(--rule-cool); padding-top: 22px; }
.log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.log-head h3 { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); font-weight: 500; font-family: var(--sans); }
.text-btn { background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 12px; letter-spacing: 0.08em; color: var(--text-mid); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.text-btn:hover { color: var(--glow); }
.text-btn.confirm { color: var(--glow); }
.log-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.log-list li { display: inline-flex; align-items: baseline; gap: 10px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; }
.log-list li b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; color: var(--glow); }
.log-list li time { color: var(--text-dim); font-size: 11px; letter-spacing: 0.08em; }
.log-list li.log-empty { border: 0; padding: 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--text-mid); }
.log-list li.fresh { animation: logIn 1.2s ease; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); box-shadow: 0 0 0 0 rgba(232,199,148,.4); } to { opacity: 1; transform: none; box-shadow: 0 0 0 10px rgba(232,199,148,0); } }

@media (max-width: 760px) {
  .sky-frame { aspect-ratio: auto; height: min(72svh, 640px); max-height: none; min-height: 440px; border-radius: 4px; }
  .sky-status { font-size: 16px; }
  .hud { padding: 12px; }
  .hud-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .hud-tools { justify-content: flex-end; }
  .play .wrap { padding-left: 12px; padding-right: 12px; }
  .play .sec-head, .play .log { padding: 0 8px; }
}

/* ---------- Catalogue ---------- */
.catalogue { padding: clamp(80px, 9vw, 128px) 0; border-top: 1px solid var(--rule-cool); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.card {
  position: relative; border: 1px solid var(--rule-cool); border-radius: 4px; padding: 18px 20px 22px;
  background: linear-gradient(180deg, rgba(15, 26, 48, 0.6), rgba(7, 16, 34, 0.3));
  transition: border-color .6s ease, transform .6s ease, box-shadow .6s ease;
  display: flex; flex-direction: column;
}
.card-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim); }
.card-kind { color: var(--text-dim); }
.card-art { margin: 14px auto 16px; width: 100%; max-width: 220px; aspect-ratio: 1; }
.card-art svg { width: 100%; height: 100%; }
.card h3 { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--text-mid); }
.card-hint { margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.card-frag { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--text); }
.card-meta { margin-top: auto; padding-top: 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.card.found { border-color: rgba(212, 165, 116, 0.35); }
.card.found h3 { color: var(--glow); font-style: italic; }
.card.found .card-meta { color: var(--accent); }
.card.found:hover { transform: translateY(-3px); box-shadow: 0 20px 60px -30px rgba(232, 199, 148, 0.35); }
.card.fresh { animation: cardGlow 2.4s ease; }
@keyframes cardGlow { 0% { box-shadow: 0 0 0 0 rgba(232,199,148,.5); } 100% { box-shadow: 0 0 0 24px rgba(232,199,148,0); } }
.c-star { fill: #9ca3b8; opacity: .5; }
.found .c-star { fill: var(--glow); opacity: 1; }
.c-line { stroke: var(--accent); stroke-width: 1.5; opacity: .75; stroke-linecap: round; }
.c-bg { fill: rgba(3, 6, 14, 0.55); }

/* ---------- About ---------- */
.about { padding: clamp(80px, 9vw, 128px) 0; border-top: 1px solid var(--rule-cool); background: linear-gradient(180deg, var(--bg-deep), var(--bg-mid)); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 clamp(32px, 6vw, 96px); }
.about-grid .sec-head { grid-row: span 2; }
.about-body p { color: var(--text-mid); margin-bottom: 18px; max-width: 60ch; }
.about-body .lede { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--star); }
.credits { margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--rule); }
.credits div { padding: 16px 0; border-bottom: 1px solid var(--rule-cool); }
.credits dt { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.credits dd { margin: 0; font-family: var(--serif); font-size: 19px; color: var(--text); line-height: 1.35; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .sec-head { grid-row: auto; }
}
@media (max-width: 520px) { .credits { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule-cool); padding: 64px 0 96px; }
.foot { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px 40px; }
.foot-brand { font-family: var(--serif); letter-spacing: 0.32em; text-transform: uppercase; font-size: 18px; color: var(--star); }
.foot-line { font-family: var(--serif); font-style: italic; color: var(--text-mid); font-size: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-links a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid); text-decoration: none; }
.foot-links a:hover { color: var(--glow); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Badge ---------- */
.badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  padding: 7px 12px; border-radius: 999px; text-decoration: none;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mid);
  background: rgba(3, 6, 14, 0.72); border: 1px solid var(--rule-cool);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .3s ease, border-color .3s ease, opacity .4s ease, transform .4s ease;
}
.badge:hover { color: var(--glow); border-color: var(--rule); }
.badge.tuck { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 520px) { .badge { left: 10px; bottom: 10px; font-size: 9px; padding: 6px 10px; letter-spacing: 0.14em; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 14px 14px 16px; }
  .card-top { font-size: 9px; letter-spacing: 0.16em; }
  .card-kind { display: none; }
  .card-art { margin: 10px auto 12px; }
  .card h3 { font-size: 20px; }
  .card-hint { font-size: 12px; line-height: 1.45; }
  .card-frag { font-size: 15px; line-height: 1.45; }
  .card-meta { font-size: 9px; letter-spacing: 0.1em; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(5, 1fr); }
  .card-frag { font-size: 16px; }
  .card h3 { font-size: 24px; }
}
