/* ---------- Tokens ---------- */
:root {
  --bg: #f3f1ec;
  --bg-elev: #ecebe4;
  --ink: #0c0c0c;
  --ink-2: #2a2a2a;
  --muted: #7a7871;
  --line: #d6d3c9;
  --line-2: #c5c1b4;
  --accent: #0c0c0c;
  --dark: #0b0b0b;
  --dark-2: #151515;
  --on-dark: #f3f1ec;
  --on-dark-muted: #8b887f;

  /* Warm accent: used sparingly for cozy/character moments */
  --warm: #d4a574;
  --warm-soft: #f5e6d4;
  --warm-deep: #8a5a2b;

  --transition-theme: background 240ms ease, color 240ms ease, border-color 240ms ease;

  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- Dark mode ---------- */
:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --bg-elev: #181818;
  --ink: #ececec;
  --ink-2: #cfcdc5;
  --muted: #8a877e;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --accent: #ececec;
}
:root[data-theme="dark"] body {
  background-blend-mode: normal;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  transition: var(--transition-theme);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  background-position: -1px -1px;
  background-attachment: fixed;
  background-blend-mode: multiply;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
button { font: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--on-dark);
  padding: 10px 14px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Shared ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--light { color: var(--on-dark-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn:hover { background: var(--ink); color: var(--on-dark); }
.btn--ghost { border-color: var(--line-2); color: var(--ink-2); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--on-dark); }
.btn--solid:hover { background: transparent; color: var(--ink); }

/* Dark mode: --ink flips to light, so buttons need their foreground re-paired with --bg (now dark) for legibility */
:root[data-theme="dark"] .btn--solid { color: var(--bg); }
:root[data-theme="dark"] .btn--solid:hover { background: transparent; color: var(--ink); }
:root[data-theme="dark"] .btn:hover { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  font-size: 12px;
  text-transform: uppercase;
}
.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff 0 2px, transparent 3px), var(--ink);
  box-shadow: 0 0 0 1px var(--ink) inset;
}
.logo-mark--lg { width: 28px; height: 28px; background: radial-gradient(circle at 35% 35%, #f3f1ec 0 3px, transparent 4px), var(--on-dark); box-shadow: 0 0 0 1px var(--on-dark) inset; }
.nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}
.nav__cta:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 10vw, 112px) var(--pad) clamp(56px, 10vw, 120px);
}
.grid { max-width: var(--max); margin: 0 auto; }

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.hero__title {
  font-size: clamp(56px, 12vw, 176px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-transform: uppercase;
}
.hero__title .caret {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1.1s steps(1) infinite;
  color: var(--muted);
  font-weight: 400;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__panel {
  margin-top: 36px;
  background: var(--bg);
  padding: clamp(22px, 3vw, 36px) clamp(26px, 3.5vw, 40px);
  border-radius: var(--radius);
  width: fit-content;
  max-width: 100%;
}
.hero__lede {
  margin: 0;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--ink-2);
}

.hero__cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Section header ---------- */
.section {
  padding: clamp(56px, 8vw, 96px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.section__head {
  max-width: var(--max);
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.section__title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.section__dot {
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

/* ---------- Who ---------- */
.who {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.who__lead {
  grid-column: 1 / -1;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 920px;
}
.who__body { color: var(--ink-2); max-width: 56ch; }
.who__lists {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 24px clamp(16px, 2vw, 28px) 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  background: var(--bg);
}
.who__list { display: flex; flex-direction: column; gap: 14px; }
.who__list-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.who__list ul {
  display: flex;
  flex-direction: column;
}
.who__list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.who__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--ink);
  flex: none;
}
.who__list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Services ---------- */
.services {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.service {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 200ms ease, transform 200ms ease;
}
.service:hover { background: var(--bg); }
.services .service:nth-child(3n) { border-right: none; }
.services .service:nth-last-child(-n + 3) { border-bottom: none; }
.service__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.service p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.service__eg {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-deep) !important;
}
.service__eg em { font-style: normal; color: var(--ink); }
:root[data-theme="dark"] .service__eg { color: var(--warm) !important; }
:root[data-theme="dark"] .service__eg em { color: var(--ink); }

/* ---------- Clients ---------- */
/* "Worked With" stays cream / light-themed even in dark mode so the logos read */
#work {
  --bg: #f3f1ec;
  --bg-elev: #ecebe4;
  --ink: #0c0c0c;
  --ink-2: #2a2a2a;
  --muted: #7a7871;
  --line: #d6d3c9;
  --line-2: #c5c1b4;
  background: #f3f1ec;
}

.clients {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.clients li {
  flex: 1 1 180px;
  min-height: 92px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.clients li:last-child { border-right: none; }
.clients li img {
  max-height: 40px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}
.clients li:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}
.clients__text {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 220ms ease;
}
.clients li:hover .clients__text { opacity: 1; }

/* ---------- Feature (Sleep Swimmer) ---------- */
.feature {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 96px) var(--pad);
  border-bottom: 1px solid var(--dark-2);
  position: relative;
  overflow: hidden;
}
.feature__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.feature__title {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-top: 18px;
}
.feature__meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.feature__body {
  margin-top: 20px;
  max-width: 48ch;
  color: #d7d5cd;
  font-size: 16px;
  line-height: 1.6;
}
.press-quote {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 2px solid #3a3a3a;
  background: rgba(243, 241, 236, 0.04);
  border-radius: 4px;
  max-width: 52ch;
}
.press-quote blockquote {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 18px);
  font-style: italic;
  color: #efece5;
  line-height: 1.5;
}
.press-quote figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.press-quote cite { font-style: normal; }

.awards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #2a2a2a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  max-width: 560px;
}
.awards li {
  background: var(--dark);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.awards li span {
  font-size: 13px;
  color: #ececec;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.awards li em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.feature__pills {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.feature__pills li {
  padding: 7px 12px;
  border: 1px solid #2f2f2f;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfcdc5;
}
.feature__cta {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.feature .btn { border-color: var(--on-dark); color: var(--on-dark); }
.feature .btn:hover { background: var(--on-dark); color: var(--dark); }
.feature .btn--ghost { border-color: #3a3a3a; color: #cfcdc5; }
.feature .btn--ghost:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

.feature__art {
  display: grid;
  gap: 14px;
}

/* Gallery */
.gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #1d2a45;
  background: #0a1222;
  aspect-ratio: 16 / 10;
}
.gallery__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus { outline: none; }
.gallery__track:focus-visible {
  outline: 2px solid var(--on-dark);
  outline-offset: -2px;
}
.gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(243, 241, 236, 0.3);
  background: rgba(11, 11, 11, 0.55);
  color: var(--on-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.gallery__btn:hover {
  background: rgba(243, 241, 236, 0.95);
  color: var(--dark);
  border-color: var(--on-dark);
}
.gallery__btn:active { transform: translateY(-50%) scale(0.95); }
.gallery__btn svg { width: 20px; height: 20px; }
.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }
.gallery__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.5);
  backdrop-filter: blur(6px);
}
.gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(243, 241, 236, 0.45);
  transition: width 180ms ease, background 180ms ease;
}
.gallery__dot.is-active {
  background: var(--on-dark);
  width: 18px;
}

/* Blind box collectibles */
.merch {
  max-width: var(--max);
  margin: clamp(48px, 7vw, 80px) auto 0;
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid #1f1f1f;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.merch__title {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-top: 14px;
}
.merch__body {
  margin-top: 18px;
  max-width: 48ch;
  color: #d7d5cd;
  line-height: 1.6;
}
.merch__pills {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.merch__pills li {
  padding: 7px 12px;
  border: 1px solid #2f2f2f;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfcdc5;
}
/* Character lineup (replaces blind-box capsules) */
.characters {
  max-width: var(--max);
  margin: clamp(28px, 4vw, 48px) auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}
.character {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 280ms ease, border-color 280ms ease, background 280ms ease;
  position: relative;
  overflow: hidden;
}
.character::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(212, 165, 116, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
}
.character:hover {
  transform: translateY(-4px);
  border-color: var(--warm);
}
.character:hover::before { opacity: 1; }
.character img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}
.character p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #cfcdc5;
}

.boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.boxes li {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background:
    linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: #4a4a4a;
  overflow: hidden;
  transition: transform 280ms ease, color 280ms ease, border-color 280ms ease;
}
.boxes li::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(243, 241, 236, 0.06), transparent 70%);
  pointer-events: none;
}
.boxes li:hover {
  transform: translateY(-3px);
  color: #cfcdc5;
  border-color: #3a3a3a;
}
.boxes__rare {
  border-color: #5a4a1a !important;
  background: linear-gradient(180deg, #2b2412 0%, #16110b 100%) !important;
  color: #d6b56a !important;
}
.boxes__rare::after {
  content: "RARE";
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #d6b56a;
  opacity: 0.85;
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle__icon {
  width: 20px;
  height: 20px;
}
.theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

/* Sparkle trail: follows the cursor anywhere on the page */
.sparkle {
  position: fixed;
  pointer-events: none;
  width: var(--sparkle-size, 12px);
  height: var(--sparkle-size, 12px);
  background: #ffffff;
  clip-path: polygon(
    50% 0%, 53% 47%, 100% 50%, 53% 53%,
    50% 100%, 47% 53%, 0% 50%, 47% 47%
  );
  /* Light blue glow for visibility on dark bg + dark outline for visibility on light bg */
  filter:
    drop-shadow(0 0 6px rgba(180, 215, 255, 0.85))
    drop-shadow(0 0 3px rgba(20, 20, 40, 0.35));
  animation: sparkle-fade 800ms ease-out forwards;
  will-change: transform, opacity;
  z-index: 9999;
}
@keyframes sparkle-fade {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(0deg); }
  20%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(45deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(110deg) translate(0, 18px); }
}

.feature__readout {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  border-top: 1px solid #1f1f1f;
  padding-top: 14px;
}
.feature__readout span:nth-child(even) { color: var(--on-dark); }

/* ---------- Past games ---------- */
.past-games {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
}
.past-game {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.past-game header h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.past-game header span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.past-game p { color: var(--ink-2); }

/* ---------- Founders ---------- */
.founders {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: clamp(16px, 2.5vw, 32px);
}
.founder {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.founder header h3 { font-size: 22px; letter-spacing: -0.01em; }
.founder header span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.founder p { color: var(--ink-2); }
.founders__note {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}
.founders__note p { color: var(--ink-2); }
.founders__link {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  transition: color 180ms ease;
}
.founders__link:hover { color: var(--warm-deep); }
:root[data-theme="dark"] .founders__link:hover { color: var(--warm); }

/* ---------- Callout ---------- */
.callout {
  padding: clamp(56px, 8vw, 96px) var(--pad);
}
.callout__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(12,12,12,0.06) 0%, transparent 60%),
    var(--bg-elev);
}
.callout__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-top: 14px;
  text-transform: uppercase;
}
.callout__lede {
  margin: 14px 0 0;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.callout__body { margin: 18px 0 0; max-width: 52ch; color: var(--ink-2); }
.callout__body + .callout__body { margin-top: 14px; }
.callout__body + .btn,
.callout__body + .btn--solid { margin-top: 24px; }
.callout__grid .btn { margin-top: 24px; }
.callout__facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.callout__facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.callout__facts div:last-child { border-bottom: 1px solid var(--line); }
.callout__facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.callout__facts dd { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- Stay in the loop ---------- */
.loop {
  padding: clamp(48px, 7vw, 88px) var(--pad);
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(212, 165, 116, 0.18), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(180, 215, 255, 0.14), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.loop__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.loop__title {
  margin-top: 14px;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: none;
}
.loop__body {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 48ch;
}
.loop__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
:root[data-theme="dark"] .loop {
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(212, 165, 116, 0.10), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(180, 215, 255, 0.07), transparent 60%),
    var(--bg);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(36px, 5vw, 56px) var(--pad);
}
.footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer__mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.footer__links a:hover { color: var(--on-dark); }
.footer__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  text-align: right;
}
.footer__meta p + p { margin-top: 6px; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services .service:nth-child(3n) { border-right: 1px solid var(--line); }
  .services .service:nth-child(2n) { border-right: none; }
  .services .service:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .services .service:nth-last-child(-n + 2) { border-bottom: none; }

  .who { grid-template-columns: 1fr; }
  .who__lists { grid-template-columns: 1fr; }

  .feature__grid,
  .callout__grid { grid-template-columns: 1fr; }
  .merch { grid-template-columns: 1fr; }
  .characters { grid-template-columns: repeat(3, 1fr); }
  .loop__inner { grid-template-columns: 1fr; }
  .loop__cta { justify-content: flex-start; }
  .gallery { aspect-ratio: 16 / 10; }

  .founders { grid-template-columns: 1fr; }
  .past-games { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .services { grid-template-columns: 1fr; }
  .services .service { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .services .service:last-child { border-bottom: none !important; }
  .clients li { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .clients li:nth-child(2n) { border-right: none; }
  .characters { grid-template-columns: repeat(2, 1fr); }
  .callout__facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .gallery__track { scroll-behavior: auto; }
  .sparkle { display: none !important; }
}
