/* Ashes of the Hollow — site styles. Near-black, warm bone text, one ember accent: the game's own palette. */
:root {
  --bg: #0b0b0a;
  --bg-2: #121110;
  --surface: #151413;
  --text: #e8e4da;
  --dim: rgba(232, 228, 218, 0.66);
  --faint: rgba(232, 228, 218, 0.38);
  --line: rgba(232, 228, 218, 0.14);
  --line-strong: rgba(232, 228, 218, 0.32);
  --ember: #e7803d;
  --ember-hot: #ffb070;
  --fog: #8a8478;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: rgba(231, 128, 61, 0.35);
}

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

.caps {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--dim);
}

.ember {
  color: var(--ember);
}

/* Grain over everything: keeps the black from looking flat. */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 90;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.solid {
  background: rgba(11, 11, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--caps);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--dim);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text) !important;
}

.nav-cta::after {
  display: none;
}

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .nav-cta {
    padding: 7px 12px;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .nav .brand span {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: var(--text);
  background: rgba(21, 20, 19, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.1;
}

.btn:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(231, 128, 61, 0.45);
}

.btn small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}

.btn svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.btn.primary {
  background: linear-gradient(180deg, rgba(231, 128, 61, 0.22), rgba(231, 128, 61, 0.06));
  border-color: rgba(231, 128, 61, 0.6);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#fog {
  z-index: 2;
  pointer-events: none;
}

#embers {
  z-index: 3;
  pointer-events: none;
}

.hero-sigil {
  position: absolute;
  z-index: 1;
  width: min(78vmin, 720px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -54%;
  opacity: 0;
  scale: 1.12;
  filter: blur(14px) brightness(0.6);
  transition: opacity 3.2s var(--ease) 0.2s, scale 4s var(--ease) 0.2s, filter 3.2s var(--ease) 0.2s;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
}

.loaded .hero-sigil {
  opacity: 0.85;
  scale: 1;
  filter: blur(0) brightness(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(231, 128, 61, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(11, 11, 10, 0.35) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  max-width: 980px;
}

.hero .caps {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.4s var(--ease) 1.6s, transform 1.4s var(--ease) 1.6s;
}

.loaded .hero .caps {
  opacity: 1;
  transform: none;
}

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 22px 0 26px;
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

.title .line {
  display: block;
}

.title .ch {
  display: inline-block;
  opacity: 0;
  filter: blur(18px);
  transform: translateY(0.25em) scale(1.08);
  transition: opacity 1.6s var(--ease), filter 1.8s var(--ease), transform 1.8s var(--ease);
  transition-delay: calc(0.9s + var(--i) * 0.055s);
}

.title .small {
  font-size: 0.42em;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--dim);
  display: block;
  margin: 0.15em 0;
}

.loaded .title .ch {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.tagline {
  font-size: clamp(1.15rem, 1.6vw + 0.6rem, 1.6rem);
  font-style: italic;
  color: var(--dim);
  max-width: 34ch;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.6s var(--ease) 2.3s, transform 1.6s var(--ease) 2.3s;
}

.loaded .tagline {
  opacity: 1;
  transform: none;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.6s var(--ease) 2.8s, transform 1.6s var(--ease) 2.8s;
}

.loaded .hero-ctas {
  opacity: 1;
  transform: none;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: var(--caps);
  opacity: 0;
  transition: opacity 1.4s 3.4s;
  text-decoration: none;
}

.loaded .scroll-cue {
  opacity: 1;
}

.scroll-cue span {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--ember), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Sections ---------- */
section {
  position: relative;
}

.section {
  padding: clamp(90px, 14vw, 180px) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--ember);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 26px;
  letter-spacing: 0.005em;
}

h2 em {
  color: var(--ember-hot);
  font-style: italic;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(1.15rem, 1.2vw + 0.7rem, 1.45rem);
  color: var(--dim);
  max-width: 38ch;
}

/* ---------- Reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Lines that rise out of a mask, one after another. */
.lines .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.lines .ln > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.09s + var(--d, 0s));
}

.lines.in .ln > span {
  transform: none;
}

/* Images that come out of the fog: a soft mask sweeps up, and the picture warms from grey. */
.fog-in {
  -webkit-mask-image: linear-gradient(0deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(0deg, #000 40%, transparent 60%);
  -webkit-mask-size: 100% 260%;
  mask-size: 100% 260%;
  -webkit-mask-position: 0 0%;
  mask-position: 0 0%;
  filter: grayscale(1) brightness(0.5) blur(6px);
  transform: scale(1.06);
  transition: -webkit-mask-position 2.2s var(--ease), mask-position 2.2s var(--ease), filter 2.4s var(--ease),
    transform 2.6s var(--ease);
  transition-delay: var(--d, 0s);
}

.fog-in.in {
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  filter: none;
  transform: none;
}

/* ---------- Opening (the first night) ---------- */
.opening {
  text-align: center;
}

.opening .prose {
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  line-height: 1.45;
  font-family: var(--serif);
  max-width: 24ch;
  margin: 0 auto;
}

.opening .prose p {
  margin: 0 0 1.1em;
  color: var(--dim);
}

.opening .prose p.lit {
  color: var(--text);
}

.word {
  display: inline-block;
  opacity: 0.08;
  filter: blur(4px);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease);
}

.word.on {
  opacity: 1;
  filter: none;
}

.divider {
  width: 1px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(transparent, var(--ember), transparent);
  opacity: 0.6;
}

/* ---------- Acts ---------- */
.acts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 60px;
}

@media (max-width: 1000px) {
  .acts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .acts {
    grid-template-columns: 1fr;
  }
}

.act {
  position: relative;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  isolation: isolate;
  transition: transform 0.8s var(--ease), border-color 0.6s;
}

.act:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.act .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease), filter 1.2s;
  filter: brightness(0.85) saturate(0.95);
}

.act:hover .bg {
  transform: scale(1.02);
  filter: brightness(1);
}

.act::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 10, 0.1) 0%, transparent 25%, rgba(11, 11, 10, 0.82) 58%, rgba(11, 11, 10, 0.98) 100%);
}

.act .num {
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(232, 228, 218, 0.16);
  position: absolute;
  top: 18px;
  right: 22px;
  font-style: italic;
}

.act p {
  color: var(--dim);
  margin: 0;
  font-size: 1rem;
}

.act .q {
  font-style: italic;
  color: var(--ember-hot);
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.act.sealed .bg {
  filter: brightness(0.3) blur(10px) grayscale(1);
}

.act.sealed .lock {
  position: absolute;
  top: 40%;
  left: 50%;
  translate: -50% -50%;
  width: 54px;
  height: 54px;
  color: rgba(232, 228, 218, 0.7);
}

/* ---------- Features (sticky phone) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.steps .step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transition: opacity 0.8s var(--ease);
}

.steps .step.active {
  opacity: 1;
}

.steps .step p {
  color: var(--dim);
  max-width: 34ch;
}

.step .tag {
  margin-bottom: 14px;
}

.phone-stick {
  position: sticky;
  top: 12vh;
  height: 76vh;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .phone-stick {
    display: none;
  }

  .steps .step {
    min-height: auto;
    opacity: 1;
    padding: 30px 0 60px;
  }

  .step .mobile-shot {
    display: block !important;
  }
}

.step .mobile-shot {
  display: none;
  margin-top: 26px;
  max-width: 300px;
}

.phone {
  position: relative;
  height: min(76vh, 760px);
  aspect-ratio: 1206 / 2622;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2826, #0d0d0c 40%, #1c1b19);
  box-shadow:
    0 0 0 1px rgba(232, 228, 218, 0.12),
    0 60px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -20px rgba(231, 128, 61, 0.22);
}

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 39px;
  overflow: hidden;
  background: #0e0e0e;
}

.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), filter 0.9s var(--ease);
}

.phone .screen img.on {
  opacity: 1;
  transform: none;
  filter: none;
}

.phone .island {
  position: absolute;
  top: 18px;
  left: 50%;
  translate: -50% 0;
  width: 30%;
  height: 26px;
  border-radius: 20px;
  background: #000;
  z-index: 2;
}

.mini-phone {
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(145deg, #2a2826, #0d0d0c 40%, #1c1b19);
  box-shadow: 0 0 0 1px rgba(232, 228, 218, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}

.mini-phone img {
  border-radius: 24px;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 60px;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  background: var(--bg);
  padding: 34px 28px 38px;
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  left: var(--mx, -999px);
  top: var(--my, -999px);
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(231, 128, 61, 0.16), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
}

.pillar svg {
  width: 30px;
  height: 30px;
  color: var(--ember);
  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 1.45rem;
}

.pillar p {
  margin: 0;
  color: var(--dim);
  font-size: 1rem;
}

/* ---------- Cards ---------- */
.card-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 60px;
  perspective: 1400px;
}

@media (max-width: 1100px) {
  .card-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.scard {
  position: relative;
  aspect-ratio: 2 / 3;
  cursor: pointer;
  transform-style: preserve-3d;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
}

.scard .inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.25, 1.15);
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
}

.scard.flipped {
  --flip: 180deg;
}

.scard .face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid #4a4946;
  background: #0d0c0b;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9);
}

.scard .front img {
  width: 100%;
  height: 82%;
  object-fit: cover;
}

.scard .plate {
  height: 18%;
  border-top: 1px solid #4a4946;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

.scard .plate .no {
  font-family: var(--caps);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--faint);
}

.scard .plate .t {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.2vw, 1.12rem);
  line-height: 1.1;
}

.scard .face::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.scard .shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--sx, 50%) var(--sy, 50%),
    rgba(255, 210, 160, 0.18),
    transparent 45%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s;
}

.scard:hover .shine {
  opacity: 1;
}

.scard .back {
  transform: rotateY(180deg);
  background: #131211;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scard .back .no {
  font-family: var(--caps);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--faint);
}

.scard .back .t {
  font-family: var(--serif);
  color: var(--ember-hot);
  font-size: 1.05rem;
  margin: 6px 0 8px;
}

.scard .back p {
  font-style: italic;
  font-size: clamp(0.7rem, 0.82vw, 0.84rem);
  line-height: 1.45;
  color: var(--dim);
  margin: 0;
  overflow: hidden;
}

.scard.locked {
  cursor: default;
}

.scard.locked .front img {
  height: 100%;
  filter: blur(12px) brightness(0.45) grayscale(0.6);
  transform: scale(1.2);
}

.scard.locked .lockmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(232, 228, 218, 0.75);
  font-family: var(--caps);
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  background: radial-gradient(circle, rgba(142, 140, 134, 0.35), rgba(142, 140, 134, 0.1) 50%, transparent 80%);
}

.scard.locked .lockmark svg {
  width: 30px;
  height: 30px;
}

.card-hint {
  text-align: center;
  color: var(--faint);
  margin-top: 26px;
  font-style: italic;
}

/* ---------- People ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 60px;
}

@media (max-width: 1000px) {
  .people {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .people {
    grid-template-columns: repeat(2, 1fr);
  }
}

.person {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4.4;
  isolation: isolate;
}

.person img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.6s var(--ease), filter 1s;
  filter: brightness(0.75);
}

.person:hover img {
  transform: scale(1.05);
  filter: brightness(0.95);
}

.person::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 11, 10, 0.95));
}

.person .who {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.person .who h3 {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.person .who p {
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---------- Quote band ---------- */
.band {
  text-align: center;
  padding: clamp(110px, 16vw, 220px) 0;
  overflow: hidden;
}

.band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  line-height: 1.2;
  margin: 0 auto;
  max-width: 22ch;
}

.band cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
}

.band-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(110vw, 1000px);
  height: min(110vw, 1000px);
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(231, 128, 61, 0.13), rgba(231, 128, 61, 0.04) 35%, transparent 62%);
  pointer-events: none;
  z-index: -1;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  50% { opacity: 0.55; scale: 0.94; }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  margin: 50px auto 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 50px 26px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.25;
  transition: color 0.3s;
}

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

.faq summary:hover {
  color: var(--ember-hot);
}

.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.faq summary::before {
  transform: rotate(90deg);
}

.faq details[open] summary::before {
  transform: rotate(0deg);
}

.faq .answer {
  overflow: hidden;
  color: var(--dim);
  padding-right: 40px;
}

.faq .answer > div {
  padding-bottom: 26px;
}

.faq .answer p {
  margin: 0 0 0.8em;
}

/* ---------- Final CTA ---------- */
.final {
  text-align: center;
  padding: clamp(120px, 16vw, 220px) 0;
  position: relative;
  overflow: hidden;
}

/* The emblem on its own: the ash ring and the forest inside it, nothing around it. */
.final img.sig {
  width: min(300px, 70vw);
  height: auto;
  aspect-ratio: 1;
  margin: -30px auto 0;
  filter: drop-shadow(0 0 40px rgba(231, 128, 61, 0.22));
}

.final h2 {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.final .lead {
  margin: 0 auto 40px;
}

.final .hero-ctas {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  color: var(--faint);
  font-size: 0.92rem;
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 800px) {
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

.foot h4 {
  font-family: var(--caps);
  font-weight: 400;
  letter-spacing: 0.26em;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 16px;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.foot a {
  text-decoration: none;
  transition: color 0.3s;
}

.foot a:hover {
  color: var(--ember-hot);
}

.legal-line {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* ---------- Legal / text pages ---------- */
.page-hero {
  padding: 170px 0 50px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 80% 0%, rgba(231, 128, 61, 0.1), transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  margin: 0 0 18px;
}

.doc {
  max-width: 760px;
  padding: 60px var(--gutter) 120px;
  margin: 0 auto;
}

.doc h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 2.2em 0 0.6em;
}

.doc p,
.doc li {
  color: var(--dim);
}

.doc strong {
  color: var(--text);
  font-weight: 500;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 0.5em;
}

.doc .summary {
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
  border-radius: 12px;
  padding: 22px 26px;
  background: var(--surface);
  margin: 0 0 30px;
}

.doc .summary p {
  margin: 0;
  color: var(--text);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1em 0 1.6em;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}

.doc th {
  color: var(--text);
  font-weight: 500;
}

.doc a {
  color: var(--ember-hot);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  background: var(--surface);
  margin: 30px 0;
}

.contact-card p {
  margin: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .fog-in,
  .word,
  .title .ch,
  .lines .ln > span {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .grain {
    display: none;
  }
}

/* Redacted card backs: the story stays in the game. */
.scard .redacted {
  width: 100%;
  margin-top: 6px;
  display: grid;
  gap: 9px;
  justify-items: center;
  filter: blur(0.6px);
}

.scard .redacted i {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(232, 228, 218, 0.1), rgba(232, 228, 218, 0.2), rgba(232, 228, 218, 0.1));
  background-size: 200% 100%;
  animation: redact 3.2s ease-in-out infinite;
}

@keyframes redact {
  50% { background-position: 100% 0; }
}

.scard .sealed-note {
  margin-top: auto;
  font-family: var(--caps);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
}

