/* Phobos site. Colours from the logo: deep space, the wordmark's violet to lavender, Mars's orange. */
:root {
  --bg: #07050f;
  --bg-2: #0d0920;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(206, 190, 250, 0.13);
  --line-2: rgba(206, 190, 250, 0.24);
  --text: #efeaff;
  --body: #ddd6f6;
  --muted: #b4a9d8;
  --faint: #8f85b3;
  --violet: #8b6cf0;
  --violet-deep: #542ea8;
  --lavender: #cebefa;
  --mars: #ff5a1f;
  --mars-hot: #ff7a3d;
  --mars-soft: #ffb08a;
  --gold: #f2b84b;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --radius: 18px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* A still star field and two glows, behind everything. */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 151px 97px, rgba(206, 190, 250, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 87px 173px, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 211px 13px, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 300px 260px, rgba(255, 220, 200, 0.4), transparent 60%);
  background-size: 240px 240px, 330px 330px, 410px 410px, 290px 290px, 520px 520px;
  opacity: 0.55;
}
body::after {
  background:
    radial-gradient(60% 50% at 12% -8%, rgba(139, 108, 240, 0.22), transparent 70%),
    radial-gradient(50% 45% at 105% 105%, rgba(255, 90, 31, 0.11), transparent 70%);
}

img, video, svg { max-width: 100%; }
a { color: var(--lavender); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--text); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--panel-2); padding: 0.1em 0.35em; border-radius: 6px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mars); color: #160803; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
a.pr { font-family: var(--mono); font-size: 0.92em; text-decoration: none; border-bottom: 1px dotted rgba(206, 190, 250, 0.5); }
a.pr:hover { border-bottom-style: solid; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 15, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand img { border-radius: 50%; }
.nav { margin-left: auto; }
.nav ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.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-2); background: var(--panel); }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }
.menu[open] nav { position: absolute; right: 0; top: 54px; min-width: 220px; background: #120c26; border: 1px solid var(--line-2); border-radius: 16px; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu a:hover { background: var(--panel-2); }

/* Buttons */
.btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 12px 18px; border-radius: 14px; text-decoration: none; font-weight: 750; line-height: 1.2;
  border: 1px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn span { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; }
.btn small { font-weight: 500; font-size: 0.78rem; opacity: 0.85; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #1a0904;
  background: linear-gradient(180deg, #ff8a4d 0%, var(--mars) 55%, #e5451a 100%);
  box-shadow: 0 12px 32px -12px rgba(255, 90, 31, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { color: #1a0904; box-shadow: 0 16px 40px -12px rgba(255, 90, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.09); border-color: rgba(206, 190, 250, 0.4); }
.btn-small { padding: 8px 14px; border-radius: 12px; }
.btn-small span, .btn-small { font-size: 0.92rem; }
.icon { flex: none; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 88px 0 72px; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #05040b; }
.hero-media .pic, .hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media img { opacity: 0.6; }
.hero-video { opacity: 0; transition: opacity 0.9s ease; }
.hero-video.is-playing { opacity: 0.66; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 650; color: var(--text); text-decoration: none; background: rgba(13, 9, 32, 0.6); border: 1px solid rgba(255, 122, 61, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-pill:hover { color: #fff; border-color: var(--mars-hot); }
.hero-pill::after { content: "\2192"; color: var(--mars-hot); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mars); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); animation: pulse 2.4s ease-out infinite; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 5, 15, 0.94) 0%, rgba(7, 5, 15, 0.8) 38%, rgba(7, 5, 15, 0.38) 72%, rgba(7, 5, 15, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 5, 15, 0) 28%),
    linear-gradient(180deg, rgba(7, 5, 15, 0.7) 0%, rgba(7, 5, 15, 0) 22%);
}
.hero-shade::after {
  content: ""; position: absolute; left: -10%; right: 30%; bottom: -30%; height: 60%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.28), transparent);
  filter: blur(10px);
  animation: glow 9s ease-in-out infinite;
}
.hero-inner { position: relative; }
.hero-logo { margin: 0 0 18px; line-height: 0; }
.hero-logo img { width: min(502px, 80vw); height: auto; filter: drop-shadow(0 18px 40px rgba(84, 46, 168, 0.55)); animation: float 7s ease-in-out infinite; }
.hero-tagline {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 850; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 14px;
  background: linear-gradient(180deg, #ffffff 20%, var(--lavender) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--body); margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 860px; }
.hero-stats li { padding: 14px 16px; border-radius: 16px; background: rgba(13, 9, 32, 0.55); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-stats strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.1; background: linear-gradient(180deg, #ffd2b8, var(--mars-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.35; margin-top: 4px; }
.motion-toggle { position: absolute; right: 20px; bottom: 20px; z-index: 2; font: 600 0.82rem var(--sans); color: var(--text); background: rgba(7, 5, 15, 0.6); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.motion-toggle:hover { background: rgba(7, 5, 15, 0.85); }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--wrap), 100% - 40px); transform: translateX(-50%); height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 0.78rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mars-hot); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--mars), var(--gold)); }
h2, .devlog h1, .notfound h1 {
  font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 18px; max-width: 22ch;
  background: linear-gradient(180deg, #ffffff 15%, var(--lavender) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-intro { font-size: 1.13rem; color: var(--muted); max-width: 62ch; margin-bottom: 40px; }
.note { color: var(--faint); font-size: 0.95rem; max-width: 70ch; }

/* What */
.what-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.what-text p { font-size: 1.12rem; line-height: 1.75; }
.platforms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.platform { padding: 18px; border-radius: 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.platform h3 { font-size: 1.05rem; margin-bottom: 6px; }
.platform h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 10px; vertical-align: 2px; background: var(--mars); transform: rotate(45deg); }
.platform p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.systems { margin-top: 56px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: linear-gradient(180deg, rgba(139, 108, 240, 0.08), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.systems > h3 { font-size: 1.45rem; margin-bottom: 8px; }
.systems > p { color: var(--muted); max-width: 70ch; }
.legend { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { color: var(--text); font-family: var(--mono); margin-left: 4px; }
.system-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 28px; }
.sys-group h4 { font: 600 0.74rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.sys-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-size: 0.9rem; line-height: 1.3; }
.chip small { color: var(--faint); font-size: 0.78rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--lavender); box-shadow: 0 0 10px rgba(206, 190, 250, 0.6); }
.s-experimental .dot { background: var(--mars); box-shadow: 0 0 10px rgba(255, 90, 31, 0.8); }
.s-untried .dot { background: transparent; border: 1.5px solid var(--faint); box-shadow: none; }
.chip.s-experimental { border-color: rgba(255, 90, 31, 0.45); background: rgba(255, 90, 31, 0.08); }

/* Highlights */
.feature { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature.wide { grid-template-columns: 1fr; }
.feature.wide .feature-text { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 48px; }
.feature.wide .feature-text > .tag, .feature.wide .feature-text > h3, .feature.wide .feature-text > .lead { grid-column: 1 / -1; }
.feature.wide .feature-text > .tag { justify-self: start; }
.feature.wide .feature-visual { max-width: none; }
.feature.wide .feature-text > .lead { max-width: 70ch; }
.tag { display: inline-block; margin: 0 0 14px; padding: 4px 10px; border-radius: 999px; font: 600 0.72rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); background: rgba(139, 108, 240, 0.14); border: 1px solid rgba(139, 108, 240, 0.36); }
.feature h3, .card h3 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); font-weight: 820; letter-spacing: -0.025em; margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--text); opacity: 0.95; }
.points { list-style: none; margin: 0 0 18px; padding: 0; }
.points li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--body); }
.points li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--mars-hot), var(--gold)); transform: rotate(45deg); }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 18px; }
.stat { flex: 1 1 160px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.7rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1.1; background: linear-gradient(180deg, #ffd2b8, var(--mars-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; font-size: 0.84rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.more a { font-weight: 700; text-decoration: none; }
.more a::after { content: " \2192"; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(139, 108, 240, 0.45); position: relative; }
.frame img, .shot img, .wall-img img { display: block; width: 100%; height: auto; }
.pic { display: block; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare figcaption, .frame figcaption { padding: 12px 14px; font-size: 0.9rem; color: var(--muted); background: #0d0920; border-top: 1px solid var(--line); }
.badge { display: inline-block; font: 700 0.68rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: var(--text); margin-right: 6px; }
.badge-hot { background: var(--mars); color: #1a0904; }
.chart-fig { margin: 0; padding: clamp(14px, 2.5vw, 24px); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.chart-fig figcaption { margin-top: 10px; color: var(--faint); font-size: 0.86rem; }
.chart { display: block; width: 100%; height: auto; }
.chart-narrow { display: none; }
.chart-label-small { font-size: 12.5px; }
.chart text { font-family: var(--sans); }
.chart-label { fill: #ddd6f6; font-size: 14px; }
.chart-value { fill: #b4a9d8; font-size: 12.5px; font-family: var(--mono); }
.chart-legend { fill: #efeaff; font-size: 13px; font-weight: 600; }
.chart-axis { fill: #8f85b3; font-size: 11px; font-family: var(--mono); }
.chart-grid { stroke: rgba(206, 190, 250, 0.12); stroke-width: 1; }
.chart-band { fill: rgba(139, 108, 240, 0.12); stroke: rgba(206, 190, 250, 0.28); stroke-dasharray: 4 4; }
.chart-dev { fill: var(--mars-hot); }
.chart-zero { stroke: rgba(239, 234, 255, 0.55); stroke-width: 1.5; }
.text-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.card { padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: linear-gradient(135deg, rgba(255, 90, 31, 0.1), rgba(139, 108, 240, 0.08) 60%, rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-2); }
.card .points { columns: 3 260px; column-gap: 32px; }
.card .points li { break-inside: avoid; }

/* Gallery */
.g-group { margin-top: 56px; }
.g-group > h3 { font-size: 1.5rem; margin-bottom: 6px; }
.g-intro { color: var(--muted); margin-bottom: 20px; max-width: 70ch; }
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.clip { margin: 0; }
.clip-frame { position: relative; aspect-ratio: 1280 / 726; background: #000; border-radius: 16px; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.clip-poster, .clip-poster img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.clip video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; background: transparent; }
.clip figcaption { padding: 10px 2px 0; color: var(--muted); font-size: 0.92rem; }
.clip figcaption strong { color: var(--text); margin-right: 6px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.shot { display: block; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; }
.shot .pic, .shot img { width: 100%; height: 100%; }
.shot img { object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.045); filter: saturate(1.15); }
.shot-cap { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; font-size: 0.88rem; font-weight: 650; color: #fff; background: linear-gradient(transparent, rgba(5, 3, 12, 0.85)); }
.wall { margin-top: 80px; }
.wall-head { display: flex; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.wall-head h3 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 12px; }
.wall-head .g-intro { margin: 0 0 6px; flex: 1 1 360px; }
.big { font-size: clamp(3.2rem, 9vw, 6.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; background: linear-gradient(180deg, #ffe0c4, var(--mars) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wall-img { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -50px rgba(255, 90, 31, 0.5); }
.wall-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(7, 5, 15, 0.55)); pointer-events: none; }
.wall-img img { transition: transform 1.2s ease; }
.wall-img:hover img { transform: scale(1.02); }
.gallery > .wrap > .note { margin-top: 40px; }

/* Story */
.chapters { list-style: none; margin: 0; padding: 0; }
.chapter { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: 44px 0; border-top: 1px solid var(--line); }
.chapter-meta { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.chapter-no { display: block; font: 800 3.4rem/1 var(--mono); color: transparent; -webkit-text-stroke: 1.2px rgba(206, 190, 250, 0.45); margin-bottom: 10px; }
.kicker { font: 600 0.78rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mars-hot); margin: 0; }
.chapter-body > h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 820; letter-spacing: -0.025em; margin-bottom: 18px; }
.chapter-body > p { font-size: 1.07rem; line-height: 1.78; max-width: 70ch; }
.quote { margin: 4px 0 26px; padding: 18px 24px; border-left: 3px solid var(--mars); border-radius: 0 16px 16px 0; background: linear-gradient(90deg, rgba(255, 90, 31, 0.1), rgba(255, 90, 31, 0)); max-width: 66ch; }
.quote p { margin: 0; font-size: clamp(1.12rem, 1.8vw, 1.35rem); font-weight: 650; font-style: italic; color: #fff; line-height: 1.45; }
.quote p::before { content: "\201C"; color: var(--mars-hot); margin-right: 2px; }
.quote p::after { content: "\201D"; color: var(--mars-hot); margin-left: 2px; }
.quote footer { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.quote footer::before { content: "\2014\00a0"; }
.story-pic, .chapter-body > .chart-fig { max-width: 780px; margin-top: 26px; }
.trio-fig { margin: 26px 0 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trio-fig figcaption { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

/* Timeline */
.tl { list-style: none; margin: 16px 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; transform: translateX(-1px); background: linear-gradient(180deg, var(--violet), var(--lavender) 40%, var(--mars) 100%); opacity: 0.5; border-radius: 2px; }
.tl-item { --k: var(--lavender); position: relative; width: 50%; padding: 10px 40px 10px 0; text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 10px 0 10px 40px; text-align: left; }
.tl-item::after { content: ""; position: absolute; top: 26px; right: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--k); }
.tl-item:nth-child(even)::after { right: auto; left: -7px; }
.tl-item time { display: block; font: 600 0.8rem/1.4 var(--mono); color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; }
.tl-card { display: inline-block; text-align: left; max-width: 440px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.tl-kind { display: block; font: 700 0.68rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--k); margin-bottom: 4px; }
.tl-card h3 { font-size: 1.08rem; font-weight: 750; margin-bottom: 4px; }
.tl-card h3 a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 122, 61, 0.6); }
.tl-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.k-era { --k: var(--violet); }
.k-first { --k: var(--lavender); }
.k-release { --k: var(--mars-hot); }
.k-release .tl-card { border-color: rgba(255, 122, 61, 0.4); background: linear-gradient(180deg, rgba(255, 90, 31, 0.12), rgba(255, 90, 31, 0.03)); }
.k-milestone { --k: #e9e4ff; }
.k-decision { --k: var(--gold); }
.tl-more { margin-top: 44px; text-align: center; }

/* Roadmap */
.rm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.rm-col { padding: 22px; border-radius: 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.rm-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 6px; }
.rm-col ul { list-style: none; margin: 0; padding: 0; }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.rm-now { border-color: rgba(255, 122, 61, 0.38); }
.rm-now .rm-dot { background: var(--mars); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); animation: pulse 2.4s ease-out infinite; }
.rm-next .rm-dot { background: var(--violet); }
.rm-item { padding: 16px 0 4px; border-top: 1px solid var(--line); }
.rm-item:first-child { border-top: 0; }
.rm-item h4 { font-size: 1.05rem; margin: 10px 0 6px; }
.rm-item p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.pill { display: inline-block; font: 700 0.68rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.rm-now .pill { background: rgba(255, 90, 31, 0.16); color: var(--mars-soft); }
.rm-next .pill { background: rgba(139, 108, 240, 0.18); color: var(--lavender); }

/* Credits */
.credit-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.credit-list li { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.credit-list a { font-weight: 750; color: var(--text); text-decoration: none; }
.credit-list a:hover { color: var(--lavender); text-decoration: underline; }
.credit-list .role { color: var(--body); font-size: 0.9rem; line-height: 1.4; }
.credit-list .by { color: var(--faint); font-size: 0.82rem; }
.credit-list .lic { align-self: flex-start; margin-top: 6px; font: 600 0.7rem/1.5 var(--mono); padding: 1px 8px; border-radius: 6px; color: var(--lavender); background: rgba(139, 108, 240, 0.14); }
.more-credits { color: var(--muted); max-width: 80ch; }
.fine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.fine-card { padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.fine-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.fine-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; background: linear-gradient(180deg, rgba(13, 9, 32, 0), rgba(13, 9, 32, 0.7)); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer-brand img { width: 200px; height: auto; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 48ch; margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--lavender); }
.footer-fine { grid-column: 1 / -1; color: var(--faint); font-size: 0.85rem; margin: 0; }

/* Development log */
.devlog, .notfound { padding: clamp(48px, 8vw, 96px) 0; }
.devlog h1 { max-width: 26ch; }
.devlog-chart { margin: 8px 0 28px; }
.chart-bar { fill: var(--violet); }
.chart-bar:hover { fill: var(--mars-hot); }
.filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 28px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; padding: 10px; border-radius: 16px; background: rgba(13, 9, 32, 0.85); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.filter label { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.filter input { flex: 1 1 260px; font: 500 1rem var(--sans); color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; }
.filter input::placeholder { color: var(--faint); }
.filter-count { color: var(--faint); font-size: 0.88rem; font-family: var(--mono); }
.month { margin-bottom: 40px; }
.month h2, .releases h2 { font-size: 1.6rem; max-width: none; margin-bottom: 12px; }
.month h2 .count { font: 600 0.8rem var(--mono); letter-spacing: 0.06em; color: var(--faint); -webkit-text-fill-color: var(--faint); margin-left: 10px; }
.prs { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prs th { text-align: left; font: 600 0.72rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.prs td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prs tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.prs .num { width: 7.5em; white-space: nowrap; }
.prs .num a { font-family: var(--mono); font-weight: 700; text-decoration: none; }
.prs .title { color: #e7e1fb; }
.prs .when { width: 9.5em; white-space: nowrap; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.releases { margin-top: 56px; }
.releases p { color: var(--muted); max-width: 72ch; }
tr[hidden], .month[hidden] { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; color: var(--text); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 3, 12, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 94vw; }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px #000; }
.lightbox figcaption { padding: 14px 8px 0; color: var(--muted); text-align: center; max-width: 70ch; }
.lb-btn, .lb-close { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-btn:hover, .lb-close:hover { background: rgba(255, 255, 255, 0.16); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }

/* Motion: none of it hides content, and all of it stops for reduced motion. */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes glow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Narrower screens */
@media (max-width: 1060px) {
  .what-grid, .feature, .feature.wide .feature-text { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .feature-visual { max-width: 760px; }
  .rm-cols { grid-template-columns: 1fr 1fr; }
  .rm-later { grid-column: 1 / -1; }
  .fine { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; margin-left: auto; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter { grid-template-columns: 1fr; gap: 6px; }
  .chapter-meta { position: static; display: flex; align-items: baseline; gap: 14px; }
  .chapter-no { font-size: 2.2rem; margin: 0; }
}
@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; min-height: auto; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 5, 15, 0.55) 0%, rgba(7, 5, 15, 0.82) 45%, var(--bg) 100%); }
  .cta .btn { flex: 1 1 100%; }
  .clips, .compare, .trio, .platforms, .rm-cols { grid-template-columns: 1fr; }
  .tl::before { left: 7px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 8px 0 8px 32px; text-align: left; }
  .tl-item::after, .tl-item:nth-child(even)::after { left: 0; right: auto; top: 22px; }
  .tl-card { max-width: none; display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .card .points { columns: 1; }
  .chart-wide { display: none; }
  .chart-narrow { display: block; }
  .credit-list { gap: 8px; }
  .credit-list li { padding: 10px 14px; }
  .prs thead { display: none; }
  .prs, .prs tbody, .prs tr, .prs td { display: block; width: auto; }
  .prs tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .prs td { padding: 0; border: 0; }
  .prs .num { grid-row: span 2; width: auto; }
  .prs .when { width: auto; }
  .filter { position: static; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .hero-stats li { padding: 12px; }
}
@media print {
  body::before, body::after, .site-header, .hero-media, .motion-toggle, .filter { display: none; }
  body { background: #fff; color: #000; }
  h2, .hero-tagline, .big, .stat strong, .hero-stats strong { color: #000; background: none; -webkit-text-fill-color: #000; }
}
