/* =========================================================
   Villa Solenne — boutique hotel, step through the arches
   ========================================================= */
:root {
  --cream: #f4eee6;
  --sand: #e8dccb;
  --terra: #b8643f;
  --sea: #2f6f86;
  --gold: #b08a57;
  --ink: #2a2320;
  --ink-2: #4a3f38;
  --muted: #857667;
  /* copy that sits directly on the footage */
  --on-scene: #fffaf3;
  --scene-glow: rgba(14, 10, 8, 0.45);
  --btn-border: rgba(255, 250, 243, 0.45);
  --accent-script: #f3d7ad;
  --card-bg: rgba(250, 245, 238, 0.92);
  --card-border: rgba(255, 255, 255, 0.6);
  --line: rgba(42, 35, 32, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;
  --gutter: clamp(16px, 3.6vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}
body.winter {
  --on-scene: #fffaf3;
  --scene-glow: rgba(10, 12, 30, 0.55);
  --btn-border: rgba(255, 250, 243, 0.45);
  --accent-script: #f3d7ad;
  --card-bg: rgba(24, 28, 42, 0.88);
  --card-border: rgba(200, 215, 255, 0.16);
  --ink: #f2eee8;
  --ink-2: #d9d3cb;
  --muted: #a7a2b3;
  --line: rgba(242, 238, 232, 0.16);
}
*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: #14110e; color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: color 0.8s var(--ease); }
body.winter { background: #141826; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: #fff; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }

.webgl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; background: #14110e; transition: filter 1.6s var(--ease); }
/* winter: the same footage graded to blue hour, with soft snowfall on top */
body.winter .webgl { filter: saturate(0.45) brightness(0.72) contrast(1.08) hue-rotate(-12deg); }
.snow { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
body.winter .snow { opacity: 1; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(14, 10, 8, 0.5) 100%), linear-gradient(180deg, rgba(14, 10, 8, 0.45) 0%, rgba(14, 10, 8, 0) 18%); }
body.winter .veil { background: radial-gradient(120% 90% at 50% 50%, transparent 50%, rgba(8, 12, 28, 0.6) 100%), linear-gradient(180deg, rgba(8, 12, 28, 0.5) 0%, rgba(8, 12, 28, 0) 20%); }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.05; background-size: 180px; animation: grain 0.9s steps(4) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-2%,3%); } 50% { transform: translate(3%,-2%); } 75% { transform: translate(-3%,-3%); } }
/* scrims behind copy that sits on the footage */
.hero::before, .threshold::before, .book::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero::before { background: radial-gradient(60% 45% at 50% 50%, rgba(14, 10, 8, 0.42), rgba(14, 10, 8, 0) 100%); }
.threshold::before { background: radial-gradient(55% 40% at 50% 50%, rgba(14, 10, 8, 0.5), rgba(14, 10, 8, 0) 100%); }
.book::before { background: linear-gradient(0deg, rgba(14, 10, 8, 0.72) 0%, rgba(14, 10, 8, 0.35) 45%, rgba(14, 10, 8, 0) 75%); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--cream); color: #2a2320; padding: var(--gutter); }
.loader__center { display: grid; justify-items: center; gap: 14px; text-align: center; }
.loader__mono { width: 86px; height: 108px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.loader__mono path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.6s var(--ease) forwards; }
.loader__mono path:nth-child(2) { animation-delay: 0.3s; }
.loader__mono text { font-family: var(--serif); font-style: italic; font-size: 34px; fill: var(--gold); stroke: none; opacity: 0; animation: fade 1.2s 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.loader__script { margin: 0; font-family: var(--script); font-size: clamp(40px, 6vw, 64px); line-height: 1.1; color: #2a2320; }
.loader__pct { margin: 0; font-size: 12px; letter-spacing: 0.3em; color: #857667; }
.loader__season { display: grid; justify-items: center; gap: 16px; margin-top: 12px; opacity: 0; visibility: hidden; }
.loader__season > p { margin: 0; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: #857667; }
.season-switch { display: flex; padding: 5px; border-radius: 999px; background: #e8dccb; }
.season-opt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #4a3f38; transition: background 0.4s, color 0.4s; }
.season-opt.is-active { background: #fffaf3; color: #2a2320; box-shadow: 0 6px 20px -8px rgba(80, 50, 20, 0.4); }
.season-opt .ico { font-size: 15px; }
.enter { display: inline-flex; align-items: center; gap: 14px; margin-top: 6px; padding: 16px 30px; border-radius: 999px; background: #2a2320; color: #f4eee6; font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; transition: background 0.4s; }
.enter i { font-style: normal; transition: transform 0.5s var(--ease); }
.enter:hover { background: var(--terra); }
.enter:hover i { transform: translateX(6px); }
.enter-quiet { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #857667; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #fff; }
.cursor__ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(255, 255, 255, 0.7); display: grid; place-items: center; transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background 0.4s; }
.cursor__label { font-size: 12px; color: #000; opacity: 0; transition: opacity 0.3s; }
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.cursor.is-label .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--gutter); color: var(--on-scene); pointer-events: none; transition: transform 0.7s var(--ease); }
.header > * { pointer-events: auto; }
.header.is-hidden { transform: translateY(-120%); }
.menu-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--btn-border); position: relative; background: rgba(250, 245, 238, 0.5); }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease); }
.menu-btn span:first-child { top: 19px; } .menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.brand { display: grid; justify-items: center; gap: 2px; text-shadow: 0 0 18px var(--scene-glow); }
.brand svg { width: 26px; height: 32px; fill: none; stroke: currentColor; stroke-width: 5; }
.brand span { font-family: var(--serif); font-size: 19px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; }
.header__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; font-size: 12px; letter-spacing: 0.16em; }
.lang button { padding: 6px 7px; opacity: 0.6; transition: opacity 0.3s; }
.lang button.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.season-mini, .snd { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--btn-border); display: inline-grid; place-items: center; background: rgba(250, 245, 238, 0.5); }
.snd { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.snd i { width: 2px; height: 5px; background: currentColor; border-radius: 2px; }
.snd.is-on i { animation: eq 1.1s ease-in-out infinite; }
.snd.is-on i:nth-child(2) { animation-delay: -0.4s; } .snd.is-on i:nth-child(3) { animation-delay: -0.8s; }
@keyframes eq { 50% { height: 15px; } }
.sound-hint { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transition: opacity 0.5s; pointer-events: none; white-space: nowrap; }
.sound-hint.is-visible { opacity: 0.9; animation: hintPulse 2.2s ease-in-out infinite; }
@keyframes hintPulse { 50% { opacity: 0.4; } }
@media (max-width: 1100px) { .sound-hint { display: none; } }
.book-btn { padding: 12px 24px; border-radius: 999px; background: #2a2320; color: #f4eee6; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; transition: background 0.4s, color 0.4s; }
.book-btn:hover { background: var(--terra); color: #fff; }
body.winter .book-btn { background: #fffaf3; color: #2a2320; }

.overlay-nav { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(28, 22, 18, 0.9); color: #f4eee6; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-io); visibility: hidden; }
.overlay-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.overlay-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.overlay-nav a { display: flex; align-items: baseline; gap: 20px; font-family: var(--serif); font-size: clamp(34px, 5vw, 64px); font-weight: 300; line-height: 1.15; transition: color 0.3s, transform 0.5s var(--ease); }
.overlay-nav a:hover { color: var(--gold); transform: translateX(12px); }
.overlay-nav em { font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: 0.2em; color: var(--gold); }

.room-indicator { position: fixed; left: var(--gutter); bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px; color: var(--on-scene); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; text-shadow: 0 0 12px var(--scene-glow); opacity: 0; }
.room-indicator i { width: 40px; height: 1px; background: currentColor; opacity: 0.6; }
.room-indicator b { font-weight: 400; }

/* ---------- sections ---------- */
main { position: relative; z-index: 5; }
.sec { position: relative; min-height: 100vh; min-height: 100svh; padding: 110px var(--gutter); display: flex; align-items: center; }
.hero { justify-content: center; text-align: center; color: var(--on-scene); min-height: 100vh; }
.hero__center { text-shadow: 0 0 40px var(--scene-glow), 0 0 12px var(--scene-glow); }
.kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 300; line-height: 0.82; }
.hero__line { display: block; overflow: hidden; padding: 0.02em 0.1em 0.08em; }
.hero__line > * { display: inline-block; }
.hero__line:first-child span { font-size: clamp(64px, 10vw, 170px); letter-spacing: 0.12em; text-transform: uppercase; }
.hero__line em { font-family: var(--script); font-style: normal; font-size: clamp(80px, 13vw, 230px); font-weight: 400; line-height: 0.9; }
.hero__sub { margin: 20px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 32px); }
.hero__scroll { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 50px; background: linear-gradient(currentColor, transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

.threshold { justify-content: center; text-align: center; color: var(--on-scene); min-height: 130vh; }
.quote { margin: 0; max-width: 20ch; display: grid; gap: 4px; font-family: var(--serif); font-size: clamp(30px, 3.8vw, 56px); font-weight: 300; line-height: 1.15; text-shadow: 0 0 30px var(--scene-glow); }
.script { font-family: var(--script); font-size: 1.4em; line-height: 1; color: var(--accent-script); }

.room { min-height: 170vh; }
.room--right { justify-content: flex-end; }
.card { width: min(440px, 100%); padding: 34px 34px 30px; border-radius: 4px; background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: 0 40px 80px -50px rgba(40, 25, 10, 0.5); }
.card--wide { width: min(520px, 100%); }
.card__num { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.3em; color: var(--gold); }
.card__title { margin: 0 0 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.2vw, 64px); line-height: 1; }
.card__title em { font-style: italic; color: var(--terra); }
body.winter .card__title em { color: #e9b98f; }
.card__text { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }
.card__list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.card__list li { display: flex; gap: 10px; }
.card__list li::before { content: "—"; color: var(--gold); }
.suites { display: grid; gap: 8px; }
.suite { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "m p"; align-items: center; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; transition: border-color 0.4s, background 0.4s; }
.suite:hover, .suite.is-active { border-color: var(--gold); background: rgba(176, 138, 87, 0.08); }
.suite__name { grid-area: n; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }
.suite__meta { grid-area: m; font-size: 13px; color: var(--muted); }
.suite__price { grid-area: p; font-family: var(--serif); font-size: 26px; }
.suite__price small { font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 300; line-height: 1; }
.stats span { font-size: 12px; color: var(--muted); }

/* ---------- booking ---------- */
.book { justify-content: center; text-align: center; min-height: 140vh; align-items: flex-end; padding-bottom: 24vh; color: var(--on-scene); }
.book__wrap { width: min(980px, 100%); display: grid; justify-items: center; gap: 10px; }
.big-script { margin: 0; font-size: clamp(56px, 8vw, 120px); color: var(--accent-script); text-shadow: 0 0 30px var(--scene-glow); }
.book__title { margin: 0 0 26px; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 44px); text-shadow: 0 0 30px var(--scene-glow); }
.booking { width: 100%; display: grid; grid-template-columns: 1fr 1fr 0.7fr auto; gap: 1px; padding: 8px; border-radius: 999px; background: rgba(250, 245, 238, 0.9); color: #2a2320; box-shadow: 0 30px 60px -30px rgba(20, 10, 5, 0.6); text-align: left; }
.booking label { display: grid; padding: 8px 22px; border-right: 1px solid rgba(42, 35, 32, 0.12); }
.booking label span { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: #857667; }
.booking input, .booking select { border: 0; background: transparent; font-size: 15px; padding: 2px 0; outline: none; color: #2a2320; min-width: 0; }
.booking__btn { border-radius: 999px; padding: 0 30px; background: #2a2320; color: #f4eee6; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; transition: background 0.4s; }
.booking__btn:hover { background: var(--terra); }
.booking__msg { min-height: 1.6em; margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; text-shadow: 0 0 20px var(--scene-glow); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 5; padding: 70px var(--gutter) 26px; background: #1e1814; color: #e9e1d6; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(233, 225, 214, 0.14); }
.footer__label { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.footer p { margin: 0; }
.footer a:hover { color: var(--gold); }
.footer__word { font-family: var(--serif); font-weight: 300; font-size: clamp(60px, 13vw, 220px); letter-spacing: 0.04em; text-align: center; line-height: 1; margin: 40px 0 20px !important; }
.footer__word em { font-family: var(--script); font-style: normal; color: var(--gold); }
.footer__small { text-align: center; font-size: 12px; letter-spacing: 0.1em; color: #9c9186; }

.noscript { position: fixed; inset: auto 0 0; z-index: 200; padding: 14px; text-align: center; background: var(--terra); color: #fff; }
.js [data-reveal] { opacity: 0; transform: translateY(30px); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .header { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand span { display: none; }
  .brand { justify-self: start; }
  .lang, .season-mini { display: none; }
  .room { min-height: 190svh; align-items: flex-end; padding-bottom: 90px; justify-content: stretch; }
  .card { width: 100%; padding: 24px 22px; }
  .booking { grid-template-columns: 1fr 1fr; border-radius: 24px; }
  .booking label:nth-child(2) { border-right: 0; }
  .booking label:nth-child(3) { grid-column: 1 / 2; }
  .booking__btn { grid-column: 2 / 3; padding: 14px 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .room-indicator { display: none; }
  .hero__center { max-width: 100%; }
  .hero__line:first-child span { font-size: 15vw; }
  .hero__line em { font-size: 19vw; }
  .kicker { letter-spacing: 0.24em; font-size: 11px; }
  .hero__sub { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll i::after { animation: none; }
}
