/* Ghostlovecake preview. One display face (Fraunces) and one text face (Instrument Sans). */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0a0f1f;
  --night-2: #0e1630;
  --night-3: #16224a;
  --deep: #070b17;
  --teal: #8fe3d6;
  --teal-strong: #b6f0e7;
  --teal-glow: rgba(143, 227, 214, 0.22);
  --cream: #f4eee4;
  --muted: #c3cad8;
  --faint: #929db4;
  --line: rgba(244, 238, 228, 0.14);
  --line-strong: rgba(244, 238, 228, 0.3);
  --ghost-eye: #0a0f1f;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(18px, 5vw, 72px);
  --max: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ghost-eye { fill: var(--ghost-eye); }
.ghost-mouth { stroke: var(--ghost-eye); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Type roles ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(2.15rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lede {
  margin-top: 16px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; flex: none; fill: currentColor; }

.btn-primary {
  background: var(--teal);
  color: var(--night);
  box-shadow: 0 10px 34px -12px rgba(143, 227, 214, 0.55);
}
.btn-primary:hover { background: var(--teal-strong); }
.btn-primary:focus-visible { outline-color: var(--cream); }

.btn-ghost {
  background: rgba(10, 15, 31, 0.42);
  border-color: var(--line-strong);
  color: var(--cream);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-strong); }

.btn-compact { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn-large { min-height: 58px; padding: 0 32px; font-size: 1.1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(143, 227, 214, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.text-link:hover { color: var(--teal-strong); text-decoration-color: var(--teal); }
.text-link .icon { width: 16px; height: 16px; fill: currentColor; }
.arrow { width: 14px; height: 14px; flex: none; }

/* ---------- Masthead ---------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.is-scrolled {
  background: rgba(10, 15, 31, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  color: var(--cream);
}
.brand-ghost { width: 24px; height: 28px; fill: var(--cream); }
.brand-word {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.015em;
  line-height: 1;
}

.masthead-nav ul { display: flex; gap: 4px; }
.masthead-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.masthead-nav a:hover { color: var(--cream); background: rgba(244, 238, 228, 0.07); }

@media (max-width: 759px) {
  .masthead-nav { display: none; }
}
@media (max-width: 959px) {
  .nav-optional { display: none; }
}
@media (max-width: 419px) {
  .hide-narrow { display: none; }
  .brand-word { font-size: 1.15rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(60% 70% at 78% 38%, rgba(64, 196, 186, 0.22), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night) 100%);
}

.hero-media {
  position: absolute;
  z-index: -1;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--night-2);
}
.hero-shade { position: absolute; inset: 0; pointer-events: none; }

.hero-inner { position: relative; }

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-optical-sizing: auto;
  line-height: 0.84;
  letter-spacing: -0.035em;
  color: var(--cream);
  margin: 0 0 0 -0.04em;
}
.wm-line { display: block; }
.wm-cake { color: var(--teal); position: relative; width: max-content; }
.wm-ghost {
  position: absolute;
  top: -0.16em;
  right: -0.52em;
  width: 0.4em;
  height: 0.46em;
  fill: var(--cream);
  transform: rotate(10deg);
  filter: drop-shadow(0 6px 18px rgba(143, 227, 214, 0.35));
  animation: ghost-bob 5.5s ease-in-out infinite;
}

.hero-lede {
  max-width: 25em;
  margin-top: clamp(22px, 3vw, 32px);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--cream);
  text-wrap: pretty;
}
.hero-lede em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--teal-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-copilot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.97rem;
}
.icon-ghost { width: 20px; height: 23px; fill: var(--cream); flex: none; }

.hero-caption {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-caption p {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 15, 31, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-caption-quote {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  color: var(--cream);
}

.media-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 15, 31, 0.55);
  color: var(--cream);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--ease);
}
.media-toggle:hover { border-color: var(--teal); }
.media-toggle .icon { width: 18px; height: 18px; fill: currentColor; }
.media-toggle .icon-play { display: none; }
.media-toggle[aria-pressed="true"] .icon-play { display: block; }
.media-toggle[aria-pressed="true"] .icon-pause { display: none; }
.media-toggle[hidden] { display: none; }

/* Sparse, small hand-drawn stars */
.sky, .footer-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sky-star {
  position: absolute;
  width: 14px;
  height: 14px;
  fill: var(--cream);
  opacity: 0.75;
  animation: twinkle 6s ease-in-out infinite;
}
.s1 { top: 18%; left: 46%; width: 12px; height: 12px; animation-delay: -1s; }
.s2 { top: 30%; left: 7%; width: 9px; height: 9px; animation-delay: -3s; opacity: 0.5; }
.s3 { top: 12%; left: 30%; width: 7px; height: 7px; animation-delay: -2s; opacity: 0.55; }
.s4 { bottom: 16%; left: 52%; width: 10px; height: 10px; animation-delay: -4.5s; }
.s5 { top: 62%; left: 3%; width: 7px; height: 7px; animation-delay: -0.5s; opacity: 0.45; }

/* Desktop hero: video occupies the right, wordmark on the left */
@media (min-width: 880px) {
  .hero {
    min-height: min(100vh, 940px);
    min-height: min(100svh, 940px);
    display: flex;
    align-items: center;
    padding: 120px var(--gutter) 110px;
  }
  .hero-media {
    inset: 0 0 0 auto;
    width: 70%;
  }
  .hero-video { object-position: 50% 38%; }
  .hero-shade {
    background:
      linear-gradient(90deg, var(--night) 0%, rgba(10, 15, 31, 0.86) 14%, rgba(10, 15, 31, 0.35) 34%, rgba(10, 15, 31, 0) 52%),
      linear-gradient(0deg, var(--night) 0%, rgba(10, 15, 31, 0) 32%),
      linear-gradient(180deg, rgba(10, 15, 31, 0.55) 0%, rgba(10, 15, 31, 0) 22%),
      rgba(10, 15, 31, 0.12);
  }
  .hero-inner { width: min(100%, 640px); }
  .wordmark { font-size: min(8.6rem, 9.4vw); }
  .hero-caption { right: var(--gutter); bottom: 32px; }
}

/* Narrow hero: facecam on top, words below, recomposed rather than stacked */
@media (max-width: 879px) {
  .hero { padding: 0 var(--gutter) 56px; }
  .hero-media {
    inset: 0 0 auto 0;
    height: clamp(320px, 62svh, 640px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 64%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 64%, transparent 100%);
  }
  .hero-video { object-position: 54% 30%; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(10, 15, 31, 0.78) 22%, rgba(10, 15, 31, 0) 52%),
      linear-gradient(180deg, rgba(10, 15, 31, 0.7) 0%, rgba(10, 15, 31, 0) 26%),
      rgba(10, 15, 31, 0.08);
  }
  .hero-inner { padding-top: calc(clamp(320px, 62svh, 640px) - 132px); }
  .wordmark { font-size: clamp(3rem, 16.4vw, 7.6rem); }
  .wm-ghost { right: -0.5em; }
  .hero-caption { top: max(78px, calc(env(safe-area-inset-top) + 66px)); right: var(--gutter); font-size: 0.85rem; }
  .s1 { top: 46%; left: 78%; }
  .s4 { bottom: 10%; left: 82%; }
}
@media (max-width: 479px) {
  .hero-caption p { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Clips ---------- */

.clips {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(80px, 10vw, 140px);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night) 100%);
}
.clips-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 55% at 30% 52%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 30% 52%, #000 0%, transparent 100%);
}
.clips-ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(56px) saturate(1.3);
  opacity: 0.3;
  transform: scale(1.15);
  transition: opacity 0.6s var(--ease);
}
.clips-ambient img.is-swapping { opacity: 0; }

.section-head,
.clips-layout {
  max-width: var(--max);
  margin-inline: auto;
}
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.clips-layout {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (min-width: 880px) {
  .clips-layout { grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); }
  .stage { position: sticky; top: 96px; }
}

.stage { margin: 0; }
.stage-frame {
  position: relative;
  width: min(100%, calc(74svh * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #05070f;
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 120px -20px var(--teal-glow);
}
@media (max-width: 879px) {
  .stage-frame { width: min(100%, 400px, calc(70svh * 9 / 16)); margin-inline: auto; }
  .stage-caption { max-width: 400px; margin-inline: auto; }
}
.stage-poster,
.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-video { object-fit: contain; background: #000; }
.stage-video[hidden], .stage-play[hidden], .stage-warning[hidden], .stage-message[hidden] { display: none; }

.stage-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 20px 34px;
  border: 0;
  background: linear-gradient(0deg, rgba(5, 8, 18, 0.82) 0%, rgba(5, 8, 18, 0) 46%);
  cursor: pointer;
}
.stage-play-disc {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--night);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 8px rgba(244, 238, 228, 0.14);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stage-play-disc svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.stage-play:hover .stage-play-disc { transform: scale(1.06); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 10px rgba(143, 227, 214, 0.28); }
.stage-play:focus-visible { outline-offset: -6px; border-radius: var(--radius); }
.stage-play-label { font-weight: 600; font-size: 1rem; color: var(--cream); }

.stage-warning {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(10, 15, 31, 0.78);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
}

.stage-message {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px 20px;
  background: rgba(10, 15, 31, 0.92);
  border-top: 1px solid var(--line);
  text-align: center;
}
.stage-message p { color: var(--muted); }

.stage-caption { padding-top: 22px; }
.stage-game { color: var(--teal); font-size: 0.9rem; font-weight: 600; }
.stage-quote {
  margin: 6px 0 6px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  text-wrap: pretty;
}

/* The reel: a quiet running order, not a card grid */
.reel-list { counter-reset: reel; border-top: 1px solid var(--line); }
.reel-list li { border-bottom: 1px solid var(--line); }
.reel-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 108px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--cream);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.reel-item:hover { background: rgba(244, 238, 228, 0.05); }
.reel-item[aria-current="true"] {
  background: linear-gradient(90deg, rgba(143, 227, 214, 0.13), rgba(143, 227, 214, 0.02));
}
.reel-item[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--teal);
}
.reel-item:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.reel-thumb {
  width: 56px;
  height: 80px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}
.reel-text { display: grid; gap: 4px; min-width: 0; }
.reel-game { color: var(--muted); font-size: 0.9rem; }
.reel-dur {
  margin-left: 8px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.reel-title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.reel-item[aria-current="true"] .reel-title { color: var(--teal-strong); }
.reel-progress {
  position: absolute;
  left: 16px; right: 16px; bottom: -1px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.reel-item.is-playing .reel-progress { opacity: 1; }

@media (max-width: 479px) {
  .reel-item { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 12px 10px; min-height: 92px; }
  .reel-thumb { width: 44px; height: 66px; }
}

/* Twitch replay: consent first, then the official player */
.replay {
  position: relative;
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(143, 227, 214, 0.14), transparent 60%),
    linear-gradient(150deg, rgba(22, 34, 74, 0.85), rgba(10, 15, 31, 0.7));
  box-shadow: 0 0 0 1px var(--line);
}
.replay-intro { padding: clamp(22px, 3vw, 32px); }
.replay-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
}
.replay-kicker .icon { width: 18px; height: 18px; fill: currentColor; }
.replay-copy {
  margin-top: 10px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.2;
}
.replay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 20px;
}
.replay-actions [hidden] { display: none; }
.replay-note { margin-top: 12px; color: var(--faint); font-size: 0.875rem; }
.replay-note[hidden] { display: none; }
.replay-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.replay-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.replay-after {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 6px 20px;
  color: var(--faint);
  font-size: 0.875rem;
}

/* ---------- About ---------- */

.about {
  position: relative;
  display: grid;
  gap: clamp(56px, 7vw, 96px);
  align-items: center;
  padding: clamp(80px, 10vw, 150px) max(var(--gutter), calc((100% - var(--max)) / 2));
  background:
    radial-gradient(50% 60% at 18% 50%, rgba(64, 196, 186, 0.13), transparent 70%),
    var(--night);
}
@media (min-width: 880px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.about-media { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.about-photo { display: block; }
.about-photo img {
  width: 100%;
  aspect-ratio: 600 / 520;
  object-fit: cover;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 140px -30px rgba(143, 227, 214, 0.4);
}
.about-avatar {
  position: absolute;
  right: clamp(-22px, -1.5vw, -8px);
  bottom: -42px;
  width: clamp(112px, 26%, 150px);
  margin: 0;
  transform: rotate(4deg);
  text-align: center;
}
.about-avatar img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid var(--night);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.8);
}
.about-avatar figcaption {
  margin-top: 6px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 0.95rem;
  color: var(--muted);
}
.about-star { position: absolute; fill: var(--cream); opacity: 0.8; }
.about-star.a1 { width: 16px; height: 16px; top: -22px; left: 14%; }
.about-star.a2 { width: 10px; height: 10px; top: 18%; left: -18px; opacity: 0.5; }

.about-copy p { max-width: 32em; color: var(--muted); font-size: 1.125rem; margin-top: 18px; }
.about-copy h2 { margin-bottom: 6px; }

.copilot {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 34em;
}
.copilot-ghost {
  width: 58px;
  height: 68px;
  fill: var(--cream);
  filter: drop-shadow(0 10px 24px rgba(143, 227, 214, 0.35));
  animation: ghost-bob 6s ease-in-out infinite;
}
.about-copy .copilot-line {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 560;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.25;
  color: var(--cream);
  text-wrap: pretty;
}

/* ---------- Chat / house rules ---------- */

.rules {
  position: relative;
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(72px, 9vw, 130px) max(var(--gutter), calc((100% - var(--max)) / 2)) clamp(90px, 11vw, 160px);
  background:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(244, 238, 228, 0.55), transparent 60%),
    radial-gradient(1px 1px at 34% 70%, rgba(244, 238, 228, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 66% 14%, rgba(244, 238, 228, 0.5), transparent 60%),
    radial-gradient(1px 1px at 82% 62%, rgba(244, 238, 228, 0.4), transparent 60%),
    radial-gradient(1px 1px at 92% 30%, rgba(244, 238, 228, 0.45), transparent 60%),
    radial-gradient(60% 50% at 85% 100%, rgba(64, 196, 186, 0.1), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
@media (min-width: 880px) {
  .rules { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .rules-head { position: sticky; top: 110px; }
}
.rules-list { border-top: 1px solid var(--line); }
.rules-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rule-star { grid-row: span 2; width: 18px; height: 18px; margin-top: 8px; fill: var(--teal); }
.rules-list h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600;
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  line-height: 1.2;
}
.rules-list p { margin-top: 4px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(84px, 10vw, 140px) var(--gutter) 36px;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(64, 196, 186, 0.16), transparent 70%),
    linear-gradient(180deg, var(--night-2) 0%, var(--deep) 70%);
  border-top: 1px solid var(--line);
}
.f1 { top: 14%; left: 16%; width: 12px; height: 12px; }
.f2 { top: 26%; right: 14%; left: auto; width: 9px; height: 9px; animation-delay: -2s; }
.f3 { top: 52%; left: 8%; width: 7px; height: 7px; animation-delay: -4s; opacity: 0.5; }

.footer-cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 30px;
  text-align: center;
  max-width: var(--max);
  margin: 0 auto clamp(64px, 8vw, 110px);
}
.footer-title {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(2.7rem, 1.4rem + 6.4vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.footer-ghost {
  display: inline-block;
  width: 0.42em;
  height: 0.5em;
  margin-left: 0.14em;
  vertical-align: 0.12em;
  fill: var(--cream);
  animation: ghost-bob 5s ease-in-out infinite;
}

.footer-grid {
  position: relative;
  display: grid;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
}
.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 10px;
}
.link-list { border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 6px 4px;
  color: var(--cream);
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.3rem;
  font-weight: 560;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.link-list a:hover { color: var(--teal-strong); }
.link-list .icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.link-handle {
  margin-left: auto;
  padding-left: 12px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--faint);
  text-align: right;
}
.footer-note { margin-top: 14px; color: var(--faint); font-size: 0.95rem; }

.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  margin: clamp(56px, 7vw, 90px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.875rem;
}
.footer-base p:last-child { max-width: 46em; }

/* ---------- Motion ---------- */

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 0.85; transform: scale(1) rotate(8deg); }
}
@keyframes ghost-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}

/* No-JS: the reel stays a set of plain TikTok links, so hide the progress affordance. */
.no-js .reel-progress { display: none; }

/* ---------- 404 ---------- */
.notfound-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(64, 196, 186, 0.16), transparent 70%),
    var(--night);
}
.notfound { padding: 48px var(--gutter); text-align: center; }
.notfound-ghost { width: 72px; height: 84px; margin: 0 auto 28px; fill: var(--cream); animation: ghost-bob 5s ease-in-out infinite; }
.notfound h1 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.notfound p { margin-top: 14px; color: var(--muted); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px !important; }
