/* home: chapter 01, The Idea. Shots follow the film from 00:00 to the mark. */

/* ---------- title ---------- */
.title-shot { padding-top: 70px; }
.title-ring { width: clamp(90px, 10vw, 150px); height: auto; margin: 0 auto clamp(1rem, 2vw, 2rem); }
.title-ring .ring-arc { stroke-width: 8.5; filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.7)) drop-shadow(0 0 34px rgba(245, 197, 66, 0.35)); }
.title-ring .ring-core { filter: drop-shadow(0 0 16px rgba(171, 132, 249, 0.95)); }
.title-word { margin: 0; font-size: inherit; }
.title-word .slam { font-size: clamp(4rem, 15vw, 15rem); letter-spacing: 0.02em; display: inline-block; }
.title-cap { margin-top: clamp(1rem, 2vw, 1.8rem); }
.title-line { margin-top: 1.4rem; }
.title-btns { margin-top: 2.2rem; }
.title-fine { margin-top: 1.4rem; }
.title-hint { margin-top: 1.2rem; justify-content: center; }
.scroll-cue { position: absolute; left: 50%; bottom: calc(var(--hud-y) + 18px); width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(171, 132, 249, 0.45); border-radius: 12px; }
.scroll-cue i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- the question ---------- */
.ask-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.ask-book { display: grid; gap: 1.6rem; justify-items: center; }
.folio { position: relative; width: min(100%, 560px); padding: clamp(1.4rem, 2.6vw, 2.4rem) clamp(1.4rem, 3vw, 2.8rem) clamp(1.8rem, 3vw, 2.6rem);
  background: radial-gradient(ellipse at 40% 30%, #efe3c4, #d9c79d 80%); color: #2b2316; border-radius: 3px; transform: rotate(-0.6deg);
  box-shadow: 0 0 0 1px rgba(80, 60, 20, 0.3), 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 120px -30px rgba(242, 190, 120, 0.4); transition: box-shadow 1s, filter 1s; }
.folio::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 3px; background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 40%, rgba(60, 40, 10, 0.18)); mix-blend-mode: multiply; }
.folio figcaption { text-align: center; font: italic 400 clamp(0.8rem, 1vw, 0.95rem)/1 var(--serif); color: #6b5a3c; margin-bottom: 1rem; }
.folio p { font: 400 clamp(0.98rem, 1.32vw, 1.22rem)/1.62 var(--serif); }
.folio mark { background: transparent; color: inherit; border-radius: 2px; transition: background 0.9s var(--ease), color 0.9s, box-shadow 0.9s; }
.folio-tag { position: absolute; right: 1.1rem; bottom: 0.7rem; font: 600 0.56rem/1 var(--mono); letter-spacing: 0.08em; color: #8a6d2a; opacity: 0; transition: opacity 0.6s 0.4s; }
.ask-shot.answered .folio { box-shadow: 0 0 0 1px rgba(80, 60, 20, 0.3), 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 140px -20px rgba(245, 197, 66, 0.55); }
.ask-shot.answered .folio mark { background: rgba(245, 197, 66, 0.55); box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.55); color: #1d1608; }
.ask-shot.answered .folio-tag { opacity: 1; }
.ask { display: flex; align-items: center; gap: 0.9rem; width: min(100%, 560px); padding: 0.75rem 0.75rem 0.75rem 1.2rem; border-radius: 999px;
  border: 1.5px solid rgba(116, 51, 224, 0.75); background: rgba(14, 11, 26, 0.92); box-shadow: 0 0 30px -8px rgba(116, 51, 224, 0.8); }
.ask-k { font: 600 0.56rem/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.ask-q { flex: 1; min-width: 0; font: 500 clamp(0.92rem, 1.2vw, 1.08rem)/1.3 var(--sans); color: var(--white); min-height: 1.3em; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--white); animation: blink 1s steps(1) infinite; }
.ask .key { height: 2.1em; min-width: 2.4em; }
.ask-shot.answered .ask .key { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px -2px var(--gold); }
.ask-copy .head { margin-top: 0.7rem; }
.ask-copy .lede { margin-top: 1.2rem; }
.ask-voice { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(171, 132, 249, 0.14); }

/* ---------- the idea ---------- */
.idea-line { margin: 0; }
.idea-line .slam { font-size: clamp(2.1rem, 6vw, 6.2rem); letter-spacing: -0.01em; }
.idea-sub { margin-top: 1.2rem; }
.idea-vs { display: flex; justify-content: center; align-items: center; gap: 2.4rem; margin-top: 2.6rem; }
.idea-lede { margin-top: 2.4rem; }
.idea-fine { margin-top: 1rem; }

/* ---------- costume and grounded ---------- */
.duel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.duel-who { display: grid; justify-items: center; text-align: center; gap: 0.35rem; }
.orb--xl { --s: clamp(200px, 22vw, 330px); margin-bottom: 1.2rem; }
.orb--lg { --s: clamp(160px, 16vw, 250px); }
.orb--fake { overflow: hidden; }
.orb--fake img { filter: grayscale(1) sepia(1) hue-rotate(-38deg) saturate(3.2) brightness(0.82) contrast(1.15); }
.fake-lines { position: absolute; inset: 0; border-radius: 50%; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 59, 92, 0.16) 0 2px, transparent 2px 5px); animation: flicker 3.2s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.6; } 48% { opacity: 1; transform: translateX(2px); } 49% { transform: none; } }
.duel-name { font: 700 0.72rem/1.2 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.duel-name.gold { color: var(--gold); text-shadow: none; }
.duel-who .check { width: min(100%, 300px); margin-top: 1.2rem; }
.duel-talk { display: grid; gap: 1rem; justify-items: start; position: relative; }
.duel-q { justify-self: end; }
.duel-talk .answer { width: 100%; }
.duel-stamp { position: absolute; right: 2%; top: 46%; z-index: 3; pointer-events: none; }
.duel-lede { margin-top: 1.6rem; }
.chunk { width: 100%; padding: 0.95rem 1.2rem 1.1rem; }
.chunk p { margin-top: 0.6rem; font: 400 0.92rem/1.6 var(--serif); color: var(--muted); }
.chunk b { font-weight: 500; color: var(--gold-hi); }
/* The words that the answer takes from the source word for word, as in the app. */
.answer--gold p b { font-weight: inherit; color: var(--gold-hi); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 0.22em; }

/* ---------- roleplay / revival ---------- */
.rr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem clamp(1rem, 3vw, 3rem); margin: 1.6rem 0 0; }
.rr-a { position: relative; display: inline-block; }
.rr-a .slam { color: var(--red); text-shadow: var(--glow-red); }
.strike { position: absolute; left: -3%; right: -3%; top: 52%; height: 0.09em; min-height: 5px; background: var(--red); box-shadow: var(--glow-red); transform: scaleX(0); transform-origin: left; border-radius: 3px; }
html.js .revival-shot.on .strike { transform: scaleX(1); transition: transform 0.45s var(--ease) 0.85s; }
html:not(.js) .strike { transform: scaleX(1); }
.rr-and { font-size: clamp(1.6rem, 3.4vw, 3rem); color: var(--text-2); }
.rr-b { text-shadow: var(--glow-gold); }
.ctq { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem clamp(1rem, 2.4vw, 2.4rem); margin-top: clamp(1.6rem, 3vw, 3rem); }
.revival-lede { margin-top: 2.2rem; }
.revival-shot .dossier-btn { margin-top: 1.6rem; }

/* ---------- the minds ---------- */
.minds-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(0.7rem, 1.3vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3.6rem); }
.minds-row a { display: grid; justify-items: center; color: inherit; }
.minds-row .orb { --s: clamp(70px, 7.4vw, 118px); transition: transform 0.35s var(--pop), box-shadow 0.35s; }
.minds-row a:hover .orb, .minds-row a:focus-visible .orb { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 2px var(--c), 0 0 30px 0 var(--c), 0 0 80px -10px var(--c); }
.minds-row .is-vault .orb-name { color: var(--muted); }
.minds-row .orb-name { font-size: 0.58rem; }
.minds-voices { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: clamp(2rem, 3.4vw, 3rem); }
.minds-fine { margin-top: 1.2rem; }
.minds-shot .btns { margin-top: 1.6rem; }

/* ---------- versus ---------- */
.vs { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 0.7fr); grid-template-areas: "topic topic topic" "l mid r" "foot foot foot"; gap: 1.4rem clamp(1rem, 3vw, 3rem); align-items: center; }
.vs-topic { grid-area: topic; }
.vs-side { display: grid; justify-items: center; text-align: center; gap: 0.3rem; }
.vs-side--l { grid-area: l; } .vs-side--r { grid-area: r; }
.vs-side .orb { margin-bottom: 1rem; }
.vs-name { font: 900 clamp(1.3rem, 2.2vw, 2rem)/1 var(--sans); text-transform: uppercase; color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.vs-mid { grid-area: mid; display: grid; gap: 1rem; justify-items: center; position: relative; }
.vs-q { width: 100%; }
.vs-q p { font-size: clamp(1.02rem, 1.4vw, 1.3rem); }
.vs-q mark { background: color-mix(in srgb, var(--c) 32%, transparent); color: var(--white); padding: 0 0.12em; border-radius: 2px; }
.vs-badge { font: 400 clamp(1.2rem, 2.2vw, 2rem)/1 var(--pixel); color: var(--gold-hi); text-shadow: var(--glow-gold), 3px 3px 0 var(--violet); }
.vs-foot { grid-area: foot; display: grid; gap: 1.1rem; justify-items: center; margin-top: 0.6rem; }
.vs-foot .lede { max-width: 70ch; }

/* ---------- for the living ---------- */
.living { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.living-copy .head { margin-top: 0.7rem; }
.living-copy .lede { margin-top: 1.3rem; }
.living-copy .btns { margin-top: 1.8rem; }
.living-cards { display: grid; gap: 1rem; }
.living-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.3rem; align-items: center; padding: 1.2rem 1.4rem; }
.living-card h3 { margin: 0.35rem 0 0.4rem; font: 850 1.35rem/1.1 var(--sans); text-transform: uppercase; color: var(--white); }
.living-num { margin-top: 0.7rem; font: 500 0.66rem/1.5 var(--mono); letter-spacing: 0.06em; color: var(--text-2); }
.living-num b { font: 700 1.2rem/1 var(--mono); color: var(--gold-hi); text-shadow: var(--glow-gold); margin-right: 0.3rem; }

/* ---------- how it works ---------- */
.how-shot .head { margin-top: 0.6rem; }
.how-flow { display: grid; grid-template-columns: minmax(0, 1fr) 4vw minmax(0, 1fr) 4vw minmax(0, 1fr) 4vw minmax(0, 1fr); align-items: center; margin-top: clamp(2.2rem, 4vw, 3.6rem); text-align: left; }
.how-flow .node { padding: 1rem 1.1rem 1.15rem; }
.how-flow .node small { font-size: 0.66rem; }
.how-flow .node.lit { box-shadow: 0 0 0 1px var(--c), 0 0 34px -6px var(--c); background: color-mix(in srgb, var(--c) 12%, #100e1a); }
.how-lede { margin-top: 0.8rem; }
.how-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.6rem; margin-top: 1.8rem; text-align: left; }
.how-mini li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.55rem; font-size: 0.78rem; line-height: 1.45; color: var(--text-2); }
.how-mini .sw { grid-row: span 2; margin-top: 0.3rem; }
.how-mini b { font: 600 0.6rem/1.3 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 0.25rem; }
.sw { width: 10px; height: 10px; border-radius: 2px; } .sw--gold { background: var(--gold); } .sw--lav { background: var(--lav); } .sw--mint { background: var(--mint); }
.how-shot .btns { margin-top: 1.6rem; }

/* ---------- the ensemble ---------- */
.nums { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.nums-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1.1rem); max-width: 440px; justify-self: center; width: 100%; }
.nums-roster span { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--c); box-shadow: 0 0 18px -6px var(--c); background: #0b0914; }
.nums-roster img { width: 100%; height: 100%; object-fit: cover; }
.nums-roster i { position: absolute; right: 6px; bottom: 5px; font: 600 0.55rem/1 var(--mono); font-style: normal; color: #fff; text-shadow: 0 1px 4px #000; }
.nums-roster .lock { display: grid; place-items: center; border-style: dashed; background: repeating-linear-gradient(0deg, rgba(171, 132, 249, 0.06) 0 2px, transparent 2px 5px), #0b0914; }
.nums-roster .lock b { font: 400 clamp(1.4rem, 3vw, 2.4rem)/1 var(--pixel); color: var(--lav); text-shadow: var(--glow-lav); }
.nums-roster .lock i { left: 0; right: 0; text-align: center; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lav); }
.nums-read .big-num { margin-top: 0.5rem; }
.nums-read .cap--gold { margin-top: 0.7rem; }
.nums-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 2rem 0 0; }
.nums-grid dt { font: 500 0.58rem/1.3 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.nums-grid dd { margin: 0.5rem 0 0.7rem; }
.nums-grid dd b { font: 700 clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--mono); color: var(--white); }
.nums-grid dd small { font: 600 0.7rem var(--mono); color: var(--gold); }
.nums-vault { margin-top: 1.8rem; border-style: dashed; border-color: rgba(171, 132, 249, 0.4); }
.nums-vault .serif-line { margin: 0.3rem 0 0.4rem; }
.nums-read .fine { margin-top: 1rem; }

/* ---------- chapter select ---------- */
.select-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 2rem; align-items: end; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.select-head .head { margin-top: 0.8rem; }
.select-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 1.4vw, 1.3rem); }
.select-tile { position: relative; display: grid; align-content: end; min-height: clamp(180px, 17vw, 240px); padding: 1rem 1.1rem 1.1rem; border-radius: 12px; overflow: hidden; isolation: isolate;
  border: 1.5px solid var(--line); color: var(--text); background: #0b0a12; transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease); }
.select-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.42; filter: saturate(0.7); transition: opacity 0.35s, transform 0.8s var(--ease), filter 0.35s; }
.select-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 5, 12, 0.2), rgba(6, 5, 12, 0.92) 70%); }
.select-tile .st-n { position: absolute; top: 0.9rem; left: 1rem; font: 400 0.8rem/1 var(--pixel); color: var(--lav); text-shadow: var(--glow-lav); }
.select-tile b { font: 900 clamp(1.15rem, 1.7vw, 1.55rem)/1.05 var(--sans); text-transform: uppercase; color: var(--white); }
.select-tile small { margin-top: 0.45rem; font-size: 0.8rem; line-height: 1.45; color: var(--text-2); }
.depth { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; font: 600 0.56rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.depth i { position: relative; width: 70px; height: 6px; background: repeating-linear-gradient(90deg, rgba(171, 132, 249, 0.2) 0 6px, transparent 6px 8px); }
.depth i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 8px); }
.select-tile:hover, .select-tile:focus-visible { color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 34px -8px rgba(245, 197, 66, 0.7); transform: translateY(-3px); outline: none; }
.select-tile:hover img, .select-tile:focus-visible img { opacity: 0.75; transform: scale(1.05); filter: none; }
.select-tile:hover::after, .select-tile:focus-visible::after { content: "▶ START"; position: absolute; top: 0.85rem; right: 1rem; font: 400 0.6rem/1 var(--pixel); color: var(--gold-hi); animation: blink 0.9s steps(1) infinite; }
.select-tile.is-boss { border-color: rgba(245, 197, 66, 0.4); }
.select-tile.is-boss .st-n { color: var(--gold); text-shadow: var(--glow-gold); }
.select-fine { margin-top: 1.4rem; }

/* ---------- the film ---------- */
.film { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.film-copy .head { margin-top: 0.7rem; }
.film-copy .lede { margin-top: 1.2rem; }
.film-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; margin: 1.8rem 0 0; }
.film-stats dt { font: 500 0.56rem/1 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.film-stats dd { margin: 0.45rem 0 0; font: 500 0.82rem/1.3 var(--mono); color: var(--text); }
.film-stats b { color: var(--gold-hi); }

/* ---------- the mark ---------- */
.mark-shot { min-height: 100svh; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .how-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .how-flow .wire { display: none; }
  .how-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "topic topic" "l r" "mid mid" "foot foot"; }
}
@media (max-width: 900px) {
  .ask-grid, .duel, .living, .nums, .film, .select-head { grid-template-columns: minmax(0, 1fr); }
  .duel-who { order: 0; }
  .duel-stamp { position: static; justify-self: center; margin: 0.6rem 0; }
  .select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .title-shot { min-height: 100svh; }
  .orb--xl { --s: 200px; }
  .orb--lg { --s: 130px; }
  .nums-grid { grid-template-columns: minmax(0, 1fr); }
  .nums-roster { max-width: 300px; }
  .select-grid { grid-template-columns: minmax(0, 1fr); }
  .select-tile { min-height: 160px; }
  .living-card { grid-template-columns: minmax(0, 1fr); }
  .idea-vs { gap: 1rem; }
  .minds-row { gap: 0.9rem 0.6rem; }
  .minds-row .orb { --s: 74px; }
  .vs-badge { margin: 0.2rem 0; }
}
@media (max-width: 520px) {
  .how-flow { grid-template-columns: minmax(0, 1fr); }
  .vs { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topic" "l" "mid" "r" "foot"; }
  .film-stats { grid-template-columns: minmax(0, 1fr); }
  .how-mini { grid-template-columns: minmax(0, 1fr); }
}
