/* Dearly website design DNA
   Painted country, candlelit plum, warm paper, patient motion, and real game objects.
   The document always owns vertical scrolling. Horizontal movement is confined to two
   explicitly labelled galleries, so every route remains readable without JavaScript. */

:root {
  color-scheme: dark;
  --ink: oklch(24% 0.045 309);
  --ink-deep: oklch(17% 0.038 306);
  --ink-soft: oklch(31% 0.055 308);
  --paper: oklch(93% 0.018 81);
  --paper-warm: oklch(88% 0.035 77);
  --paper-dim: oklch(79% 0.025 75);
  --candle: oklch(78% 0.14 72);
  --candle-bright: oklch(85% 0.13 80);
  --sage: oklch(70% 0.08 140);
  --sage-deep: oklch(43% 0.07 141);
  --lavender: oklch(76% 0.075 308);
  --lavender-deep: oklch(54% 0.09 309);
  --rose: oklch(69% 0.1 12);
  --shadow: oklch(13% 0.035 304 / 0.54);
  --line-dark: oklch(95% 0.015 80 / 0.15);
  --line-light: oklch(27% 0.04 307 / 0.16);
  --font-display: 'Averia Serif Libre', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --page: min(1160px, calc(100vw - 48px));
  --ease-gentle: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drift: cubic-bezier(0.33, 0, 0.18, 1);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 40px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.home { min-width: 320px; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid var(--candle-bright);
  outline-offset: 4px;
}

::selection {
  color: var(--ink-deep);
  background: var(--candle-bright);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--ink-deep);
  background: var(--paper);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--candle);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 148px 1fr 148px;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(20px, 4vw, 58px);
  border-bottom: 0;
  background: linear-gradient(180deg, oklch(17% 0.04 307 / 0.76), oklch(17% 0.04 307 / 0));
  transition: background-color 420ms var(--ease-gentle), border-color 420ms var(--ease-gentle), min-height 420ms var(--ease-gentle);
}

.site-header.is-scrolled {
  min-height: 62px;
  background: oklch(19% 0.04 307 / 0.92);
  box-shadow: 0 12px 34px oklch(12% 0.03 307 / 0.24);
  backdrop-filter: blur(16px) saturate(0.9);
}

.nav-brand { width: 112px; padding: 4px 0; }
.nav-brand img { width: 100%; filter: drop-shadow(0 8px 12px var(--shadow)); }

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: oklch(96% 0.012 80);
  text-shadow: 0 2px 5px oklch(12% 0.03 307 / 0.92), 0 0 18px oklch(12% 0.03 307 / 0.82);
  transition: color 160ms ease, translate 220ms var(--ease-gentle);
}
.site-nav a:hover { color: var(--candle-bright); translate: 0 -1px; }
.mobile-download-link { display: none !important; }

.menu-toggle { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared type */
h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

h1, h2 {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h1 { font-size: clamp(42px, 5.5vw, 76px); }
h2 { font-size: clamp(38px, 4.5vw, 64px); }
h3 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: var(--candle-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 32px;
  height: 1px;
  background: currentColor;
}

.primary-action,
.store-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px;
  border: 1px solid oklch(91% 0.08 82 / 0.58);
  border-radius: 999px;
  color: oklch(28% 0.06 67);
  background: var(--candle-bright);
  box-shadow: 0 16px 38px oklch(12% 0.03 307 / 0.3), inset 0 1px 0 oklch(97% 0.03 80 / 0.72);
  text-decoration: none;
  font-weight: 800;
  transition: translate 220ms var(--ease-gentle), box-shadow 220ms var(--ease-gentle), background-color 220ms ease;
}

.primary-action:hover,
.store-action:hover {
  translate: 0 -3px;
  background: var(--paper);
  box-shadow: 0 20px 46px oklch(12% 0.03 307 / 0.4), inset 0 1px 0 oklch(97% 0.03 80 / 0.72);
}

.text-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-color: oklch(93% 0.018 81 / 0.45);
}

/* Hero */
.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-deep);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, oklch(18% 0.045 307 / 0.9) 0%, oklch(18% 0.045 307 / 0.67) 38%, oklch(18% 0.045 307 / 0.08) 70%),
    linear-gradient(0deg, var(--ink-deep) 0%, transparent 30%);
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 29%, oklch(75% 0.08 70 / 0.3), transparent 21%),
    linear-gradient(180deg, oklch(26% 0.065 308), oklch(42% 0.08 26) 47%, oklch(41% 0.08 140) 72%, oklch(28% 0.06 140));
}

.hero-world {
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: url('../assets/grounds/hollyhock.webp?v=7dde0a3d') center 63% / cover no-repeat;
  transform: scale(1.035);
}

.hero-world::before {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(23% 0.04 307 / 0.2);
}

.hero-world img { position: absolute; filter: drop-shadow(0 22px 28px var(--shadow)); }
.hero-tree { width: clamp(250px, 28vw, 500px); bottom: 21%; }
.hero-tree-left { left: -7%; translate: calc(var(--pointer-x) * -0.25) calc(var(--pointer-y) * -0.18); }
.hero-tree-right { right: -5%; translate: calc(var(--pointer-x) * -0.18) calc(var(--pointer-y) * -0.12); }
.hero-wall { width: clamp(330px, 35vw, 600px); bottom: 12%; }
.hero-wall-left { left: 41%; translate: calc(var(--pointer-x) * -0.08) calc(var(--pointer-y) * -0.06); }
.hero-wall-right { left: 73%; translate: calc(var(--pointer-x) * -0.08) calc(var(--pointer-y) * -0.06); }
.hero-gate { width: clamp(170px, 18vw, 300px); left: 64%; bottom: 10%; translate: -50% 0; }
.hero-stone { width: clamp(110px, 12vw, 200px); bottom: 5%; }
.hero-stone-left { left: 51%; }
.hero-stone-right { left: 78%; }
.hero-mourner { width: clamp(74px, 8vw, 124px); left: 72%; bottom: 4%; }
.hero-lantern { width: clamp(46px, 5vw, 76px); left: 60%; bottom: 7%; }
.hero-ghost {
  width: clamp(96px, 11vw, 168px);
  left: 69%;
  top: 25%;
  translate: calc(-50% + var(--pointer-x)) calc(var(--pointer-y));
  filter: drop-shadow(0 0 30px oklch(92% 0.06 82 / 0.44));
  animation: ghost-drift 5.6s ease-in-out infinite;
}

.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--candle-bright);
  box-shadow: 0 0 12px 4px oklch(85% 0.13 80 / 0.5);
  animation: firefly 4.8s ease-in-out infinite;
}

.f1 { left: 58%; top: 33%; animation-delay: -1.2s; }
.f2 { left: 82%; top: 41%; animation-delay: -3.6s; }
.f3 { left: 74%; top: 62%; animation-delay: -2.1s; }
.f4 { left: 49%; top: 54%; animation-delay: -4.2s; }
.f5 { left: 90%; top: 58%; animation-delay: -0.6s; }
.f6 { left: 64%; top: 72%; animation-delay: -2.8s; }

@keyframes ghost-drift {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

@keyframes firefly {
  0%, 100% { opacity: 0.18; transform: translate(0, 0); }
  35% { opacity: 1; }
  65% { opacity: 0.45; transform: translate(18px, -24px); }
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(640px, calc(100vw - 48px));
  margin-left: max(24px, calc((100vw - 1160px) / 2));
  padding: 126px 0 100px;
}

.hero-wordmark { width: min(300px, 58vw); margin-bottom: 26px; filter: drop-shadow(0 14px 26px var(--shadow)); }
.hero-copy h1 { max-width: 12ch; }
.hero-intro { max-width: 54ch; margin-bottom: 30px; color: var(--paper-dim); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 28px;
  margin: 32px 0 0;
  padding: 0;
  color: var(--paper-dim);
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.hero-trust li::before { content: '✦'; margin-right: 8px; color: var(--candle); }

.scroll-whisper {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 5vw, 72px);
  bottom: 32px;
  margin: 0;
  color: oklch(93% 0.018 81 / 0.62);
  font-family: var(--font-display);
  font-size: 14px;
  writing-mode: vertical-rl;
}

.scroll-whisper::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 44px;
  margin-top: 12px;
  background: linear-gradient(var(--candle), transparent);
}

/* First ritual */
.section-light {
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 14%, oklch(78% 0.1 79 / 0.22), transparent 23%),
    radial-gradient(circle at 8% 68%, oklch(69% 0.08 140 / 0.18), transparent 28%),
    var(--paper);
}

.ritual { position: relative; padding: clamp(100px, 11vw, 170px) 0; }
.ritual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(82vw, 860px);
  height: 28px;
  border-radius: 0 0 50% 50%;
  background: var(--ink-deep);
  translate: -50% -1px;
}

.section-heading { width: min(780px, calc(100vw - 48px)); margin: 0 auto 80px; text-align: center; }
.section-heading .eyebrow { justify-content: center; color: var(--lavender-deep); }
.section-heading > p:last-child { max-width: 62ch; margin: 0 auto; color: oklch(42% 0.04 305); font-size: 18px; }

.ritual-path {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.ritual-path::before {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 2px;
  background: repeating-linear-gradient(to bottom, oklch(50% 0.06 140 / 0.28) 0 8px, transparent 8px 20px);
}

.ritual-step {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 8vw, 118px);
  padding: 70px 0;
}

.ritual-step:nth-child(even) .ritual-art { order: 2; }
.ritual-copy { position: relative; max-width: 480px; }
.ritual-step:nth-child(even) .ritual-copy { justify-self: end; }
.ritual-copy > p:last-child { color: oklch(43% 0.035 304); font-size: 17px; }
.ritual-copy .kicker { color: var(--sage-deep); }

.step-number {
  display: block;
  margin-bottom: 26px;
  color: oklch(44% 0.06 308 / 0.42);
  font-family: var(--font-display);
  font-size: 17px;
}

.ritual-art {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}

.soft-orbit {
  position: absolute;
  width: min(38vw, 430px);
  aspect-ratio: 1;
  border: 1px solid oklch(36% 0.05 308 / 0.12);
  border-radius: 50%;
}

.soft-orbit::before,
.soft-orbit::after {
  content: '';
  position: absolute;
  border: 1px solid oklch(36% 0.05 308 / 0.09);
  border-radius: 50%;
  inset: 9%;
}

.soft-orbit::after { inset: 22%; }
.ritual-art img { position: relative; z-index: 2; max-height: 390px; width: auto; filter: drop-shadow(0 28px 32px oklch(25% 0.04 307 / 0.25)); }
.restore-art img { position: absolute; width: min(72%, 350px); }
.overgrown-stone { opacity: 1; transition: opacity 900ms var(--ease-gentle), filter 900ms var(--ease-gentle); }
.restore-art.is-restored .overgrown-stone { opacity: 0; filter: blur(3px); }
.restore-art.is-restored .restored-stone { animation: restored-warmth 1s var(--ease-gentle); }

@keyframes restored-warmth {
  0% { filter: drop-shadow(0 28px 32px oklch(25% 0.04 307 / 0.25)); }
  50% { filter: drop-shadow(0 12px 34px oklch(79% 0.13 76 / 0.58)); }
}

.restore-button {
  position: absolute;
  z-index: 5;
  bottom: 8px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid oklch(31% 0.05 306 / 0.2);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink-soft);
  box-shadow: 0 12px 26px oklch(20% 0.04 306 / 0.25);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.restore-button:hover { background: var(--sage-deep); }
.gate-art img { max-height: 470px; }
.gate-glow {
  position: absolute;
  width: 280px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(82% 0.13 78 / 0.62), transparent 68%);
  filter: blur(20px);
}

/* Memorial Book */
.stories {
  position: relative;
  min-height: 900px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: clamp(100px, 11vw, 160px) max(24px, calc((100vw - 1160px) / 2));
  overflow: hidden;
  isolation: isolate;
  background: oklch(25% 0.055 28);
}

.book-room {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/art/memorial-room.webp?v=7dde0a3d') center 48% / cover no-repeat;
}

.stories::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, oklch(19% 0.05 307 / 0.94), oklch(20% 0.05 307 / 0.76) 45%, oklch(20% 0.05 307 / 0.3)),
    linear-gradient(0deg, oklch(17% 0.04 307 / 0.7), transparent 38%);
}

.stories-copy { max-width: 550px; }
.stories-copy > p:not(.eyebrow):not(.story-note) { max-width: 52ch; color: var(--paper-dim); font-size: 18px; }
.stories-copy blockquote {
  position: relative;
  margin: 38px 0 22px;
  padding: 4px 0 4px 28px;
  color: var(--candle-bright);
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.28;
}

.stories-copy blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--candle);
}

.story-note { color: var(--lavender); font-size: 14px; }
.family-memorial { position: relative; min-height: 560px; display: grid; place-items: center; }
.family-memorial img { position: absolute; filter: drop-shadow(0 34px 44px var(--shadow)); }
.family-beginning { width: min(42%, 280px); left: 0; bottom: 8%; opacity: 0.62; transform: rotate(-5deg); }
.family-complete { width: min(72%, 490px); right: 2%; top: 5%; }
.family-caption {
  position: absolute;
  right: 5%;
  bottom: 4%;
  max-width: 240px;
  color: var(--paper-dim);
  font-family: var(--font-display);
  font-size: 16px;
  text-align: right;
}

/* Grounds */
.grounds {
  position: relative;
  padding: clamp(100px, 10vw, 150px) 0;
  background:
    radial-gradient(circle at 8% 22%, oklch(46% 0.08 145 / 0.16), transparent 25%),
    radial-gradient(circle at 88% 67%, oklch(52% 0.08 307 / 0.17), transparent 24%),
    var(--ink-deep);
}

.grounds-heading {
  width: var(--page);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  margin: 0 auto 64px;
}

.grounds-heading h2 { margin-bottom: 0; }
.grounds-heading > p { margin-bottom: 4px; color: var(--paper-dim); font-size: 17px; }

.atlas-window { width: 100%; margin: 0 auto 76px; }
.atlas-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--candle) oklch(24% 0.04 307);
  scrollbar-width: thin;
}

.atlas-plate { position: relative; width: max(100%, 1440px); margin: 0; }
.atlas-plate::before,
.atlas-plate::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 11vw;
  pointer-events: none;
}
.atlas-plate::before { left: 0; background: linear-gradient(90deg, var(--ink-deep), transparent); }
.atlas-plate::after { right: 0; background: linear-gradient(-90deg, var(--ink-deep), transparent); }
.atlas-plate img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.atlas-plate figcaption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--paper);
  background: oklch(18% 0.04 307 / 0.72);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ground-browser { width: var(--page); margin: 0 auto; }
.ground-browser-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.ground-browser-head p { display: grid; gap: 3px; margin: 0; }
.ground-browser-head strong { font-family: var(--font-display); font-size: 24px; }
.ground-browser-head span { color: var(--paper-dim); font-size: 13px; }
.ground-controls { display: flex; gap: 10px; }
.ground-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink-soft);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.ground-controls button:hover { border-color: var(--candle); background: var(--sage-deep); }

.ground-rail {
  display: flex;
  gap: 18px;
  padding: 0 0 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--candle) oklch(24% 0.04 307);
  scrollbar-width: thin;
}

.ground-panel {
  position: relative;
  flex: 0 0 clamp(270px, 31vw, 390px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  background: var(--ink-soft);
  box-shadow: 0 18px 46px oklch(11% 0.03 307 / 0.34);
}

.ground-panel::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, oklch(15% 0.04 307 / 0.92));
  pointer-events: none;
}

.ground-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-gentle), filter 500ms ease;
}

.ground-panel:hover img { transform: scale(1.035); }
.ground-panel figcaption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 2px 10px;
}
.ground-panel figcaption span { grid-row: 1 / 3; color: var(--candle-bright); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ground-panel figcaption strong { font-family: var(--font-display); font-size: 21px; line-height: 1.15; }
.ground-panel figcaption small { color: var(--paper-dim); font-size: 11px; }
.future-ground img { filter: saturate(0.58) brightness(0.72); }
.future-ground figcaption small { color: var(--candle-bright); }
.seasonal-ground figcaption span { color: var(--lavender); }

/* Night */
.nightfall {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  align-items: center;
  padding: 100px max(24px, calc((100vw - 1160px) / 2));
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-deep);
}

.night-ground {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/grounds/moonfen.webp?v=7dde0a3d') center 56% / cover no-repeat;
}

.nightfall::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 24%, oklch(83% 0.045 250 / 0.26), transparent 21%),
    linear-gradient(90deg, oklch(15% 0.05 297 / 0.92), oklch(16% 0.05 297 / 0.64) 48%, oklch(16% 0.05 297 / 0.18));
}

.night-copy { width: min(580px, 100%); }
.night-copy > p:not(.eyebrow):not(.night-aside) { color: var(--paper); font-size: 19px; }
.night-aside { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--lavender); font-size: 14px; }
.night-ghost { position: absolute; filter: drop-shadow(0 0 34px oklch(88% 0.06 260 / 0.52)); animation: ghost-drift 6s ease-in-out infinite; }
.night-ghost-one { width: clamp(110px, 14vw, 210px); right: 20%; top: 19%; }
.night-ghost-two { width: clamp(76px, 9vw, 138px); right: 8%; top: 53%; animation-delay: -3.4s; opacity: 0.8; }

/* Calm promise */
.promise {
  position: relative;
  min-height: 850px;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
  padding: clamp(110px, 12vw, 170px) max(24px, calc((100vw - 1160px) / 2));
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 12%, oklch(89% 0.08 82 / 0.7), transparent 27%),
    linear-gradient(180deg, oklch(87% 0.055 142), oklch(83% 0.065 136));
}

.promise-world { position: relative; min-height: 590px; }
.promise-hill {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: min(52vw, 620px);
  aspect-ratio: 1.3;
  border-radius: 50%;
  translate: -50% 0;
  background: oklch(67% 0.09 141);
  box-shadow: inset 0 28px 50px oklch(82% 0.07 135 / 0.38), 0 34px 70px oklch(33% 0.07 142 / 0.18);
}
.promise-world img { position: absolute; filter: drop-shadow(0 28px 34px oklch(32% 0.06 141 / 0.28)); }
.promise-cottage { width: min(82%, 480px); left: 50%; bottom: 13%; translate: -50% 0; }
.promise-cat { width: min(24%, 130px); left: 14%; bottom: 8%; }
.promise-wreath { width: min(20%, 100px); right: 13%; bottom: 12%; }
.promise-copy { position: relative; z-index: 2; }
.promise-copy .eyebrow { color: var(--sage-deep); }
.promise-list { margin-top: 46px; }
.promise-list article { padding: 25px 0; border-top: 1px solid var(--line-light); }
.promise-list article:last-child { border-bottom: 1px solid var(--line-light); }
.promise-list article > span { display: block; margin-bottom: 7px; color: var(--sage-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.promise-list h3 { margin-bottom: 8px; font-size: clamp(22px, 2.2vw, 30px); }
.promise-list p { margin: 0; color: oklch(41% 0.045 143); }

/* Searchable, human answers without turning the page into a help-center grid. */
.questions {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(50px, 9vw, 140px);
  padding: clamp(100px, 11vw, 150px) max(24px, calc((100vw - 1160px) / 2));
  color: var(--ink);
  background: var(--paper);
}
.questions-heading { position: sticky; top: 112px; }
.questions-heading .eyebrow { color: var(--sage-deep); }
.questions-heading h2 { font-size: clamp(38px, 4vw, 58px); }
.questions-heading > p:last-child { max-width: 42ch; margin: 0; color: oklch(43% 0.045 309); }
.question-list { border-top: 1px solid var(--line-light); }
.question-list details { border-bottom: 1px solid var(--line-light); }
.question-list summary {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after {
  content: '+';
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  transition: transform 280ms var(--ease-gentle), color 160ms ease, background-color 160ms ease;
}
.question-list details[open] summary::after { transform: rotate(45deg); color: var(--paper); background: var(--sage-deep); }
.question-list details p { max-width: 64ch; margin: 0; padding: 0 56px 24px 0; color: oklch(43% 0.045 309); }

/* Release and footer */
.release {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
  padding: clamp(100px, 10vw, 150px) max(24px, calc((100vw - 1000px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 45%, oklch(73% 0.08 305 / 0.16), transparent 24%),
    radial-gradient(circle at 74% 28%, oklch(79% 0.13 73 / 0.1), transparent 25%),
    var(--ink-deep);
}

.release::before {
  content: '';
  position: absolute;
  inset: 10% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-dark), transparent);
}
.release-ghost { width: min(100%, 310px); justify-self: center; filter: drop-shadow(0 0 55px oklch(88% 0.06 82 / 0.28)); animation: ghost-drift 5.5s ease-in-out infinite; }
.release-copy { max-width: 590px; }
.release-copy > p:not(.eyebrow):not(.release-note) { color: var(--paper-dim); font-size: 18px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-action { min-width: 220px; margin: 0; border: 1px solid oklch(91% 0.08 82 / 0.58); text-align: left; cursor: pointer; }
.store-action > span:first-child { font-size: 18px; }
.store-action > span:last-child { display: grid; line-height: 1.15; }
.store-action small { margin-bottom: 3px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.store-action.is-coming {
  color: var(--paper);
  background: var(--ink-soft);
  border-color: var(--line-dark);
  box-shadow: inset 0 1px 0 oklch(95% 0.015 80 / 0.08);
  cursor: default;
}
.store-action.is-coming:hover { translate: 0 0; color: var(--paper); background: var(--ink-soft); box-shadow: inset 0 1px 0 oklch(95% 0.015 80 / 0.08); }
.release-note { margin: 14px 0 0; color: var(--lavender); font-size: 12px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 40px;
  padding: 54px max(24px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--line-dark);
  color: var(--paper-dim);
  background: oklch(14% 0.032 306);
  font-size: 13px;
}
.footer-mark img { width: 108px; }
.footer-mark p { margin: 8px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--lavender); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer > p { margin: 0 0 12px; }

/* JavaScript-enhanced reveals. Content is visible before the class is added. */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms var(--ease-gentle), transform 760ms var(--ease-gentle);
}
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Password recovery */
.reset-page {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  padding: 36px 20px;
  background: radial-gradient(circle at 50% 18%, oklch(76% 0.075 308 / 0.16), transparent 34%), var(--ink-deep);
}
.reset-page .wordmark-small { width: min(58vw, 240px); }
.reset-card {
  width: min(100%, 520px);
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--ink-soft);
  box-shadow: 0 24px 70px var(--shadow);
}
.reset-card h1 { margin: 8px 0 0; font-size: clamp(30px, 7vw, 42px); }
.reset-kicker { color: var(--candle); font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.reset-intro, .reset-help { margin-top: 16px; color: var(--paper-dim); }
.reset-form { display: grid; gap: 10px; margin-top: 26px; }
.reset-form label { margin-top: 8px; font-size: 14px; font-weight: 800; }
.reset-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  color: var(--paper);
  background: var(--ink-deep);
}
.reset-form .clay-btn { min-height: 52px; margin-top: 14px; border: 0; border-radius: 999px; color: var(--ink); background: var(--candle-bright); cursor: pointer; font-weight: 800; }
.reset-form .clay-btn:disabled { opacity: 0.58; cursor: wait; }
.reset-message { min-height: 26px; margin-top: 20px; }
.reset-message[data-kind='error'] { color: oklch(77% 0.12 30); }
.reset-message[data-kind='success'] { color: var(--sage); font-weight: 800; }
.reset-message[data-kind='quiet'] { color: var(--paper-dim); }
.reset-help a, .reset-open-app { color: var(--candle-bright); font-weight: 800; }
.reset-open-app { display: inline-block; margin-top: 14px; }
.reset-open-app[hidden] { display: none; }

/* Legal and support pages */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  color: var(--paper-dim);
  font-size: 15.5px;
  line-height: 1.72;
}
.legal-page .wordmark-small { width: 120px; margin-bottom: 8px; }
.legal-page h1 { margin: 26px 0 6px; color: var(--paper); font-size: 38px; }
.legal-page .updated { margin-bottom: 34px; color: var(--lavender); font-size: 13px; }
.legal-page h2 { margin: 34px 0 10px; color: var(--paper); font-family: var(--font-display); font-size: 23px; line-height: 1.3; }
.legal-page p, .legal-page li { margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; }
.legal-page a { color: var(--candle-bright); }
.legal-page .back { display: inline-block; min-height: 44px; margin-top: 44px; color: var(--lavender); text-decoration: none; }
.legal-page .placeholder { padding: 2px 8px; border: 1px dashed oklch(78% 0.14 72 / 0.5); border-radius: 8px; color: var(--candle-bright); background: oklch(78% 0.14 72 / 0.12); }
.analytics-preference {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid oklch(85% 0.13 80 / 0.46);
  border-radius: 999px;
  color: var(--candle-bright);
  background: oklch(31% 0.055 308);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.analytics-preference:hover { color: var(--ink-deep); background: var(--candle-bright); }
.analytics-preference:disabled { color: var(--paper-dim); border-color: var(--line-dark); background: var(--ink-soft); cursor: default; }
.analytics-status { min-height: 1.72em; margin-top: 8px; color: var(--lavender); font-size: 13px; }

@media (max-width: 980px) {
  :root { --page: min(100% - 40px, 760px); }
  .site-header { grid-template-columns: 112px 1fr 112px; gap: 18px; padding-inline: 20px; }
  .site-nav { gap: 20px; }

  .hero-copy { width: min(590px, calc(100vw - 40px)); margin-left: 28px; }
  .hero::after { background: linear-gradient(90deg, oklch(18% 0.045 307 / 0.94), oklch(18% 0.045 307 / 0.72) 54%, oklch(18% 0.045 307 / 0.14)), linear-gradient(0deg, var(--ink-deep), transparent 30%); }
  .hero-gate { left: 75%; }
  .hero-ghost { left: 81%; }
  .hero-stone-left { left: 64%; }
  .hero-stone-right { left: 87%; }
  .hero-mourner { left: 76%; }

  .ritual-path::before { left: 30px; }
  .ritual-step { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding-left: 52px; }
  .ritual-step:nth-child(even) .ritual-art { order: initial; }
  .ritual-step:nth-child(even) .ritual-copy { justify-self: auto; }
  .soft-orbit { width: min(40vw, 340px); }

  .stories { grid-template-columns: 1fr; padding-inline: max(24px, calc((100vw - 760px) / 2)); }
  .stories-copy { max-width: 640px; }
  .family-memorial { min-height: 450px; }
  .family-beginning { left: 12%; }
  .family-complete { right: 8%; }

  .grounds-heading { grid-template-columns: 1fr; align-items: start; }
  .grounds-heading > p { max-width: 60ch; }

  .promise { grid-template-columns: 1fr; padding-inline: max(24px, calc((100vw - 760px) / 2)); }
  .promise-world { min-height: 500px; }
  .promise-hill { width: min(82vw, 620px); }

  .questions { grid-template-columns: 1fr; gap: 50px; padding-inline: max(24px, calc((100vw - 760px) / 2)); }
  .questions-heading { position: static; }

  .release { padding-inline: max(24px, calc((100vw - 760px) / 2)); }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --page: calc(100% - 32px); }
  html { scroll-padding-top: 68px; }
  .site-header { min-height: 62px; grid-template-columns: 1fr auto; padding: 8px 16px; background: oklch(17% 0.04 307 / 0.88); }
  .nav-brand { width: 94px; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid oklch(92% 0.02 80 / 0.26);
    border-radius: 999px;
    color: var(--paper);
    background: oklch(14% 0.035 307 / 0.7);
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
  }
  .menu-toggle:hover { color: var(--candle-bright); border-color: oklch(85% 0.13 80 / 0.52); }
  .menu-lines { position: relative; width: 20px; height: 14px; display: block; }
  .menu-lines i {
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 280ms var(--ease-gentle), top 280ms var(--ease-gentle);
  }
  .menu-lines i:first-child { top: 2px; }
  .menu-lines i:last-child { top: 10px; }
  .menu-open .menu-lines i:first-child { top: 6px; transform: rotate(45deg); }
  .menu-open .menu-lines i:last-child { top: 6px; transform: rotate(-45deg); }
  .site-nav {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line-dark);
    border-radius: 22px;
    color: var(--paper);
    background: oklch(18% 0.045 307 / 0.98);
    box-shadow: 0 26px 70px oklch(10% 0.03 307 / 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.985);
    transform-origin: top;
    pointer-events: none;
    transition: opacity 180ms ease, transform 300ms var(--ease-gentle), visibility 0s linear 300ms;
  }
  .site-header.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
  }
  .site-nav a { min-height: 54px; justify-content: space-between; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
  .site-nav a::after { content: '↘'; color: var(--candle); font-size: 13px; }
  .site-nav a:last-child { border-bottom: 0; }
  .mobile-download-link { display: inline-flex !important; color: var(--candle-bright) !important; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: max(720px, 100svh); align-items: end; }
  .hero::after { background: linear-gradient(0deg, oklch(17% 0.04 307 / 0.98) 0%, oklch(18% 0.045 307 / 0.78) 57%, oklch(18% 0.045 307 / 0.18) 100%); }
  .hero-world { background-position: 62% center; transform: scale(1.04); }
  .hero-copy { width: calc(100vw - 36px); margin: 0 auto; padding: 270px 0 66px; }
  .hero-wordmark { width: 190px; margin-bottom: 18px; }
  .hero-copy h1 { max-width: 13ch; font-size: clamp(39px, 11vw, 56px); }
  .hero-intro { margin-bottom: 24px; font-size: 16px; }
  .hero-actions { gap: 10px 18px; }
  .hero-actions .primary-action { width: 100%; }
  .text-action { min-height: 44px; }
  .hero-trust { gap: 6px 16px; margin-top: 20px; }
  .hero-tree { bottom: 38%; }
  .hero-wall { bottom: 34%; }
  .hero-gate { left: 69%; bottom: 33%; width: 165px; }
  .hero-ghost { left: 80%; top: 18%; width: 100px; }
  .hero-stone, .hero-mourner, .hero-lantern { display: none; }
  .scroll-whisper { display: none; }

  .ritual { padding-block: 96px; }
  .section-heading { width: calc(100vw - 36px); margin-bottom: 56px; text-align: left; }
  .section-heading .eyebrow { justify-content: flex-start; }
  .section-heading > p:last-child { margin: 0; font-size: 16px; }
  .ritual-path::before { left: 12px; }
  .ritual-step { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 45px 0 65px 30px; }
  .ritual-art { min-height: 350px; }
  .ritual-art img { max-height: 320px; }
  .restore-art img { width: min(76%, 300px); }
  .soft-orbit { width: min(75vw, 320px); }
  .restore-button { bottom: 0; }
  .gate-art img { max-height: 380px; }

  .stories { min-height: 980px; gap: 22px; padding-block: 96px; }
  .stories::before { background: linear-gradient(0deg, oklch(17% 0.04 307 / 0.92), oklch(18% 0.05 307 / 0.72)); }
  .stories-copy > p:not(.eyebrow):not(.story-note) { font-size: 16px; }
  .stories-copy blockquote { margin-top: 28px; font-size: 26px; }
  .family-memorial { min-height: 390px; }
  .family-beginning { width: 40%; left: 0; bottom: 12%; }
  .family-complete { width: 72%; right: 0; top: 4%; }
  .family-caption { right: 0; bottom: 0; }

  .grounds { padding-block: 96px; }
  .grounds-heading { margin-bottom: 44px; }
  .grounds-heading > p { font-size: 16px; }
  .atlas-plate { width: 1050px; }
  .atlas-plate figcaption { left: 16px; translate: 0 0; }
  .ground-browser { width: 100%; }
  .ground-browser-head { padding-inline: 16px; }
  .ground-rail { padding: 0 16px 20px; scroll-padding-inline: 16px; }
  .ground-panel { flex-basis: min(79vw, 330px); }

  .nightfall { min-height: 780px; align-items: end; padding-block: 100px 78px; }
  .nightfall::before { background: linear-gradient(0deg, oklch(15% 0.05 297 / 0.95), oklch(16% 0.05 297 / 0.35)); }
  .night-copy > p:not(.eyebrow):not(.night-aside) { font-size: 17px; }
  .night-ghost-one { right: 11%; top: 18%; width: 120px; }
  .night-ghost-two { right: 62%; top: 32%; width: 82px; }

  .promise { min-height: 0; gap: 42px; padding-block: 96px; }
  .promise-world { min-height: 380px; }
  .promise-hill { width: min(100vw, 500px); }
  .promise-cottage { width: min(84%, 390px); }

  .questions { gap: 34px; padding-block: 96px; }
  .questions-heading > p:last-child { font-size: 16px; }
  .question-list summary { min-height: 68px; padding-block: 14px; font-size: 21px; }
  .question-list details p { padding-right: 0; font-size: 15px; }

  .release { min-height: 780px; grid-template-columns: 1fr; gap: 20px; padding-block: 90px; text-align: center; }
  .release-ghost { width: 150px; }
  .release-copy .eyebrow { justify-content: center; }
  .release-copy > p:not(.eyebrow):not(.release-note) { font-size: 16px; }
  .store-actions { justify-content: center; }
  .store-action { width: min(100%, 310px); max-width: 310px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding-block: 44px; }
  .site-footer nav { gap: 6px 18px; }
  .site-footer > p { grid-column: auto; }
}

@media (max-width: 390px) {
  .hero-copy { width: calc(100vw - 28px); }
  .hero-trust { font-size: 12px; }
  .ground-controls button { width: 44px; height: 44px; }
  .family-caption { max-width: 190px; font-size: 14px; }
}

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

@media (prefers-contrast: more) {
  :root { --paper-dim: oklch(88% 0.02 80); --line-dark: oklch(95% 0.015 80 / 0.35); }
  .site-header.is-scrolled { background: var(--ink-deep); backdrop-filter: none; }
}

/* ========================================================================== */
/* First-party discovery guides                                                */
/* ========================================================================== */

.content-page {
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 5%, oklch(43% 0.08 141 / 0.14), transparent 25%),
    var(--ink-deep);
}

.field-notes { padding: clamp(90px, 10vw, 145px) 0; color: var(--ink); background: var(--paper); }
.field-notes-inner { width: var(--page); margin-inline: auto; }
.field-notes header { max-width: 720px; margin-bottom: 48px; }
.field-notes .eyebrow { color: var(--sage-deep); }
.field-notes header > p:last-child { color: oklch(40% 0.035 307); font-size: 18px; }
.field-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.field-notes-grid a { min-height: 210px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: oklch(100% 0 0 / 0.32); text-decoration: none; transition: translate 220ms var(--ease-gentle), box-shadow 220ms var(--ease-gentle); }
.field-notes-grid a:hover { translate: 0 -4px; box-shadow: 0 22px 44px oklch(20% 0.04 307 / 0.14); }
.field-notes-grid span { margin-bottom: 20px; color: var(--sage-deep); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.field-notes-grid strong { margin-bottom: 8px; font-family: var(--font-display); font-size: 25px; line-height: 1.16; }
.field-notes-grid small { color: oklch(43% 0.035 307); font-size: 14px; }

.content-page .site-header {
  background: oklch(18% 0.045 307 / 0.94);
  box-shadow: 0 12px 34px oklch(12% 0.03 307 / 0.24);
  backdrop-filter: blur(16px) saturate(0.9);
}

.site-nav a[aria-current='page'] { color: var(--candle-bright); }
.content-shell { width: var(--page); margin-inline: auto; }

.content-hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  padding: 150px 0 94px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 30%, oklch(68% 0.08 142 / 0.18), transparent 30%),
    linear-gradient(145deg, var(--ink-deep), oklch(24% 0.055 307));
}

.content-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--ink-deep));
}

.content-hero-grid,
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  gap: clamp(46px, 7vw, 104px);
  align-items: center;
}

.content-hero-copy { position: relative; z-index: 2; max-width: 660px; }
.content-hero-copy h1 { max-width: 13ch; }
.content-lede {
  max-width: 60ch;
  margin-bottom: 34px;
  color: var(--paper-warm);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.content-hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  place-items: center;
}

.content-hero-art img {
  width: min(100%, 520px);
  max-height: 570px;
  object-fit: contain;
  filter: drop-shadow(0 34px 50px var(--shadow));
}

.content-hero-art figcaption,
.family-figure figcaption {
  max-width: 48ch;
  margin-top: 20px;
  color: var(--paper-dim);
  font-size: 14px;
  text-align: center;
}

.content-hero-plate img {
  width: 100%;
  max-height: 550px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 30px 70px var(--shadow);
  filter: none;
}

.content-section { padding: clamp(90px, 10vw, 150px) 0; }
.content-section + .content-section { border-top: 1px solid var(--line-dark); }

.content-section-paper {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, oklch(76% 0.075 308 / 0.2), transparent 26%),
    var(--paper);
}

.content-section-paper .eyebrow,
.content-section-paper .kicker { color: var(--sage-deep); }
.content-section-paper .section-heading > p:last-child { color: oklch(40% 0.035 307); }

.content-article h2 { font-size: clamp(36px, 4.6vw, 60px); }
.content-article > p:not(.kicker) { color: var(--paper-dim); font-size: 18px; }
.content-section-paper .content-article > p:not(.kicker) { color: oklch(38% 0.035 307); }

.content-note {
  max-width: 480px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, oklch(30% 0.06 307), oklch(22% 0.05 307));
  box-shadow: 0 28px 70px var(--shadow);
}

.content-note img { width: min(50%, 180px); margin: -92px auto 18px; filter: drop-shadow(0 20px 24px var(--shadow)); }
.content-note h3 { font-size: 34px; }
.content-note p { margin-bottom: 0; color: var(--paper-warm); }
.content-note-dark { color: var(--paper); }

.ritual-list { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: ritual; }
.ritual-list li { position: relative; display: grid; gap: 4px; padding: 24px 0 24px 56px; border-top: 1px solid var(--line-dark); counter-increment: ritual; }
.ritual-list li::before { content: counter(ritual, decimal-leading-zero); position: absolute; left: 0; top: 25px; color: var(--candle); font-weight: 800; }
.ritual-list strong { font-family: var(--font-display); font-size: 23px; }
.ritual-list span { color: var(--paper-dim); }

.guide-grid,
.promise-cards,
.story-grid,
.season-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.guide-grid article,
.promise-cards article,
.story-grid article {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: oklch(100% 0 0 / 0.26);
}

.guide-grid article > span,
.grounds-index article span,
.season-grid article > span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-grid h3,
.promise-cards h3,
.story-grid h3,
.grounds-index h3,
.season-grid h3 { font-size: 28px; }
.guide-grid p,
.promise-cards p,
.story-grid p,
.season-grid p { margin-bottom: 0; color: oklch(38% 0.035 307); }

.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-grid article { color: var(--paper); border-color: var(--line-dark); background: oklch(26% 0.055 307); }
.story-grid p { color: var(--paper-dim); }
.story-grid .kicker { color: var(--candle-bright); }

.family-figure { position: relative; min-height: 520px; margin: 0; display: grid; place-items: center; }
.family-figure img { position: absolute; max-height: 420px; filter: drop-shadow(0 30px 40px oklch(15% 0.04 307 / 0.24)); }
.family-figure img:first-child { width: 46%; left: 0; bottom: 12%; opacity: 0.58; rotate: -5deg; }
.family-figure img:nth-child(2) { width: 70%; right: 0; top: 0; }
.family-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: oklch(43% 0.035 307); }

.promise-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.promise-cards article { min-height: 230px; color: var(--paper); border-color: var(--line-dark); background: linear-gradient(145deg, oklch(28% 0.055 307), oklch(21% 0.045 307)); }
.promise-cards p { color: var(--paper-dim); }

.grounds-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grounds-index article { min-height: 250px; display: grid; grid-template-columns: 42% 1fr; gap: 24px; padding: 16px; border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: oklch(26% 0.05 307); overflow: hidden; }
.grounds-index article img { width: 100%; height: 100%; min-height: 218px; border-radius: 15px; object-fit: cover; }
.grounds-index article div { align-self: center; }
.grounds-index article span { margin-bottom: 12px; color: var(--candle-bright); }
.grounds-index article p { margin-bottom: 0; color: var(--paper-dim); }
.grounds-index .is-preview { border-style: dashed; }

.season-grid article { overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: oklch(100% 0 0 / 0.3); }
.season-grid article img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.season-grid article > span,
.season-grid article h3,
.season-grid article p { margin-left: 22px; margin-right: 22px; }
.season-grid article > span { margin-top: 22px; margin-bottom: 10px; }
.season-grid article p { margin-bottom: 28px; }

.hallow-hero { position: relative; min-height: max(720px, 92svh); display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hallow-hero-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hallow-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, oklch(14% 0.045 302 / 0.94) 0%, oklch(15% 0.05 302 / 0.72) 45%, oklch(15% 0.05 302 / 0.18)), linear-gradient(0deg, oklch(14% 0.045 302 / 0.82), transparent 50%); }
.hallow-hero-copy { padding-bottom: 105px; }
.hallow-hero-copy h1 { max-width: 12ch; }
.hallow-hero-copy .content-lede { max-width: 54ch; }
.hallow-facts article > span { font-family: var(--font-display); font-size: 44px; letter-spacing: -0.03em; }

.fact-list { margin: 0; border-top: 1px solid var(--line-dark); }
.fact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line-dark); }
.fact-list dt { color: var(--candle-bright); font-weight: 800; }
.fact-list dd { margin: 0; color: var(--paper-warm); }

.download-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.download-grid a { display: flex; flex-direction: column; min-height: 330px; padding: 14px; border: 1px solid var(--line-light); border-radius: var(--radius-md); color: var(--ink); background: oklch(100% 0 0 / 0.34); text-decoration: none; transition: translate 220ms var(--ease-gentle), box-shadow 220ms var(--ease-gentle); }
.download-grid a:hover { translate: 0 -4px; box-shadow: 0 22px 44px oklch(20% 0.04 307 / 0.16); }
.download-grid img { width: 100%; height: 220px; margin-bottom: 18px; border-radius: 14px; object-fit: cover; }
.download-grid strong { font-family: var(--font-display); font-size: 23px; }
.download-grid span { color: oklch(43% 0.035 307); font-size: 13px; }

.content-cta {
  width: var(--page);
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin: clamp(60px, 8vw, 110px) auto;
  padding: clamp(36px, 6vw, 74px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 20%, oklch(78% 0.14 72 / 0.13), transparent 26%),
    linear-gradient(145deg, oklch(30% 0.06 307), oklch(21% 0.045 307));
  box-shadow: 0 34px 90px var(--shadow);
}
.content-cta h2 { margin-bottom: 12px; }
.content-cta p:last-child { margin-bottom: 0; color: var(--paper-dim); }

@media (max-width: 1050px) {
  .field-notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid, .season-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grounds-index article { grid-template-columns: 1fr; }
  .grounds-index article img { height: 240px; }
}

@media (max-width: 780px) {
  .content-hero { min-height: 0; padding: 122px 0 78px; }
  .content-hero-grid, .prose-grid { grid-template-columns: 1fr; gap: 52px; }
  .content-hero-copy h1 { font-size: clamp(40px, 11vw, 58px); }
  .content-hero-art { order: -1; }
  .content-hero-art img { max-height: 390px; }
  .content-hero-plate img { max-height: none; aspect-ratio: 4 / 3; }
  .story-grid, .grounds-index { grid-template-columns: 1fr; }
  .family-figure { min-height: 420px; }
  .hallow-hero { min-height: 760px; align-items: end; }
  .hallow-hero-shade { background: linear-gradient(0deg, oklch(14% 0.045 302 / 0.98) 0%, oklch(15% 0.05 302 / 0.74) 56%, oklch(15% 0.05 302 / 0.12)); }
  .hallow-hero-copy { padding-bottom: 66px; }
  .content-cta { grid-template-columns: 1fr; text-align: center; }
  .content-cta .eyebrow { justify-content: center; }
  .content-cta .store-action { width: min(100%, 320px); justify-self: center; }
}

@media (max-width: 560px) {
  .field-notes-grid { grid-template-columns: 1fr; }
  .guide-grid, .promise-cards, .season-grid, .download-grid { grid-template-columns: 1fr; }
  .guide-grid article { min-height: 0; }
  .grounds-index article img { height: 210px; }
  .download-grid a { min-height: 0; }
  .fact-list div { grid-template-columns: 1fr; gap: 2px; }
  .content-cta { width: calc(100% - 24px); padding: 34px 22px; }
}
