/* ANEMOS Private (ClientDriven concept). Measured from video A on a 1440 x 900 screen: see SPEC-video-A-exact.md.
   --u is one pixel of that 1440 design, so every size and position scales with the window. */
:root {
  --u: clamp(0.72px, calc(100vw / 1440), 1.6px);
  --ink: #f4f1ea;
  --ink-soft: rgba(244, 241, 234, 0.62);
  --gold: #d8b965;
  --gold-ink: #2a2010;
  --night: #07080b;
  --line: rgba(255, 255, 255, 0.32);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); scrollbar-width: none; -webkit-text-size-adjust: 100%; }   /* full-bleed like the video: no scrollbar strip */
html::-webkit-scrollbar { display: none; }
html.locked { overflow: hidden; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--night); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1:focus, h2:focus, h3:focus { outline: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 40; padding: 10px 14px; background: var(--ink); color: #111; font-size: 13px; font-weight: 600; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- nav: always on top ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; height: calc(72 * var(--u)); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-links { position: absolute; left: calc(204 * var(--u)); top: calc(34 * var(--u)); display: flex; gap: calc(28 * var(--u)); transform: translateY(-50%); }
.nav-links a { position: relative; padding: calc(10 * var(--u)) 0; font-size: max(9px, calc(10 * var(--u))); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0.2em; bottom: calc(4 * var(--u)); height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.mono { position: absolute; left: 50%; top: calc(37 * var(--u)); width: calc(38 * var(--u)); height: calc(38 * var(--u)); min-width: 30px; min-height: 30px; transform: translate(-50%, -50%); border-radius: 50%; transition: transform 0.5s var(--ease-out); }
.mono svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.5)); }
.mono circle { fill: rgba(8, 9, 12, 0.18); stroke: var(--ink); stroke-width: 1.4; transition: stroke 0.3s; }
.mono text { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 21px; fill: var(--ink); transition: fill 0.3s; }
.mono:active { transform: translate(-50%, -50%) scale(0.95); }
.reserve-btn { position: absolute; right: calc(210 * var(--u)); top: calc(16 * var(--u)); min-width: calc(93 * var(--u)); height: calc(33 * var(--u)); min-height: 26px; padding: 0 calc(14 * var(--u)) 0 calc(16 * var(--u)); border: max(1.5px, calc(2 * var(--u))) solid rgba(244, 241, 234, 0.82); border-radius: calc(2 * var(--u)); background: rgba(8, 9, 12, 0.28); font-size: max(9px, calc(9.5 * var(--u))); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s; }
.reserve-btn:active { transform: scale(0.96); }
.reserve-btn.has-choice::after { content: ""; position: absolute; right: calc(-5 * var(--u)); top: calc(-5 * var(--u)); width: calc(9 * var(--u)); height: calc(9 * var(--u)); min-width: 7px; min-height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(7, 8, 11, 0.7); }

/* ---------- the film: one tall track, a stage that stays on screen ---------- */
.track { position: relative; height: calc((var(--units, 15) + 1) * 100vh); height: calc((var(--units, 15) + 1) * 100svh); }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; background: #000; }   /* clip: nothing (a focus, a script) can ever scroll the stage sideways */
/* The film and its stand-in picture always cover the stage. Where the stage is narrower than the film (a phone),
   the box is wider than the screen and app.js slides it sideways to keep each picture's subject in view. */
.film-box, .still, .lights { position: absolute; left: 0; top: 0; height: 100%; min-width: 100%; aspect-ratio: var(--film-ratio, 16 / 9); will-change: transform; }
#film { display: block; width: 100%; height: 100%; }
.still { object-fit: cover; opacity: 0; transition: opacity 0.32s ease; }
.still.on { opacity: 1; }
.still.now { transition: none; }
/* the bedroom's night setting: the cabin goes dark, the two bedside lamps (a third and two thirds across the picture) stay warm */
.lights { opacity: 0; pointer-events: none; background: rgba(15, 7, 1, 0.87); transition: opacity 1.1s ease;
  -webkit-mask-image: radial-gradient(17% 30% at 33% 49%, rgba(0, 0, 0, 0.25) 0%, #000 100%), radial-gradient(17% 30% at 68% 49%, rgba(0, 0, 0, 0.25) 0%, #000 100%);
  mask-image: radial-gradient(17% 30% at 33% 49%, rgba(0, 0, 0, 0.25) 0%, #000 100%), radial-gradient(17% 30% at 68% 49%, rgba(0, 0, 0, 0.25) 0%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.lights::after { content: ""; position: absolute; inset: 0; background: radial-gradient(34% 40% at 50% 60%, rgba(255, 150, 50, 0.3), transparent 72%); mix-blend-mode: screen; }   /* lamplight on the bed */
.stage.night .lights { opacity: 1; }
.shade { position: absolute; left: 0; right: 0; pointer-events: none; }
.shade.top { top: 0; height: calc(170 * var(--u)); background: linear-gradient(to bottom, rgba(3, 4, 6, 0.62) 0%, rgba(3, 4, 6, 0.3) 45%, transparent 100%); }
.shade.bottom { bottom: 0; height: calc(360 * var(--u)); background: linear-gradient(to top, rgba(3, 4, 6, 0.9) 0%, rgba(3, 4, 6, 0.66) 34%, rgba(3, 4, 6, 0.28) 68%, transparent 100%); }
.dip { position: absolute; inset: 0; background: #000; opacity: var(--dip, 0); pointer-events: none; }
.noscript { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 14px 18px; background: rgba(7, 8, 11, 0.85); border-radius: 10px; font-size: 14px; }

/* ---------- captions: each is a layer over the whole stage, on when the film is at its picture ---------- */
.cap { position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.cap > * { pointer-events: auto; }
.cap.on { opacity: 1; visibility: visible; transition: opacity 0.55s ease 0.05s, visibility 0s; }
.cap .lede { position: absolute; transform: translateY(calc(12 * var(--u))); transition: transform 0.7s var(--ease-out); }
.cap.on .lede { transform: none; }
.eyebrow { margin: 0; font-size: max(8.5px, calc(9 * var(--u))); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.stage .eyebrow { color: rgba(244, 241, 234, 0.74); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.6); }   /* over the film: stays readable on a bright patch */
.display { margin: 0; font-weight: 300; font-size: calc(70 * var(--u)); line-height: 1; letter-spacing: -0.045em; color: var(--ink); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.display.mid { font-size: calc(60 * var(--u)); line-height: 1.03; }
.display.one { font-size: calc(60 * var(--u)); }
.sub, .para { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.sub { margin: calc(15 * var(--u)) 0 0; font-size: max(11.5px, calc(13 * var(--u))); line-height: 1.3; color: var(--ink); }
.para { margin: calc(8 * var(--u)) 0 0; max-width: calc(385 * var(--u)); font-size: max(11.5px, calc(13 * var(--u))); line-height: calc(20 / 13); color: rgba(244, 241, 234, 0.9); }

/* hero-type captions: text bottom left, the pill under it */
.lead .lede { left: calc(210 * var(--u)); bottom: calc(95 * var(--u)); }
.lead .eyebrow { margin-bottom: calc(19 * var(--u)); }
.lead[data-state="arrived"] .lede { bottom: calc(84 * var(--u)); }
.lead[data-state="arrived"] .eyebrow { margin-bottom: calc(12 * var(--u)); }
.row-left { position: absolute; left: calc(210 * var(--u)); bottom: calc(32 * var(--u)); display: flex; gap: calc(8 * var(--u)); }
.tools .pill { position: absolute; left: calc(210 * var(--u)); bottom: calc(32 * var(--u)); }
.meter { position: absolute; right: calc(205 * var(--u)); bottom: calc(50 * var(--u)); width: calc(55 * var(--u)); height: calc(4 * var(--u)); min-height: 3px; }
.meter::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, calc(1.6 * var(--u))); margin-top: calc(-0.8 * var(--u)); border-radius: 2px; background: rgba(244, 241, 234, 0.4); }
.meter i { position: absolute; inset: 0; border-radius: 4px; background: var(--ink); transform: scaleX(var(--fill, 0)); transform-origin: left; }

/* section openers: number, one-line title, two lines of text, the pills centred under them */
.intro .lede { left: calc(226 * var(--u)); bottom: calc(86 * var(--u)); }
.intro .eyebrow { margin-bottom: calc(16 * var(--u)); }
.row-pills { position: absolute; left: 0; right: 0; bottom: calc(38 * var(--u)); display: flex; justify-content: center; gap: calc(8 * var(--u)); pointer-events: none; }
.row-pills > * { pointer-events: auto; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); height: calc(36 * var(--u)); min-height: 30px; padding: 0 calc(16 * var(--u)); border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 10, 13, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: max(10px, calc(10.5 * var(--u))); font-weight: 700; letter-spacing: 0.005em; white-space: nowrap; color: var(--ink); cursor: pointer; text-decoration: none; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s; }
.pill[hidden], .toast button[hidden] { display: none; }
.pill:active { transform: scale(0.96); }
.pill.small { height: calc(32 * var(--u)); padding: 0 calc(14 * var(--u)); }
.pill.big { height: calc(41 * var(--u)); min-height: 34px; padding: 0 calc(20 * var(--u)); border-color: rgba(244, 241, 234, 0.5); background: rgba(8, 10, 14, 0.34); font-size: max(10.5px, calc(11.5 * var(--u))); }
.pill.extra { border-color: rgba(255, 255, 255, 0.6); }
.pill.gold { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); font-weight: 600; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pill.gold[aria-pressed="true"] { background: rgba(216, 185, 101, 0.82); border-color: transparent; }
.tri { width: calc(10 * var(--u)); height: calc(10 * var(--u)); min-width: 8px; min-height: 8px; fill: currentColor; }

/* ---------- the panel inside a car or a room ---------- */
.panel > * { position: absolute; left: calc(30 * var(--u)); right: calc(30 * var(--u)); }
.panel-head { bottom: calc(127 * var(--u)); display: flex; align-items: flex-end; justify-content: space-between; gap: calc(24 * var(--u)); transform: translateY(calc(10 * var(--u))); transition: transform 0.7s var(--ease-out); }
.panel.on .panel-head { transform: none; }
.panel-title { min-width: 0; padding: 0 0 calc(2 * var(--u)) calc(2 * var(--u)); }
.panel-name { margin: 0; font-weight: 300; font-size: calc(47 * var(--u)); line-height: 1; letter-spacing: -0.045em; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45); }
.panel-line { margin: calc(1 * var(--u)) 0 0; font-size: max(10.5px, calc(11 * var(--u))); font-weight: 600; line-height: 1.3; letter-spacing: 0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.panel-pills { display: flex; flex: none; gap: calc(8 * var(--u)); }
.thumbs { bottom: calc(22 * var(--u)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(7 * var(--u)); }
.thumb { position: relative; height: calc(96 * var(--u)); padding: 0; border: 0; border-radius: calc(2 * var(--u)); overflow: hidden; background: #15161a; cursor: pointer; opacity: 0.94; transition: opacity 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.thumb span { position: absolute; left: calc(9 * var(--u)); bottom: calc(6 * var(--u)); font-size: max(9.5px, calc(10 * var(--u))); font-weight: 600; letter-spacing: 0.01em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.6); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 55%); pointer-events: none; }
.thumb span { z-index: 1; }
.thumb:active { transform: scale(0.985); }
.thumb.on { opacity: 1; box-shadow: 0 0 0 max(1.5px, calc(2 * var(--u))) #fff; z-index: 1; }

/* ---------- small things ---------- */
.toast { position: absolute; left: 50%; top: calc(84 * var(--u)); z-index: 5; display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(10, 10, 13, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 500; white-space: nowrap; opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity 0.35s, transform 0.5s var(--ease-out), visibility 0s linear 0.35s; }
.toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.35s, transform 0.5s var(--ease-out), visibility 0s; }
.toast button { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.foot { padding: 16px 20px; background: #050608; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 11.5px; line-height: 1.5; text-align: center; color: rgba(244, 241, 234, 0.6); }

/* ---------- hover: only where there is a pointer that hovers (a tap would leave these stuck on) ---------- */
@media (hover: hover) {
  .nav-links a:hover::after { transform: scaleX(1); }
  .mono:hover { transform: translate(-50%, -50%) rotate(-8deg) scale(1.06); }
  .mono:hover circle { stroke: var(--gold); }
  .mono:hover text { fill: var(--gold); }
  .reserve-btn:hover { background: var(--ink); border-color: var(--ink); color: #0b0c10; }
  .pill:hover { border-color: rgba(255, 255, 255, 0.85); background: rgba(24, 24, 28, 0.78); transform: translateY(-1px); }
  .pill.big:hover { background: var(--ink); border-color: var(--ink); color: #0b0c10; }
  .pill.gold:hover { background: #e6c877; border-color: #e6c877; color: var(--gold-ink); box-shadow: 0 6px 22px rgba(216, 185, 101, 0.35); }
  .thumb:hover { opacity: 1; }
  .thumb:hover img { transform: scale(1.07); }
}
.nav-links a:focus-visible::after { transform: scaleX(1); }
.pill:active, .thumb:active { opacity: 1; filter: brightness(1.12); }

/* ---------- phone: the film in the top of the screen, the words below it on the dark ---------- */
@media (max-width: 820px) {
  :root { --u: 1px; }
  .nav { height: 104px; }
  .mono { top: 34px; width: 36px; height: 36px; }
  .reserve-btn { right: 16px; top: 18px; min-width: 0; height: 32px; padding: 0 11px 0 12.5px; font-size: 9.5px; }
  .nav-links { left: 0; right: 0; top: 80px; justify-content: center; gap: 28px; }
  .nav-links a { padding: 14px 0; font-size: 9.5px; }
  .nav-links a::after { bottom: 8px; }
  .stage { background: var(--night); }
  .film-box, .still, .lights { height: 66%; }
  .dip { height: 66%; }
  .shade.top { height: 150px; }
  .shade.bottom { top: 40%; height: auto; background: linear-gradient(to bottom, transparent 0%, rgba(7, 8, 11, 0.7) 26%, var(--night) 43.4%, var(--night) 100%); }

  .display { font-size: 43px; }
  .display.mid, .display.one { font-size: 38px; }
  .sub, .para { font-size: 13.5px; line-height: 1.45; max-width: none; }
  .eyebrow { font-size: 9px; }
  .lead .lede, .lead[data-state="arrived"] .lede { left: 20px; right: 20px; bottom: 92px; }
  .intro .lede { left: 20px; right: 20px; bottom: 82px; }
  .lead .eyebrow, .intro .eyebrow, .lead[data-state="arrived"] .eyebrow { margin-bottom: 12px; }
  .row-left, .tools .pill { left: 20px; bottom: 26px; }
  .row-left { right: 20px; flex-wrap: wrap; }
  .meter { right: 20px; bottom: 100px; width: 56px; }   /* beside the last line of text: the bottom right corner is where the "back to portfolio" button lands */
  .row-pills { left: 20px; right: 20px; bottom: 26px; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .pill { height: 38px; padding: 0 14px; font-size: 11.5px; }
  .pill.small { height: 38px; padding: 0 13px; }
  .pill.big { height: 44px; padding: 0 20px; font-size: 12.5px; }

  .panel > * { left: 16px; right: 16px; }
  .panel-head { bottom: 100px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .panel-title { padding: 0; }
  .panel-name { font-size: 33px; }
  .panel-line { margin-top: 7px; font-size: 12px; font-weight: 500; line-height: 1.4; }
  .panel-pills { flex-wrap: wrap; }
  .thumbs { bottom: 18px; gap: 6px; }
  .thumb { height: 68px; }
  .thumb span { left: 7px; bottom: 6px; font-size: 10px; }
  /* five rooms do not fit across a phone: the strip slides sideways under the thumb */
  .panel[data-panel="rooms"] .thumbs { left: 0; right: 0; padding: 3px 16px; grid-auto-columns: 124px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .panel[data-panel="rooms"] .thumbs::-webkit-scrollbar { display: none; }
  .panel[data-panel="rooms"] .thumb { scroll-snap-align: center; }
  .toast { top: 118px; max-width: calc(100vw - 24px); font-size: 12px; }
  .foot { padding: 16px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .cap, .cap.on, .cap .lede, .panel-head, .still, .lights, .toast, .toast.on, .pill, .thumb, .thumb img, .mono, .nav-links a::after { transition: none; }
  .cap .lede, .panel-head { transform: none; }
  .thumb:hover img, .mono:hover, .pill:hover { transform: none; }
  .mono:hover { transform: translate(-50%, -50%); }
}
