/* Enhanced DM website. One stylesheet for every page; no build step. */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --stone-950: #0d0b0a;
  --stone-900: #15110f;
  --stone-850: #1c1714;
  --stone-800: #251e1a;
  --stone-700: #3a2f28;
  --gold: #c9a24a;
  --gold-bright: #f0d78c;
  --gold-dim: #8a6d2c;
  --ember: #a8321f;
  --blood: #5c1410;
  --lapis: #1f3a6b;
  --text: #e8dcc4;
  --text-dim: #b9aa8e;
  --ink: #2a1c10;
  --ink-soft: #5a4128;
  --vellum: #eadbb8;
  --vellum-deep: #d6c193;
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", P052, Georgia, "Noto Serif", serif;
  --gutter: 16px;
  --max: 1120px;
  /* Paper grain: an SVG turbulence filter, so no image file is involved. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .12 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--stone-900); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 74, .10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(168, 50, 31, .08), transparent 70%),
    var(--stone-900);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { max-width: 100%; }
a { color: var(--gold-bright); text-underline-offset: .18em; }
a:hover { color: #fff3c9; }
/* Gold ring with a soft halo on stone, oxblood on parchment. */
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; box-shadow: 0 0 0 6px rgba(201, 162, 74, .22); }
.vellum :focus-visible { outline-color: var(--blood); box-shadow: 0 0 0 6px rgba(92, 20, 16, .16); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  margin: 0 0 .5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: var(--stone-950); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.top {
  border-bottom: 1px solid rgba(201, 162, 74, .25);
  background: rgba(13, 11, 10, .72);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(6px);
}
.top .wrap {
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: var(--gold-bright); text-decoration: none; letter-spacing: .04em;
}
.brand svg { width: 34px; height: 34px; color: var(--gold); flex: none; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; }
.nav a {
  font-family: var(--display); font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim); text-decoration: none;
}
.nav a:hover { color: var(--gold-bright); }
.lang {
  display: flex; gap: 2px; font-family: var(--display); font-size: .8rem;
  border: 1px solid var(--gold-dim); border-radius: 3px; overflow: hidden;
}
.lang a, .lang span { padding: 3px 9px; text-decoration: none; color: var(--text-dim); }
.lang [aria-current] { background: var(--gold); color: var(--stone-950); font-weight: 700; }

@media (max-width: 640px) {
  /* Two header rows would eat too much of a phone screen if they stayed pinned. */
  .top { position: static; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 0; justify-content: space-between; }
  .nav a { font-size: .875rem; letter-spacing: .03em; padding: 10px 0; min-height: 40px; display: inline-flex; align-items: center; }
  .lang { margin-left: auto; }
  section.hero { padding-top: 22px; padding-bottom: 36px; }
  .hero .sigil-wrap { width: 104px; margin-bottom: 4px; }
  .die-caption:empty { min-height: 0; margin: 0; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 1.1em; }
  .hero .cta-row { flex-direction: column; align-items: center; gap: 4px; }
  .hero .btn-ghost { min-height: 40px; border: 0; background: none; padding: 6px 10px; text-decoration: underline; text-underline-offset: .25em; }
  .hero .fine { font-size: .88rem; margin-top: 10px; }
  .facts { margin-top: 16px; gap: 6px; }
  .facts li { font-size: .7rem; padding: 4px 9px; }
  .vellum.tome { padding: 26px 14px; }
  .grid .card { padding: 18px 16px 16px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; border-radius: 3px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-gold {
  color: var(--stone-950);
  background: linear-gradient(180deg, #dcbd6c, var(--gold));
  box-shadow: 0 0 0 1px #5e4a1d, 0 4px 14px rgba(0, 0, 0, .35);
}
.btn-gold:hover { color: var(--stone-950); transform: translateY(-1px); background: linear-gradient(180deg, #e6c97b, #d1ab55); }
.btn-ghost { color: var(--gold-bright); border: 1px solid var(--gold-dim); background: rgba(201, 162, 74, .06); }
.btn-ghost:hover { background: rgba(201, 162, 74, .14); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; padding: 48px 0 52px; text-align: center; overflow: hidden; }
/* Painted backdrop, darkened in the middle so the headline stays readable. */
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
  opacity: .6;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(21, 17, 15, .82), rgba(21, 17, 15, .35) 70%, transparent),
    linear-gradient(180deg, rgba(21, 17, 15, .7), transparent 30%, transparent 70%, var(--stone-900));
}
.sigil-wrap { position: relative; width: min(220px, 56vw); margin: 0 auto 8px; }
.hero .sigil {
  width: 100%; height: auto; display: block;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(201, 162, 74, .2));
}
/* The die is a button: a click or tap rolls it (assets/roll.js). It always lands on the 20. */
.die-btn {
  position: absolute; left: 19%; top: 19%; width: 62%; aspect-ratio: 1;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(240, 215, 140, .12));
}
.die-btn:not(:disabled) { cursor: url("img/cursor-d20.svg") 16 16, pointer; }
.die-btn:focus-visible { outline-offset: 6px; border-radius: 50%; }
.die-btn:not(:disabled):hover, .die-btn:focus-visible { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .65)) drop-shadow(0 0 34px rgba(240, 215, 140, .45)); }
.die { display: block; width: 100%; height: auto; }
.die-roll {
  position: absolute; inset: 0; visibility: hidden;
  background: 0 0 / 2400% 100% no-repeat;  /* 24 frames side by side */
}
.rolling .die { visibility: hidden; }
/* The sprite URL only applies while rolling, so it never downloads before site.js asks for it. */
.rolling .die-roll { visibility: visible; background-image: url("img/d20-roll.webp"); animation: tumble 1s steps(24, jump-none) forwards; }
.rolling.reverse .die-roll { animation-direction: reverse; }
@keyframes tumble { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.die-btn::after {
  content: ""; position: absolute; inset: -12%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(240, 215, 140, .5), transparent 62%);
}
.glint::after { animation: glint .9s ease-out; }
@keyframes glint { 30% { opacity: 1; } 100% { opacity: 0; } }
/* Normal flow with room for two lines, so a wrapped caption never covers the eyebrow. */
.die-caption {
  min-height: 1.3em; margin: 0 auto 8px; line-height: 1.3;
  font-family: var(--display); font-size: .85rem; letter-spacing: .06em; color: var(--gold-bright);
}
.eyebrow {
  font-family: var(--display); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero h1 {
  color: var(--gold-bright);
  text-shadow: 0 2px 0 #3d2d0f, 0 0 32px rgba(201, 162, 74, .25);
  max-width: 16ch; margin: 0 auto .35em;
}
:lang(de) .hero h1 { max-width: 19ch; }
:lang(de) .closing h2 { max-width: 28ch; }
.hero .lead { max-width: 40rem; margin: 0 auto 1.6em; font-size: 1.15rem; color: var(--text); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; font-style: italic; color: var(--text-dim); font-size: .95rem; }

@media (prefers-reduced-motion: no-preference) {
  .die-btn { animation: hover 7s ease-in-out infinite; }
  .sigil .ring { transform-origin: 160px 160px; animation: turn 140s linear infinite; }
  .sigil .glow { animation: flicker 5s ease-in-out infinite; }
}
@keyframes hover { 50% { transform: translateY(-6px); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes flicker { 0%, 100% { opacity: .55; } 45% { opacity: .9; } 60% { opacity: .7; } }

.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
  list-style: none; padding: 0; margin: 40px auto 0; max-width: 860px;
}
.facts li {
  font-family: var(--display); font-size: .78rem; letter-spacing: .08em;
  padding: 6px 12px; border: 1px solid rgba(201, 162, 74, .35); border-radius: 999px;
  color: var(--text-dim); background: rgba(13, 11, 10, .5);
}

/* ---------- Ornaments ---------- */

.divider { display: block; width: min(420px, 80%); height: 28px; margin: 0 auto; color: var(--gold-dim); }

.section { padding: 52px 0; }
@media (max-width: 640px) { .section { padding: 40px 0; } }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 28px; }
.section-head .kicker {
  font-family: var(--display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 8px;
}
.section-head h2 { color: var(--gold-bright); }
.section-head p { color: var(--text-dim); }

/* ---------- Vellum ---------- */

.vellum {
  position: relative;
  color: var(--ink);
  background:
    var(--grain),
    radial-gradient(ellipse at 20% 15%, rgba(255, 250, 230, .55), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(120, 80, 30, .22), transparent 60%),
    linear-gradient(180deg, var(--vellum), var(--vellum-deep));
  border-radius: 4px;
  box-shadow:
    0 0 0 1px #8a6d2c,
    inset 0 0 36px rgba(90, 60, 20, .14),
    0 18px 40px rgba(0, 0, 0, .45);
}
.vellum a { color: var(--blood); }
.vellum h2, .vellum h3 { color: var(--ink); }

.tome { padding: clamp(28px, 5vw, 56px); }
.tome .section-head h2 { color: var(--blood); }
.tome .section-head p { color: var(--ink-soft); }
.tome .section-head .kicker { color: var(--ink-soft); }

.illuminated::first-letter {
  float: left;
  font-family: var(--display); font-weight: 700;
  font-size: 3.6em; line-height: .82;
  padding: .14em .16em .1em;
  margin: .08em .14em 0 0;
  color: var(--gold-bright);
  background: radial-gradient(circle at 30% 25%, #8f2a20, var(--blood) 70%);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--blood), inset 0 0 0 4px var(--gold-dim);
  text-shadow: 0 1px 0 #3d0c08;
}
.intro { max-width: 46rem; margin: 0 auto 40px; font-size: 1.12rem; }
.intro::after { content: ""; display: table; clear: both; }

/* ---------- Feature grid ---------- */

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  padding: 22px 22px 18px;
  border: 1px solid rgba(107, 82, 40, .55);
  border-radius: 3px;
  background: rgba(255, 248, 228, .34);
}
.card .icon { width: 30px; height: 30px; color: var(--blood); margin-bottom: 4px; }
.card h3 { margin-bottom: .2em; }
.card .pun {
  font-family: var(--display); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  color: #7a2318; margin: 0 0 .6em;
}
.card p:last-child { margin-bottom: 0; }
.card .req { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: step; }
.steps li {
  position: relative; padding: 26px 22px 20px; border: 1px solid rgba(201, 162, 74, .3);
  background: linear-gradient(180deg, rgba(37, 30, 26, .9), rgba(21, 17, 15, .9)); border-radius: 3px;
}
.steps li::before {
  counter-increment: step; content: counter(step, upper-roman);
  display: block; margin-bottom: 6px;
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--gold);
}
.steps h3 { color: var(--gold-bright); }
.steps p { color: var(--text-dim); margin: 0; }
.after-steps { text-align: center; margin-top: 28px; color: var(--text-dim); }

.hoard {
  margin-top: 48px; padding: clamp(22px, 4vw, 36px);
  display: grid; gap: 18px 32px; grid-template-columns: auto 1fr; align-items: start;
}
.hoard img {
  display: block; width: 240px; max-width: 100%; height: auto; border-radius: 3px;
  border: 1px solid #6b5228; box-shadow: 0 0 0 4px var(--stone-850), 0 0 0 5px var(--gold-dim), 0 12px 30px rgba(0, 0, 0, .45);
}
.hoard h3 { font-size: 1.35rem; }
.hoard p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .hoard { grid-template-columns: 1fr; } .hoard img { width: 180px; margin-inline: auto; } }

/* ---------- Compatibility ---------- */

.table-scroll { overflow-x: auto; }
.compat {
  width: 100%; border-collapse: collapse; font-size: .98rem;
  background: rgba(13, 11, 10, .45); border: 1px solid rgba(201, 162, 74, .3);
}
.compat th, .compat td { padding: 10px 12px; border-bottom: 1px solid rgba(201, 162, 74, .16); text-align: center; }
.compat th:first-child, .compat td:first-child { text-align: left; }
.compat thead th { font-family: var(--display); color: var(--gold-bright); font-size: .85rem; letter-spacing: .06em; }
.compat thead small { display: block; font-family: var(--body); color: var(--text-dim); letter-spacing: 0; font-weight: 400; }
.yes { color: var(--gold-bright); }
.no { color: #7d6f5c; }
.compat-note { color: var(--text-dim); font-size: .95rem; margin-top: 14px; }
@media (max-width: 560px) { .compat th, .compat td { padding: 9px 6px; } .compat { font-size: .9rem; } }

/* ---------- Pricing ---------- */

.offers { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 900px; margin: 0 auto; }
.offer { padding: 30px 26px; display: flex; flex-direction: column; }
.offer .tag {
  align-self: flex-start; font-family: var(--display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vellum); background: var(--blood); padding: 3px 10px; border-radius: 2px; margin-bottom: 14px;
}
.offer .price { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--blood); margin: .1em 0 .4em; }
.offer ul { padding-left: 1.2em; margin: 0 0 1.4em; }
.offer li { margin-bottom: .35em; }
.offer .btn { margin-top: auto; }
.offer .btn-gold { box-shadow: 0 0 0 1px #5e4a1d; }
.offer .btn-ghost { color: var(--blood); border-color: var(--ink-soft); background: transparent; }
/* Values the owner still has to fill in before the site goes live. */
.todo { outline: 2px dashed var(--ember); outline-offset: 2px; }
.pricing-note { text-align: center; color: var(--text-dim); max-width: 42rem; margin: 28px auto 0; font-size: .97rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(201, 162, 74, .22); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--display); font-weight: 700; color: var(--gold-bright); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text); margin: 0 0 18px; }

/* ---------- Closing band ---------- */

.closing { text-align: center; padding: 24px 0 72px; }
.closing .keep { display: inline-block; }
.closing-art {
  display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent);
  mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
.closing h2 { color: var(--gold-bright); max-width: 22ch; margin: 0 auto .4em; }
.closing p { color: var(--text-dim); }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid rgba(201, 162, 74, .25); background: var(--stone-950); padding: 32px 0 40px; font-size: .92rem; color: var(--text-dim); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--text-dim); }
.foot nav a:hover { color: var(--gold-bright); }
.foot .disclaimer { flex-basis: 100%; font-size: .85rem; color: #8a7c66; margin: 0; }
.foot .wink { font-style: italic; }

/* ---------- Legal and error pages ---------- */

.page { padding: 48px 0 72px; }
.doc { max-width: 48rem; margin: 0 auto; padding: clamp(24px, 5vw, 52px); overflow-wrap: anywhere; hyphens: auto; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--blood); }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc h3 { font-size: 1.02rem; margin-top: 1.4em; }
.doc address { font-style: normal; margin-bottom: 1em; }
.draft {
  border: 2px dashed var(--ember); background: rgba(168, 50, 31, .08); color: var(--blood);
  padding: 10px 14px; margin-bottom: 24px; font-weight: 700;
}
.doc hr { border: 0; height: 1px; background: rgba(107, 82, 40, .4); margin: 40px 0; }
.lost { text-align: center; padding: 96px 0; }
.lost svg { width: 120px; height: 120px; color: var(--gold); margin-bottom: 16px; }
.lost h1 { color: var(--gold-bright); }

/* ---------- Section art ---------- */

.banner {
  display: block; width: 100%; max-width: 900px; height: auto; margin: -8px auto 36px;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
/* ---------- Showcase ---------- */

.shot { max-width: 960px; margin: 0 auto 40px; display: grid; gap: 18px; }
.shot:last-child { margin-bottom: 0; }
.showcase { padding-bottom: 28px; }
@media (min-width: 800px) {
  .shot { grid-template-columns: 440px 1fr; gap: 44px; align-items: center; }
  .shot-flip { grid-template-columns: 1fr 440px; }
  .shot-flip .frame { order: 2; }
  .shot-pair { grid-template-columns: 1fr; gap: 24px; }
  .pair { grid-template-columns: 1fr 1fr; gap: 44px; }
}
/* Request and result side by side: caption on top, then the chat and the Foundry window. */
.shot-pair figcaption { max-width: 40rem; margin: 0 auto; text-align: center; }
.pair { display: grid; gap: 28px; align-items: start; }
.pair-label {
  display: block; margin-bottom: 8px;
  font-family: var(--display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
/* A brass-bound window: three rivets in the title bar, a gold double rule around it. */
.frame {
  position: relative; padding: 6px; border-radius: 8px;
  background: #1c1714;
  border: 1px solid rgba(201, 162, 74, .45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}
.frame img { display: block; width: 100%; height: auto; border-radius: 4px; }
.shot figcaption h3 { color: var(--gold-bright); font-size: 1.35rem; margin-bottom: .4em; }
.shot figcaption p { margin: 0 0 .6em; color: var(--text); font-size: 1.08rem; }
.shot figcaption .example { color: var(--text-dim); font-size: .95rem; }

.faq-wrap { display: grid; gap: 32px; max-width: 64rem; margin: 0 auto; align-items: start; }
.faq-art { display: none; }
@media (min-width: 900px) {
  .faq-wrap { grid-template-columns: 240px 1fr; }
  .faq-art { display: block; width: 240px; height: auto; margin-top: 8px; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
}
@media (max-width: 640px) { .banner { aspect-ratio: 2 / 1; object-fit: cover; margin-bottom: 24px; } }

/* ---------- Motion ---------- */
/* Everything below is decoration. Hidden states only apply with html.js (set by site.js) and
   only when motion is allowed, so the page stays complete without JavaScript. */

.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* Warm light pooling where the candles stand in the painting. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 28% 30% at 6% 78%, rgba(255, 170, 70, .16), transparent 70%),
    radial-gradient(ellipse 24% 26% at 96% 74%, rgba(255, 170, 70, .13), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: candle 3.2s ease-in-out infinite alternate; }
  .hero-art {
    transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--scroll, 0) * .28px), 0) scale(1.06);
    will-change: transform;
  }
  .sigil-wrap { transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 8px), 0); transition: transform .4s ease-out; }

  .hero .eyebrow { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .1s backwards; }
  .hero h1 { animation: unveil 1.3s cubic-bezier(.2, .7, .2, 1) .25s backwards; }
  .hero .lead { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .55s backwards; }
  .hero .cta-row { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .7s backwards; }
  .hero .fine, .hero .facts { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .85s backwards; }
  .sigil-wrap .sigil { animation: kindle 1.6s ease-out backwards; }

  .js .reveal:not(.in) { opacity: 0; }
  .js .reveal.in { animation: rise .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 90ms) backwards; }
  .js .divider.reveal:not(.in) { opacity: 1; }
  .js .divider.reveal.in { animation: none; }
  .js .divider.reveal .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1); }
  .js .divider.reveal.in .draw { stroke-dashoffset: 0; }
  .js .intro.reveal.in::first-letter { animation: illuminate 1.8s ease-out .2s backwards; }

  .card, .steps li { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease; }
  .card .icon { transition: transform .3s cubic-bezier(.2, .7, .2, 1), color .3s ease; }
  .card:hover, .card:focus-within { transform: translateY(-5px); }
  .card:hover .icon { transform: scale(1.1) rotate(-5deg); }
  .steps li:hover { transform: translateY(-4px); }
  .frame { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
}
.card:hover, .card:focus-within {
  border-color: rgba(138, 109, 44, .9);
  box-shadow: 0 14px 26px rgba(60, 35, 10, .18);
}
.card:hover .icon { color: var(--ember); }
.steps li:hover { border-color: rgba(201, 162, 74, .6); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes unveil {
  from { opacity: 0; transform: translateY(16px) scale(.97); filter: blur(8px); }
  60% { filter: blur(0); }
}
@keyframes kindle { from { opacity: 0; transform: scale(.9) rotate(-20deg); } }
@keyframes candle { 0% { opacity: .75; } 35% { opacity: 1; } 55% { opacity: .82; } 100% { opacity: .95; } }
@keyframes illuminate {
  from { color: rgba(240, 215, 140, 0); text-shadow: none; }
  55% { color: #fff6d2; text-shadow: 0 0 18px rgba(255, 230, 160, .95); }
}

/* Print everything: no reveal states, no embers. */
@media print {
  .js .reveal:not(.in) { opacity: 1; }
  .js .reveal.in { animation: none; }
  .js .divider.reveal .draw { stroke-dashoffset: 0; }
  .embers, .hero-art { display: none; }
}
