/* SAD Technologies — site styles */
:root {
  --ink: #08080a;
  --ink-2: #0f0f12;
  --ink-3: #17171b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --paper: #f3eee6;
  --muted: #9a958d;
  --dim: #5f5b55;
  --heart: #ff3b47;
  --amber: #ffc22e;
  --sky: #2ea8ff;
  --leaf: #2fae66;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--heart); color: #fff; }

/* Film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.brand svg { width: 22px; height: 22px; }
.brand span { font-size: 15px; }
.brand em { font-style: normal; color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links .pill {
  color: var(--paper);
  border: 1px solid var(--line-2);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s;
}
.nav-links .pill:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.menu-btn { display: none; background: none; border: 0; color: var(--paper); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(8, 8, 10, 0.96); }
  .nav-links a { font-size: 22px; padding: 12px 0; width: 100%; color: var(--paper); }
  .nav-links .pill { border: 0; padding: 12px 0; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--heart);
  box-shadow: 0 0 12px var(--heart);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}
.display i { font-style: italic; color: var(--heart); }
h2.display { font-size: clamp(44px, 7vw, 104px); }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: #cfc9bf; max-width: 38ch; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(255, 59, 71, 0.35), transparent 70%),
    radial-gradient(50% 50% at 25% 70%, rgba(46, 168, 255, 0.18), transparent 70%),
    var(--ink);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,8,10,0.2) 0%, rgba(8,8,10,0) 40%, rgba(8,8,10,0.85) 88%, var(--ink) 100%);
}
.hero .wrap { padding-bottom: clamp(48px, 8vh, 96px); padding-top: 140px; }
.hero h1 {
  font-size: clamp(56px, 11.5vw, 188px);
  max-width: 11ch;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: none; } }
.hero-foot {
  margin-top: clamp(32px, 5vh, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  opacity: 0;
  animation: fade 1.2s 0.6s var(--ease) forwards;
}
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; line-height: 1.9; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-meta b { color: var(--paper); font-weight: 500; }
.scroll-cue { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue span { width: 1px; height: 36px; background: linear-gradient(var(--paper), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-meta { text-align: left; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink-2);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: ""; width: 10px; height: 10px; background: var(--heart); }
.marquee-track span s { color: var(--dim); text-decoration-thickness: 2px; text-decoration-color: var(--heart); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 14vw, 200px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .eyebrow { margin-bottom: 24px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Manifesto: words light up as they scroll past */
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 20ch;
}
.manifesto .w { color: #2a2826; transition: color 0.35s; }
.manifesto .w.on { color: var(--paper); }
.manifesto .w.hot.on { color: var(--heart); font-style: italic; }
.manifesto .sig svg { width: 18px; height: 16px; }
.manifesto .sig { margin-top: 48px; display: flex; gap: 16px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Ledger: the things we will never ship */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ledger > div { padding: 40px 28px 40px 0; border-bottom: 1px solid var(--line); position: relative; }
.ledger > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.ledger .n { font-family: var(--serif); font-size: clamp(64px, 8vw, 120px); line-height: 1; color: var(--paper); }
.ledger .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.ledger p { color: #b7b1a7; font-size: 15px; margin: 16px 0 0; max-width: 26ch; }
@media (max-width: 960px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger > div + div { border-left: 0; padding-left: 0; }
}

/* ---------- Featured game ---------- */
.feature {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border: 1px solid var(--line);
}
.feature .bg {
  position: absolute; inset: -8% 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.feature::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,10,0.92) 0%, rgba(8,8,10,0.55) 45%, rgba(8,8,10,0) 75%),
    linear-gradient(0deg, rgba(8,8,10,0.85) 0%, rgba(8,8,10,0) 50%);
}
.feature-body { padding: clamp(28px, 5vw, 72px); max-width: 640px; }
.feature-body .wordmark { width: min(440px, 80%); margin: 20px 0 24px; filter: drop-shadow(0 8px 30px rgba(0,0,0,0.5)); }
.feature-body p { color: #ddd6cb; font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.tags span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.feature-phone {
  position: absolute;
  right: clamp(24px, 6vw, 96px);
  bottom: -60px;
  width: clamp(220px, 22vw, 320px);
  transform: rotate(6deg);
  transition: transform 0.6s var(--ease);
}
.feature:hover .feature-phone { transform: rotate(3deg) translateY(-16px); }
@media (max-width: 960px) {
  .feature { flex-direction: column; align-items: stretch; min-height: 0; }
  .feature-phone { position: relative; right: auto; bottom: auto; margin: 40px auto -40px; width: min(48%, 260px); transform: rotate(4deg); order: -1; }
  .feature::before { background: linear-gradient(0deg, rgba(8,8,10,0.95) 30%, rgba(8,8,10,0.3) 100%); }
}

.phone {
  border-radius: 13% / 6%;
  padding: 3.2%;
  background: linear-gradient(145deg, #3a3a40, #121214 40%, #2a2a2e);
  box-shadow: 0 50px 120px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.phone img { border-radius: 11% / 5.2%; width: 100%; aspect-ratio: 1018 / 2212; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  transform: translate(var(--bx), var(--by));
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.btn:hover { box-shadow: 0 0 0 6px rgba(243, 238, 230, 0.12); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--paper); }
.btn.red { background: var(--heart); border-color: var(--heart); color: #fff; }
.btn.red:hover { box-shadow: 0 0 0 6px rgba(255, 59, 71, 0.2), 0 20px 60px -10px rgba(255, 59, 71, 0.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.principle {
  background: var(--ink);
  padding: clamp(28px, 3vw, 44px);
  min-height: 300px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.principle::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  left: var(--mx, 50%); top: var(--my, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow, rgba(255,59,71,0.18)), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.principle:hover::before { opacity: 1; }
.principle .idx { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.05; margin: auto 0 14px; padding-top: 48px; }
.principle p { margin: 0; color: #a9a39a; font-size: 15px; }
.principle .dot { width: 10px; height: 10px; position: absolute; top: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px); }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } .principle { min-height: 220px; } }

/* ---------- Studio / capabilities ---------- */
.studio { background: var(--paper); color: var(--ink); border-radius: 36px 36px 0 0; }
.studio .eyebrow { color: #6e6960; }
.studio .lede { color: #3d3a35; }
.studio .display i { color: var(--heart); }
.caps { border-top: 1px solid rgba(8,8,10,0.14); }
.cap {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr 40px;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid rgba(8,8,10,0.14);
  position: relative;
  transition: padding 0.4s var(--ease);
}
.cap .no { font-family: var(--mono); font-size: 12px; color: #8a857c; }
.cap h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 48px); line-height: 1; margin: 0; }
.cap p { margin: 0; color: #4d4943; font-size: 16px; }
.cap .arr { width: 24px; height: 24px; justify-self: end; opacity: 0.3; transition: transform 0.4s var(--ease), opacity 0.3s; }
.cap:hover { padding-left: 16px; }
.cap:hover .arr { opacity: 1; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .cap { grid-template-columns: 1fr; gap: 10px; }
  .cap .arr { display: none; }
}
.studio-cta {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end;
}
.studio-cta .display { font-size: clamp(40px, 5.6vw, 84px); }
.studio-cta p { color: #4d4943; margin: 0 0 24px; }
.studio .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.studio .btn:hover { box-shadow: 0 0 0 6px rgba(8,8,10,0.1); }
.studio .btn.ghost { background: transparent; color: var(--ink); border-color: rgba(8,8,10,0.2); }
@media (max-width: 860px) { .studio-cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  padding: clamp(72px, 10vw, 140px) 0 40px;
  position: relative;
  overflow: hidden;
}
.studio + footer.site { border-radius: 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin: 0 0 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { text-decoration: none; color: #bdb7ad; font-size: 15px; transition: color 0.2s; }
.foot-grid a:hover { color: var(--paper); }
.foot-grid .blurb { color: var(--muted); font-size: 15px; max-width: 32ch; margin-top: 16px; }
.giant {
  font-family: var(--serif);
  font-size: clamp(80px, 21vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  margin: clamp(64px, 8vw, 120px) 0 24px;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--paper) 30%, rgba(243,238,230,0.08));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
}
.giant i { font-style: italic; }
.legal-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* ---------- Game page ---------- */
.game-hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.game-hero .bg { position: absolute; inset: -6% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.1) 35%, rgba(8,8,10,0.9) 85%, var(--ink) 100%); }
.game-hero .wrap { padding-top: 140px; padding-bottom: 80px; }
.game-hero .icon { width: 96px; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); margin-bottom: 28px; }
.game-hero .wordmark { width: min(820px, 100%); filter: drop-shadow(0 10px 40px rgba(0,0,0,0.6)); }
.game-hero .lede { margin: 28px 0 32px; max-width: 46ch; color: #e6dfd4; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.1; }
.store-badge b { display: block; font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 40px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 clamp(200px, 22vw, 280px); scroll-snap-align: center; }
.gallery figcaption { margin-top: 18px; font-family: var(--serif); font-size: 22px; line-height: 1.15; color: #ddd6cb; }
.gallery .phone { transition: transform 0.5s var(--ease); }
.gallery figure:hover .phone { transform: translateY(-8px); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.facts > div { background: var(--ink); padding: 36px; }
.facts .n { font-family: var(--serif); font-size: clamp(48px, 5vw, 72px); line-height: 1; }
.facts .k { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div { padding: 24px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split img { border-radius: 24px; border: 1px solid var(--line); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.price-card {
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255,59,71,0.22), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(255,194,46,0.12), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.price-card .big { font-family: var(--serif); font-size: clamp(96px, 12vw, 180px); line-height: 0.85; }
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; color: #d7d0c5; }
.price-card li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--leaf); transform: translateY(-2px); }
.price-card li.no::before { background: var(--heart); }
@media (max-width: 860px) { .price-card { grid-template-columns: 1fr; } }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc-hero { padding: 180px 0 64px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.doc-hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -500px;
  background: radial-gradient(circle, rgba(255,59,71,0.18), transparent 60%);
  pointer-events: none;
}
.doc-hero h1 { font-size: clamp(56px, 9vw, 132px); margin-top: 20px; }
.doc-hero .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px); padding: 72px 0 140px; }
.doc nav { position: sticky; top: 100px; align-self: start; }
.doc nav ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.doc nav li { counter-increment: toc; margin-bottom: 10px; }
.doc nav a { text-decoration: none; color: var(--muted); font-size: 14px; display: flex; gap: 10px; transition: color 0.2s; }
.doc nav a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--dim); padding-top: 3px; }
.doc nav a:hover, .doc nav a.active { color: var(--paper); }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; margin: 64px 0 16px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 32px 0 8px; }
.prose p, .prose li { color: #c9c3b9; }
.prose a { color: var(--paper); text-decoration-color: var(--heart); text-underline-offset: 3px; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--heart); }
.prose .callout {
  border: 1px solid var(--line-2); border-radius: 18px; padding: 24px 28px; margin: 28px 0;
  background: linear-gradient(135deg, rgba(47,174,102,0.08), transparent 60%), var(--ink-2);
}
.prose .callout p { margin: 0; color: #ddd6cb; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9c3b9; }
.prose th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.table-scroll { overflow-x: auto; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; padding-top: 40px; }
  .doc nav { position: static; display: none; }
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--paper), var(--paper)) center/14px 1.5px no-repeat, linear-gradient(var(--paper), var(--paper)) center/1.5px 14px no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 28px; color: #c9c3b9; max-width: 64ch; }
.faq details > div p { margin: 0 0 12px; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 96px; }
.contact-card {
  border: 1px solid var(--line); border-radius: 22px; padding: 32px; text-decoration: none;
  background: var(--ink-2); display: flex; flex-direction: column; gap: 8px; min-height: 220px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.contact-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.contact-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: auto 0 4px; line-height: 1.05; }
.contact-card span { color: #bdb7ad; font-size: 15px; word-break: break-all; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } .contact-card { min-height: 160px; } }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.lost .display { font-size: clamp(120px, 26vw, 360px); line-height: 0.8; }

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

/* Nav over the light studio section */
.nav.on-light.scrolled { background: rgba(243, 238, 230, 0.78); border-bottom-color: rgba(8, 8, 10, 0.08); }
.nav.on-light .brand, .nav.on-light .menu-btn { color: var(--ink); }
.nav.on-light .brand em, .nav.on-light .nav-links a { color: #5a564f; }
.nav.on-light .nav-links a:hover { color: var(--ink); }
.nav.on-light .nav-links .pill { color: var(--ink); border-color: rgba(8, 8, 10, 0.2); }
.nav.on-light .nav-links .pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 760px) {
  .nav.on-light .nav-links { background: rgba(243, 238, 230, 0.97); }
  .nav.on-light.open { background: rgba(243, 238, 230, 0.97); }
  .nav.on-light .nav-links a { color: var(--ink); }
}
