/* NAPE — cinematic scroll story (crown → trunk → roots → the plan) */
:root {
  --mx: 0; --my: 0;
  --world-x: 0px; --world-y: 0px;
  --shade-top-alpha: 0.42; --shade-mid-alpha: 0; --shade-bottom-alpha: 0.35;
  --tint: 18, 14, 10;
  --title-y: 0px; --title-scale: 1; --title-opacity: 1;
  --intro-y: 0px; --intro-opacity: 1;
  --panel1-opacity: 0; --panel1-y: calc(-50% + 58px);
  --panel2-opacity: 0; --panel2-y: calc(-50% + 58px);
  --sights-x: 120vw; --sights-visibility: hidden; --sights-controls-opacity: 0;
  --sights-shift: 0px;
  --quiz-opacity: 0; --quiz-side-alpha: 0;

  --ink: #111411;
  --paper: #fdf1e1;
  --paper-soft: rgba(253, 241, 225, 0.86);
  --amber: #f1b65b;
  --soil: #120e0a;
  --shadow: rgba(0, 0, 0, 0.32);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;

  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--paper);
  background: var(--soil);
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--soil); }
body { min-height: 100%; margin: 0; overflow-x: clip; background: var(--soil); }
button { border: 0; font: inherit; color: inherit; background: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.site-shell { min-height: 100vh; }

/* ---------- Scroll rig ---------- */
.cinema-scroll { position: relative; height: calc(100vh + 5200px); }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden; isolation: isolate;
  background: var(--soil);
}
.world, .shade, .site-header, .hero-title, .intro-copy, .story-panel,
.sights-slider, .sights-controls, .quiz, .loader { position: absolute; }

/* the film + root nodes drift together with the pointer */
.world {
  inset: -2.5%;
  transform: translate3d(var(--world-x), var(--world-y), 0);
  will-change: transform;
}
/* the video keeps its own pixel size; script.js moves and scales it with a transform */
.film {
  position: absolute; left: 0; top: 0; display: block;
  max-width: none; object-fit: fill; pointer-events: none;
  transform-origin: 0 0; will-change: transform;
  background: var(--soil);
}
/* full-quality stills of the first and last frames: fade in over the video, leave at once */
.film-still { opacity: 0; background: none; will-change: auto; }
.film-still.is-on { opacity: 1; transition: opacity .3s ease; }
.film-fade {
  position: absolute; left: 0; right: 0; top: 0; height: 100px; pointer-events: none; opacity: 0;
  transform-origin: 0 0;
  background: linear-gradient(rgba(18, 14, 10, 0), var(--soil));
}

.shade {
  inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--tint), var(--quiz-side-alpha)) 0%, rgba(var(--tint), calc(var(--quiz-side-alpha) * 0.35)) 38%, transparent 60%),
    linear-gradient(180deg,
      rgba(var(--tint), var(--shade-top-alpha)) 0%,
      rgba(var(--tint), var(--shade-mid-alpha)) 48%,
      rgba(var(--tint), var(--shade-bottom-alpha)) 100%);
}

/* ---------- Header ---------- */
.site-header {
  z-index: 10; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  align-items: center; gap: 32px; padding: 32px;
  color: var(--paper-soft);
}
.site-logo {
  justify-self: start;
  font: 600 28px/1 var(--serif); letter-spacing: 0.04em;
  color: rgba(253, 241, 225, 0.94); text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; justify-content: center; gap: clamp(24px, 2.2vw, 44px); }
.site-nav a {
  font-size: 18px; line-height: 1; text-decoration: none;
  color: var(--paper-soft); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  transition: color .2s;
}
.site-nav a:hover { color: var(--paper); }
.header-cta {
  justify-self: end;
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 22px;
  border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* ---------- Hero ---------- */
.hero-title {
  z-index: 3; left: 50%; top: clamp(118px, 17vh, 190px);
  width: min(94vw, 1780px); margin: 0;
  font: 500 14rem/0.78 var(--serif); letter-spacing: 0.02em; text-align: center;
  color: var(--paper);
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  transform: translate3d(-50%, var(--title-y), 0) scale(var(--title-scale));
  opacity: var(--title-opacity);
  will-change: transform, opacity;
}

.intro-copy {
  z-index: 9; left: 50%; bottom: clamp(56px, 16vh, 220px);
  width: min(600px, calc(100vw - 40px)); text-align: center;
  transform: translate3d(-50%, var(--intro-y), 0);
  opacity: var(--intro-opacity);
  will-change: transform, opacity;
}
.intro-copy p {
  margin: 0 auto; max-width: 560px;
  font-size: 1.22rem; font-weight: 500; line-height: 1.22;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform .2s, background .2s;
}
.pill:hover { transform: translateY(-1px); background: #fff7ec; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  color: var(--paper-soft); font-size: 0.95rem; text-decoration: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.scroll-cue span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Story panels ---------- */
.story-panel {
  z-index: 8; left: 50%; top: 50%;
  width: min(780px, calc(100vw - 42px)); text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.story-panel h2 {
  font: 500 5.2rem/0.95 var(--serif);
  text-shadow: 0 16px 38px var(--shadow);
}
.story-panel p {
  width: min(540px, 100%); margin: 26px auto 0;
  font-size: 1.16rem; font-weight: 500; line-height: 1.22;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.story-panel-one { opacity: var(--panel1-opacity); transform: translate3d(-50%, var(--panel1-y), 0); }
.story-panel-two { top: 42%; opacity: var(--panel2-opacity); transform: translate3d(-50%, var(--panel2-y), 0); }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 86px;
  width: min(480px, 100%); margin: 64px auto 0;
}
.facts dt { font: 500 5rem/0.9 var(--serif); text-shadow: 0 14px 34px var(--shadow); }
.facts dd {
  margin: 14px 0 0; font-size: 1rem; font-weight: 500; line-height: 1.16;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.note-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; margin-top: 28px; padding: 0 28px; border-radius: 999px;
  color: var(--ink); background: var(--paper); text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  pointer-events: auto; cursor: pointer;
}
.note-button span:first-child { font-size: 1.25rem; line-height: 1; }

/* ---------- Sections slider ---------- */
.sights-slider {
  z-index: 7; left: 0; right: 0; top: clamp(110px, 20vh, 200px);
  visibility: var(--sights-visibility);
  transform: translate3d(var(--sights-x), 0, 0);
  will-change: transform;
}
.sights-title {
  margin: 0 0 22px 48px;
  font: 500 3.4rem/1 var(--serif);
  text-shadow: 0 12px 32px var(--shadow);
}
.sights-track {
  display: flex; gap: clamp(16px, 1.15vw, 24px); align-items: stretch;
  padding-left: 48px;
  transform: translate3d(var(--sights-shift), 0, 0);
  transition: transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.sights-track.is-jumping { transition: none; }
.sight-card {
  position: relative; flex: 0 0 clamp(330px, 19.4vw, 420px); height: 220px;
  padding: 24px; overflow: hidden;
  border: 1px solid rgba(253, 241, 225, 0.42); border-radius: 24px;
  color: #000; background: var(--paper);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
  cursor: pointer; user-select: none;
  transition: transform .25s;
}
.sight-card:hover { transform: translateY(-4px); }
.sight-card:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sight-kicker {
  display: block; margin-bottom: auto;
  font-size: 12px; font-weight: 600; line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(0, 0, 0, 0.55);
}
/* without icons the card is a simple column: section number on top, title and text at the bottom */
.sight-card { display: flex; flex-direction: column; }
.sight-card h3 { margin: 0; font: 600 30px/1 var(--serif); }
.sight-card p {
  margin: 10px 0 0; font-size: 15px; line-height: 1.3;
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.sights-controls {
  z-index: 7; left: 48px; top: calc(clamp(110px, 20vh, 200px) + 76px + 220px + 18px);
  display: flex; gap: 14px;
  opacity: var(--sights-controls-opacity);
  pointer-events: none;
}
.sights-controls.is-ready { pointer-events: auto; }
.sight-nav {
  width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--ink); background: rgba(253, 241, 225, 0.94);
  font-size: 18px; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2); cursor: pointer;
}

/* ---------- Root nodes ---------- */
.nodes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; opacity: var(--quiz-opacity); }
.nodes li { position: absolute; transform: translate(-50%, -50%); }
.nodes.is-on li { pointer-events: auto; }
.node { position: relative; display: flex; align-items: center; padding: 0; cursor: pointer; }
.node__dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--paper); background: rgba(18, 14, 10, 0.55);
  transition: background .3s, transform .3s, border-color .3s;
}
.node__label {
  position: absolute; left: 26px; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(18, 14, 10, 0.62); color: rgba(253, 241, 225, 0.8);
  font-size: 13px; font-weight: 500;
  transition: color .3s, background .3s;
}
.nodes li.is-left .node__label { left: auto; right: 26px; }
.node:hover .node__label { color: var(--paper); }
.node.is-done .node__dot { background: var(--paper); }
.node.is-done .node__label { color: var(--paper); }
.node.is-active .node__dot { background: var(--amber); border-color: var(--amber); transform: scale(1.35); }
.node.is-active .node__label { background: var(--paper); color: var(--ink); }
.node.is-active .node__dot::after {
  content: ''; position: absolute; left: -5px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; border: 1px solid var(--amber); animation: ring 2.6s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Plan panel ---------- */
.quiz { inset: 0; z-index: 9; opacity: var(--quiz-opacity); visibility: hidden; pointer-events: none; }
.quiz.is-on { visibility: visible; }
.panel {
  position: absolute; top: 108px; left: 32px;
  width: min(420px, 32vw);
  max-height: calc(100% - 108px - 32px); overflow-y: auto;
  padding: 26px;
  border-radius: 24px; background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.kicker { font-size: 12px; font-weight: 500; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; }
.panel .kicker { color: rgba(17, 20, 17, 0.6); }
.panel__top { display: flex; justify-content: space-between; gap: 10px; }
.bar { height: 3px; margin-top: 14px; border-radius: 99px; background: rgba(17, 20, 17, 0.1); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #d8913a, var(--amber)); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.panel__note { margin-top: 16px; font-size: 14px; color: rgba(17, 20, 17, 0.6); }
.panel__note:empty { display: none; }
.panel__note.is-fresh { color: #9a5a12; font-weight: 500; }
.panel__note.is-fresh::before { content: '✓ '; }

.q { margin-top: 22px; font: 600 2.1rem/1 var(--serif); }
.q-hint { margin-top: 10px; color: rgba(17, 20, 17, 0.6); font-size: 15px; line-height: 1.3; }
.plan-for { margin-top: 18px; }
.opts { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.opt {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 14px;
  background: rgba(17, 20, 17, 0.06); text-align: left; font-size: 16px;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.opt:hover { border-color: rgba(17, 20, 17, 0.18); }
.opt::after { content: ''; width: 12px; height: 12px; flex: none; border: 1.5px solid rgba(17, 20, 17, 0.4); border-radius: 4px; }
.opts--single .opt::after { border-radius: 50%; }
.opt.is-on { background: var(--ink); color: var(--paper); }
.opt.is-on::after { background: var(--amber); border-color: var(--amber); }
.opt:focus-visible, .pill:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.field {
  width: 100%; margin-top: 18px; padding: 14px 16px;
  border: 1px solid transparent; border-radius: 14px; background: rgba(17, 20, 17, 0.06);
  font: 400 16px/1.35 Montserrat, system-ui, sans-serif; color: var(--ink); resize: vertical;
}
.field:focus { outline: none; border-color: var(--ink); }
textarea.field { min-height: 110px; }
.field + .field { margin-top: 6px; }

.actions { display: flex; align-items: center; gap: 6px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn--primary { margin-left: auto; background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #2a2e2a; }
.btn--line { border: 1px solid rgba(17, 20, 17, 0.25); }
.btn--line:hover { background: rgba(17, 20, 17, 0.06); }
.btn--ghost { color: rgba(17, 20, 17, 0.55); padding: 0 10px; }
.btn--ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .35; cursor: default; }

.summary { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(17, 20, 17, 0.12); }
.summary li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(17, 20, 17, 0.12); font-size: 15px; line-height: 1.3; }
.summary .kicker { padding-top: 3px; }
.summary .later { color: rgba(17, 20, 17, 0.4); }
.final-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.final-actions .btn { width: 100%; margin: 0; }
.letter-teaser { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(17, 20, 17, 0.05); }
.letter-teaser p { margin-top: 8px; font-size: 14px; line-height: 1.4; color: rgba(17, 20, 17, 0.7); }
.letter-teaser blockquote { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--amber); font: italic 500 17px/1.35 var(--serif); color: var(--ink); }
.final-actions a.btn { text-decoration: none; }
.trusted { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(17, 20, 17, 0.12); }
.trusted p { margin-top: 8px; color: rgba(17, 20, 17, 0.6); font-size: 14px; line-height: 1.3; }

.loader {
  z-index: 11; right: 32px; bottom: 24px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(18, 14, 10, 0.6); color: var(--paper-soft); font-size: 13px;
  transition: opacity .4s;
}
.loader.is-done { opacity: 0; pointer-events: none; }

/* ---------- After the scene (same dark soil) ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.block { padding: 144px 0 0; }
.block .kicker { color: rgba(253, 241, 225, 0.55); }
.block h2 { margin-top: 18px; font: 500 clamp(3rem, 5vw, 4.75rem)/0.95 var(--serif); }
.block__sub { margin-top: 16px; color: rgba(253, 241, 225, 0.65); font-size: 1.15rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 64px 0 0; padding: 0; list-style: none; }
.steps li { padding-top: 20px; border-top: 1px solid rgba(253, 241, 225, 0.25); }
.step-num { font: 500 3.2rem/1 var(--serif); color: var(--amber); }
.steps h3 { margin-top: 26px; font-size: 1.2rem; font-weight: 500; }
.steps p { margin-top: 10px; color: rgba(253, 241, 225, 0.65); line-height: 1.35; }
.wrap--split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.faq { border-top: 1px solid rgba(253, 241, 225, 0.2); }
.faq details { border-bottom: 1px solid rgba(253, 241, 225, 0.2); }
.faq summary {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.15rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; max-width: 560px; color: rgba(253, 241, 225, 0.65); line-height: 1.4; }
.about { display: flex; flex-direction: column; gap: 18px; color: rgba(253, 241, 225, 0.65); line-height: 1.45; }
.about__lead { color: var(--paper); font: 500 clamp(1.9rem, 3vw, 2.6rem)/1.1 var(--serif); }
.end { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.end h2 { margin: 0; max-width: 760px; }
.footer { margin-top: 144px; padding: 28px 0 40px; border-top: 1px solid rgba(253, 241, 225, 0.15); color: rgba(253, 241, 225, 0.5); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.footer__brand img { height: 34px; opacity: .8; }

.toast {
  position: fixed; z-index: 30; left: 50%; bottom: 32px;
  max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 15px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .hero-title { font-size: 11rem; }
  .story-panel h2 { font-size: 4.4rem; }
}
@media (max-width: 1100px) {
  .hero-title { top: 15vh; font-size: 7.5rem; }
  .story-panel h2 { font-size: 3.4rem; }
  .facts { gap: 34px; margin-top: 44px; }
  .facts dt { font-size: 3.6rem; }
  .sight-card { flex-basis: clamp(300px, 40vw, 380px); }
  .panel {
    top: auto; bottom: 12px; left: 50%; transform: translateX(-50%);
    width: min(560px, calc(100% - 24px)); max-height: 58%;
  }
  .node__label { display: none; }
  .node.is-active .node__label { display: block; }
}
@media (max-width: 640px) {
  .stage { min-height: 600px; }
  .site-header { grid-template-columns: 1fr auto; gap: 14px; padding: 20px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav { transition: opacity .3s; }
  .is-planning .site-nav { opacity: 0; pointer-events: none; }
  .site-nav a { font-size: 16px; }
  .header-cta { min-height: 38px; padding: 0 16px; }
  .hero-title { top: 19vh; font-size: 5.4rem; }
  .intro-copy { bottom: 40px; }
  .intro-copy p, .story-panel p { font-size: 1rem; }
  .hero-tags { gap: 8px; }
  .pill { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
  .story-panel h2 { font-size: 2.6rem; }
  .facts { gap: 18px; margin-top: 34px; }
  .facts dt { font-size: 3rem; }
  .sights-title { margin-left: 20px; font-size: 2.3rem; }
  .sights-track { padding-left: 20px; gap: 12px; }
  .sight-card { flex-basis: min(82vw, 330px); }
  .sights-controls { left: 20px; top: calc(clamp(110px, 20vh, 200px) + 58px + 220px + 16px); }
  .node__label { display: none !important; }
  .panel {
    top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; transform: none;
    max-height: 60%; padding: 20px;
  }
  .panel__top { flex-direction: column; gap: 5px; }
  .q { margin-top: 16px; font-size: 1.75rem; }
  .opt { min-height: 42px; }
  .wrap { padding: 0 20px; }
  .block { padding-top: 96px; }
  .steps { grid-template-columns: 1fr; margin-top: 44px; }
  .wrap--split { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sights-track, .film, .pill, .sight-card { transition: none; }
  .scroll-cue span, .node.is-active .node__dot::after { animation: none; }
}
