/* ThePuzzleMuseum.com — Museum Night */

:root {
  /* Midnight (default) */
  --bg:        #0b0a18;
  --bg-2:      #14122a;
  --bg-3:      #1c1838;
  --ink:       #f4ead4;
  --ink-soft:  #cdc2a8;
  --ink-mute:  #8a8169;
  --gold:      #d8a548;
  --gold-2:    #f0c875;
  --ember:     #c4612a;
  --jewel:     #2e6cb0;
  --rule:      rgba(244, 234, 212, 0.14);
  --card:      #16142e;
  --card-2:    #1d1a3a;
  --plaque:    #efe3c4;
  --plaque-ink:#22202e;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="parchment"] {
  --bg: #f3ead2;
  --bg-2: #ece1c1;
  --bg-3: #e3d6ae;
  --ink: #2a1f12;
  --ink-soft: #514230;
  --ink-mute: #7a6a52;
  --gold: #a06a1f;
  --gold-2: #c98a2c;
  --ember: #8c3a14;
  --jewel: #1f4d80;
  --rule: rgba(42, 31, 18, 0.16);
  --card: #fbf3dc;
  --card-2: #f7ecc9;
  --plaque: #2a1f12;
  --plaque-ink: #f3ead2;
}

[data-theme="velvet"] {
  --bg: #160812;
  --bg-2: #1f0c1d;
  --bg-3: #2c0e26;
  --ink: #f3e6d3;
  --ink-soft: #cdb89e;
  --ink-mute: #8d7660;
  --gold: #cc8a4e;
  --gold-2: #e3a766;
  --ember: #b9322f;
  --jewel: #6f2351;
  --rule: rgba(243, 230, 211, 0.16);
  --card: #20102c;
  --card-2: #2a1538;
  --plaque: #f1e2c5;
  --plaque-ink: #20102c;
}

[data-type="ebgaramond"] {
  --serif: "EB Garamond", Georgia, serif;
  --sans: "DM Sans", -apple-system, sans-serif;
}

[data-type="modern"] {
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* ─── primitives ─── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.eyebrow.ink { color: var(--ink-soft); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.display-xxl {
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.display-xl {
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.display-l {
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
}

.italic { font-style: italic; }

p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }

.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
}
@media (max-width: 720px) {
  .shell { padding: 0 22px; }
}

.section {
  padding: 120px 0;
  position: relative;
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: #1a1408;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 14px 30px -10px rgba(216, 165, 72, 0.5);
}
.btn-primary:hover { background: var(--gold-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink-soft); }

.btn-app {
  background: #fff;
  color: #0a0a0a;
  padding: 12px 18px 12px 16px;
}
[data-theme="parchment"] .btn-app { background: #1a1409; color: #fff; }
.btn-app .apple { font-size: 22px; line-height: 1; }
.btn-app.soon { opacity: 0.55; cursor: default; }
.btn-app.soon:hover { transform: none; }
.btn-app small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  display: block;
  font-weight: 600;
}
.btn-app strong { font-size: 16px; font-weight: 600; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: backdrop-filter .25s, background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--rule);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-logo .crest {
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 50%, var(--ember) 90%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.nav-logo .crest::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.nav-logo .crest::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 1px;
  background: var(--gold);
  z-index: 1;
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 14px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/splash.png');
  background-size: cover;
  background-position: center 40%;
  filter: saturate(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(11,10,24,0) 30%, rgba(11,10,24,0.55) 70%, rgba(11,10,24,0.95) 100%),
    linear-gradient(180deg, rgba(11,10,24,0.55) 0%, rgba(11,10,24,0) 22%, rgba(11,10,24,0) 55%, rgba(11,10,24,0.85) 100%);
}
[data-theme="parchment"] .hero-bg::after {
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(243,234,210,0) 30%, rgba(243,234,210,0.4) 70%, rgba(243,234,210,0.92) 100%),
    linear-gradient(180deg, rgba(243,234,210,0.3) 0%, rgba(243,234,210,0) 22%, rgba(243,234,210,0) 55%, rgba(243,234,210,0.85) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 56px;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 720px) {
  .hero-inner { padding: 0 22px; }
}

.hero-marquee {
  position: absolute;
  top: 96px;
  left: 0; right: 0;
  z-index: 2;
  border-top: 1px solid rgba(244,234,212,0.18);
  border-bottom: 1px solid rgba(244,234,212,0.18);
  background: rgba(11,10,24,0.32);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 12px 0;
}
.hero-marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,234,212,0.78);
}
.hero-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.hero-marquee-track .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11,10,24,0.55);
  border: 1px solid rgba(244,234,212,0.22);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 28px;
}
.hero-tag .pulse {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(216, 165, 72, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(216,165,72,0); }
  100% { box-shadow: 0 0 0 0 rgba(216,165,72,0); }
}

.hero h1 {
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
  max-width: 12ch;
}
.hero .lede {
  color: rgba(244,234,212,0.86);
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
  max-width: 50ch;
  margin-top: 22px;
}
[data-theme="parchment"] .hero h1,
[data-theme="parchment"] .hero .lede { text-shadow: 0 1px 16px rgba(255,255,255,0.4); }

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid rgba(244,234,212,0.2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.hero-stats .stat-num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
}
.hero-stats .stat-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
}

/* hero layout: split */
.hero[data-layout="split"] {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  min-height: 100vh;
}
.hero[data-layout="split"] .hero-bg { right: 50%; }
.hero[data-layout="split"] .hero-bg::after {
  background: linear-gradient(90deg, rgba(11,10,24,0) 60%, var(--bg) 100%);
}
.hero[data-layout="split"] .hero-inner {
  margin-left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 56px 80px;
}
.hero[data-layout="split"] .hero-marquee { display: none; }
@media (max-width: 900px) {
  .hero[data-layout="split"] { flex-direction: column; }
  .hero[data-layout="split"] .hero-bg { right: 0; bottom: 50%; }
  .hero[data-layout="split"] .hero-bg::after {
    background: linear-gradient(180deg, rgba(11,10,24,0) 60%, var(--bg) 100%);
  }
  .hero[data-layout="split"] .hero-inner { margin-left: 0; padding: 60vh 22px 60px; }
}

/* hero layout: centered */
.hero[data-layout="centered"] { justify-content: center; padding-bottom: 0; text-align: center; }
.hero[data-layout="centered"] .hero-inner { text-align: center; padding-top: 120px; }
.hero[data-layout="centered"] h1 { margin-left: auto; margin-right: auto; max-width: 18ch; }
.hero[data-layout="centered"] .lede { margin-left: auto; margin-right: auto; }
.hero[data-layout="centered"] .hero-actions { justify-content: center; }
.hero[data-layout="centered"] .hero-stats { display: none; }

/* ─── Section heads ─── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}
.section-head .number {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { color: var(--ink); }
.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 50ch;
  align-self: end;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ─── How it works ─── */
.how {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }

.how-card {
  background: var(--bg-2);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.how-card .step-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.how-card .step-num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--gold);
  font-style: italic;
}
.how-card h3 {
  font-size: 30px;
  color: var(--ink);
}
.how-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* puzzle reveal viz */
.viz {
  margin-top: 8px;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  border: 1px solid var(--rule);
}
.viz-img {
  position: absolute; inset: 0;
  background-image: url('assets/splash.png');
  background-size: cover;
}
.viz-img.region-1 { background-position: 18% 45%; }
.viz-img.region-2 { background-position: 50% 70%; }
.viz-img.region-3 { background-position: 82% 35%; }

.viz-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
}
.viz-tile {
  background: var(--bg-3);
  border: 1px solid rgba(11,10,24,0.6);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.viz-tile.gone { opacity: 0; transform: scale(1.04); }

.viz-essay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(11,10,24,0.95) 30%);
  padding: 50px 22px 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}
.viz-essay .small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  display: block;
  margin-bottom: 6px;
}

/* ─── Wings ─── */
.wings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .wings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .wings-grid { grid-template-columns: 1fr; } }

.wing {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--rule);
  transition: transform .35s ease, border-color .25s;
}
.wing:hover { transform: translateY(-4px); border-color: var(--gold); }
.wing-art {
  position: absolute; inset: 0;
  background: var(--bg-3);
}
.wing-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,24,0) 35%, rgba(11,10,24,0.85) 80%, rgba(11,10,24,0.96) 100%);
}
.wing-art.artists {
  background-image: url('assets/wing-art.png');
  background-size: cover;
  background-position: 50% 30%;
}
.wing-art.ancient {
  background-image: url('assets/wing-history.png');
  background-size: cover;
  background-position: 50% 40%;
}
.wing-art.cosmos {
  background-image: url('assets/wing-space.png');
  background-size: cover;
  background-position: 50% 30%;
}
.wing-art.natural {
  background-image: url('assets/wing-nature.png');
  background-size: cover;
  background-position: 50% 35%;
}
.wing-art.science {
  background-image: url('assets/wing-science.png');
  background-size: cover;
  background-position: 50% 35%;
}
.wing-art.exploration {
  background-image: url('assets/wing-exploration.png');
  background-size: cover;
  background-position: 50% 40%;
}

.wing-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  z-index: 2;
}
.wing-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 6px;
}
.wing-name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.wing-stats {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,234,212,0.62);
}
.wing-stats span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--gold);
}

.wing-corner {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,10,24,0.55);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(244,234,212,0.18);
}
.wing-corner .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ─── Now Showing ─── */
.featured {
  background: var(--bg);
}
.now-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 1000px) { .now-grid { grid-template-columns: 1fr 1fr; }
  .now-card.hero-card { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .now-grid { grid-template-columns: 1fr; } }

.now-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--card);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  transition: border-color .25s;
}
.now-card.hero-card { min-height: 540px; }
.now-card:hover { border-color: var(--gold); }

.now-art {
  position: absolute; inset: 0; z-index: 0;
}
.now-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,24,0) 40%, rgba(11,10,24,0.95) 100%);
}
.now-art.starry {
  background-image: url('assets/wing-art.png');
  background-size: cover;
  background-position: 50% 35%;
}
.now-art.pyramids {
  background-image: url('assets/splash.png');
  background-size: 280% auto;
  background-position: 6% 70%;
}
.now-art.book {
  background-image: url('assets/splash.png');
  background-size: 240% auto;
  background-position: 50% 95%;
}
.now-art.placeholder {
  background:
    radial-gradient(ellipse at 50% 30%, var(--jewel) 0%, var(--bg-2) 70%);
}
.now-art.placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px);
}

.now-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.now-card .placard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(11,10,24,0.55);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244,234,212,0.16);
  color: var(--gold-2);
  backdrop-filter: blur(6px);
}
.now-card h3 {
  font-size: clamp(22px, 2.4vw, 38px);
  color: var(--ink);
  line-height: 1.04;
  max-width: 18ch;
}
.now-card p {
  color: rgba(244,234,212,0.78);
  font-size: 14px;
  max-width: 38ch;
}
.now-meta {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,234,212,0.6);
}

/* ─── In-app section ─── */
.in-app {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--rule);
}
.in-app-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1000px) { .in-app-grid { grid-template-columns: 1fr; gap: 60px; } }
.in-app-text h2 { color: var(--ink); margin-bottom: 24px; max-width: 14ch; }
.in-app-text p { color: var(--ink-soft); font-size: 18px; max-width: 48ch; }
.in-app-list {
  margin-top: 36px;
  display: grid;
  gap: 20px;
}
.in-app-list .row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.in-app-list .row .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 4px;
}
.in-app-list .row h4 {
  font-size: 18px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.in-app-list .row p {
  font-size: 14px;
  color: var(--ink-soft);
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(216,165,72,0.25), transparent 60%);
  pointer-events: none;
}

/* ─── About ─── */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about h2 { color: var(--ink); }
.about-body p { color: var(--ink-soft); font-size: 18px; line-height: 1.6; max-width: 56ch; }
.about-body p + p { margin-top: 18px; }

.about-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 480px;
}
.about-stats div {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.about-stats .num {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}
.about-stats .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ─── CTA ─── */
.cta {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('assets/splash.png');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.4;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(11,10,24,0.4) 0%, rgba(11,10,24,0.95) 70%);
}
[data-theme="parchment"] .cta::after {
  background: radial-gradient(ellipse at 50% 50%, rgba(243,234,210,0.5) 0%, rgba(243,234,210,0.95) 70%);
}
.cta-inner { position: relative; z-index: 2; }
.cta h2 {
  color: var(--ink);
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  margin: 22px auto 28px;
  max-width: 16ch;
}
.cta .lede { margin: 0 auto 36px; color: var(--ink-soft); }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 36px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-soft); font-size: 14px; }
.footer ul a:hover { color: var(--ink); }
.footer-blurb { color: var(--ink-soft); font-size: 14px; max-width: 38ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ─── Reveal-on-scroll ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── Studio hero (simple) ─── */
.studio-hero {
  padding: 200px 0 100px;
  border-bottom: 1px solid var(--rule);
  background: radial-gradient(120% 60% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%);
}
.studio-hero h1 { color: var(--ink); max-width: 16ch; }
.studio-hero .lede { margin-top: 22px; }

/* ─── App cards ─── */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.apps-grid-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 700px) { .apps-grid-secondary { grid-template-columns: 1fr; } }

.app-card {
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.app-card.dim { opacity: 0.62; }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.app-card h3 { font-size: 30px; color: var(--ink); }
.app-card p.desc { color: var(--ink-soft); font-size: 15.5px; max-width: 48ch; }
.app-shot {
  width: 100%;
  aspect-ratio: 9 / 12;
  max-width: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-3);
}
.app-shots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.app-shots-row .app-shot { max-width: none; width: 100%; aspect-ratio: 603/1311; object-fit: cover; }
.badge-soon {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--rule);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── Legal / doc pages ─── */
.doc-page-wrap { padding: 160px 0 120px; }
.doc-head { margin-bottom: 56px; border-bottom: 1px solid var(--rule); padding-bottom: 32px; }
.doc-head h1 { color: var(--ink); font-size: clamp(34px, 4vw, 52px); }
.doc-head .updated { margin-top: 12px; }
.doc-body { max-width: 74ch; }
.doc-body h2 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 14px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; padding-left: 22px; margin: 14px 0; }
.doc-body li + li { margin-top: 6px; }
.doc-body a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:hover { color: var(--gold); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; }
.back-link:hover { color: var(--ink); }
