:root {
  --linen: #f3eee6;
  --linen-2: #ebe4d8;
  --sand: #d8c7ae;
  --sand-2: #b39c7b;
  --salt: #a9b3b6;
  --navy: #1f2b38;
  --navy-2: #2e4052;
  --muted: #6c7076;
  --line: rgba(31, 43, 56, 0.16);
  --serif: "Bodoni Moda", Didot, Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--sans); font-weight: 300; background: var(--linen); color: var(--navy); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--navy); color: var(--linen); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
em { font-style: italic; }
.kicker { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 78px; padding: 0 36px; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(243,238,230,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav-side { display: flex; gap: 34px; font-size: 14px; letter-spacing: .04em; }
.nav-side a { position: relative; }
.nav-side a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-side a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-side.right { justify-content: flex-end; align-items: center; }
.nav-loc { color: var(--muted); font-size: 13px; }
.nav-book { border: 1px solid var(--navy); padding: 10px 20px; border-radius: 999px; transition: background .3s, color .3s; }
.nav-book::after { display: none; }
.nav-book:hover { background: var(--navy); color: var(--linen); }
.wordmark { font-family: var(--serif); font-size: 30px; letter-spacing: .02em; font-style: italic; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.layer { will-change: transform; }
.waves path { animation: drift 9s linear infinite; }
.waves path:nth-child(2) { animation-duration: 13s; animation-direction: reverse; }
.waves path:nth-child(3) { animation-duration: 17s; }
@keyframes drift { to { transform: translateX(-160px); } }
.boat { animation: sail 60s linear infinite; }
@keyframes sail { from { transform: translate(620px, 612px); } to { transform: translate(1700px, 612px); } }
.hero-copy { position: absolute; left: 0; right: 0; top: 18vh; text-align: center; padding: 0 24px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 104px); margin-top: 20px; }
.hero h1 em { color: var(--navy-2); }

/* Booking widget */
.booking { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: min(940px, calc(100% - 32px)); display: grid; grid-template-columns: 1fr 1fr 1fr auto; background: var(--linen); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 12px; box-shadow: 0 30px 60px -30px rgba(31,43,56,.45); }
.field { display: flex; flex-direction: column; justify-content: center; padding: 6px 22px; border-right: 1px solid var(--line); min-width: 0; }
.field > span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input { font: inherit; font-size: 16px; font-weight: 400; color: var(--navy); background: none; border: 0; outline: none; padding: 2px 0; width: 100%; min-width: 0; }
.field input::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
.guests { border-right: 0; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; line-height: 1; transition: border-color .2s; }
.stepper button:hover { border-color: var(--navy); }
.stepper output { font-size: 16px; font-weight: 400; min-width: 14px; text-align: center; }
.book-btn { background: var(--navy); color: var(--linen); border-radius: 999px; padding: 0 30px; font-size: 15px; letter-spacing: .02em; transition: background .3s; white-space: nowrap; }
.book-btn:hover { background: var(--navy-2); }
.book-result { position: absolute; left: 0; right: 0; top: calc(100% + 10px); text-align: center; font-size: 14px; color: var(--linen); text-shadow: 0 1px 2px rgba(0,0,0,.25); opacity: 0; transition: opacity .4s; }
.book-result.show { opacity: 1; }

/* ---------- Intro ---------- */
.intro { padding: 160px 36px 140px; max-width: 1180px; margin: 0 auto; }
.intro-text { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.3; text-align: center; max-width: 960px; margin: 0 auto; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 100px; border-top: 1px solid var(--line); }
.facts div { padding: 28px 20px 0; text-align: center; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 68px); line-height: 1; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- Rooms ---------- */
.rooms { padding: 40px 0 140px; }
.rooms-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 36px; margin-bottom: 48px; }
.rooms-head h2 { font-size: clamp(40px, 5vw, 72px); margin-top: 18px; }
.arrows { display: flex; gap: 10px; }
.arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--navy); font-size: 18px; transition: background .3s, color .3s, opacity .3s; }
.arrow:hover { background: var(--navy); color: var(--linen); }
.arrow:disabled { opacity: .3; pointer-events: none; }
.room-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 36px 8px; scroll-padding: 0 36px; scrollbar-width: none; scroll-behavior: smooth; }
.room-track::-webkit-scrollbar { display: none; }
.room { flex: 0 0 min(420px, 78vw); scroll-snap-align: start; cursor: pointer; }
.room-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen-2); border-radius: 220px 220px 0 0; }
.room-img svg { width: 100%; height: 100%; display: block; transition: transform 1.2s var(--ease); }
.room:hover .room-img svg { transform: scale(1.05); }
.room-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.room-meta h3 { font-size: 28px; }
.room-meta p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.room-meta span { font-size: 14px; white-space: nowrap; padding-top: 8px; }

/* ---------- Day ---------- */
.day { height: 500vh; position: relative; }
.day-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--linen); color: var(--navy); }
.sky-arc { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(1100px, 130vw); height: auto; color: inherit; }
.day-copy { position: relative; text-align: center; padding: 0 24px; margin-bottom: 14vh; }
.day-copy .kicker { color: inherit; opacity: .7; }
.day-time { font-family: var(--serif); font-size: clamp(64px, 10vw, 150px); line-height: 1; margin: 18px 0 26px; font-variant-numeric: tabular-nums; }
.day-entries { position: relative; height: 130px; width: min(560px, 90vw); margin: 0 auto; }
.entry { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.entry.on { opacity: 1; transform: none; }
.entry h3 { font-size: clamp(24px, 2.6vw, 34px); font-style: italic; }
.entry p { margin-top: 10px; font-size: 16px; opacity: .8; }

/* ---------- Dining & spa ---------- */
.table { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 140px 36px; }
.feature-img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--linen-2); }
.feature-img svg { width: 100%; height: 100%; display: block; }
.feature:nth-child(2) { margin-top: 120px; }
.feature-copy { padding-top: 28px; max-width: 460px; }
.feature-copy h3 { font-size: clamp(32px, 3.4vw, 48px); margin: 14px 0 14px; }
.feature-copy p:last-child { color: var(--muted); font-size: 16px; }

/* ---------- Quote ---------- */
.quote { padding: 120px 36px 160px; text-align: center; border-top: 1px solid var(--line); }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.2; max-width: 1000px; margin: 0 auto; }
.quote p { margin-top: 30px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--linen); padding: 90px 36px 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid rgba(243,238,230,.18); }
.wordmark.big { font-size: clamp(80px, 14vw, 220px); line-height: .85; color: var(--sand); }
.letter { display: grid; gap: 12px; width: min(420px, 100%); }
.letter label { font-size: 14px; color: var(--salt); }
.letter div { display: flex; border-bottom: 1px solid var(--linen); }
.letter input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--linen); font: inherit; font-size: 16px; padding: 10px 0; }
.letter input::placeholder { color: rgba(243,238,230,.5); }
.letter button { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.letter .done { display: none; }
.letter.sent .label { display: none; }
.letter.sent .done { display: inline; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 48px 0; font-size: 15px; color: var(--salt); line-height: 1.8; }
.footer-cols b { display: block; color: var(--linen); font-weight: 400; margin-bottom: 8px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(243,238,230,.18); font-size: 13px; color: var(--salt); }
.footer-bottom a { color: var(--sand); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity 1.2s var(--ease), translate 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 0 18px; grid-template-columns: auto 1fr; height: 66px; }
  .nav-side:not(.right) { display: none; }
  .nav-loc { display: none; }
  .wordmark { font-size: 26px; }
  .hero { min-height: 680px; }
  .hero-copy { top: 15vh; }
  .booking { grid-template-columns: 1fr 1fr; border-radius: 24px; padding: 10px; gap: 4px; bottom: 20px; }
  .field { padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .field:nth-child(1) { border-right: 1px solid var(--line); }
  .guests { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .book-btn { grid-column: 1 / -1; padding: 15px; margin-top: 6px; }
  .book-result { position: static; color: var(--navy); text-shadow: none; grid-column: 1 / -1; margin-top: 8px; display: none; }
  .book-result.show { display: block; }
  .intro { padding: 110px 18px 90px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(-n+2) { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .rooms-head { padding: 0 18px; }
  .arrows { display: none; }
  .room-track { padding: 0 18px 8px; scroll-padding: 0 18px; gap: 16px; }
  .day { height: 420vh; }
  .day-copy { margin-bottom: 20vh; }
  .table { grid-template-columns: 1fr; padding: 90px 18px; gap: 64px; }
  .feature:nth-child(2) { margin-top: 0; }
  .quote { padding: 90px 18px 110px; }
  .footer { padding: 70px 18px 26px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

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