/* Five Talents Games — landing page.
   Boska for headings, General Sans for text. One accent: the gold of the 5T
   hallmark, whose clipped corners also shape the buttons, frames and tags. */

@font-face { font-family: "Boska"; src: url("/fonts/boska-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Boska"; src: url("/fonts/boska-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Boska"; src: url("/fonts/boska-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #0a0b10;
  --ink-2: #0f1118;
  --ink-3: #161925;
  --paper: #f4efe4;
  --text: #f4efe4;
  --text-2: #c4bdb0;
  --text-3: #8f897e;
  --gold: #e2ae4e;
  --gold-bright: #f0c26b;
  --line: rgb(244 239 228 / 0.12);
  --serif: "Boska", Georgia, serif;
  --sans: "General Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --cut: 10px;
  color-scheme: dark;
}

/* The hallmark's clipped corners, sized by --cut. */
.button, .frame, .frame img, .tag {
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
/* A menu link lands with the section's title just under the header, past the section's top padding. */
section[id] { scroll-margin-top: calc(24px - var(--pad-top, 0px)); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #17120a; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Shared type */

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  color: var(--gold);
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-num { color: var(--paper); opacity: 0.55; letter-spacing: 0.1em; }

.section-title {
  max-width: 15ch;
  font: 700 clamp(40px, 5.2vw, 76px)/1.02 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lede {
  max-width: 34em;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(17px, 1.4vw, 19px);
  text-wrap: pretty;
}

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  background: var(--gold);
  color: #17120a;
  font: 600 16px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.button:hover { background: var(--gold-bright); transform: translateY(-2px); }
.button:focus-visible { outline: none; background: var(--paper); box-shadow: inset 0 0 0 3px #17120a; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--paper);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(226 174 78 / 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: text-decoration-color 0.25s, color 0.25s;
}
.text-link::after { content: "→"; text-decoration: none; display: inline-block; transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--gold-bright); text-decoration-color: var(--gold-bright); }
.text-link:hover::after { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }

.frame {
  --cut: 12px;
  padding: 1px;
  background: linear-gradient(140deg, rgb(244 239 228 / 0.5), rgb(244 239 228 / 0.06) 45%, rgb(226 174 78 / 0.55));
}
.frame img { --cut: 11px; width: 100%; }

.tag {
  --cut: 6px;
  display: inline-block;
  padding: 8px 12px 7px;
  background: rgb(226 174 78 / 0.16);
  color: var(--gold-bright);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.site-header.is-solid {
  background: rgb(10 11 16 / 0.8);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; background: url("/images/logos/five-talents-games-mark.svg") center / contain no-repeat; }
.brand-word {
  width: 147px; height: 36px;
  background: url("/images/logos/five-talents-games-wordmark.svg") left center / contain no-repeat;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.site-header.is-solid .brand-word { opacity: 1; transform: none; }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 40px); margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative;
  padding: 8px 0;
  color: var(--paper);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hero */

.hero {
  position: relative;
  min-height: max(680px, 100svh);
  /* The logo, blurb and buttons sit centre-left, in the painting's dark open sky
     (see .design/five-talents-games-hero-placement-research.md). */
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-art { position: absolute; inset: 0; z-index: -2; --focus: 50% 50%; }
.hero-art img, .hero-art canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus);
}
.hero-art canvas { opacity: 0; transition: opacity 1.4s ease; }
.hero-art canvas.is-on { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(10 11 16 / 0.86) 0%, rgb(10 11 16 / 0.55) 30%, rgb(10 11 16 / 0) 56%),
    linear-gradient(0deg, var(--ink) 0%, rgb(10 11 16 / 0.6) 12%, rgb(10 11 16 / 0) 34%),
    linear-gradient(180deg, rgb(10 11 16 / 0.6) 0%, rgb(10 11 16 / 0) 16%);
}
.hero-copy { width: min(640px, 100%); padding: 76px var(--gutter) 0; }
.hero-logo img { width: clamp(300px, 37vw, 540px); }
.hero-lede {
  max-width: 31em;
  margin-top: 34px;
  color: #e9e3d7;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0;
  margin: 26px 0 0; padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
}
.facts li + li::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; margin: 0 14px 2px;
  background: var(--gold); transform: rotate(45deg);
}
/* On the follow page the logo carries the page's name under it. */
.hero-page-name { margin: 30px 0 0; }
.hero-logo, .hero-lede, .hero-copy .actions, .facts { animation: rise 1.2s var(--ease) both; }
.hero-lede { animation-delay: 0.2s; }
.hero-copy .actions { animation-delay: 0.35s; }
.facts { animation-delay: 0.5s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Games */

.games { --pad-top: clamp(72px, 9vw, 128px); padding-top: var(--pad-top); }
/* The first hero's words, right below the hero. */
.games-intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px 24px;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.intro-title { grid-column: 1 / -1; }
.intro-side { grid-column: 7 / span 6; }
.intro-title {
  font: 700 clamp(42px, 6.4vw, 96px)/1 var(--serif);
  letter-spacing: -0.025em;
}
.intro-title span { display: block; text-wrap: balance; }
.intro-title span + span { color: var(--gold); }
.intro-side .section-lede { margin: 0 0 26px; }

.world {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.world + .world { margin-top: clamp(16px, 3vw, 48px); }
.world-art { position: absolute; top: 0; bottom: 0; width: 64%; z-index: -1; }
.world--art-right .world-art {
  right: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32%), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.world--art-left .world-art {
  left: 0;
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 32%), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(270deg, transparent, #000 32%), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.world-art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus);
  transform: scale(1.08);
  transition: transform 2.6s var(--ease);
}
.world.is-in .world-art img { transform: scale(1); }
/* A wide key art shows whole, not cropped to the panel's height. */
@media (min-width: 960px) {
  .world--wide { min-height: 0; }
  .world--wide .world-art { top: 50%; bottom: auto; width: 68%; aspect-ratio: 16 / 9; transform: translateY(-50%); }
}

.world-inner {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 120px) var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: end;
}
.world-copy { grid-row: 1; align-self: center; text-shadow: 0 1px 18px rgb(10 11 16 / 0.6); }
.world--art-right .world-copy { grid-column: 1 / span 5; }
.world--art-left .world-copy { grid-column: 8 / span 5; }

.world-logo { margin: 6px 0 28px; }
.world-logo img { filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.5)); }
.world-logo--sunward img { width: clamp(240px, 26vw, 360px); margin-left: -8px; }
.world-logo--homefall img { width: clamp(220px, 24vw, 340px); }
/* A game with no logo yet shows its name in the display face. */
.world-logo--text { font: 700 clamp(52px, 6vw, 84px)/0.95 var(--serif); letter-spacing: -0.02em; color: var(--paper); text-shadow: 0 8px 24px rgb(0 0 0 / 0.5); }
.world-pitch {
  max-width: 22em;
  font: 500 clamp(21px, 1.9vw, 26px)/1.35 var(--serif);
  text-wrap: pretty;
}
.world-facts { margin-top: 28px; max-width: 30em; }
.world-facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.world-facts div:last-child { border-bottom: 1px solid var(--line); }
.world-facts dt { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 3px; }
.world-facts dd { color: var(--text-2); font-size: 16px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; color: var(--text-2); font-size: 16px; }

/* Gameplay: short silent clips, started by page.js when on screen. */
.gameplay { --pad-top: clamp(110px, 13vw, 180px); padding: var(--pad-top) 0 0; }
.gameplay-head { max-width: 760px; }
.clips {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px);
  margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; list-style: none;
}
.clip:first-child { grid-column: 1 / -1; }
.clip-figure { margin: 0; }
.clip-frame { position: relative; filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.5)); }
.clip-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); --cut: 11px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.clip-toggle {
  position: absolute; right: 14px; bottom: 14px;
  padding: 8px 12px; border: 0; border-radius: 4px;
  background: rgb(10 11 16 / 0.72); color: var(--paper);
  font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.clip-toggle:hover { background: rgb(10 11 16 / 0.9); color: var(--gold-bright); }
.clip-toggle:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.clip-figure figcaption { margin-top: 18px; color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.clip-game { display: block; margin-bottom: 6px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.reveal-ready .clip:nth-child(3)[data-reveal] { transition-delay: 0.15s; }

/* Follow page: what's open today, what to send, the game bibles */

.today { --pad-top: clamp(96px, 11vw, 150px); padding: var(--pad-top) 0 0; }
.today-head { max-width: 760px; }
.stages {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 52px);
  margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; list-style: none;
}
.stage { display: flex; flex-direction: column; }
.stage .frame { filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.5)); }
.stage .frame img { aspect-ratio: 16 / 9; object-fit: cover; }
.stage-tag { margin: 26px 0 14px; }
.tag--quiet { background: rgb(244 239 228 / 0.08); color: var(--text-2); }
.stage-title { font: 700 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); letter-spacing: -0.01em; }
.stage > p:not(.stage-tag) { margin-top: 12px; color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.stage .actions { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: auto; padding-top: 26px; }
.section-actions { margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.section-actions > p { color: var(--text-2); font-size: 17px; }
.section-actions .actions { margin-top: 20px; }
.bible-feature-copy .actions { margin-top: 26px; }
.reveal-ready .stage:nth-child(2)[data-reveal] { transition-delay: 0.15s; }
.reveal-ready .stage:nth-child(3)[data-reveal] { transition-delay: 0.3s; }

.prompts {
  margin-top: clamp(110px, 13vw, 180px);
  padding: clamp(96px, 11vw, 150px) 0;
  background: radial-gradient(60% 70% at 70% 50%, rgb(226 174 78 / 0.08), transparent 70%), var(--ink-2);
}
.prompts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; }
.prompt-list { margin: 0; padding: 0; list-style: none; }
.prompt-list li {
  padding: 6px 0;
  font: 700 clamp(32px, 3.8vw, 56px)/1.12 var(--serif);
  letter-spacing: -0.02em;
}
.prompt-list li:nth-child(even) { color: var(--gold); }
.prompt-games { margin-top: 40px; max-width: none; }
.prompt-games div { grid-template-columns: 8em 1fr; }

#bibles { margin-top: clamp(110px, 13vw, 180px); }
.close-actions { justify-content: center; margin-top: 0; }

/* The tools behind the games */

.tools { --pad-top: clamp(110px, 13vw, 180px); padding: var(--pad-top) 0 0; }
.tools-head { max-width: 760px; }
.tool-feature {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center;
  margin-top: clamp(48px, 6vw, 72px);
}
.tool-feature-copy { grid-column: 1 / span 5; }
.tool-shot { grid-column: 6 / span 7; margin: 0; filter: drop-shadow(0 30px 50px rgb(0 0 0 / 0.6)); }
.tool-shot figcaption { margin-top: 14px; color: var(--text-3); font-size: 14px; letter-spacing: 0.02em; text-wrap: pretty; }
.tool-name { font: 700 clamp(40px, 4.4vw, 60px)/1 var(--serif); letter-spacing: -0.02em; }
.tool-pitch { margin-top: 18px; color: var(--paper); font: 500 clamp(19px, 1.6vw, 22px)/1.45 var(--serif); text-wrap: pretty; }
.tool-points { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.tool-points li { padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 16px; text-wrap: pretty; }
.tool-points strong { display: block; margin-bottom: 4px; color: var(--paper); font-weight: 600; }
.tool-list { margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; list-style: none; max-width: 560px; }
.tool { border-top: 1px solid var(--line); }
.tool > p:not(.stage-tag) { margin-top: 12px; color: var(--text-2); font-size: 17px; text-wrap: pretty; }

/* Creed */

.creed {
  --pad-top: clamp(130px, 17vw, 240px);
  padding: var(--pad-top) 0;
  text-align: center;
  background: radial-gradient(56% 46% at 50% 50%, rgb(226 174 78 / 0.09), transparent 72%);
}
.creed-mark {
  display: block;
  width: 54px; height: 54px;
  margin: 0 auto 44px;
  background: url("/images/logos/five-talents-games-mark.svg") center / contain no-repeat;
}
.creed-line {
  max-width: 11.5ch;
  margin: 0 auto;
  font: 700 clamp(46px, 7.6vw, 116px)/1 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.creed-line .word { color: rgb(244 239 228 / 0.16); transition: color 0.7s ease; }
.creed-line .word.lit { color: var(--paper); }
.creed-line .word.gold.lit { color: var(--gold); }
.creed-who { max-width: 30em; margin: 48px auto 0; color: var(--paper); font-size: clamp(19px, 1.6vw, 22px); text-wrap: balance; }
.creed-note { max-width: 32em; margin: 44px auto 0; color: var(--text-2); font-size: 18px; text-wrap: pretty; }
.creed-eyebrow { justify-content: center; margin-bottom: 36px; }
.creed-eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.creed-follow { margin: 18px auto 0; font-size: 17px; }
.creed-follow a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgb(226 174 78 / 0.4); padding-bottom: 2px; }
.creed-follow a:hover { color: var(--gold-bright); border-color: currentColor; }
.creed-follow + .creed-note { margin-top: 44px; }

/* Built in public */

.public {
  --pad-top: clamp(110px, 13vw, 180px);
  padding: var(--pad-top) 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 18%, var(--ink-2) 82%, var(--ink) 100%);
}
.public-head { max-width: 760px; }
.bible-feature {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start;
  margin-top: clamp(48px, 6vw, 72px);
}
.bible-cover { grid-column: 1 / span 7; filter: drop-shadow(0 30px 50px rgb(0 0 0 / 0.6)); }
.bible-feature-copy { grid-column: 8 / span 5; }
.bible-feature-copy .stage-tag { margin-top: 0; }
.bible-note { margin-top: 24px; color: var(--text-3); font-size: 15px; text-wrap: pretty; }
.bible-pages {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); align-items: start;
  margin: clamp(64px, 8vw, 104px) 0 0; padding: 0; list-style: none;
}
.bible-pages figure { margin: 0; }
.bible-pages .frame { filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.5)); }
.bible-pages figcaption { margin-top: 18px; color: var(--text-2); font-size: 16px; text-wrap: pretty; }
.bible-pages figcaption strong { display: block; margin-bottom: 6px; color: var(--paper); font: 700 21px/1.2 var(--serif); }
.reveal-ready .bible-pages li:nth-child(2)[data-reveal] { transition-delay: 0.15s; }
.reveal-ready .bible-pages li:nth-child(3)[data-reveal] { transition-delay: 0.3s; }

/* Questions */

.questions { --pad-top: clamp(110px, 13vw, 180px); padding: var(--pad-top) 0; }
.questions-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: start; }
.questions-head { position: sticky; top: 120px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font: 700 clamp(21px, 1.9vw, 25px)/1.25 var(--serif);
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 14px; height: 14px;
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq summary:hover { color: var(--gold-bright); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 38em; padding: 0 0 28px; color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.faq details[open] p { animation: rise 0.5s var(--ease) both; }

/* Close */

.close {
  position: relative;
  min-height: min(84svh, 780px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.close-art { position: absolute; inset: 0; z-index: -2; }
.close-art img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 0%; transform: scale(1.4); transform-origin: 54% 0%; }
.close::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 55%, rgb(10 11 16 / 0.55), rgb(10 11 16 / 0.2) 70%),
    linear-gradient(180deg, var(--ink) 0%, rgb(10 11 16 / 0) 24%, rgb(10 11 16 / 0) 70%, var(--ink) 100%);
}
.close-inner { display: flex; flex-direction: column; align-items: center; }
.close h2 {
  max-width: 11ch;
  margin-bottom: 40px;
  font: 700 clamp(46px, 6.6vw, 100px)/1 var(--serif);
  letter-spacing: -0.025em;
  text-shadow: 0 2px 40px rgb(10 11 16 / 0.6);
  text-wrap: balance;
}

/* Footer */

.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer-brand img { width: 210px; }
.footer-brand p { margin-top: 18px; color: var(--text-2); font-size: 16px; }
.footer-head { margin-bottom: 16px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.footer-col a { color: var(--paper); text-decoration: none; opacity: 0.85; transition: opacity 0.25s, color 0.25s; }
.footer-col a:hover { opacity: 1; color: var(--gold-bright); }
.footer-col span { color: var(--text-3); }
.footer-col em { font-style: normal; font-size: 13px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--text-3); font-size: 14px;
}

/* 404 */

.lost {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 40px var(--gutter);
  text-align: center;
  background: radial-gradient(56% 46% at 50% 50%, rgb(226 174 78 / 0.08), transparent 72%);
}
.lost .creed-mark { margin-bottom: 36px; }
.lost h1 { max-width: 12ch; margin: 0 auto 20px; font: 700 clamp(44px, 6.4vw, 84px)/1.02 var(--serif); letter-spacing: -0.02em; }
.lost p { margin-bottom: 36px; color: var(--text-2); }

/* Sections arrive as they scroll in. Without script they simply show. */

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* Phones and tablets */

@media (max-width: 959px) {
  .world { display: block; min-height: 0; }
  .world-art,
  .world--art-right .world-art,
  .world--art-left .world-art {
    position: relative; width: 100%; aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 62%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 10%, #000 62%, transparent);
  }
  .world-inner { display: block; margin-top: -28px; padding-top: 0; padding-bottom: 72px; }
  .intro-side { grid-column: 1 / -1; }
  .stages { grid-template-columns: 1fr; gap: 64px; max-width: 560px; }
  .prompts-grid { grid-template-columns: 1fr; }
  .bible-cover, .bible-feature-copy { grid-column: 1 / -1; }
  .bible-pages { grid-template-columns: 1fr; gap: 48px; max-width: 560px; }
  .clips { grid-template-columns: 1fr; gap: 48px; max-width: 560px; }
  .tool-feature-copy, .tool-shot { grid-column: 1 / -1; }
  .questions-grid { grid-template-columns: 1fr; }
  .questions-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-wide { display: none; }
  .header-row { height: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { display: none; }
  /* On phones the yard sits above the words instead of behind them. */
  .hero-art { inset: 0 0 auto; height: 66svh; --focus: 64% 66%; }
  .hero::after {
    background:
      linear-gradient(0deg, var(--ink) 34%, rgb(10 11 16 / 0.7) 42%, rgb(10 11 16 / 0) 58%),
      linear-gradient(180deg, rgb(10 11 16 / 0.55) 0%, rgb(10 11 16 / 0) 14%);
  }
  .hero { align-items: flex-end; }
  .hero-copy { padding: 0 var(--gutter) 40px; }
  .hero-page-name { margin-top: 22px; }
  .prompt-games div { grid-template-columns: 1fr; gap: 6px; }
  .hero-logo img { width: min(320px, 100%); }
  .hero-lede { margin-top: 24px; }
  .actions { margin-top: 26px; }
  .close-art img { transform: scale(2.1); transform-origin: 50% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .world-art img { transform: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
