/* ==========================================================================
   Reaper - site styles
   Dark, single-theme (locked). Palette and typography are lifted straight
   from the game's own Theme.swift so the site and the app read as one thing.
   Accent: soul cyan. Blood red is reserved for cost/loss semantics only
   (hearts, failure, 404). Corner radius is a flat 4px everywhere, matching
   the in-game overlays.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --void: #0a0a0f;        /* Theme.shadow - page ground */
  --pitch: #050508;       /* deeper wells */
  --raise: #101018;       /* lifted panels */
  --line: rgba(232, 232, 227, 0.09);
  --line-strong: rgba(232, 232, 227, 0.18);

  /* Ink */
  --bone: #e8e8e3;        /* Theme.bone */
  --ash: #8e8e97;
  --dim: #5c5c66;         /* Theme.dimmed */

  /* Accent (one, page-wide) */
  --soul: #7dfaff;        /* Theme.soul */
  --soul-deep: #1f6f77;

  /* Semantic state only */
  --blood: #d43d3d;       /* Theme.blood - cost, loss, failure */

  --radius: 4px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  text-transform: uppercase;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--soul);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--soul);
  color: var(--pitch);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bone);
  color: var(--pitch);
  font-family: var(--font-display);
  font-size: 13px;
  padding: 10px 16px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------------------
   Atmosphere: one fixed, non-interactive layer for vignette + film grain.
   Fixed so it never repaints during scroll.
   -------------------------------------------------------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(90% 70% at 50% 110%, rgba(0, 0, 0, 0.6), transparent 60%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 11vw, 132px);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soul);
  margin: 0 0 18px;
}

.section-title {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  max-width: 17ch;
}

.section-lede {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--ash);
  font-size: 1.02rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 15px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  image-rendering: pixelated;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}

.nav a {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.2s var(--ease);
}

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

.lang {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 2px;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang button:hover {
  color: var(--bone);
}

.lang button.active {
  background: var(--bone);
  color: var(--pitch);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

/* bone on pitch: 15.4:1 */
.btn-primary {
  background: var(--bone);
  color: var(--pitch);
}

.btn-primary:hover {
  background: #fff;
}

/* bone on void: 14.6:1 */
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--bone);
  background: rgba(232, 232, 227, 0.02);
}

.btn-ghost:hover {
  border-color: var(--soul);
  color: var(--soul);
}

/* --------------------------------------------------------------------------
   Hero - asymmetric split, torch panel on the right
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(64px, 9vw, 108px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  letter-spacing: -0.045em;
  line-height: 0.86;
  text-shadow: 0 0 60px rgba(125, 250, 255, 0.12);
}

.hero-text {
  margin-top: 22px;
  max-width: 40ch;
  color: var(--ash);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The torch: the page's one signature interaction. It restates the core
   mechanic before a word of copy does. A dim base frame sits underneath a
   fully-lit copy that is masked to a small circle following the pointer. */

.torch {
  --tx: 50%;
  --ty: 46%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--pitch);
  aspect-ratio: 1434 / 660;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  /* A touch of lag so the light trails the hand rather than snapping to it. */
  transition: --tx 0.12s linear, --ty 0.12s linear;
}

.torch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.torch .torch-base {
  opacity: 0.28;
  filter: grayscale(0.4);
}

.torch .torch-lit {
  -webkit-mask-image: radial-gradient(
    circle 24vmin at var(--tx) var(--ty),
    #000 0%,
    rgba(0, 0, 0, 0.85) 42%,
    transparent 74%
  );
  mask-image: radial-gradient(
    circle 24vmin at var(--tx) var(--ty),
    #000 0%,
    rgba(0, 0, 0, 0.85) 42%,
    transparent 74%
  );
}

.torch .torch-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 24vmin at var(--tx) var(--ty),
    rgba(125, 250, 255, 0.07),
    transparent 70%
  );
}

.torch-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  z-index: 2;
}

/* Pointerless devices get a slow drift so the mechanic still reads. */
@media (hover: none) {
  .torch {
    animation: drift 14s ease-in-out infinite alternate;
  }
}

@keyframes drift {
  0% {
    --tx: 30%;
    --ty: 60%;
  }
  50% {
    --tx: 62%;
    --ty: 34%;
  }
  100% {
    --tx: 74%;
    --ty: 64%;
  }
}

@property --tx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

@property --ty {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

/* --------------------------------------------------------------------------
   Rules - asymmetric bento, 4 cells
   -------------------------------------------------------------------------- */

.rules-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rule {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  background: var(--raise);
  position: relative;
  overflow: hidden;
}

.rule h3 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.rule p {
  color: var(--ash);
  font-size: 0.94rem;
}

.rule-marked {
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(125, 250, 255, 0.09), transparent 62%),
    var(--raise);
}

.rule-marked h3 {
  color: var(--soul);
}

.rule-living {
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(212, 61, 61, 0.1), transparent 62%),
    var(--raise);
}

.rule-living h3 {
  color: var(--blood);
}

.rule-shot {
  grid-column: span 3;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--pitch);
}

.rule-shot img {
  width: 100%;
}

.rule-shot figcaption {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Nights - display numerals, one wide lead block then three
   -------------------------------------------------------------------------- */

.nights {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.night {
  background: var(--void);
  padding: 26px 22px 28px;
}

.night-no {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
}

.night-quota {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  margin-top: 14px;
  letter-spacing: -0.04em;
}

.night-quota span {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: var(--ash);
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.night-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--soul);
}

.night p {
  margin-top: 10px;
  color: var(--ash);
  font-size: 0.9rem;
}

.nights-note {
  margin-top: 26px;
  color: var(--dim);
  font-size: 0.92rem;
  max-width: 66ch;
}

/* --------------------------------------------------------------------------
   Gallery - horizontal scroll-snap
   -------------------------------------------------------------------------- */

.gallery {
  margin-top: 44px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(560px, 82vw);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pitch);
}

.gallery figcaption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.gallery::-webkit-scrollbar {
  height: 6px;
}

.gallery::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

/* --------------------------------------------------------------------------
   Cloaks - split, screenshot left
   -------------------------------------------------------------------------- */

.cloaks {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.cloaks-shot img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pitch);
}

.swatches {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.swatch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px 14px;
  text-align: center;
  background: var(--raise);
}

.swatch i {
  display: block;
  height: 52px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.6);
}

.swatch span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ash);
}

.cloaks-note {
  margin-top: 20px;
  color: var(--dim);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Achievements - 2 column card grid, last one spans
   -------------------------------------------------------------------------- */

.achievements {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ach {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  background: var(--raise);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.ach h3 {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--bone);
}

.ach p {
  margin-top: 8px;
  color: var(--ash);
  font-size: 0.92rem;
}

.ach-wide {
  grid-column: span 2;
  background:
    radial-gradient(80% 160% at 8% 0%, rgba(125, 250, 255, 0.08), transparent 60%),
    var(--raise);
}

.ach-wide h3 {
  color: var(--soul);
}

/* --------------------------------------------------------------------------
   Facts - no boxes, hairline column rules only
   -------------------------------------------------------------------------- */

.facts {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 40px;
}

.fact h3 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--soul);
}

.fact p {
  margin-top: 9px;
  color: var(--ash);
  font-size: 0.94rem;
}

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

.closing {
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 100%, rgba(125, 250, 255, 0.06), transparent 65%),
    var(--void);
}

.closing h2 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin-inline: auto;
  max-width: 20ch;
}

.closing p {
  margin: 20px auto 0;
  max-width: 46ch;
  color: var(--ash);
}

.closing .hero-actions {
  justify-content: center;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 52px;
  background: var(--pitch);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a,
.footer-legal {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-links a {
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--soul);
}

/* --------------------------------------------------------------------------
   Document pages (support, privacy)
   -------------------------------------------------------------------------- */

.doc-head {
  padding-block: clamp(56px, 8vw, 96px) 0;
}

.doc-head h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  max-width: 18ch;
}

.doc-head p {
  margin-top: 20px;
  max-width: 62ch;
  color: var(--ash);
}

.doc-updated {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.doc {
  padding-block: clamp(44px, 6vw, 72px);
}

.doc h2 {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin-top: 44px;
  color: var(--bone);
}

.doc h2:first-of-type {
  margin-top: 0;
}

.doc p,
.doc li {
  color: var(--ash);
  max-width: 68ch;
}

.doc p {
  margin-top: 14px;
}

.doc ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.doc li {
  margin-top: 8px;
}

.doc a:not(.btn) {
  color: var(--soul);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 160% at 8% 0%, rgba(125, 250, 255, 0.07), transparent 60%),
    var(--raise);
  padding: 30px 30px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.contact-panel h2 {
  margin-top: 0;
}

.contact-panel p {
  color: var(--ash);
  max-width: 52ch;
}

.contact-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--dim);
}

/* Accordion - keeps a long FAQ scannable instead of a wall of rows */
.faq {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bone);
  transition: color 0.2s var(--ease);
}

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

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--soul);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  content: "-";
}

.faq details > p,
.faq details > ul {
  margin-bottom: 20px;
  margin-top: 0;
}

.faq details > ul {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

body.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.lost {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(60px, 12vw, 130px) 0;
  background:
    radial-gradient(48% 60% at 50% 46%, rgba(125, 250, 255, 0.05), transparent 70%),
    var(--void);
}

.lost-code {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--blood);
  text-transform: uppercase;
}

.lost h1 {
  margin-top: 22px;
  font-size: clamp(2rem, 6.4vw, 4.2rem);
  max-width: 16ch;
  margin-inline: auto;
}

.lost p {
  margin: 22px auto 0;
  max-width: 44ch;
  color: var(--ash);
}

.lost .hero-actions {
  justify-content: center;
}

.lost-reaper {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  border-radius: var(--radius);
  image-rendering: pixelated;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Scroll reveal (IntersectionObserver driven)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1000px) {
  .hero .wrap,
  .cloaks {
    grid-template-columns: 1fr;
  }

  .nights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 11.5px;
  }

  .rules-grid,
  .achievements,
  .nights,
  .facts {
    grid-template-columns: 1fr;
  }

  .rule-shot,
  .ach-wide {
    grid-column: span 1;
  }

  .swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .torch .torch-lit,
  .torch .torch-glow {
    --tx: 50%;
    --ty: 50%;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .nav a[data-nav="rules"] {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: the torch stops masking entirely, reveals stay put.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .torch {
    animation: none;
  }

  .torch .torch-base {
    opacity: 0;
  }

  .torch .torch-lit {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .torch .torch-glow {
    display: none;
  }
}
