/* ============ SAATVA — tokens ============ */
:root {
  --sage: #7D967B;
  --forest: #294735;
  --forest-deep: #1d3426;
  --cream: #F5F0E6;
  --beige: #D8CBB8;
  --gold: #B89B68;
  --ink: #23302a;
  --ink-soft: #55625b;
  --card: rgba(245, 240, 230, 0.78);
  --card-line: rgba(41, 71, 53, 0.12);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage);
  margin: 0 0 1.1rem;
}
.eyebrow--gold { color: var(--gold); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  border: 1px solid var(--forest);
  font: 500 0.74rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn--ghost { background: rgba(245,240,230,.15); color: var(--cream); border-color: rgba(245,240,230,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--cream); color: var(--forest); }
.btn--light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn--light:hover { background: #fff; }
.btn--small { padding: .7rem 1.25rem; font-size: .68rem; }
.link-arrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--forest); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.link-arrow::after { content: " →"; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--cream);
  color: var(--forest);
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__leaf { width: 40px; height: 40px; color: var(--sage); margin: 0 auto 10px; animation: breathe 3s ease-in-out infinite; }
.loader__word { font-family: var(--serif); font-size: 2.4rem; letter-spacing: .32em; padding-left: .32em; }
.loader__bar { width: 160px; height: 1px; background: rgba(41,71,53,.15); margin: 18px auto 12px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.loader__note { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }

/* ============ Canvas ============ */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; outline: none; }
.scene-fade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(29,52,38,.35) 0%, rgba(29,52,38,0) 22%),
    linear-gradient(0deg, rgba(29,52,38,.18) 0%, rgba(29,52,38,0) 25%);
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  color: var(--cream);
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-solid { background: rgba(245,240,230,.92); color: var(--forest); box-shadow: 0 1px 0 var(--card-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; letter-spacing: .3em; }
.brand svg { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a { text-decoration: none; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: .8rem; }
.nav .btn--small { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.nav.is-solid .btn--small { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.time-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,240,230,.12); color: inherit;
  border: 1px solid currentColor; border-radius: 999px;
  padding: .55rem .95rem .55rem .7rem;
  font: 500 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; opacity: .9;
  transition: opacity .3s, background .3s;
}
.time-toggle:hover { opacity: 1; background: rgba(245,240,230,.22); }
.safety-toggle__icon { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #1fd25f 50%, #c8261f 50%); }
.safety-toggle[aria-pressed="true"] { background: rgba(31,210,95,.25); }
.safety-legend { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: grid; gap: .4rem; max-width: 300px;
  padding: .9rem 1.1rem; border-radius: 14px; background: rgba(20,32,26,.86); color: #f5f0e6; font: 500 .78rem/1.35 var(--sans); backdrop-filter: blur(8px); }
.safety-legend[hidden] { display: none; }
.safety-legend strong { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.safety-legend small { opacity: .7; font-size: .7rem; }
.safety-legend .sw { display: inline-block; width: 22px; height: 10px; border-radius: 3px; margin-right: .5rem; vertical-align: middle; }
.sw--green { background: #1fd25f; } .sw--red { background: #c8261f; }
.time-toggle__icon { width: 12px; height: 12px; border-radius: 50%; background: #f1c27a; box-shadow: 0 0 10px #f1c27a; transition: background .5s, box-shadow .5s; }
.time-toggle[aria-pressed="true"] .time-toggle__icon { background: transparent; box-shadow: inset -4px -1px 0 0 #f3dfb6; }

.nav__menu { display: none; width: 40px; height: 40px; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; position: relative; }
.nav__menu span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav__menu span:first-child { top: 16px; } .nav__menu span:last-child { top: 23px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  background: rgba(245,240,230,.97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; padding: 8px 24px 24px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; color: var(--forest); padding: .5rem 0; border-bottom: 1px solid var(--card-line); }

/* ============ Tour progress ============ */
.tour-dots {
  position: fixed; right: clamp(14px, 2.4vw, 34px); top: 50%; transform: translateY(-50%);
  z-index: 20; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
  transition: opacity .6s var(--ease);
}
.tour-dots.is-hidden { opacity: 0; pointer-events: none; }
.tour-dots li { position: relative; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(245,240,230,.85); transition: background .4s, transform .4s; }
.tour-dots li.is-active { background: var(--cream); transform: scale(1.25); }
.tour-dots span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); opacity: 0; transition: opacity .4s; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.tour-dots li.is-active span { opacity: 1; }

/* ============ Tour chapters ============ */
main { position: relative; z-index: 2; }
.tour { position: relative; }
.chapter {
  min-height: 115vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) clamp(16px, 6vw, 96px) 48px;
}
.chapter--left { justify-content: flex-start; }
.chapter--right { justify-content: flex-end; }
.chapter--hero {
  min-height: 100vh; min-height: 100svh;
  flex-direction: column; justify-content: flex-start; align-items: center;
  padding-top: calc(var(--nav-h) + 7vh);
  text-align: center; color: var(--cream); position: relative; overflow-x: clip;
}
.hero { max-width: 760px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -18% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(29,52,38,.42), rgba(29,52,38,.18) 55%, transparent);
  filter: blur(10px);
}
.hero .eyebrow { color: var(--cream); opacity: .9; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero__title {
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  font-weight: 300; letter-spacing: .22em; padding-left: .22em;
  line-height: .95;
  text-shadow: 0 2px 30px rgba(29,52,38,.45);
}
.hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2rem); margin: .6rem 0 2.2rem; text-shadow: 0 1px 16px rgba(0,0,0,.3); }
.hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
}
.tag { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid rgba(245,240,230,.6); border-radius: 999px; padding: .5rem .9rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(29,52,38,.12); }
.scroll-hint { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .7rem; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--cream), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.card {
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-radius: 22px;
  padding: clamp(26px, 3.2vw, 42px);
  box-shadow: 0 30px 80px -30px rgba(29,52,38,.35);
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.card.is-in { opacity: 1; transform: none; }
.card h2 { font-size: clamp(1.8rem, 2.8vw, 2.45rem); margin-bottom: 1rem; color: var(--forest); }
.card p { color: var(--ink-soft); }
.list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.list li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-top: 1px solid var(--card-line); font-size: .9rem; }
.list li::before { content: ""; position: absolute; left: 2px; top: 1.15rem; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); }
.facts { list-style: none; padding: 1.2rem 0 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--card-line); }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; color: var(--forest); line-height: 1; }
.facts span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.4; display: block; margin-top: .4rem; }

/* ============ Solid sections ============ */
.solid { position: relative; background: var(--cream); box-shadow: 0 -40px 80px -20px rgba(29,52,38,.25); }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tint { background: #eee6d7; }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: var(--cream); }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head h2 { color: var(--forest); margin-bottom: 1.2rem; }
.lede { font-size: 1.02rem; color: var(--ink-soft); }

.packages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.pkg {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: #fbf8f2; border: 1px solid var(--card-line); border-radius: 20px;
  padding: 30px 28px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pkg:nth-child(4), .pkg:nth-child(5) { grid-column: span 3; }
.pkg:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(29,52,38,.35); }
.pkg__kicker { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.pkg h3 { color: var(--forest); margin: .5rem 0 .7rem; }
.pkg p { color: var(--ink-soft); font-size: .92rem; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .86rem; }
.pkg li { padding: .45rem 0; border-top: 1px solid var(--card-line); }
.pkg__price { margin-top: auto !important; margin-bottom: 0 !important; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--forest) !important; }
.pkg--feature { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.pkg--feature h3, .pkg--feature .pkg__price { color: var(--cream) !important; }
.pkg--feature p, .pkg--feature li { color: rgba(245,240,230,.82); }
.pkg--feature li { border-color: rgba(245,240,230,.15); }
.pkg--feature .btn { margin-top: 1.2rem; align-self: flex-start; }
.fine { margin-top: 28px; font-size: .78rem; color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.g { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: var(--beige); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g figcaption { position: absolute; left: 14px; bottom: 12px; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g:nth-child(2) { grid-column: 2 / span 3; }
.g:nth-child(3) { grid-column: 2 / span 2; }

.faq details { border-top: 1px solid var(--card-line); }
.faq details:last-child { border-bottom: 1px solid var(--card-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-family: var(--serif); font-size: 1.35rem; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--ink-soft); padding: 0 2.5rem 1.4rem 0; margin: 0; }

.book { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.book h2 { color: var(--cream); margin-bottom: 1.2rem; }
.book__intro p { color: rgba(245,240,230,.78); }
.book__mail a { color: var(--cream); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; }
.field--half { grid-column: span 1; }
.field--full { grid-column: span 2; }
.form label { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,240,230,.7); }
.form label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }
.form input, .form select, .form textarea {
  font: 400 .95rem var(--sans); color: var(--cream);
  background: rgba(245,240,230,.06); border: 1px solid rgba(245,240,230,.22); border-radius: 12px;
  padding: .85rem 1rem; outline: none; width: 100%;
  transition: border-color .3s, background .3s;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); background: rgba(245,240,230,.1); }
.form input[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: #e2a48a; }
.form ::-webkit-calendar-picker-indicator { filter: invert(.9); }
.form .btn { margin-top: 6px; }
.form__msg { font-size: .85rem; min-height: 1.2em; margin: 0; }
.section--forest .form__msg { color: #e8d7b0; }

.notify { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.notify h2 { color: var(--forest); margin-bottom: 1rem; }
.notify p { color: var(--ink-soft); }
.notify__form { display: flex; flex-wrap: wrap; gap: 10px; }
.notify__form input { flex: 1 1 220px; font: 400 .95rem var(--sans); padding: .95rem 1.2rem; border-radius: 999px; border: 1px solid var(--beige); background: #fff; color: var(--ink); outline: none; }
.notify__form input:focus { border-color: var(--sage); }
.notify__form .form__msg { flex-basis: 100%; color: var(--forest); }

.footer { background: var(--forest-deep); color: rgba(245,240,230,.75); padding: 70px 0 28px; font-size: .88rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 1rem; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.brand--footer { color: var(--cream); margin-bottom: 1rem; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(245,240,230,.12); font-size: .74rem; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .packages { grid-template-columns: 1fr 1fr; }
  .pkg, .pkg:nth-child(4), .pkg:nth-child(5) { grid-column: span 1; }
  .pkg--feature { grid-column: span 2; order: -1; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .time-toggle__label { display: none; }
  .time-toggle { padding: .55rem; }
  .tour-dots { display: none; }
  .chapter { min-height: 150vh; min-height: 150svh; align-items: flex-end; padding-bottom: 4vh; }
  .chapter--hero { min-height: 100vh; min-height: 100svh; }
  .chapter--left, .chapter--right { justify-content: center; }
  .card { padding: 20px 20px 22px; border-radius: 18px; }
  .card h2 { font-size: 1.55rem; margin-bottom: .6rem; }
  .card p { font-size: .88rem; line-height: 1.6; }
  .card .list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .9rem; }
  .card .list li { border: 1px solid var(--card-line); border-radius: 999px; padding: .3rem .7rem; font-size: .7rem; line-height: 1.35; }
  .card .list li::before { display: none; }
  .facts strong { font-size: 2rem; }
  .hero__foot { flex-direction: column; gap: 14px; }
  .scroll-hint { display: none; }
  .packages { grid-template-columns: 1fr; }
  .pkg--feature { grid-column: span 1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g, .g--wide, .g:nth-child(2), .g:nth-child(3) { grid-column: span 1; }
  .g--wide { grid-column: span 2; }
  .g--tall { grid-row: span 2; }
  .book, .notify, .footer__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr 1fr; }
  .faq summary { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; opacity: 1; transform: none; }
  .scroll-hint i, .loader__leaf { animation: none; }
}

/* ============ No-WebGL fallback ============ */
.no-webgl #scene { background: #d8cbb8 url("../assets/aerial.jpg") center / cover no-repeat; }
.is-safety .tour, .is-safety .tour-dots { opacity: 0; pointer-events: none; transition: opacity .4s; }
