/* Deep Calm Retreat — night sky, moonlight gold */
:root {
  --night-0: #070b20;
  --night-1: #0b1230;
  --night-2: #141c45;
  --night-3: #1f2a5e;
  --mist: #c9cfe8;
  --mist-dim: #8f97bd;
  --moon: #f4d59a;
  --moon-soft: #f8e6bf;
  --line: rgba(201, 207, 232, 0.14);
  --radius: 18px;
  --max: 1120px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night-1);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--moon); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 32, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--moon-soft); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--mist); font-size: 15px; }
.nav a[aria-current="page"] { color: var(--moon); }
.nav a.btn { color: var(--night-1); }
.nav a.btn:hover { text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--moon); color: var(--night-1);
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer;
  box-shadow: 0 6px 24px rgba(244, 213, 154, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(244, 213, 154, 0.32); }
.btn.ghost { background: transparent; color: var(--moon); border: 1px solid rgba(244, 213, 154, 0.5); box-shadow: none; }
.nav .btn { padding: 8px 16px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--mist); border-radius: 10px; padding: 6px 12px; font-size: 15px; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--night-1);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,18,48,0) 35%, rgba(11,18,48,.55) 62%, var(--night-1) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 96px; text-align: center; }
.eyebrow { font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--moon); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); color: var(--moon-soft); font-weight: 600; line-height: 1.15; margin: 0 0 16px; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); letter-spacing: 0.04em; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--mist); max-width: 620px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { color: var(--mist-dim); margin: 0; }
.alt { background: linear-gradient(180deg, var(--night-1), var(--night-2)); }

/* Video cards */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: rgba(20, 28, 69, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(244, 213, 154, 0.35); }
.card .body { padding: 20px 22px 24px; }
.card h3 { font-size: 26px; margin-bottom: 8px; }
.card p { margin: 0 0 14px; color: var(--mist-dim); font-size: 15.5px; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--moon); border: 1px solid rgba(244,213,154,.35); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }

/* Lazy YouTube embed: thumbnail until click (fast page, no tracking before play) */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt .play {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
  background: rgba(7, 11, 32, 0.72); border: 1px solid rgba(244,213,154,.6);
  display: grid; place-items: center;
}
.yt .play::before { content: ""; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--moon); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Benefits */
.benefits { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.benefit { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(11,18,48,.55); }
.benefit .ico { width: 34px; height: 34px; margin-bottom: 14px; color: var(--moon); }
.benefit .ico svg { width: 100%; height: 100%; }
.benefit h3 { font-size: 23px; margin-bottom: 6px; }
.benefit p { margin: 0; color: var(--mist-dim); font-size: 15.5px; }

/* Article pages */
.page-hero { padding: 110px 0 40px; text-align: center; background: radial-gradient(ellipse at 50% 0%, var(--night-3), var(--night-1) 70%); }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.page-hero p { color: var(--mist-dim); max-width: 640px; margin: 0 auto; font-size: 18px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 34px; margin-top: 46px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .yt { border-radius: var(--radius); overflow: hidden; margin: 10px 0 30px; }
.note { font-size: 14px; color: var(--mist-dim); border-left: 2px solid var(--moon); padding: 6px 0 6px 14px; margin: 28px 0; }

/* Gear list */
.gear { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gear .item { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(20,28,69,.55); display: flex; flex-direction: column; }
.gear .item h3 { font-size: 24px; }
.gear .item p { color: var(--mist-dim); font-size: 15.5px; flex: 1; }
.gear .item .btn { align-self: flex-start; }

/* Subscribe band */
.band { text-align: center; padding: 110px 0; background: url("img/hero-cabin.jpg") center 60% / cover no-repeat; position: relative; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night-1), rgba(7,11,32,.62) 35%, rgba(7,11,32,.8)); }
.band .wrap { position: relative; }
.band h2 { font-size: clamp(30px, 4vw, 44px); }
.band p { color: var(--mist); margin: 0 auto 26px; max-width: 560px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--mist-dim); background: var(--night-0); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--mist-dim); }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night-0); border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; width: 100%; text-align: center; }
  .nav .btn { width: auto; margin-top: 8px; }
  .brand span { font-size: 18px; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Animated sky canvas */
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero h1 { text-shadow: 0 4px 40px rgba(7, 11, 32, .8); animation: rise 1.2s ease both; }
.hero .eyebrow, .hero .lead { animation: rise 1.2s .15s ease both; }
.hero .player { animation: rise 1.2s .3s ease both; }
.hero .cta-row { animation: rise 1.2s .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* In-page player */
.player {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 10px 12px 10px 18px; margin: 0 auto 26px; border-radius: 999px;
  background: rgba(7, 11, 32, 0.55); border: 1px solid rgba(244, 213, 154, 0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.player-label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mist-dim); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font: 600 14px var(--sans);
  color: var(--moon-soft); background: rgba(244, 213, 154, 0.08); border: 1px solid rgba(244, 213, 154, 0.35);
  transition: background .2s, color .2s, box-shadow .2s;
}
.chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover { background: rgba(244, 213, 154, 0.16); }
.chip.on { background: var(--moon); color: var(--night-1); box-shadow: 0 0 28px rgba(244, 213, 154, .45); }
.vol input { width: 92px; accent-color: var(--moon); vertical-align: middle; }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; width: 22px; opacity: .25; transition: opacity .3s; }
.eq i { width: 3px; height: 4px; background: var(--moon); border-radius: 2px; }
.player.playing .eq { opacity: 1; }
.player.playing .eq i { animation: eq 1.1s ease-in-out infinite; }
.player.playing .eq i:nth-child(2) { animation-delay: .2s; }
.player.playing .eq i:nth-child(3) { animation-delay: .45s; }
.player.playing .eq i:nth-child(4) { animation-delay: .7s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(244,213,154,.55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--moon); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .benefits .reveal:nth-child(2), .gear .reveal:nth-child(2) { transition-delay: .12s; }
.benefits .reveal:nth-child(3), .gear .reveal:nth-child(3) { transition-delay: .24s; }
.benefits .reveal:nth-child(4) { transition-delay: .36s; }

/* Card glow */
.card:hover, .benefit:hover, .gear .item:hover { box-shadow: 0 18px 60px -20px rgba(244, 213, 154, .28); }
.benefit, .gear .item { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.benefit:hover, .gear .item:hover { transform: translateY(-3px); border-color: rgba(244, 213, 154, .35); }

@media (max-width: 820px) {
  .player { border-radius: 22px; padding: 12px; }
  .player-label { width: 100%; text-align: center; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero h1, .hero .eyebrow, .hero .lead, .hero .player, .hero .cta-row, .scroll-cue span, .player.playing .eq i { animation: none !important; }
}

/* ===== v2: cinematic redesign ===== */
.hero { background: #05081a url("img/hero-lake.jpg") center / cover no-repeat; align-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fadein 2.4s .2s ease forwards; }
@keyframes fadein { to { opacity: 1; } }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero::after {
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(5,8,26,.55), rgba(5,8,26,0) 70%),
    linear-gradient(180deg, rgba(5,8,26,.55) 0%, rgba(5,8,26,.15) 30%, rgba(5,8,26,.25) 60%, var(--night-1) 100%);
}
.hero .wrap { padding: 120px 24px 110px; }
.hero h1 { font-size: clamp(48px, 8.4vw, 112px); line-height: 1.02; letter-spacing: -0.01em; font-weight: 500; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--moon); font-weight: 400; }
.hero .lead { max-width: 600px; color: #dfe3f5; }

.player.glass {
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  width: min(560px, 100%); margin: 6px auto 30px; padding: 16px 18px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.player-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.player-row.small { gap: 18px; color: var(--mist-dim); font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.player-row svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 6px; }
.chip { padding: 11px 20px; font-size: 15px; }
.timer select {
  background: transparent; color: var(--mist); border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 6px 12px; font: 13px var(--sans); cursor: pointer;
}
.timer select option { background: var(--night-1); }
.countdown { font-variant-numeric: tabular-nums; color: var(--moon); min-width: 38px; }

/* Coming soon */
.soon {
  margin-top: 28px; padding: 22px 26px; border-radius: var(--radius); border: 1px dashed rgba(244,213,154,.3);
  display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; justify-content: space-between;
  background: rgba(11,18,48,.4);
}
.soon span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--moon); }
.soon ul { display: flex; gap: 10px 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; color: var(--mist); }
.soon li::before { content: "·"; color: var(--moon); margin-right: 8px; }

/* Ritual split */
.ritual { padding: 110px 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-media { margin: 0; position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,.8); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transform: scale(1.04); transition: transform 6s ease; }
.split-media.in img { transform: scale(1); }
.split-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(244,213,154,.14); }
.split-text h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.steps li > span { font-family: var(--serif); font-size: 34px; color: var(--moon); line-height: 1; padding-top: 4px; border-top: 1px solid rgba(244,213,154,.35); }
.steps h3 { font-size: 24px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--mist-dim); }

/* Quote band with parallax image */
.quote {
  position: relative; padding: 170px 0; text-align: center;
  background: var(--bg) center / cover no-repeat fixed;
}
.quote::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night-1), rgba(11,18,48,.55) 30%, rgba(11,18,48,.55) 70%, var(--night-1)); }
.quote .wrap { position: relative; }
.quote blockquote { margin: 0 auto 16px; max-width: 900px; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.15; color: var(--moon-soft); text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.quote p { margin: 0; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--moon); }

/* FAQ */
.narrow { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 23px; color: var(--moon-soft);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; color: var(--moon); transition: transform .3s; font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--mist-dim); max-width: 700px; }

/* Header gets solid on scroll feel */
.site-header { background: linear-gradient(180deg, rgba(5,8,26,.85), rgba(5,8,26,.55)); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 38px; }
  .split-media img { aspect-ratio: 16 / 11; }
  .quote { background-attachment: scroll; padding: 120px 0; }
}
@media (max-width: 560px) {
  .hero .wrap { padding: 100px 18px 96px; }
  .player-row.small { gap: 12px; }
  .soon { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; opacity: 1; }
  .split-media img { transform: none; }
}
@media (max-width: 560px) {
  .brand span { font-size: 15px; letter-spacing: .08em; white-space: nowrap; }
  .brand img { width: 32px; height: 32px; }
  .player .eq { display: none; }
}
/* Lake hero: moon visible above the text */
.hero { align-items: flex-end; }
.hero-video { object-position: center top; }
.hero .wrap { padding: 0 24px 70px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); margin-bottom: 16px; }
.hero h1 br.m { display: none; }
.hero .lead { margin-bottom: 22px; }
.player.glass { margin-bottom: 22px; }
.hero::after {
  background: linear-gradient(180deg, rgba(5,8,26,.35) 0%, rgba(5,8,26,0) 22%, rgba(5,8,26,.15) 45%, rgba(5,8,26,.6) 75%, var(--night-1) 100%);
}
.scroll-cue { bottom: 18px; }
@media (max-width: 700px) {
  .hero h1 br.m { display: inline; }
  .hero { align-items: center; }
  .hero-video { object-position: 50% 30%; }
  .hero .wrap { padding: 300px 18px 90px; }
}
/* Benefit cards are links */
a.benefit { display: block; color: inherit; text-decoration: none; }
a.benefit:hover { text-decoration: none; }
.benefit .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--moon); }
a.benefit:hover .more { text-decoration: underline; text-underline-offset: 3px; }

/* Sleep gear teaser on home */
.gear-teaser { padding: 40px 0 90px; }
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap;
  padding: 40px 44px; border-radius: 28px; border: 1px solid rgba(244,213,154,.25);
  background: radial-gradient(ellipse at 100% 0%, rgba(244,213,154,.12), transparent 60%), rgba(20,28,69,.6); }
.teaser h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.teaser p { margin: 0; color: var(--mist-dim); max-width: 560px; }
.teaser .eyebrow { color: var(--moon); margin-bottom: 10px; }
@media (max-width: 560px) { .teaser { padding: 30px 24px; } }
