:root {
  color-scheme: dark;
  --ink: #06110d;
  --ink-soft: #0b1d16;
  --panel: rgba(8, 28, 20, .86);
  --cream: #fff4d8;
  --muted: #b8c7bb;
  --mint: #b9e7bd;
  --mint-bright: #d8f5b6;
  --gold: #f2b84b;
  --line: rgba(201, 235, 205, .16);
  --max: 1220px;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .7rem 1rem; border-radius: 999px; background: var(--cream); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 1rem clamp(1.2rem, 4vw, 4rem); border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, padding .25s ease; }
.site-header.is-scrolled { padding-block: .65rem; background: rgba(5, 17, 13, .88); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; width: fit-content; font-size: .9rem; font-weight: 750; letter-spacing: .02em; line-height: 1.05; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand em { display: block; color: var(--gold); font-size: .68rem; font-style: normal; letter-spacing: .19em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 2rem; font-size: .88rem; font-weight: 650; }
nav a { color: #d4dfd6; }
nav a:hover { color: white; }
.nav-cta { justify-self: end; padding: .68rem 1.1rem; border: 1px solid rgba(242, 184, 75, .5); border-radius: 999px; background: rgba(14, 36, 25, .55); font-size: .86rem; font-weight: 750; }
.nav-cta:hover { background: var(--gold); color: #172015; }

.hero { position: relative; display: flex; min-height: 100svh; align-items: center; padding: 8rem clamp(1.3rem, 6vw, 6rem) 6rem; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; background: url('/assets/haven-day.webp') center/cover no-repeat; transform: scale(1.01); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 12, 9, .96) 0%, rgba(3, 15, 11, .78) 38%, rgba(3, 15, 11, .2) 70%, rgba(3, 15, 11, .18) 100%), linear-gradient(0deg, #06110d 0%, transparent 28%); }
.hero-content { width: min(720px, 62vw); }
.eyebrow { margin: 0 0 1rem; color: var(--mint); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .7rem; padding: .45rem .75rem .45rem .55rem; border: 1px solid rgba(185, 231, 189, .25); border-radius: 999px; background: rgba(4, 20, 14, .52); backdrop-filter: blur(8px); }
.hero .eyebrow span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(242, 184, 75, .9); }
h1 { margin: 0; max-width: 10ch; font-family: var(--serif); font-size: clamp(4rem, 8.2vw, 8.8rem); font-weight: 700; letter-spacing: -.055em; line-height: .78; text-wrap: balance; text-shadow: 0 3px 28px rgba(0, 0, 0, .32); }
h1 span { display: block; color: var(--cream); font-family: var(--sans); font-size: .33em; font-weight: 850; letter-spacing: .01em; line-height: 1.3; text-transform: uppercase; }
.hero-pitch { max-width: 640px; margin: 2rem 0 0; color: #e1eadf; font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.55; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; gap: .7rem; padding: .8rem 1.35rem; border: 1px solid transparent; border-radius: .8rem; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--mint-bright), #8ed7a8); color: #0b1a11; box-shadow: 0 12px 40px rgba(122, 209, 153, .24); }
.button-quiet { border-color: rgba(255,255,255,.25); background: rgba(4, 16, 12, .48); backdrop-filter: blur(8px); }
.play-glyph { color: var(--gold); font-size: .75rem; }
.platform-note { margin: 1rem 0 0; color: #9fb1a2; font-size: .84rem; }
.scroll-cue { position: absolute; right: clamp(1.5rem, 4vw, 4rem); bottom: 2.2rem; display: flex; align-items: center; gap: .8rem; color: #d8e5da; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.scroll-cue i::after { content: ""; display: block; width: 7px; height: 7px; margin: 15px auto 0; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }

.loop-section { position: relative; padding: clamp(5rem, 10vw, 9rem) clamp(1.3rem, 6vw, 6rem); background: radial-gradient(circle at 80% 15%, rgba(70, 140, 90, .14), transparent 34%), #06110d; }
.section-heading { display: grid; width: min(100%, var(--max)); margin: 0 auto 4rem; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); column-gap: 5rem; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.3rem); letter-spacing: -.04em; line-height: .98; text-wrap: balance; }
.section-heading > p:last-child { align-self: end; margin: 0 0 .4rem; color: var(--muted); font-size: 1.05rem; }
.loop-track { display: grid; width: min(100%, var(--max)); margin: 0 auto; padding: 0; grid-template-columns: repeat(5, 1fr); list-style: none; border-top: 1px solid var(--line); }
.loop-track li { position: relative; min-height: 180px; padding: 1.5rem 1.2rem 1rem 0; border-right: 1px solid var(--line); }
.loop-track li:last-child { border-right: 0; }
.loop-track span { display: block; margin-bottom: 2.2rem; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.loop-track strong { display: block; margin-bottom: .55rem; font-family: var(--serif); font-size: 1.35rem; }
.loop-track small { display: block; max-width: 19ch; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.proof-section, .world-section, .story-section, .trailer-section, .discovery-section, .faq-section { width: min(calc(100% - 2.6rem), var(--max)); margin: 0 auto; }
.proof-section { display: grid; padding: clamp(5rem, 10vw, 9rem) 0; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.proof-copy h2, .world-copy h2, .story-copy h2, .trailer-copy h2, .discovery-copy h2, .faq-intro h2, .final-cta h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.7rem, 4.8vw, 5.1rem); letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.proof-copy > p:not(.eyebrow), .world-copy > p:not(.eyebrow), .story-copy > p:not(.eyebrow), .trailer-copy > p:not(.eyebrow), .discovery-copy > p { color: var(--muted); font-size: 1.04rem; }
.feature-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { display: grid; padding: 1rem 0; grid-template-columns: 140px 1fr; gap: 1rem; border-bottom: 1px solid var(--line); }
.feature-list strong { color: var(--cream); font-size: .9rem; }
.feature-list span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.proof-media { position: relative; margin: 0; border: 1px solid rgba(199, 231, 201, .2); border-radius: 1.3rem; background: #0a1712; box-shadow: 0 30px 90px rgba(0,0,0,.3); overflow: hidden; transform: rotate(1.2deg); }
.proof-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.proof-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); border-radius: inherit; }
.proof-media figcaption { display: flex; justify-content: space-between; padding: .85rem 1rem; color: var(--muted); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.proof-media figcaption span { color: var(--gold); font-weight: 800; }

.world-section { display: grid; padding: 1rem 0 clamp(6rem, 12vw, 11rem); grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.world-image { position: relative; }
.world-image::before { content: ""; position: absolute; inset: -12% 10% -12% -10%; z-index: -1; background: radial-gradient(circle, rgba(80, 158, 107, .18), transparent 66%); filter: blur(25px); }
.world-image img { display: block; width: 100%; border-radius: 50% 20% 35% 15% / 20% 40% 18% 45%; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.world-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.world-tags span { padding: .48rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: #cbd8cd; background: rgba(14, 36, 26, .55); font-size: .76rem; }

.haven-section { padding: clamp(5rem, 9vw, 8rem) clamp(1.3rem, 4vw, 4rem); background: #eef0d3; color: #132118; }
.section-heading.centered { display: block; width: min(760px, 100%); margin-bottom: 3.5rem; text-align: center; }
.section-heading.centered .eyebrow { color: #3f7254; }
.section-heading.centered h2 { font-size: clamp(3rem, 5vw, 5.2rem); }
.section-heading.centered > p:last-child { max-width: 650px; margin: 1.2rem auto 0; color: #4d6052; }
.haven-stage { position: relative; width: min(1280px, 100%); margin: 0 auto; border-radius: 1.4rem; background: #173322; box-shadow: 0 30px 80px rgba(22, 40, 27, .22); overflow: hidden; }
.haven-stage > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .2s ease; }
.haven-controls { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .3rem; padding: .3rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(4, 19, 13, .74); backdrop-filter: blur(12px); }
.haven-controls button { padding: .58rem .9rem; border: 0; border-radius: 999px; background: transparent; color: #d6e2d7; cursor: pointer; font: 700 .78rem/1 var(--sans); }
.haven-controls button.is-active { background: var(--mint-bright); color: #102016; }
.haven-note { position: absolute; right: 1rem; bottom: 1rem; display: flex; max-width: min(520px, calc(100% - 2rem)); flex-direction: column; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: .9rem; background: rgba(4, 19, 13, .79); color: white; backdrop-filter: blur(12px); }
.haven-note span { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.haven-note strong { margin-top: .22rem; font-size: .84rem; }

.guardians-section { padding: clamp(6rem, 11vw, 10rem) max(1.3rem, calc((100vw - var(--max)) / 2)); background: radial-gradient(circle at 12% 25%, rgba(225, 164, 65, .1), transparent 30%), #081610; overflow: hidden; }
.guardians-section .section-heading { margin-bottom: 3rem; }
.guardian-rail { display: grid; grid-template-columns: repeat(6, minmax(230px, 1fr)); gap: 1rem; overflow-x: auto; padding: .5rem .1rem 1.6rem; scroll-snap-type: x mandatory; scrollbar-color: rgba(185,231,189,.35) transparent; }
.guardian-card { position: relative; min-height: 480px; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(180deg, #152a20, #07120e); overflow: hidden; scroll-snap-align: start; }
.guardian-card:nth-child(2n) { transform: translateY(1.5rem); }
.guardian-card img { display: block; width: 100%; height: 355px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)); }
.guardian-card::after { content: ""; position: absolute; inset: 45% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(6,17,13,.96) 60%); }
.guardian-card div { position: absolute; right: 1.1rem; bottom: 1.2rem; left: 1.1rem; z-index: 1; }
.guardian-card span { color: var(--mint); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.guardian-card h3 { margin: .15rem 0 .2rem; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.guardian-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.story-section { display: grid; padding: clamp(6rem, 11vw, 10rem) 0; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.story-collage { position: relative; min-height: 560px; }
.story-collage figure { position: absolute; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--ink-soft); box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.story-collage figure:first-child { inset: 0 12% 20% 0; transform: rotate(-1.2deg); }
.story-collage figure:last-child { inset: 40% 0 0 30%; transform: rotate(2deg); }
.story-collage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-collage figcaption { position: absolute; right: .8rem; bottom: .8rem; padding: .45rem .65rem; border-radius: .45rem; background: rgba(3,15,11,.78); color: white; font-size: .72rem; font-weight: 700; backdrop-filter: blur(8px); }
.subtle-note { padding-left: 1rem; border-left: 2px solid rgba(242,184,75,.55); font-size: .88rem !important; }

.trailer-section { display: grid; padding: clamp(4rem, 8vw, 7rem) 0 clamp(6rem, 12vw, 11rem); grid-template-columns: .35fr .65fr; align-items: end; gap: clamp(2.5rem, 6vw, 5rem); }
.video-shell { border: 1px solid var(--line); border-radius: 1.2rem; background: #030906; box-shadow: 0 35px 100px rgba(0,0,0,.38); overflow: hidden; }
.video-shell video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #030906; }
.video-shell > p { display: flex; justify-content: space-between; margin: 0; padding: .7rem 1rem; color: #8fa193; font-size: .75rem; }
.video-shell > p span { color: var(--gold); font-weight: 750; }

.discovery-section { display: grid; padding: clamp(5rem, 10vw, 9rem) 0; grid-template-columns: .28fr .72fr; gap: 3rem; border-top: 1px solid var(--line); }
.discovery-kicker { color: var(--gold); font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.discovery-copy > p { max-width: 780px; }
.discovery-grid { display: grid; margin-top: 3rem; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.discovery-grid div { padding: 1.2rem 1.1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(11, 29, 22, .45); }
.discovery-grid strong { display: block; margin-bottom: .6rem; font-family: var(--serif); font-size: 1.2rem; }
.discovery-grid span { color: var(--muted); font-size: .85rem; line-height: 1.5; }

.faq-section { display: grid; padding: clamp(5rem, 9vw, 8rem) 0 clamp(7rem, 12vw, 11rem); grid-template-columns: .35fr .65fr; gap: clamp(3rem, 8vw, 8rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 1.35rem 2.5rem 1.35rem 0; cursor: pointer; color: #ecf2e9; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 1.18rem; right: .2rem; color: var(--gold); font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: -.35rem 0 1.4rem; color: var(--muted); }

.final-cta { position: relative; min-height: 680px; display: flex; align-items: center; justify-content: center; padding: 6rem 1.3rem; text-align: center; isolation: isolate; overflow: hidden; }
.final-cta-backdrop { position: absolute; inset: 0; z-index: -2; background: url('/assets/haven-night.webp') center/cover no-repeat; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 45%, rgba(7, 22, 16, .28), rgba(4, 13, 10, .93) 80%); }
.final-cta-content { max-width: 820px; }
.final-cta h2 { font-size: clamp(3.4rem, 7vw, 7.2rem); }
.final-cta-content > p:not(.eyebrow) { color: #d2ded3; font-size: 1.1rem; }
.final-cta .hero-actions { justify-content: center; }
.text-link { align-self: center; padding: .8rem .4rem; color: #dce8de; font-size: .9rem; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(242,184,75,.55); text-underline-offset: .3rem; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem max(1.3rem, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); background: #040c09; color: #92a195; }
footer p { font-size: .78rem; text-align: center; }
footer > div { display: flex; justify-self: end; gap: 1.2rem; font-size: .78rem; font-weight: 700; }
footer a:hover { color: white; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero-content { width: min(680px, 90vw); }
  .section-heading { display: block; }
  .section-heading > p:last-child { max-width: 56ch; margin-top: 1.5rem; }
  .loop-track { grid-template-columns: repeat(2, 1fr); }
  .loop-track li { min-height: 165px; border-bottom: 1px solid var(--line); }
  .proof-section, .world-section, .story-section, .trailer-section, .discovery-section, .faq-section { grid-template-columns: 1fr; }
  .proof-section, .world-section { gap: 3rem; }
  .world-image { order: 2; }
  .story-collage { min-height: 500px; }
  .trailer-section { align-items: start; }
  .discovery-section, .faq-section { gap: 2rem; }
  .discovery-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer > div { justify-self: center; }
}

@media (max-width: 600px) {
  .site-header { padding: .65rem .9rem; background: rgba(5, 17, 13, .75); backdrop-filter: blur(12px); }
  .brand span { display: none; }
  .brand img { width: 42px; height: 42px; }
  .nav-cta { padding: .6rem .9rem; font-size: .8rem; }
  .hero { min-height: 840px; align-items: flex-end; padding: 7rem 1.15rem 7rem; }
  .hero-backdrop { background-position: 61% center; }
  .hero::before { background: linear-gradient(0deg, #06110d 4%, rgba(3, 15, 11, .9) 38%, rgba(3, 15, 11, .2) 78%), linear-gradient(90deg, rgba(3, 15, 11, .45), transparent); }
  .hero-content { width: 100%; }
  h1 { font-size: clamp(3.75rem, 19vw, 5.6rem); }
  .hero-pitch { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .scroll-cue { right: auto; left: 1.15rem; bottom: 2rem; }
  .loop-section { padding-inline: 1.15rem; }
  .loop-track { display: block; }
  .loop-track li { min-height: auto; padding: 1.2rem 0 1.4rem; border-right: 0; }
  .loop-track span { margin-bottom: .65rem; }
  .loop-track small { max-width: none; }
  .proof-section, .world-section, .story-section, .trailer-section, .discovery-section, .faq-section { width: min(calc(100% - 2.3rem), var(--max)); }
  .feature-list li { display: block; }
  .feature-list span { display: block; margin-top: .35rem; }
  .proof-media { transform: none; }
  .haven-section { padding-inline: .8rem; }
  .haven-stage { min-height: 560px; }
  .haven-stage > img { height: 560px; aspect-ratio: auto; object-position: 50% center; }
  .haven-note { left: .8rem; right: .8rem; bottom: .8rem; }
  .guardian-rail { grid-template-columns: repeat(6, 78vw); }
  .guardian-card:nth-child(2n) { transform: none; }
  .story-collage { min-height: 440px; }
  .story-collage figure:first-child { inset: 0 8% 35% 0; }
  .story-collage figure:last-child { inset: 48% 0 0 13%; }
  .video-shell > p { display: block; }
  .video-shell > p span { display: block; }
  .final-cta { min-height: 620px; }
  footer .brand span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
