/* JW Marriott Residences, Yas Island. Newsreader, walnut and sand. */

:root {
  --walnut: #2b2216;
  --walnut-2: #382d1e;
  --bone: #ebe9e4;
  --bone-muted: #bdb29f;
  --sand: #e6e3dd;
  --sand-deep: #dad6ce;
  --paper: #f4f3f0;
  --ink: #2b2216;
  --muted: #64584a;
  --tan: #bda38b;
  --plan: #f0efe9;
  --field: #ffffff;
  --field-line: #bfb4a2;

  --margin: clamp(20px, 4.4vw, 72px);
  --gutter: clamp(16px, 2vw, 32px);
  --section: clamp(120px, 15vw, 220px);
  --nav-h: 76px;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.55vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 2.8vw, 3.75rem);
  --step-display: clamp(3.25rem, 1rem + 7.2vw, 8.75rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--walnut);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: var(--step-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--walnut); color: var(--bone); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Type */
.display {
  font-size: var(--step-display);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.head {
  font-size: var(--step-head);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.statement { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; font-weight: 300; text-wrap: pretty; }
.note { font-size: var(--step-body); line-height: 1.5; color: var(--muted); }
p { text-wrap: pretty; }

/* Grid and grounds */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--margin);
  max-width: 1760px;
  margin-inline: auto;
}
.sand { position: relative; isolation: isolate; overflow: clip; background-color: var(--sand); }
.sand::before {
  content: "";
  position: absolute;
  inset: -18% 0;
  z-index: -1;
  background: var(--sand) url("../img/sand.webp") 50% 0 / 100% auto repeat-y;
  transform: translate3d(0, var(--sy, 0px), 0);
}
.sand--deep { background-color: var(--sand-deep); }
.sand--deep::before { background-color: var(--sand-deep); background-image: url("../img/sand-deep.webp"); }

.frame { position: relative; overflow: hidden; background: var(--sand-deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--square { aspect-ratio: 1 / 1; }
.frame--45 { aspect-ratio: 4 / 5; }
.frame--1610 { aspect-ratio: 16 / 10; }
.frame--plan { background: #fff; }
.frame--plan img { object-fit: contain; }
[data-parallax-frame] img { height: 118%; margin-top: -9%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--walnut);
  color: var(--bone);
  font-size: var(--step-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:hover { background: #46392a; }
.btn:active { transform: scale(0.98); }
.btn--small { min-height: 44px; padding: 0 20px; }
.btn--block { width: 100%; }
.btn--light { background: var(--bone); color: var(--walnut); }
.btn--light:hover { background: #fff; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding-inline: var(--margin);
  color: var(--ink);
  transition: background-color var(--t-ui) ease, transform 420ms var(--ease-out);
}
.nav.is-solid { background: var(--paper) url("../img/paper.webp") 50% 0 / 100vw auto; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__mark { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; font-size: var(--step-body); letter-spacing: -0.005em; }
.nav__place { color: var(--muted); font-size: var(--step-small); margin-top: 2px; }
.nav:not(.is-solid) .nav__place { color: var(--ink); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: var(--step-body); }
.nav__links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; padding-block: 6px; transition: text-decoration-color var(--t-hover) ease, text-underline-offset var(--t-ui) var(--ease-out); }
.nav__links a:hover, .nav__links a:focus-visible { text-decoration-color: currentColor; text-underline-offset: 0.18em; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  padding: calc(var(--nav-h) + 2.2vh) var(--margin) var(--margin);
  overflow: clip;
  background: #9cc0e6;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 62%; }
.hero__canvas { opacity: 0; transition: opacity 900ms ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__copy { position: relative; z-index: 2; max-width: 1240px; }
.hero__title { color: var(--ink); }
.hero__title .line { display: inline-block; overflow: clip; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 60ch; margin-top: 16px; color: var(--ink); }
@media (min-width: 1200px) { .hero__lead { max-width: none; } }
.hero__card { position: relative; z-index: 2; align-self: start; width: min(100%, 460px); margin-top: 28px; }
@media (min-width: 761px) and (max-height: 860px) {
  .hero .display { font-size: min(var(--step-display), 12.5vh); }
  .hero__card .card__intro { display: none; }
  .hero__card { margin-top: 20px; }
}

/* Card and form */
.card { background: var(--paper) url("../img/paper.webp") 50% 0 / 900px auto; color: var(--ink); padding: 26px 28px 24px; }
.card__title { font-size: var(--step-lead); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.card__intro { margin-top: 8px; font-size: var(--step-body); line-height: 1.45; color: var(--ink); }
.card__fine { margin-top: 10px; font-size: var(--step-small); color: var(--muted); line-height: 1.4; }
.lead-form { display: grid; gap: 12px; }
.lead-form .card__intro { margin-top: -6px; }
.field { display: grid; gap: 5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: var(--step-small); line-height: 1.2; }
.field__note { font-size: var(--step-small); color: var(--muted); line-height: 1.3; }
.field input, .field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--field);
  font-size: var(--step-body);
  transition: border-color var(--t-hover) ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b2216' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input::placeholder { color: #8f8474; }
.field input:hover, .field select:hover { border-color: var(--walnut); }
.field input:focus, .field select:focus { border-color: var(--walnut); outline: 1px solid var(--walnut); outline-offset: -2px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #9b3b2a; outline: 1px solid #9b3b2a; outline-offset: -2px; }
.field select:invalid { color: #8f8474; }
.field select option { color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 6px; }
.phone__cc { position: relative; }
.phone__code { position: absolute; inset: 1px 30px 1px 1px; display: flex; align-items: center; padding-left: 13px; background: var(--field); font-size: var(--step-body); font-variant-numeric: tabular-nums lining-nums; pointer-events: none; white-space: nowrap; overflow: hidden; }
.phone__cc select { color: transparent; }
.phone__cc select:focus + .phone__code, .phone__cc:hover .phone__code { color: var(--ink); }
.form__status button { margin: 0 0 0 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 6px; font-size: var(--step-small); }
.choice__row { display: flex; flex-wrap: wrap; gap: 6px; }
.choice__row label { position: relative; cursor: pointer; }
.choice__row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__row span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 11px;
  border: 1px solid var(--field-line); background: var(--field); font-size: var(--step-small);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.choice__row label:hover span { border-color: var(--walnut); }
.choice__row input:checked + span { background: var(--walnut); border-color: var(--walnut); color: var(--bone); }
.choice__row input:focus-visible + span { outline: 2px solid var(--walnut); outline-offset: 2px; }
.choice__row label:active span { transform: scale(0.97); }
.form__status { font-size: var(--step-small); }
.form__status:empty { display: none; }
.form__status.is-error { color: #8a3324; }
.lead-form.is-done > :not(.form__done) { display: none; }
.form__done { display: grid; gap: 10px; }
.form__done:focus { outline: none; }
.form__done h2 { font-size: var(--step-lead); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }

/* EOI notice: a filled strip at the top of each form card */
.eoi-strip { display: flex; justify-content: space-between; gap: 12px; margin: -26px -28px 6px; padding: 10px 28px; background: var(--walnut) url("../img/sand-dark.webp") 50% 0 / 900px auto; color: var(--bone); font-size: var(--step-small); line-height: 1.3; }
.eoi-strip span:last-child { font-variant-numeric: lining-nums; white-space: nowrap; }

/* EOI bar: fixed to the bottom of the screen while no form is on screen */
:root { --bar-h: 68px; }
.eoi-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--bar-h); padding: 12px var(--margin) calc(12px + env(safe-area-inset-bottom));
  background: var(--walnut) url("../img/sand-dark.webp") 50% 0 / 100vw auto; color: var(--bone);
  transform: translateY(105%); transition: transform 460ms var(--ease-out); pointer-events: none;
}
.eoi-bar.is-on { transform: none; pointer-events: auto; }
.eoi-bar__text { display: flex; align-items: center; gap: 12px; font-size: var(--step-body); line-height: 1.3; }
.eoi-bar__lead { font-weight: 500; }
.eoi-bar__more { color: var(--bone-muted); }
.eoi-bar__amount { margin-left: 10px; font-variant-numeric: lining-nums; white-space: nowrap; }
.eoi-bar__short { display: none; }
.eoi-bar__btn { flex: none; }
.eoi-bar__dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #e0b98f; }
.eoi-bar__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #e0b98f; animation: eoi-pulse 1.8s var(--ease-out) infinite; }
@keyframes eoi-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .eoi-bar__dot::after { animation: none; display: none; } }
.film__sound { bottom: calc(var(--margin) + var(--bar-h)); }

/* EOI section */
.eoi { position: relative; padding-block: var(--section); background: var(--walnut) url("../img/sand-dark.webp") 50% 0 / 100% auto repeat-y; color: var(--bone); }
.eoi__text { grid-column: 1 / 7; align-self: center; }
.eoi__title { color: var(--bone); }
.eoi__lead { margin-top: 28px; max-width: 42ch; color: var(--bone); }
.eoi__facts { margin: 48px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.eoi__facts dt { font-size: var(--step-small); color: var(--bone-muted); }
.eoi__facts dd { margin-top: 4px; line-height: 1.4; }
.eoi__facts div:first-child { grid-column: 1 / -1; }
.eoi__facts div:first-child dd { white-space: nowrap; font-size: var(--step-head); font-weight: 300; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: lining-nums; }
.eoi__btn { margin-top: 44px; }
.eoi__photo { grid-column: 8 / 13; align-self: center; }

/* Intro */
.intro { padding-block: var(--section); }
.intro__photo { grid-column: 1 / 7; grid-row: 1; }
.intro__words { grid-column: 8 / 13; grid-row: 1; align-self: end; display: grid; gap: 28px; padding-bottom: 2vh; }
.intro__text { text-indent: 3em; max-width: 34ch; }
.intro__note { max-width: 40ch; }
.intro__facts { margin-top: 16px; }
.intro__facts dd { font-size: var(--step-head); font-weight: 300; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: lining-nums; }

/* Zoom: one frame, three distances */
.zoom { position: relative; height: 340vh; background: var(--walnut); color: var(--bone); }
.zoom__stage { background: var(--walnut) url("../img/zoom-surround.webp") 50% 50% / cover no-repeat; }
.zoom__stage { position: sticky; top: 0; height: 100svh; padding-top: var(--nav-h); display: grid; place-items: center; overflow: hidden; }
.zoom__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.zoom__title { display: contents; font-weight: 300; }
.zoom__a, .zoom__b { position: relative; z-index: 2; white-space: nowrap; }
.zoom__a { order: 1; margin-bottom: 0.12em; }
.zoom__b { order: 3; margin-top: 0.14em; }
.zoom__caption { order: 4; }
.zoom__frame { order: 2; position: relative; width: min(28vw, 42svh); aspect-ratio: 4 / 5; overflow: hidden; background: var(--walnut-2); }
.zoom__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.zoom__caption { position: absolute; left: calc(100% + 40px); top: 26%; width: 28ch; line-height: 1.5; color: var(--bone); }

/* Film: opening window */
.film { position: relative; height: 230svh; background: var(--walnut); color: var(--bone); }
.film__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__window { position: absolute; inset: 0; overflow: hidden; clip-path: inset(var(--iy, 0%) var(--ix, 0%)); }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--vs, 1)); }
.film__title { position: absolute; z-index: 2; left: var(--margin); top: calc(var(--nav-h) + 2.5vh); max-width: 22ch; color: var(--bone); white-space: nowrap; }
.film__sound { position: absolute; z-index: 3; right: var(--margin); bottom: var(--margin); }

/* Prices, set like a menu */
.prices { padding-block: var(--section); }
.prices__side { grid-column: 1 / 5; }
.prices__photo { margin-top: 48px; width: 78%; }
.prices__list { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-content: start; padding-top: 8px; }
.menu { display: grid; align-content: start; gap: 22px; }
.menu__group { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 4px; }
.menu__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--step-body); font-variant-numeric: tabular-nums lining-nums; }
.menu__row span:last-child { white-space: nowrap; }
.menu__item p { margin-top: 4px; line-height: 1.45; max-width: 36ch; }
.menu__note { margin-top: 8px; }
.menu .btn { justify-self: start; margin-top: 6px; }

/* Payment plan */
.plan { padding-block: var(--section); }
.plan__head { grid-column: 1 / 8; }
.plan__head .lead { margin-top: 24px; max-width: 44ch; }
.plan__controls { grid-column: 1 / 6; margin-top: 64px; display: grid; gap: 24px; align-content: start; }
.choice--plan .choice__row span { min-height: 46px; padding: 0 16px; font-size: var(--step-body); }
.field--price input { height: 56px; font-size: var(--step-lead); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.plan__totals { grid-column: 7 / 13; margin-top: 64px; display: grid; gap: 26px; align-content: start; }
.total { display: grid; gap: 6px; }
.total__label { order: 2; color: var(--ink); }
.total__value { order: 1; font-size: var(--step-head); font-weight: 300; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; }
.plan__bar { grid-column: 1 / 13; margin-top: 80px; display: flex; gap: 4px; height: 56px; }
.plan__bar i { display: block; height: 100%; background: var(--walnut); transform-origin: left; }
.plan__bar i.is-end { background: var(--tan); }
.plan__schedule { grid-column: 1 / 13; margin-top: 40px; columns: 2; column-gap: 64px; font-variant-numeric: tabular-nums lining-nums; }
.plan__schedule li { break-inside: avoid; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 16px; padding-block: 9px; }
.plan__schedule li span:nth-child(2) { color: var(--muted); }
.plan__schedule li span:last-child { text-align: right; }
.plan__schedule li.is-end { font-weight: 500; }
.plan__note { grid-column: 1 / 8; margin-top: 32px; }

/* Amenities: one scene, stepping statements */
.steps { position: relative; height: 460vh; background: var(--walnut); color: var(--bone); }
.steps__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.steps__bg { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.steps__scrim { position: absolute; inset: 0 auto 0 0; width: 62%; background: linear-gradient(to right, rgba(16, 12, 8, 0.84), rgba(16, 12, 8, 0.6) 55%, rgba(16, 12, 8, 0)); } /* taste-skill-ignore: neutral scrim over a photograph */
.steps__list { position: absolute; z-index: 2; top: 50%; left: var(--margin); transform: translateY(-46%); width: min(44vw, 600px); display: grid; gap: 10px; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; color: var(--bone-muted); }
.steps__list li { transition: color var(--t-ui) ease; }
.steps__list h2 { font: inherit; }
.steps__list li.is-active { color: #fff; }
.steps__list li:first-child { font-size: var(--step-head); font-weight: 300; line-height: 1; letter-spacing: -0.035em; margin-bottom: 18px; color: var(--bone); }
.steps__pics { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pair img { position: absolute; object-fit: cover; opacity: 0; transform: translateY(40px); transition: opacity 600ms ease, transform 900ms var(--ease-expo); }
.pair__l { left: 54vw; top: calc(var(--nav-h) + 8vh); width: clamp(200px, 17vw, 300px); aspect-ratio: 4 / 5; }
.pair__r { right: var(--margin); bottom: calc(6vh + var(--bar-h)); width: clamp(220px, 21vw, 380px); aspect-ratio: 3 / 2; }
.pair.is-on img { opacity: 1; transform: none; }
.pair.is-on .pair__r { transition-delay: 90ms; }
.steps__markers { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(6, 1fr); pointer-events: none; }

/* Full amenity list */
.amenlist { padding-block: var(--section); }
.amenlist__title { grid-column: 1 / 6; }
.amenlist__plan { grid-column: 1 / 6; grid-row: 2; margin-top: 48px; }
.amenlist__plan .note { margin-top: 10px; }
.amenlist__plan .frame--plan { background: none; }
.amenlist__plan .frame--plan img { object-fit: contain; }
.amenlist__cols { grid-column: 7 / 13; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-content: start; }
.plain { display: grid; gap: 8px; margin-top: 16px; line-height: 1.35; }

/* Floor plans */
.plans { padding-block: var(--section) calc(var(--section) * 0.8); }
.plans__media { grid-column: 1 / 8; position: sticky; top: calc(var(--nav-h) + 6vh); align-self: start; }
.plans__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.plans__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 300ms ease; }
.plans__frame img.is-leaving { opacity: 0; }
.plans__media .note { margin-top: 12px; color: var(--ink); }
.plans__list { grid-column: 9 / 13; }
.rows { margin-top: 40px; }
.row__head { margin: 0; font-weight: 400; }
.row__head button {
  width: 100%; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: var(--step-lead); letter-spacing: -0.015em; color: var(--muted);
  transition: color var(--t-hover) ease;
}
.row__head button:hover, .row.is-open .row__head button { color: var(--ink); }
.row__count { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.row__body { display: none; padding-bottom: 22px; }
.row.is-open .row__body { display: grid; gap: 16px; }
.row__body p { line-height: 1.5; max-width: 36ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 38px; padding: 0 12px; border: 1px solid var(--field-line); background: var(--field); border-radius: 0; cursor: pointer; /* taste-skill-ignore: radio and toggle controls are form fields */
  font-size: var(--step-small); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip:hover { border-color: var(--walnut); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--walnut); border-color: var(--walnut); color: var(--bone); }
.row__body .btn { justify-self: start; }

/* Gallery */
.gallery { padding-block: var(--section); }
.gallery__title { grid-column: 7 / 13; grid-row: 1; align-self: start; margin-top: 4vh; }
.g { margin: 0; }
.g figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.g .frame { background: var(--sand-deep); }
.g1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.g1 .frame { aspect-ratio: 3 / 4; }
.g2 { grid-column: 7 / 13; grid-row: 2; margin-top: 8vh; }
.g2 .frame { aspect-ratio: 5 / 4; }
.g3 { grid-column: 6 / 12; grid-row: 3; margin-top: 14vh; }
.g3 .frame { aspect-ratio: 3 / 2; }
.g4 { grid-column: 2 / 5; grid-row: 3; align-self: end; }
.g4 .frame { aspect-ratio: 4 / 5; }

/* Owner privileges */
.perks { padding-block: var(--section); }
.perks__text { grid-column: 1 / 7; align-self: center; }
.perks__text .lead { margin-top: 24px; max-width: 40ch; }
.perks__list { margin-top: 40px; display: grid; gap: 12px; line-height: 1.35; }
.perks__list li { padding-left: 28px; position: relative; }
.perks__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; background: var(--tan); }
.perks__text .note { margin-top: 24px; }
.perks__photo { grid-column: 8 / 13; }

/* Location */
.place { padding-block: var(--section); }
.place__title { grid-column: 1 / 9; }
.place__lead { grid-column: 1 / 8; margin-top: 24px; }
.place__photo { grid-column: 1 / 9; margin-top: 72px; position: relative; }
.place__text { margin-top: 20px; max-width: 60ch; line-height: 1.5; }
.place__side { grid-column: 9 / 13; margin-top: 72px; display: grid; gap: 28px; align-content: start; }
.place__map { aspect-ratio: 1664 / 1800; overflow: hidden; background: var(--sand-deep); }
.place__map img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { line-height: 1.3; }

/* Contact */
.contact { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 24px) var(--margin) var(--margin); display: flex; justify-content: flex-end; align-items: center; overflow: clip; background: var(--walnut); }
.contact__media { position: absolute; inset: 0; overflow: hidden; }
.contact__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 100% 50%; will-change: transform; }
.contact__card { position: relative; z-index: 2; width: min(100%, 420px); }

/* Footer */
.foot {
  position: sticky; bottom: 0; z-index: -1;
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto;
  padding: 48px var(--margin) 28px;
  background: var(--walnut) url("../img/sand-dark.webp") 50% 0 / 100% auto repeat-y;
  color: var(--bone-muted);
  font-size: var(--step-body);
}
main { position: relative; z-index: 1; background: var(--walnut); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.foot__cols p { line-height: 1.6; }
.foot__lead { color: var(--bone); }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--bone); text-decoration: underline; }
.foot__word { grid-row: 3; width: 100%; height: auto; margin-bottom: 20px; fill: var(--bone); }
.foot__word text { font-family: "Newsreader", Georgia, serif; font-weight: 300; font-size: 96px; letter-spacing: -0.04em; }
.foot__legal { grid-row: 4; font-size: var(--step-small); line-height: 1.5; max-width: 74ch; }

/* Motion: initial states only when motion runs */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-rise], .motion [data-reveal] { opacity: 0; transform: translateY(26px); }
  .motion [data-stagger] > * { opacity: 0; transform: translateY(18px); }
  .motion [data-wipe] .frame { clip-path: inset(100% 0 0 0); }
  .motion .zoom__b, .motion .zoom__caption { opacity: 0; }
}

/* Tablet */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .prices__list { grid-column: 7 / 13; grid-template-columns: 1fr; row-gap: 56px; }
  .plans__media { grid-column: 1 / 7; }
  .plans__list { grid-column: 8 / 13; }
  .zoom__caption { position: static; width: auto; max-width: 34ch; margin-top: 28px; text-align: center; }
  .zoom__frame { width: min(42vw, 46svh); }
  .steps__list { width: min(56vw, 520px); }
  .pair__l { left: auto; right: var(--margin); top: calc(var(--nav-h) + 4vh); width: 24vw; }
  .pair__r { display: none; }
  .intro__words { grid-column: 7 / 13; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --nav-h: 64px; --section: 112px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .nav { gap: 12px; }
  .nav__cta { min-height: 40px; padding: 0 14px; }

  .hero { display: block; min-height: 0; padding: 0 0 12px; background: var(--sand) url("../img/sand.webp") 50% 0 / 100% auto repeat-y; }
  .hero__media { position: relative; height: 62svh; min-height: 380px; }
  .hero__copy { position: absolute; left: var(--margin); right: var(--margin); top: calc(62svh - 24px); transform: translateY(-100%); }
  .hero__title { color: var(--bone); }
  .hero__title .line { display: block; }
  .hero__lead { display: none; }
  .hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(18, 14, 9, 0.66), rgba(18, 14, 9, 0)); } /* taste-skill-ignore: neutral scrim over a photograph */
  .hero__card { width: auto; margin: 12px 12px 0; padding: 22px 18px 24px; }
  .phone { grid-template-columns: 100px minmax(0, 1fr); }
  .hero__card .card__intro { display: block; }

  .intro__text { text-indent: 0; }
  .eoi__photo { margin-top: 56px; width: 84%; margin-left: auto; }
  .eoi__facts { grid-template-columns: 1fr; gap: 20px; }
  :root { --bar-h: 60px; }
  .eoi-bar { gap: 10px; padding-block: 10px calc(10px + env(safe-area-inset-bottom)); }
  .eoi-bar__text { gap: 10px; font-size: var(--step-small); }
  .eoi-bar__text > span:last-child { display: grid; }
  .eoi-bar__more { display: none; }
  .eoi-bar__amount { margin-left: 0; color: var(--bone-muted); }
  .eoi-bar__long { display: none; }
  .eoi-bar__short { display: inline; }
  .eoi-bar__btn { min-height: 40px; padding: 0 16px; }
  .eoi-strip { margin: -22px -18px 6px; padding: 10px 18px; }
  .intro__photo { width: 82%; margin-bottom: 40px; }
  .intro__words { padding: 0; gap: 20px; }

  .zoom { height: 300vh; }
  .zoom__a, .zoom__b { font-size: 11.5vw; }
  .zoom__frame { width: 70vw; }
  .zoom__caption { margin-top: 24px; padding-inline: var(--margin); }

  .film { height: 200svh; }
  .film__title { white-space: normal; max-width: 12ch; top: calc(var(--nav-h) + 16px); }
  .film__video { object-fit: contain; }

  .prices__photo { width: 60%; margin-top: 32px; }
  .prices__list { margin-top: 48px; grid-template-columns: 1fr; }

  .plan__controls, .plan__totals { margin-top: 40px; }
  .plan__bar { margin-top: 48px; height: 40px; gap: 3px; }
  .plan__schedule { columns: 1; }
  .plan__schedule li { grid-template-columns: 1fr 1fr auto; }

  .steps { height: 420vh; }
  .steps__scrim { inset: auto 0 0 0; width: auto; height: 64%; background: linear-gradient(to top, rgba(16, 12, 8, 0.84), rgba(16, 12, 8, 0.5) 60%, rgba(16, 12, 8, 0)); } /* taste-skill-ignore: neutral scrim over a photograph */
  .steps__list { top: auto; bottom: calc(5svh + var(--bar-h)); left: var(--margin); right: var(--margin); transform: none; width: auto; font-size: var(--step-body); }
  .steps__list li:first-child { margin-bottom: 10px; }
  .pair__l { left: auto; right: var(--margin); top: calc(var(--nav-h) + 16px); width: 44vw; }
  .pair__r { display: none; }

  .amenlist__cols { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }

  .plans__media { position: static; margin: 4px 0 8px; }
  .row__body > .plans__media { grid-column: auto; }
  .plans__frame { aspect-ratio: 4 / 3; }
  .plans__media .note { margin-top: 8px; }
  .plans__list { margin-top: 24px; }
  .row__head button { min-height: 56px; }

  .gallery__title { margin: 0 0 40px; }
  .g { margin-top: 64px !important; }
  .g1 { width: 70%; }
  .g2 { width: 84%; margin-left: auto !important; }
  .g3 { width: 100%; }
  .g4 { width: 56%; }
  .gallery .g:first-of-type { margin-top: 0 !important; }

  .perks__photo { margin-top: 48px; width: 80%; margin-left: auto; }
  .place__photo .frame { aspect-ratio: 4 / 3; }
  .place__photo, .place__side { margin-top: 40px; }
  .place__map { aspect-ratio: 3 / 2; }

  .contact { display: block; min-height: 0; padding: 0; background: var(--sand) url("../img/sand.webp") 50% 0 / 100% auto repeat-y; }
  .contact__media { position: relative; height: 70svh; }
  .contact__card { width: auto; margin: 12px 12px 0; padding: 24px 18px; }
  .contact { padding-bottom: 40px; }

  .foot { padding: 40px var(--margin) 24px; }
  .foot__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .zoom, .film, .steps { height: auto; }
  .zoom__stage, .film__stage, .steps__stage { position: relative; }
  .film__window { clip-path: none; }
  .steps__markers { display: none; }
}
