/* ============================================================================
   SALMETHIC — site design system
   "The soul and the science": Fraunces / Newsreader (literary serif, the romance
   of the Work) set against JetBrains Mono (lab-instrument chrome, the rigor of a
   real simulation). Ink-brown and ember-gold drawn from the game's own palette.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subset; zero third-party requests) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/newsreader.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-700.woff2') format('woff2');
}

/* ---- Tokens ---------------------------------------------------------------- */
:root {
  /* Ink — the deep brown-blacks of the shed at night */
  --ink-900: #0c0a07;
  --ink-850: #120f0a;
  --ink-800: #15110d;
  --ink-760: #19150e;
  --ink-700: #1f1a13;
  --ink-650: #261e13;
  --ink-600: #2a2114;

  /* Parchment — the text */
  --parch: #ece2cc;
  --parch-dim: #b3a386;
  --parch-faint: #8c7c5e;
  --parch-ghost: #5e5239;

  /* Lines */
  --line: #342c1e;
  --line-soft: #271f15;
  --line-gold: rgba(200, 168, 90, 0.26);

  /* Metals & elements */
  --gold: #c8a85a;
  --gold-bright: #f0cf86;
  --gold-deep: #9b7a42;
  --mercury: #6fa8dc;
  --amber: #ffcc33;
  --green: #7cc079;
  --red: #e0654a;

  /* Ember (the fire under the flask) */
  --ember-1: #ffd79a;
  --ember-2: #ff9a4c;
  --ember-3: #ff6f33;

  /* Fonts */
  --display: 'Fraunces', 'Hoefler Text', Georgia, serif;
  --body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;

  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --glow-gold: 0 0 40px -6px rgba(200, 168, 90, 0.35);
}

/* ---- Reset / base ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
body {
  font-family: var(--body);
  font-optical-sizing: auto;
  font-weight: 380;
  font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.16rem);
  line-height: 1.66;
  color: var(--parch);
  background: var(--ink-800);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Atmosphere — a deep ember wash from the page floor + a faint top vignette, fixed
   behind everything, plus a hand-made grain so flat fills never read as "AI flat". */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(42, 33, 20, 0.55), transparent 60%),
    radial-gradient(90% 55% at 50% 118%, rgba(255, 122, 60, 0.1), transparent 62%),
    linear-gradient(180deg, var(--ink-850), var(--ink-800) 40%, var(--ink-850));
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--gold-bright);
}
::selection {
  background: rgba(200, 168, 90, 0.28);
  color: #fff;
}

/* ---- Typography ------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 460;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #f4ecda;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 1.6rem + 5vw, 5.4rem);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  font-weight: 420;
}
h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  font-variation-settings: 'opsz' 90;
}
h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  font-variation-settings: 'opsz' 40;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1.12rem;
  font-variation-settings: 'opsz' 24;
}
p {
  text-wrap: pretty;
}
em {
  font-style: italic;
}
strong {
  font-weight: 600;
  color: #f4ecda;
}

/* The mono "eyebrow" / kicker — the lab-instrument label that opens a section */
.kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.kicker::before {
  content: '';
  width: 1.6em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker.center::after {
  content: '';
  width: 1.6em;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.lede {
  font-size: clamp(1.16rem, 1rem + 0.7vw, 1.42rem);
  line-height: 1.55;
  color: var(--parch);
  font-weight: 360;
}
.muted {
  color: var(--parch-dim);
}
.faint {
  color: var(--parch-faint);
}
.gold {
  color: var(--gold);
}
.mono {
  font-family: var(--mono);
}

/* ---- Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}
.section--tight {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin-top: 0.7rem;
}
.section-head p {
  margin-top: 1.1rem;
  color: var(--parch-dim);
  font-size: 1.1rem;
}
.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-gold) 30%, var(--line-gold) 70%, transparent);
  margin: 0;
}

/* A faint alchemical sigil watermark you can drop into a section corner */
.sigil-mark {
  position: absolute;
  color: var(--gold);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  --bg: var(--gold);
  --fg: #1a1408;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.92em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(200, 168, 90, 0.5);
  color: #1a1408;
}
.btn--primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 10px 26px -14px rgba(200, 168, 90, 0.7);
}
.btn--ghost {
  background: transparent;
  color: var(--parch);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: none;
  background: rgba(200, 168, 90, 0.06);
}
.btn[disabled],
.btn--soon {
  pointer-events: none;
  opacity: 0.55;
  background: transparent;
  color: var(--parch-faint);
  border-color: var(--line);
}
.btn .glyph {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.textlink {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.textlink::after {
  content: '→';
  transition: transform 0.18s ease;
}
.textlink:hover::after {
  transform: translateX(4px);
}

/* ---- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(1.1);
  background: linear-gradient(180deg, rgba(18, 15, 10, 0.92), rgba(18, 15, 10, 0.72));
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--parch);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
}
.brand:hover {
  color: #fff;
}
.brand img {
  width: 2.05rem;
  height: 2.05rem;
  filter: drop-shadow(0 2px 8px rgba(255, 122, 60, 0.3));
}
.brand .salt {
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a:not(.btn) {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parch-dim);
  position: relative;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current='page'] {
  color: var(--gold);
}
.nav-links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 1px;
  background: var(--gold);
}
.nav-cta {
  margin-left: 0.4rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--parch);
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(12, 10, 7, 0.6));
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-brand p {
  color: var(--parch-faint);
  font-size: 0.96rem;
  margin-top: 1rem;
  max-width: 26rem;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  color: var(--parch-dim);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-base {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--parch-faint);
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-ember {
  position: absolute;
  left: 50%;
  bottom: -28%;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(255, 122, 60, 0.22), rgba(255, 154, 76, 0.08) 38%, transparent 64%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  animation: ember-breathe 7s ease-in-out infinite;
}
@keyframes ember-breathe {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  margin-top: 1.3rem;
}
.hero h1 em {
  color: var(--gold-bright);
  font-style: italic;
}
.hero-lede {
  margin-top: 1.5rem;
  max-width: 34rem;
}
.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--parch-faint);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- Video / media frame --------------------------------------------------- */
.media-frame {
  position: relative;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  background: var(--ink-850);
  box-shadow: var(--shadow), var(--glow-gold);
  overflow: hidden;
}
.media-frame::before,
.media-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  z-index: 3;
  opacity: 0.7;
}
.media-frame::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}
.media-frame::after {
  bottom: 8px;
  right: 8px;
  border-left: 0;
  border-top: 0;
}
.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 122, 60, 0.12), transparent 58%),
    var(--ink-850);
}
.video-shell video,
.video-shell img.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-shell .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #fff;
  z-index: 2;
}
.play-ring {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18, 15, 10, 0.55);
  border: 1px solid var(--gold);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 40px -8px rgba(200, 168, 90, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}
.play:hover .play-ring {
  transform: scale(1.07);
  background: rgba(200, 168, 90, 0.18);
}
.play-ring svg {
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 4px;
  fill: var(--gold-bright);
}
.video-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parch);
  background: rgba(12, 10, 7, 0.6);
  border: 1px solid var(--line-gold);
  padding: 0.35em 0.7em;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* ---- Cards & grids --------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(38, 30, 19, 0.5), rgba(21, 17, 13, 0.5));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.7rem;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.card:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(46, 36, 22, 0.6), rgba(24, 19, 14, 0.6));
}
.card h3 {
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--parch-dim);
  font-size: 1rem;
}
.card .glyph-badge {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  color: var(--gold);
}

/* Feature with op-number tab (alchemical operation cards) */
.op-card .op-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.8rem;
}
.op-card h3 .latin {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mercury);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Pillar / value list rows */
.row-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}
.row-list .row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.row-list .row .idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  padding-top: 0.4rem;
}
.row-list .row h3 {
  font-size: 1.3rem;
}
.row-list .row p {
  margin-top: 0.4rem;
  color: var(--parch-dim);
}

/* ---- Screenshot gallery ---------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--ink-850);
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.shot:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.shot.wide {
  grid-column: span 4;
}
.shot.tall {
  grid-column: span 2;
}
.shot.half {
  grid-column: span 3;
}
.shot.third {
  grid-column: span 2;
}
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 0.9rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parch);
  background: linear-gradient(0deg, rgba(12, 10, 7, 0.85), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.shot:hover figcaption {
  opacity: 1;
}

/* ---- Stat strip ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.stat {
  background: rgba(21, 17, 13, 0.7);
  padding: 1.6rem 1.3rem;
  text-align: center;
}
.stat .num {
  font-family: var(--display);
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem);
  color: var(--gold-bright);
  font-variation-settings: 'opsz' 90;
  line-height: 1;
}
.stat .lab {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parch-faint);
  margin-top: 0.6rem;
}

/* ---- Download cards -------------------------------------------------------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(38, 30, 19, 0.45), rgba(21, 17, 13, 0.5));
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.dl-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
}
.dl-card .os {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.dl-card .os svg {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--gold);
  flex: none;
}
.dl-card .os h3 {
  font-size: 1.2rem;
}
.dl-card .files {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dl-card .file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--parch-dim);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.dl-card .file:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(200, 168, 90, 0.06);
}
.dl-card .file .size {
  color: var(--parch-faint);
  font-size: 0.7rem;
}
.dl-card .note {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--parch-faint);
  letter-spacing: 0.03em;
}
.badge-soon {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mercury);
  border: 1px solid rgba(111, 168, 220, 0.4);
  border-radius: 999px;
  padding: 0.2em 0.7em;
}

/* ---- Coming soon platform row ---------------------------------------------- */
.soon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.soon {
  text-align: center;
  padding: 2.2rem 1.4rem;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: rgba(18, 15, 10, 0.4);
}
.soon svg {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--parch-faint);
  margin-bottom: 0.9rem;
}
.soon h3 {
  font-size: 1.2rem;
  color: var(--parch);
}
.soon p {
  color: var(--parch-faint);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}
.soon .badge-soon {
  margin-top: 1rem;
  display: inline-block;
}

/* ---- Roadmap timeline ------------------------------------------------------ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 1.6rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--line) 70%, transparent);
}
.phase {
  position: relative;
  padding: 0 0 2.6rem 1.6rem;
}
.phase::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-800);
  border: 2px solid var(--gold-deep);
  translate: -4px 0;
}
.phase.now::before {
  background: var(--gold);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(200, 168, 90, 0.18), 0 0 20px rgba(200, 168, 90, 0.5);
}
.phase .when {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.phase.future .when {
  color: var(--parch-faint);
}
.phase h3 {
  margin: 0.5rem 0 0.7rem;
}
.phase ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--parch-dim);
}
.phase ul li {
  margin-bottom: 0.4rem;
}
.phase .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--parch-faint);
  margin-left: 0.6rem;
}
.phase.now .tag {
  color: var(--gold);
  border-color: var(--line-gold);
}

/* ---- Changelog ------------------------------------------------------------- */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.cl-day {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
}
.cl-day .date {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  padding-top: 0.2rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}
.cl-day .date .count {
  display: block;
  color: var(--parch-faint);
  font-size: 0.66rem;
  margin-top: 0.3rem;
}
.cl-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-left: 1px solid var(--line-soft);
  padding-left: 1.5rem;
}
.cl-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: baseline;
}
.cl-cat {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22em 0.6em;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
  min-width: 5.2rem;
  text-align: center;
}
.cat-new {
  color: var(--green);
  border-color: rgba(124, 192, 121, 0.35);
  background: rgba(124, 192, 121, 0.07);
}
.cat-fixed {
  color: var(--mercury);
  border-color: rgba(111, 168, 220, 0.35);
  background: rgba(111, 168, 220, 0.07);
}
.cat-improved {
  color: var(--gold);
  border-color: var(--line-gold);
  background: rgba(200, 168, 90, 0.06);
}
.cat-visuals {
  color: #c79bd6;
  border-color: rgba(199, 155, 214, 0.35);
  background: rgba(199, 155, 214, 0.07);
}
.cat-build {
  color: var(--parch-dim);
  border-color: var(--line);
}
.cl-item .text {
  color: var(--parch);
  font-size: 1rem;
}
.cl-item .scope {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--parch-faint);
}

/* ---- FAQ / prose ----------------------------------------------------------- */
.prose {
  max-width: 44rem;
}
.prose h2 {
  margin: 2.8rem 0 1rem;
}
.prose h3 {
  margin: 2rem 0 0.7rem;
  color: var(--gold-bright);
}
.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.1rem;
  color: var(--parch-dim);
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose strong {
  color: var(--parch);
}
.prose a {
  border-bottom: 1px solid var(--line-gold);
}
.faq {
  border-top: 1px solid var(--line-soft);
}
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  padding: 1.3rem 2rem 1.3rem 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-variation-settings: 'opsz' 36;
  color: var(--parch);
  list-style: none;
  position: relative;
  transition: color 0.18s ease;
}
.faq summary:hover {
  color: var(--gold-bright);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 1.15rem;
  font-family: var(--mono);
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 2rem 1.5rem 0;
  color: var(--parch-dim);
}

/* ---- Callout / quote ------------------------------------------------------- */
.callout {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  font-variation-settings: 'opsz' 60;
  color: #f0e6d0;
  line-height: 1.35;
}
.callout cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parch-faint);
}

/* Page hero (interior pages) */
.page-hero {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem);
  margin-top: 0.9rem;
}
.page-hero p {
  margin-top: 1.1rem;
  max-width: 40rem;
  color: var(--parch-dim);
}

/* ---- Reveal-on-scroll ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
  .grid-3,
  .grid-4,
  .soon-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shots {
    grid-template-columns: repeat(4, 1fr);
  }
  .shot.wide {
    grid-column: span 4;
  }
  .shot.tall,
  .shot.third {
    grid-column: span 2;
  }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    inset: 4.4rem 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(15, 12, 9, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.4rem;
    backdrop-filter: blur(12px);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.84rem;
  }
  .nav-links .nav-cta {
    margin: 1rem 0 0;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .soon-row,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
  .shot.wide,
  .shot.tall,
  .shot.half,
  .shot.third {
    grid-column: span 2;
  }
  .cl-day {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .cl-day .date {
    position: static;
  }
  .cl-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .stats {
    border-radius: 6px;
  }
}
