/* ==========================================================================
   AI Character Chat — dark editorial layer on the HeyAIBuddy system
   Same palette, type and surface language as the homepage; stronger composition.
   ========================================================================== */

:root {
  --bg: #0f0f13;
  --bg-deep: #0b0b0f;
  --surface: #1a1a23;
  --surface2: #22222e;
  --surface3: #2a2a38;
  --border: rgba(255, 255, 255, .08);
  --border-accent: rgba(167, 139, 250, .34);
  --accent: #a78bfa;
  --accent2: #7c3aed;
  --accent3: #c4b5fd;
  --text: #e8e8f0;
  --text2: #9999b0;
  --text3: #6c6c82;
  --green: #34d399;
  --pink: #fb6f92;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1280px;
  --gutter: 28px;
  --ease: cubic-bezier(.22, .68, .19, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 680px at 78% -8%, rgba(124, 58, 237, .22), transparent 64%),
    radial-gradient(720px 540px at 2% 20%, rgba(167, 139, 250, .07), transparent 62%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 44px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(124, 58, 237, .7);
  color: #fff;
}

img { max-width: 100%; }

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent3);
  outline-offset: 4px;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { text-wrap: pretty; }

.skip {
  position: fixed;
  left: 18px;
  top: -100px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--accent2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 19, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .2s ease, box-shadow .2s ease;
}

.masthead.is-scrolled {
  background: rgba(15, 15, 19, .96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
}

.masthead-inner {
  width: 100%;
  height: 60px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  box-shadow: 0 0 22px rgba(124, 58, 237, .35);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
  box-shadow: 0 0 30px rgba(167, 139, 250, .5);
}

.brand-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text2);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--text); }

.nav-create-wrap { position: relative; }

.nav-create-btn {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font: 700 13px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}

.nav-create-btn:hover { background: #6d28d9; }

.create-caret {
  display: inline-block;
  margin-left: 3px;
  font-size: 10px;
  transition: transform .2s ease;
}

.nav-create-btn[aria-expanded="true"] .create-caret { transform: rotate(180deg); }

.nav-create-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  display: none;
  width: 240px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #16161e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.nav-create-menu.open { display: block; }

.nav-create-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-create-menu a:hover { background: rgba(255, 255, 255, .05); }
.nav-create-menu a strong { font-size: 14px; }
.nav-create-menu a span { color: var(--text2); font-size: 12px; }
.nav-create-menu a.accent strong { color: #c4b5fd; }

#navAuthArea {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  padding: 9px 20px;
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.nav-btn-primary {
  background: var(--accent2);
  color: #fff;
}

.nav-btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Shared type and controls
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
}

h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -1.8px;
}

h2 em {
  display: inline;
  font-style: normal;
  background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 38%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.folio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.folio::before {
  content: "";
  width: 22px;
  height: 1px;
  flex-shrink: 0;
  background: currentColor;
}

.lede {
  max-width: 39ch;
  margin: 0;
  color: var(--text2);
  font-size: 16px;
  line-height: 1.6;
}

.fine {
  margin: 20px 0 0;
  color: var(--text3);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: .01em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(196, 181, 253, .35);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent2), #8b5cf6);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(124, 58, 237, .24);
  transition: background .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}

.button:hover {
  background: linear-gradient(135deg, #8b5cf6, var(--accent3));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(124, 58, 237, .34);
}

.button-light {
  background: #fff;
  border-color: #fff;
  color: #2a155e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.button-light:hover {
  background: #ede9fe;
  border-color: #ede9fe;
  color: #2a155e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .26);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(167, 139, 250, .4);
  color: var(--accent3);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}

.text-link:hover {
  gap: 13px;
  color: var(--accent);
  border-color: var(--accent);
}

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

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 132px var(--gutter) 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, .96fr);
  align-items: center;
  gap: 38px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 34px;
  right: -60px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .19) 0%, rgba(124, 58, 237, .05) 42%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 20px;
  padding: 5px 12px;
  border: 1px solid rgba(167, 139, 250, .3);
  border-radius: 20px;
  background: rgba(124, 58, 237, .12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
}

.kicker::before {
  content: "✦";
  font-size: 12px;
  line-height: 1;
}

.kicker-index {
  color: var(--accent3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2.8px;
}

h1 > span { display: block; }

h1 > em {
  display: block;
  margin-top: 2px;
  font-size: .78em;
  font-style: normal;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2.2px;
  background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 32%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-intro {
  max-width: 520px;
  margin: 0 0 27px;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.hero .fine { max-width: 480px; }

/* Featured character mosaic ------------------------------------------------ */

.casting-wall {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: auto auto;
  gap: 14px;
  isolation: isolate;
}

.casting-wall::before {
  content: "";
  position: absolute;
  inset: -36px -20px;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(circle at 64% 42%, rgba(124, 58, 237, .3), transparent 66%);
  filter: blur(28px);
  pointer-events: none;
}

.cast-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  text-decoration: none;
  color: #fff;
  transition: border-color .25s ease, transform .3s var(--ease), box-shadow .3s ease;
}

.cast-card::after {
  content: "";
  position: absolute;
  inset: 37% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(8, 8, 12, .88));
  pointer-events: none;
}

.cast-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  transition: transform .55s var(--ease);
}

.cast-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(124, 58, 237, .23);
}

.cast-card:hover img { transform: scale(1.04); }

.cast-a {
  grid-column: 1 / -1;
  aspect-ratio: 1.9 / 1;
}

.cast-b,
.cast-c { aspect-ratio: 4 / 5; }

.cast-b { grid-column: 1; }
.cast-c { grid-column: 2; }

.cast-b img { object-position: center 20%; }
.cast-c img { object-position: center 22%; }

.cast-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cast-caption strong {
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.cast-caption span {
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.cast-a .cast-caption strong { font-size: 22px; }

.wall-stamp {
  position: absolute;
  top: -18px;
  right: -14px;
  z-index: 5;
  width: 86px;
  height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  text-align: center;
  box-shadow: 0 0 34px rgba(124, 58, 237, .55);
  transform: rotate(8deg);
}

.wall-stamp span {
  font-size: 6px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
}

.wall-stamp strong {
  font-size: 24px;
  font-weight: 800;
  line-height: .95;
}

.wall-note { display: none; }

/* Ticker ------------------------------------------------------------------ */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(124, 58, 237, .06);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 10px 0 10px 22px;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::after {
  content: "✦";
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Contents ---------------------------------------------------------------- */

.contents {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  border-bottom: 1px solid var(--border);
}

.contents-title {
  margin: 2px 0 0;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contents-title span { color: var(--accent); }

.contents ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents li { border-left: 1px solid var(--border); }

.contents a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  min-height: 52px;
  padding: 0 16px;
  text-decoration: none;
}

.contents a > span {
  padding-top: 1px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.contents strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: color .15s ease;
}

.contents small {
  display: block;
  margin-top: 4px;
  color: var(--text3);
  font-size: 10px;
  line-height: 1.4;
}

.contents a:hover strong { color: var(--accent); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px var(--gutter);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 82px;
  overflow-x: clip;
}

.ghost-num {
  position: absolute;
  top: 18px;
  right: 8px;
  z-index: 0;
  color: transparent;
  font-family: var(--font);
  font-size: clamp(120px, 17vw, 250px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.08em;
  -webkit-text-stroke: 1px rgba(167, 139, 250, .13);
  pointer-events: none;
  user-select: none;
}

.section > :not(.ghost-num) {
  position: relative;
  z-index: 1;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, .76fr);
  align-items: end;
  gap: 44px;
  margin-bottom: 36px;
}

.section-head .lede { justify-self: end; }

/* Steps ------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}

.step {
  position: relative;
  display: block;
  min-height: 188px;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}

.step:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(124, 58, 237, .17);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.step-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
}

.step-arrow {
  color: var(--text3);
  font-size: 15px;
  transition: color .2s ease, transform .2s var(--ease);
}

.step:hover .step-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.step h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.2px;
}

.step p {
  max-width: 29ch;
  margin: 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.55;
}

/* Disclosure -------------------------------------------------------------- */

.disclosure {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .018);
}

.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::marker { content: ""; }

.disclosure-mark {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}

.disclosure[open] .disclosure-mark { transform: rotate(45deg); }

.disclosure-body {
  max-width: 900px;
  padding: 0 18px 20px;
}

.disclosure-body p {
  color: var(--text2);
  font-size: 14.5px;
  line-height: 1.7;
}

.disclosure-body a,
.alt-copy a,
.faq-answer a {
  color: var(--accent3);
  text-decoration-color: rgba(167, 139, 250, .45);
  text-decoration-thickness: 1px;
}

.disclosure-body a:hover,
.alt-copy a:hover,
.faq-answer a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Story starters
   -------------------------------------------------------------------------- */

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.prompt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  transition: border-color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
}

.prompt-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(124, 58, 237, .18);
}

.prompt-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.prompt-image {
  display: block;
  width: 100%;
  height: 188px;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .5s var(--ease);
}

.prompt-card:hover .prompt-image { transform: scale(1.035); }

.prompt-figure figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 12px 8px;
  background: linear-gradient(transparent, rgba(8, 8, 12, .8));
  color: rgba(255, 255, 255, .72);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .1em;
}

.prompt-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 16px 16px;
}

.prompt-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.prompt-body h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.prompt-quote {
  margin: 0 0 20px;
  padding-left: 11px;
  border-left: 2px solid rgba(167, 139, 250, .3);
  color: var(--text2);
  font-size: 13.5px;
  line-height: 1.6;
}

.prompt-quote p { margin: 0; }

.copy-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 11px;
  border: 1px solid rgba(167, 139, 250, .24);
  border-radius: 8px;
  background: rgba(124, 58, 237, .11);
  color: var(--accent3);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.copy-prompt:hover {
  border-color: var(--border-accent);
  background: rgba(124, 58, 237, .24);
  color: #fff;
}

.copy-prompt.is-copied {
  border-color: rgba(52, 211, 153, .4);
  background: rgba(52, 211, 153, .12);
  color: var(--green);
}

.copy-mark { font-size: 13px; }

.prompt-note {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.65;
}

.prompt-note::before {
  content: "NOTE / ";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
}

/* --------------------------------------------------------------------------
   Alternative
   -------------------------------------------------------------------------- */

.alternative-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 54px;
  align-items: start;
}

.alt-display { padding-top: 4px; }

.alt-word {
  position: relative;
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #ede9fe 0%, #a78bfa 36%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(55px, 6.8vw, 98px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.075em;
}

.alt-word span { display: block; }

.alt-word em {
  display: block;
  font-style: normal;
  font-weight: 800;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(196, 181, 253, .65);
}

.alt-word::after {
  content: "";
  position: absolute;
  top: 51%;
  left: -3%;
  width: 106%;
  height: 1px;
  background: linear-gradient(90deg, rgba(167, 139, 250, .7), transparent);
  transform: rotate(-4deg);
}

.alt-caption {
  display: block;
  margin-top: 22px;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .11em;
}

.alt-lead {
  color: var(--text2);
  font-size: 16px;
  line-height: 1.7;
}

.status-clipping {
  position: relative;
  margin: 26px 0 24px;
  padding: 19px 20px 20px;
  border: 1px solid var(--border-accent);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(34, 34, 46, .92), rgba(26, 26, 35, .96));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28), 0 0 40px rgba(124, 58, 237, .08);
}

.clip-label {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
}

.status-clipping h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.status-clipping p {
  margin: 0;
  color: var(--text2);
  font-size: 13.5px;
  line-height: 1.65;
}

.alt-disclosure { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Create feature
   -------------------------------------------------------------------------- */

.section-create {
  max-width: none;
  padding: 0;
  border-bottom: 0;
  background:
    radial-gradient(700px 420px at 82% 18%, rgba(196, 181, 253, .2), transparent 62%),
    linear-gradient(135deg, #241052 0%, #3b147c 42%, #6d28d9 100%);
  overflow: hidden;
}

.section-create::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 80%);
  pointer-events: none;
}

.create-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

.section-create .folio { color: var(--accent3); }

.section-create h2 { color: #fff; }

.section-create h2 em {
  background: linear-gradient(135deg, #fff 0%, #e9d5ff 52%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-create .lede {
  max-width: 38ch;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .74);
}

.create-figure {
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(15, 15, 19, .32);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.create-figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .46);
}

.create-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.create-figure figcaption {
  padding: 11px 5px 7px;
  color: rgba(255, 255, 255, .62);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.create-note {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.create-disclosure {
  margin-top: 0;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(15, 15, 19, .22);
}

.create-disclosure summary { color: #fff; }
.create-disclosure .disclosure-mark { color: var(--accent3); }
.create-disclosure .disclosure-body p { color: rgba(255, 255, 255, .7); }
.create-disclosure .disclosure-body a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.create-disclosure .disclosure-body a:hover { color: var(--accent3); }

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 2px 0 26px;
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.fact-index {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
}

.fact strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.4px;
}

.fact div > span {
  display: block;
  margin-top: 7px;
  color: var(--text3);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.section-faq { padding-bottom: 92px; }

.faq-layout {
  display: grid;
  grid-template-columns: .77fr 1.23fr;
  gap: 64px;
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 92px;
}

.faq-head h2 {
  max-width: 10ch;
  font-size: clamp(34px, 4.2vw, 54px);
}

.faq-list details {
  margin-bottom: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color .2s ease;
}

.faq-list details[open] { border-color: var(--border-accent); }

.faq-list summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 42px 15px 17px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }

.faq-mark {
  position: absolute;
  top: 12px;
  right: 15px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}

.faq-list details[open] .faq-mark { transform: rotate(45deg); }

.faq-answer { padding: 0 42px 17px 17px; }

.faq-answer p {
  margin: 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(700px 460px at 78% 34%, rgba(124, 58, 237, .35), transparent 62%),
    linear-gradient(180deg, #0d0d12, #0b0b0f);
}

.closing-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--gutter) 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.closing .folio { color: var(--accent); }
.closing .folio::before { background: var(--accent); }

.closing h2 {
  max-width: 12ch;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
}

.closing h2 em {
  background: linear-gradient(135deg, #ede9fe, #c4b5fd 42%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.closing p:not(.folio) {
  max-width: 49ch;
  margin-bottom: 25px;
  color: var(--text2);
  font-size: 16px;
  line-height: 1.65;
}

.closing-button {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-color: rgba(196, 181, 253, .4);
  box-shadow: 0 16px 44px rgba(124, 58, 237, .34);
}

.closing-star {
  display: block;
  color: rgba(167, 139, 250, .17);
  font-size: clamp(150px, 22vw, 320px);
  font-weight: 400;
  line-height: .6;
  user-select: none;
  transform: rotate(9deg);
}

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

.site-footer {
  position: relative;
  margin-top: 24px;
  padding: 64px 40px 28px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(168, 85, 247, .10), transparent 60%),
    radial-gradient(50% 100% at 100% 100%, rgba(236, 72, 153, .07), transparent 60%),
    var(--bg);
}

.sf-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) 3fr;
  gap: 56px;
}

.sf-brand .brand {
  display: inline-flex;
  margin-bottom: 14px;
}

.sf-tag {
  max-width: 300px;
  margin: 0 0 20px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}

.sf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.sf-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text2);
  font-size: 12px;
  white-space: nowrap;
}

.sf-badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .15);
}

.sf-mail {
  color: var(--text2);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: color .15s, border-color .15s;
}

.sf-mail:hover {
  color: var(--text);
  border-color: var(--accent);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.sf-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.sf-h {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}

.footer-links a {
  width: fit-content;
  color: var(--text2);
  font-size: 14px;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: color .15s, background-size .2s;
}

.footer-links a:hover {
  color: var(--text);
  background-size: 100% 1px;
}

.sf-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--text2);
  font-size: 12px;
}

.sf-close { display: none; }

.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  transition: transform .25s ease;
}

.footer-bar.is-tucked { transform: translateY(100%); }

.footer-brand {
  color: var(--text2);
  font-size: 12px;
  white-space: nowrap;
}

.footer-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.footer-more:hover {
  color: var(--text);
  border-color: var(--accent);
}

.footer-more svg { transition: transform .2s; }
.footer-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.footer-scrim {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
}

.site-footer.is-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 82vh;
  margin: 0;
  overflow-y: auto;
  padding-top: 44px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .5);
  animation: sfUp .28s cubic-bezier(.2, .8, .2, 1);
}

.site-footer.is-sheet .sf-close {
  display: grid;
  place-items: center;
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.site-footer.is-sheet::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 2px;
  background: var(--border);
}

.sf-spacer { display: none; }
.sf-spacer.on { display: block; }

@keyframes sfUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

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

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 108px;
    gap: 32px;
  }
  .hero-copy { max-width: 760px; }
  .casting-wall { max-width: 660px; width: 100%; justify-self: center; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .lede { justify-self: start; max-width: 56ch; }
  .alternative-grid { grid-template-columns: 1fr; gap: 28px; }
  .alt-display { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 22px; }
  .alt-caption { margin: 0 0 6px; text-align: right; }
  .create-inner { grid-template-columns: 1fr; gap: 38px; }
  .create-figure { max-width: 500px; justify-self: center; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-head { position: static; }
  .faq-head h2 { max-width: 16ch; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .masthead-inner { padding: 0 20px; gap: 12px; }

  .contents { grid-template-columns: 1fr; gap: 14px; }
  .contents ol { grid-template-columns: repeat(2, 1fr); }
  .contents li:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .contents li:nth-child(4) { border-top: 1px solid var(--border); }
  .contents a { min-height: 0; padding: 13px 16px 14px 0; }
  .contents li:nth-child(even) a { padding-left: 16px; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .ghost-num { top: 12px; right: -4px; }

  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: 18px; }
  .step-top { margin-bottom: 22px; }

  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-image { height: 220px; }

  .fact-row { grid-template-columns: 1fr; }

  .closing-inner { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 68px; }
  .closing-star { display: none; }

}

@media (max-width: 780px) {
  .masthead-inner { padding: 0 16px; gap: 8px; }

  .nav-links { gap: 6px; }

  .nav-links .nav-link { display: none; }

  .nav-create-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .create-caret,
  .nav-create-menu { display: none !important; }

  .nav-btn { padding: 7px 13px; font-size: 12px; }

  .site-footer { padding: 44px 16px 20px; }
  .sf-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .sf-bottom { margin-top: 32px; flex-direction: column; gap: 6px; }
  .footer-bar { padding: 0 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }

  body { font-size: 15px; }

  .brand-name { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; }

  .hero { padding-top: 92px; padding-bottom: 48px; gap: 24px; }
  .hero::before { right: -160px; top: 80px; width: 520px; height: 520px; }
  .kicker { font-size: 9px; padding: 4px 10px; margin-bottom: 16px; }
  h1 { font-size: clamp(40px, 12.8vw, 58px); letter-spacing: -1.8px; }
  h1 > em { font-size: .72em; letter-spacing: -1.4px; }
  .hero-intro { font-size: 15px; line-height: 1.6; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: flex-start; }
  .fine { font-size: 10px; }

  .casting-wall { gap: 8px; }
  .cast-a { aspect-ratio: 1.55 / 1; }
  .cast-b, .cast-c { aspect-ratio: 4 / 5; }
  .cast-caption { left: 11px; right: 11px; bottom: 10px; }
  .cast-caption strong { font-size: 15px; }
  .cast-caption span { font-size: 8px; }
  .cast-a .cast-caption strong { font-size: 17px; }
  .wall-stamp { top: -12px; right: -8px; width: 66px; height: 66px; }
  .wall-stamp strong { font-size: 19px; }
  .wall-stamp span { font-size: 5px; }

  .contents-title { font-size: 8px; }
  .contents strong { font-size: 13px; }
  .contents small { font-size: 9px; }

  .section { padding-top: 54px; padding-bottom: 54px; }
  h2 { font-size: clamp(30px, 9.5vw, 44px); letter-spacing: -1.2px; }
  .section-head { margin-bottom: 24px; }
  .lede { font-size: 14.5px; }
  .folio { margin-bottom: 12px; font-size: 8px; }
  .ghost-num { font-size: 112px; top: 18px; right: -6px; }

  .disclosure summary { padding: 13px 14px; font-size: 12px; }
  .disclosure-body { padding: 0 14px 16px; }
  .disclosure-body p { font-size: 13.5px; }

  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-image { height: 210px; }
  .prompt-body { padding: 15px 14px 14px; }
  .prompt-body h3 { font-size: 17px; }
  .prompt-quote { font-size: 13px; }

  .alt-display { display: block; }
  .alt-word { font-size: clamp(45px, 13.5vw, 76px); }
  .alt-caption { margin-top: 18px; text-align: left; }
  .alt-lead { font-size: 14.5px; }
  .status-clipping { padding: 16px 15px; }
  .status-clipping h3 { font-size: 17px; }

  .create-inner { padding-top: 52px; padding-bottom: 38px; gap: 26px; }
  .create-figure { padding: 6px; }
  .create-figure figcaption { font-size: 7px; }
  .create-note { padding-bottom: 48px; }

  .fact { padding: 15px; }
  .fact strong { font-size: 20px; }

  .faq-list summary { padding: 13px 38px 13px 15px; font-size: 14px; }
  .faq-mark { top: 10px; right: 13px; font-size: 17px; }
  .faq-answer { padding: 0 30px 15px 15px; }
  .faq-answer p { font-size: 13.5px; }

  .closing-inner { padding-top: 58px; padding-bottom: 58px; }
  .closing h2 { font-size: clamp(36px, 11vw, 52px); }
  .closing p:not(.folio) { font-size: 15px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .cast-card, .cast-card img, .prompt-image, .prompt-card, .create-figure, .button, .text-link, .nav a::after {
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
