/* Grand Dunman: Upriver.

   The page is one river read against its current, from the mouth at the
   city to the source at home. Sections are reaches named for the master
   plan's zones; the key plan at the lower left (a dock on phones) carries a
   gold current that runs as you read. Cool marble white, river navy for
   type, one gold line. The renders are never filtered. */

:root {
  font-variant-numeric: lining-nums;
  --paper: #F4F5F2;          /* cool marble white */
  --paper-2: #EAEDE9;
  --card: #FFFFFF;
  --ink: #0F2236;            /* the river at depth: type and buttons */
  --ink-2: #1B3653;
  --ink-soft: #4B5966;
  --gold: #B48A44;           /* the current: a line, never a fill */
  --gold-ink: #7A5A20;       /* gold that can carry text on the paper */
  --gold-soft: #E9DCC0;
  --river: #0E2C46;
  --hair: rgb(15 34 54 / 0.13);
  --hair-strong: rgb(15 34 54 / 0.26);
  /* the site plan's own zone colours, for its markers only */
  --z-city: #D2322B;
  --z-river: #3D66AE;
  --z-nature: #E0802A;
  --z-grand: #A2704F;
  --z-source: var(--gold);

  --sc-canvas: var(--paper);
  --sc-surface: var(--card);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--ink);
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sc-font-text: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-mono: "Urbanist", system-ui, sans-serif;
  --sc-hairline: var(--hair);
  --sc-hairline-strong: var(--hair-strong);
  --sc-shadow-color: 210 50% 10%;
  --sc-r-sm: 4px; --sc-r-md: 8px; --sc-r-lg: 14px;

  --gut: clamp(1.25rem, 4.4vw, 4rem);
  --dock-h: 0px;
  --wrap-w: min(76rem, calc(100% - 2 * var(--gut)));
  --sect: clamp(4.5rem, 8.5vw, 8.5rem);
  --sky-top: #8FB8D4;        /* the hero's sky above the picture, on narrow screens */
  --sky-mid: #99BED8;
}

html { background: var(--paper); scroll-padding-top: 1rem; }
body { background: var(--paper); color: var(--ink); font-family: var(--sc-font-text); font-weight: 400; font-size: 1.0625rem; line-height: 1.6; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 200; background: var(--card); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--sc-r-sm); }
.skip:focus { top: 0.5rem; }
p, figure, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: var(--wrap-w); margin-inline: auto; }

/* ------------------------------------------------------------------ type -- */
.h2 {
  font: 500 clamp(2rem, 1.3rem + 2.2vw, 3.3rem)/1.06 var(--sc-font-display);
  font-optical-sizing: auto; letter-spacing: -0.01em; text-wrap: balance; max-width: 18ch;
}
.h3 { font: 600 0.76rem/1.2 var(--sc-font-text); letter-spacing: 0.17em; text-transform: uppercase; color: var(--gold-ink); }
.lede { font-size: clamp(1.07rem, 1rem + 0.3vw, 1.22rem); line-height: 1.62; max-width: 54ch; text-wrap: pretty; }
.small { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.credit { font-size: 0.74rem; letter-spacing: 0.03em; color: var(--ink-soft); }
.link-arrow {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; white-space: nowrap;
}
.link-arrow::after { content: " \2192"; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { text-decoration-thickness: 2.5px; } }
.dot { display: inline-block; width: 0.62rem; height: 0.62rem; border-radius: 50%; margin-right: 0.5rem; vertical-align: 0.02em; background: var(--gold); }
.dot--city { background: var(--z-city); } .dot--river { background: var(--z-river); }
.dot--nature { background: var(--z-nature); } .dot--grand { background: var(--z-grand); }
.dot--source { background: transparent; box-shadow: inset 0 0 0 2px var(--gold); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.6rem;
  background: var(--ink); color: #fff;
  font: 600 0.95rem/1 var(--sc-font-text); letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  box-shadow: var(--sc-e1);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), opacity 200ms var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--ink-2); } }
.btn--block { width: 100%; }
.btn--sm { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.86rem; }

/* ---------------------------------------------------------------- frames -- */
.frame { position: relative; overflow: hidden; border-radius: var(--sc-r-md); background: #DCE2E3; box-shadow: var(--sc-e2); }
.frame > img, .frame__move > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame__move { height: calc(100% + 40px); margin-top: -20px; will-change: transform; }
figure.frame { display: grid; }
figure.frame > figcaption, figure[data-wipe] > figcaption, .pano > figcaption, .view > figcaption, .source__pic > figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; flex-wrap: wrap;
  font-size: 0.86rem; color: var(--ink-soft);
}
figure.frame > figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1rem 0.8rem;
  color: #fff; background: linear-gradient(to top, rgb(6 16 28 / 0.86) 0, rgb(6 16 28 / 0.6) 45%, rgb(6 16 28 / 0) 100%);
}
figure.frame > figcaption .credit { color: rgb(255 255 255 / 0.84); }
figure[data-wipe] > figcaption { padding-top: 0.6rem; }
.zoom { display: block; padding: 0; border: 0; cursor: zoom-in; text-align: left; }
.zoom__hint {
  position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgb(15 34 54 / 0.88); color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
}
@media (hover: hover) and (pointer: fine) {
  .zoom > img { transition: transform 420ms var(--sc-ease-out); }
  .zoom:hover > img { transform: scale(1.015); }
}
[data-wipe] { will-change: clip-path; }

/* ================================================================= HERO == */
/* Three planes of one picture, each in a box of the same size, so they
   register exactly. The water plane is wider (the river padded with its own
   rows) and sits behind the land. Wide screens: the picture covers the
   screen and the copy stands in the open sky at the left. Narrow screens:
   the picture sits at the foot and the sky carries on above it in its own
   colours, holding the copy. */
.hero { position: relative; height: 100svh; min-height: 40rem; max-height: 72rem; overflow: hidden; background: #C9DCEA; isolation: isolate; container-type: size; }
.hero__scene { position: absolute; inset: 0; }
.hero__box {
  --ar: 1.9472;                                              /* 1992 / 1023 */
  --bw: max(108cqw, calc(106cqh * var(--ar)));
  position: absolute; width: var(--bw); height: calc(var(--bw) / var(--ar));
  left: calc(50% - var(--bw) * 0.47); bottom: -1.5%;
}
.hero__plane { position: absolute; inset: 0; will-change: transform; }
.hero__plane > img { position: absolute; display: block; width: 100%; height: 100%; }
.hero__plane--water > img { width: calc(100% * 2432 / 1992); left: calc(-100% * 220 / 1992); max-width: none; }
.hero__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgb(244 246 249 / 0.62) 0, rgb(244 246 249 / 0.34) 26%, rgb(244 246 249 / 0) 42%); }
.hero__copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  height: 100%; justify-content: center; padding: 0 var(--gut) 6rem; max-width: min(36rem, 30vw + 6rem);
}
.hero__kicker { font: 600 0.78rem/1.3 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: #573E12; }
.hero__title { font: 500 clamp(3.4rem, 1.9rem + 4.1vw, 6.6rem)/0.94 var(--sc-font-display); letter-spacing: -0.02em; color: var(--ink); max-width: 6ch; }
.hero__verse { font: italic 400 clamp(1.15rem, 1rem + 0.5vw, 1.45rem)/1.35 var(--sc-font-display); color: var(--ink); max-width: 22ch; }
.hero__lede { font-size: 1.05rem; line-height: 1.55; color: var(--ink); max-width: 27ch; }
.hero__copy .btn { margin-top: 0.5rem; }
.hero__credit, .stage__credit { padding: 0.12rem 0.45rem; border-radius: 3px; background: rgb(8 20 32 / 0.62); color: #fff; }
.hero__credit { position: absolute; right: var(--gut); bottom: 0.9rem; z-index: 2; }

/* the copy appears once, the scene holds still for it */
.hero__copy > * { animation: rise 900ms var(--sc-ease-out) both; }
.hero__copy > :nth-child(2) { animation-delay: 80ms; } .hero__copy > :nth-child(3) { animation-delay: 160ms; }
.hero__copy > :nth-child(4) { animation-delay: 240ms; } .hero__copy > :nth-child(5) { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 4:3 to 16:10 windows: the picture moves right to give the copy its column */
@media (min-aspect-ratio: 6/5) and (max-aspect-ratio: 8/5) and (min-width: 861px) {
  .hero__box { left: calc(50% - var(--bw) * 0.42); }
  .hero__copy { max-width: min(30rem, 27vw + 3rem); }
  .hero__title { font-size: clamp(3rem, 1.2rem + 4.2vw, 5.6rem); }
}
/* portrait and square windows (phones, tablets upright): the sky above, the river below */
@media (max-aspect-ratio: 6/5), (max-width: 860px) {
  .hero { background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 58%, var(--sky-mid) 100%); max-height: none; }
  .hero__box { --bw: max(104cqw, calc(55cqh * var(--ar))); left: calc(50% - var(--bw) * 0.53); bottom: -1%; }
  .hero__plane--sky > img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
  .hero__veil { background: linear-gradient(180deg, rgb(143 184 212 / 0.55) 0, rgb(143 184 212 / 0) 40%); }
  .hero__copy { justify-content: flex-start; max-width: none; padding: calc(4.5rem + env(safe-area-inset-top, 0px)) var(--gut) 0; gap: 0.7rem; }
  .hero__title { font-size: clamp(3rem, 13vw, 5.2rem); max-width: none; }
  .hero__verse { font-size: clamp(1.1rem, 4.6vw, 1.35rem); }
  .hero__lede { max-width: 32ch; }
}
@media (max-width: 860px) {
  .hero__copy { padding-top: calc(2.25rem + env(safe-area-inset-top, 0px)); }
  .hero__credit { right: auto; left: var(--gut); bottom: calc(0.6rem + var(--dock-h)); }
}

/* ========================================================== REACH LINES == */
/* where the page passes from one zone into the next: a stretch of river
   with the zone's name on it, like a label on a map */
.reachline { position: relative; display: grid; place-items: center; height: clamp(5rem, 9vw, 7rem); margin: 0 auto; width: var(--wrap-w); }
.reachline svg { position: absolute; inset: 50% 0 auto; width: 100%; height: 40px; transform: translateY(-50%); overflow: visible; }
.reachline path { fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: var(--len, 1400); stroke-dashoffset: calc(var(--len, 1400) * (1 - var(--draw, 1))); }
.reachline span {
  position: relative; padding: 0.35rem 1.1rem; background: var(--paper);
  font: italic 500 clamp(1.2rem, 1rem + 0.7vw, 1.6rem)/1 var(--sc-font-display); color: var(--ink); letter-spacing: 0.01em;
}
.reachline--source path { stroke-width: 2; }

/* ============================================================= SECTIONS == */
.sec { position: relative; padding: calc(var(--sect) * 0.55) 0 var(--sect); }

/* --- City Life: developer --- */
.dev { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.dev__pic { aspect-ratio: 1600 / 1100; }
.dev__copy .lede { margin-top: 1rem; }
.dev__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.dev__one { display: grid; gap: 0.85rem; align-content: start; }
.dev__one p { font-size: 0.93rem; line-height: 1.55; color: var(--ink-soft); }
.dev__logo { height: 76px; width: auto; display: block; }
.awards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2.5rem; border-top: 1px solid var(--hair-strong); padding-top: 1.4rem; }
.awards li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.75rem; font-size: 0.93rem; line-height: 1.5; color: var(--ink-soft); }
.awards b { font: 600 1rem/1.45 var(--sc-font-display); color: var(--gold-ink); }
.particulars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair-strong); }
.particulars > div { padding: 1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--hair); }
.particulars dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.particulars dd { margin-top: 0.4rem; font-size: 0.97rem; line-height: 1.45; }
.particulars > div:last-child { grid-column: span 2; }

/* --- City Life: location --- */
.loc__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.loc__head .lede { margin-top: 1rem; }
.downriver { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
.downriver__pic { aspect-ratio: 16 / 10; }
.downriver__copy p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 40ch; }
/* the park connector's stops, strung on a line of river */
.course { position: relative; display: grid; gap: 0; margin-top: 1.5rem; padding-left: 1.6rem; }
.course::before { content: ""; position: absolute; left: 0.42rem; top: 0.7rem; bottom: 0.7rem; width: 2px; background: linear-gradient(var(--gold), var(--gold-soft)); border-radius: 2px; }
.course li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--hair); }
.course li::before { content: ""; position: absolute; left: -1.6rem; top: 50%; width: 0.85rem; height: 0.85rem; margin-top: -0.43rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--gold); }
.course li:first-child::before { background: var(--gold); }
.course b { font-weight: 600; white-space: nowrap; }
.loc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.loc__map { aspect-ratio: 1500 / 868; }
.loc__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.ways--wide { grid-column: 1 / -1; }
.ways__list { margin-top: 0.75rem; border-top: 1px solid var(--hair-strong); }
.ways__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--hair); font-size: 0.95rem; line-height: 1.4; }
.ways__list b { font-weight: 600; white-space: nowrap; }
.ways__list--cols { display: grid; grid-template-columns: 1fr; }
.ways__note { margin-top: 0.75rem; }
.pano { margin: clamp(3rem, 6vw, 5rem) 0 0; }
.pano__img { position: relative; }
.pano__img img { display: block; width: 100%; height: auto; }
.pano > figcaption { padding-top: 0.6rem; }
.pano__tags li {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--top) * 1%); height: calc((var(--to) - var(--top)) * 1%);
  border-left: 1px solid rgb(255 255 255 / 0.85); padding-left: 0.4rem; pointer-events: none;
}
.pano__tags li::after { content: ""; position: absolute; left: -3px; bottom: -3px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgb(15 34 54 / 0.5); }
.pano__tags li.is-r { border-left: 0; border-right: 1px solid rgb(255 255 255 / 0.85); padding: 0 0.4rem 0 0; transform: translateX(-100%); }
.pano__tags li.is-r::after { left: auto; right: -3px; }
.pano__tags span {
  display: inline-block; transform: translateY(-50%); padding: 0.18rem 0.45rem; border-radius: 3px;
  background: rgb(15 34 54 / 0.8); color: #fff; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
}

/* --- River Life: the held stage --- */
.stage { position: relative; height: 300svh; }
.stage__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(1.25rem, 3vh, 2.25rem) var(--gut) calc(1rem + var(--dock-h)); gap: 1rem;
}
.stage__head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.5rem 3rem; align-items: end; width: min(100%, 92rem); margin: 0 auto; }
.stage__lede { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.stage__frame {
  --pw: min(100%, calc((100svh - 17rem) * 1.872), 92rem);
  position: relative; width: var(--pw); aspect-ratio: 3407 / 1820; align-self: center; justify-self: center;
  border-radius: var(--sc-r-md); overflow: hidden; background: #DDE7D3; box-shadow: var(--sc-e3);
  transform-origin: 0 0; will-change: transform;
}
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage__credit { position: absolute; right: 0.6rem; bottom: 0.45rem; }
.stage__now {
  justify-self: center; display: flex; align-items: baseline; gap: 0.9rem; min-height: 2.6rem; padding: 0.55rem 1.1rem;
  border-radius: 999px; background: var(--card); box-shadow: var(--sc-e1); font-size: 0.98rem;
}
.stage__now b { font: italic 600 1.05rem/1 var(--sc-font-display); color: var(--gold-ink); white-space: nowrap; }
.stage__now span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
/* the drawing inside the stage and the key plan */
.kd-river { fill: #9EC0D6; }
.kd-canal { fill: none; stroke: #9EC0D6; stroke-width: 40; stroke-linecap: round; }
.kd-road { fill: none; stroke: rgb(15 34 54 / 0.14); stroke-width: 150; }
.kd-site { fill: #FBFBF8; stroke: rgb(15 34 54 / 0.45); stroke-width: 12; }
.kd-pool { fill: #A9C8DC; }
.kd-block { fill: rgb(15 34 54 / 0.32); stroke: none; }
.kd-course { fill: none; stroke: rgb(180 138 68 / 0.35); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 46; }
.kd-current { fill: none; stroke: #B07F2F; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.kd-head { fill: #B07F2F; stroke: #fff; stroke-width: 16; }
.stage__svg .kd-current { stroke-width: 15; filter: drop-shadow(0 0 6px rgb(255 236 190 / 0.9)); }
.stage__svg .kd-glow { fill: none; stroke: rgb(255 248 228 / 0.75); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.stage__svg .kd-head { stroke-width: 7; }
.stage__frame.is-small { box-shadow: none; border-radius: var(--sc-r-md); }
.fac circle { stroke: #fff; stroke-width: 6; transition: transform 380ms var(--sc-ease-spring, cubic-bezier(.3,1.4,.5,1)), opacity 300ms; transform-box: fill-box; transform-origin: center; }
.fac text { font: 700 30px/1 var(--sc-font-text); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.fac { opacity: 0.32; }
.fac.is-lit { opacity: 1; }
.fac.is-lit circle { transform: scale(1.18); }
.fac[data-zone="city"] circle { fill: var(--z-city); }
.fac[data-zone="river"] circle { fill: var(--z-river); }
.fac[data-zone="nature"] circle { fill: var(--z-nature); }
.fac[data-zone="grand"] circle { fill: var(--z-grand); }

/* the full legend, after the stage */
.legend-wrap { margin-top: clamp(1rem, 3vw, 2rem); }
.legend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.legend { counter-reset: n var(--start, 0); margin-top: 0.75rem; border-top: 1px solid var(--hair-strong); }
.legend li { display: grid; grid-template-columns: 2rem 1fr; padding: 0.42rem 0; border-bottom: 1px solid var(--hair); font-size: 0.92rem; line-height: 1.4; }
.legend li::before { content: attr(data-n); font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.legend-col .h3 { color: var(--ink); }
.legend-note { margin-top: 1.25rem; }
.pools { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.pools__big { grid-row: span 2; aspect-ratio: 16 / 11; }
.pools__copy { align-self: end; padding-bottom: 0.5rem; }
.pools__copy p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 42ch; }
.pools__a { aspect-ratio: 16 / 9.5; }
.pools__b { grid-column: 1 / -1; width: min(100%, 44rem); justify-self: end; aspect-ratio: 16 / 7.5; margin-top: -0.25rem; }

/* --- Nature Life: the homes --- */
.play { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: end; }
.play__pic img { display: block; width: 100%; height: auto; border-radius: var(--sc-r-md); }
.play__copy .lede { margin-top: 1rem; }
.view { margin: clamp(3rem, 6vw, 5rem) 0 0; }
.view img { display: block; width: 100%; height: auto; }
.homes__head { margin-top: clamp(3rem, 6vw, 5rem); }
.homes__head .lede { margin-top: 1rem; }
.rooms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); align-items: start; }
.room img { display: block; width: 100%; height: auto; border-radius: var(--sc-r-md); }
.room--wide { grid-column: 1 / span 8; }
.room--tall { grid-column: 9 / span 4; }
.room--kitchen { grid-column: 1 / span 4; }
.rooms__note { grid-column: 5 / span 4; padding-top: 0.5rem; }
.room--dk { grid-column: 9 / span 4; }
.ticks { display: grid; gap: 0.85rem; margin-top: 0.9rem; }
.ticks li { position: relative; padding-left: 1.4rem; font-size: 0.97rem; line-height: 1.55; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 2px; background: var(--gold); border-radius: 2px; }
.brochure { margin-top: clamp(2rem, 4vw, 3rem); }
.brochure__card {
  display: inline-flex; align-items: center; gap: 1.25rem; padding: 0.75rem 1.5rem 0.75rem 0.75rem; border-radius: var(--sc-r-md);
  background: var(--card); border: 1px solid var(--hair); box-shadow: var(--sc-e1); text-decoration: none; color: var(--ink);
  transition: transform 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.brochure__card img { width: 8.5rem; height: auto; border-radius: 3px; box-shadow: var(--sc-e1); }
.brochure__text { display: grid; gap: 0.25rem; }
.brochure__text b { font: 500 1.25rem/1.2 var(--sc-font-display); }
.brochure__text span { font-size: 0.88rem; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .brochure__card:hover { transform: translateY(-2px); box-shadow: var(--sc-e2); } }

/* --- The Grand Life: floor plans --- */
.plans__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.plans__jewel { aspect-ratio: 16 / 10; }
.plans__head .lede { margin-top: 1rem; }
.plans__filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plans__filter button {
  min-height: 2.6rem; padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hair-strong); color: var(--ink); font-size: 0.92rem; font-weight: 500;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out);
}
.plans__filter button span { color: var(--ink-soft); margin-left: 0.15rem; }
.plans__filter [aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.plans__filter [aria-checked="true"] span { color: rgb(255 255 255 / 0.78); }
@media (hover: hover) and (pointer: fine) { .plans__filter button:hover { border-color: var(--ink); } }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.types li[hidden] { display: none; }
.type {
  width: 100%; display: grid; grid-template-columns: 4.8rem 1fr; gap: 1rem; align-items: center; text-align: left;
  padding: 0.75rem 0.9rem 0.75rem 0.75rem; border-radius: var(--sc-r-md); cursor: pointer;
  background: var(--card); border: 1px solid var(--hair);
  transition: border-color 140ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.type:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .type:hover { border-color: var(--gold); box-shadow: var(--sc-e1); } }
.type__thumb { width: 4.8rem; height: 4.8rem; border-radius: 3px; background: #fff; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--hair); }
.type__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.type__name { display: block; font: 500 1.12rem/1.2 var(--sc-font-display); color: var(--ink); }
.type__meta { display: block; margin-top: 0.2rem; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }
.type__left { display: inline-block; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 700; color: var(--gold-ink); }
.plans__dl { margin-top: 1.5rem; }
.plans__dl .link-arrow { white-space: normal; }

/* --- The Grand Life: availability --- */
.sec--avail { padding-top: calc(var(--sect) * 0.4); }
.avail__head { margin-bottom: 1.75rem; }
.avail__head .lede { margin-top: 1rem; }
.avail__num { color: var(--gold-ink); }
.avail__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.2vw, 2rem); margin-top: 1.75rem; align-items: end; }
.chart__title { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-size: 0.86rem; margin-bottom: 0.5rem; }
.chart__title b { font: 500 1.08rem/1 var(--sc-font-display); }
.chart__title span { color: var(--ink-soft); }
.chart__title span.is-some { color: var(--gold-ink); font-weight: 600; }
.chart { display: grid; grid-template-columns: 1.5rem repeat(var(--cols), minmax(0, 1fr)); gap: 2px; font-size: 0.56rem; }
.chart__lvl { display: grid; place-items: center end; padding-right: 0.25rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 0.58rem; }
.chart__cell { min-height: 0.95rem; border-radius: 2px; background: rgb(15 34 54 / 0.05); }
.chart__cell--none { background: transparent; }
.chart__cell--open {
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; font: 700 0.55rem/1 var(--sc-font-text); font-variant-numeric: tabular-nums;
  transition: transform 120ms var(--sc-ease-out), opacity 200ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out);
}
.chart__cell--open[data-bed="1"] { background: var(--gold-soft); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(180 138 68 / 0.6); }
.chart__cell--open[data-bed="5"] { background: var(--gold); color: #fff; }
.chart__cell--open.is-dim { opacity: 0.15; }
.chart__cell--open.is-hl { box-shadow: 0 0 0 2px var(--ink); }
@media (hover: hover) and (pointer: fine) { .chart__cell--open:hover { transform: scale(1.35); box-shadow: var(--sc-e2); position: relative; z-index: 2; } }
.chart__stack { text-align: center; color: var(--ink-soft); font-size: 0.54rem; padding-top: 0.2rem; font-variant-numeric: tabular-nums; }
.chart__key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.86rem; color: var(--ink-soft); align-self: start; }
.chart__key span { display: inline-flex; align-items: center; gap: 0.45rem; }
.chart__key i { width: 0.9rem; height: 0.9rem; border-radius: 2px; }
.avail__how { margin-top: 1.25rem; }

/* ========================================================== THE SOURCE == */
.source { padding-top: 0; padding-bottom: calc(var(--sect) * 0.9); }
.source__pic { margin: 0; }
.source__pic img { display: block; width: 100%; height: clamp(18rem, 52vw, 44rem); object-fit: cover; object-position: 50% 62%; }
.source__pic > figcaption { padding-top: 0.6rem; }
.book { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: start; margin-top: calc(clamp(6rem, 14vw, 13rem) * -1); position: relative; }
.book__intro { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--paper); border-radius: var(--sc-r-lg) var(--sc-r-lg) 0 0; align-self: end; margin-bottom: -1px; position: sticky; top: 2rem; }
.book__title { font-style: italic; }
.book__intro .lede { margin-top: 1rem; }
.book__facts { margin-top: 1.5rem; border-top: 1px solid var(--hair-strong); }
.book__facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--hair); font-size: 0.97rem; }
.book__facts dt { color: var(--ink-soft); }
.book__facts a { font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 0.25em; }

/* ----------------------------------------------------- the booking card -- */
.card { background: var(--card); color: var(--ink); border-radius: var(--sc-r-lg); }
.tb { position: relative; overflow: hidden; box-shadow: var(--sc-e3); }
.tb > * { border-top: 1px solid var(--hair-strong); }
.tb > :first-child, .tb > input, .tb > .hp { border-top: 0; }
.tb__head { padding: 1.4rem 1.5rem 1.1rem; border-top: 0 !important; box-shadow: inset 0 3px 0 var(--gold); }
.tb__title { font: italic 500 1.6rem/1.1 var(--sc-font-display); color: var(--ink); }
.tb__sub { margin-top: 0.45rem; font-size: 0.93rem; color: var(--ink-soft); }
.tb__interest { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.5rem; background: #F4EEDF; font-size: 0.92rem; }
.tb__interest[hidden] { display: none; }
.tb__interest-x { background: none; border: 0; padding: 0.25rem; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; color: var(--ink-soft); }
.when { border: 0; margin: 0; padding: 1.25rem 1.5rem; min-width: 0; }
.when__legend { padding: 0; margin-bottom: 1rem; float: left; width: 100%; font: 600 0.74rem/1.2 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.when__legend + * { clear: both; }
.when__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.1rem; }
.when__tabs button {
  display: grid; gap: 0.3rem; text-align: left; padding: 0.65rem 0.85rem; min-height: 3.6rem;
  background: #fff; border: 1px solid var(--hair-strong); border-radius: var(--sc-r-sm); cursor: pointer; color: var(--ink);
  transition: border-color 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.when__n { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.when__v { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.when__tabs button.is-set .when__v { color: var(--ink); }
.when__tabs [aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); }
@media (hover: hover) and (pointer: fine) { .when__tabs button:hover { border-color: var(--ink); } }
.when__month { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.75rem; }
.when__dow, .when__dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.when__dow { font-size: 0.72rem; color: var(--ink-soft); text-align: center; margin-bottom: 0.35rem; }
.when__dates { margin-bottom: 1.1rem; }
.when__dates button, .when__times button {
  position: relative; font: 600 0.92rem/1 var(--sc-font-text); color: var(--ink);
  background: #fff; border: 1px solid var(--hair-strong); border-radius: var(--sc-r-sm);
  cursor: pointer; min-height: 2.75rem; padding: 0.3rem 0.2rem; font-variant-numeric: tabular-nums;
  transition: background-color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
.when__dates button { display: grid; place-items: center; align-content: center; gap: 0.1rem; }
.when__dates .m { font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.when__dates .pad { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .when__dates button:hover, .when__times button:hover { border-color: var(--ink); } }
.when__dates [aria-checked="true"], .when__times [aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.when__dates [aria-checked="true"] .m { color: rgb(255 255 255 / 0.8); }
.when__dates button[data-other]::after { content: ""; position: absolute; left: 50%; bottom: 0.26rem; width: 0.3rem; height: 0.3rem; margin-left: -0.15rem; border-radius: 50%; background: var(--gold); }
.when__times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
.when__times button:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.when__native label { display: block; margin-top: 0.75rem; font-size: 0.92rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { padding: 0.8rem 1.5rem 0.95rem; min-width: 0; }
.field + .field { border-left: 1px solid var(--hair-strong); }
.field--wide { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--hair-strong); }
.field label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.45rem; }
.field input {
  width: 100%; min-height: 2.9rem; padding: 0.65rem 0.8rem;
  background: #F7F8F6; border: 1px solid rgb(15 34 54 / 0.3); border-radius: var(--sc-r-sm);
  font: 400 1rem/1.2 var(--sc-font-text); color: var(--ink);
  transition: border-color 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.field input::placeholder { color: color-mix(in oklab, var(--ink-soft) 85%, transparent); }
.field input:focus-visible { border-color: var(--ink); background: #fff; outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #A3342A; }
.field__error { margin: 0.35rem 0 0; font-size: 0.88rem; color: #A3342A; }
.field__error:empty { display: none; }
.tb__submit { padding: 1.25rem 1.5rem 1rem; }
.tb__fineprint { margin-top: 1rem; font-size: 0.82rem; line-height: 1.55; color: var(--ink-soft); text-align: center; text-wrap: pretty; }
.tb__status { padding: 1rem 1.5rem; font-size: 0.93rem; }
.tb__status.is-ok { background: #E6EFE8; color: #183A25; }
.tb__status.is-wait { background: #EEF0EC; color: var(--ink); }
.tb__status.is-err { background: #F6E3DC; color: #7A2A14; }
.tb__status a { color: inherit; font-weight: 600; }
.tb__status:focus { outline: none; }
/* after submit the card keeps only its head and the message */
.tb.is-sending > :not([data-status]):not(.tb__head), .tb.is-done > :not([data-status]):not(.tb__head) { display: none; }
.tb.is-sending .tb__status, .tb.is-done .tb__status { padding: 2rem 1.75rem; font-size: 1.1rem; line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --------------------------------------------------------------- footer -- */
.foot { position: relative; z-index: 1; padding: 2.25rem var(--gut) calc(2.75rem + var(--dock-h)); font-size: 0.88rem; background: var(--ink); color: #C8D2DC; }
.foot__lines { text-align: center; }
.foot__lines p { line-height: 1.7; }
.foot__lines p + p { margin-top: 0.25rem; }
.foot__lines span { white-space: nowrap; }
.foot a { color: #fff; text-decoration-color: var(--gold); text-underline-offset: 0.25em; }

/* ========================================================= THE KEY PLAN == */
/* Fixed at the lower left: the estate in fine line with the river beside
   it, the current in gold as far as you have read, the reach and section
   named beside it. On a phone it is a dock at the foot. */
.kp {
  position: fixed; left: clamp(0.75rem, 1.6vw, 1.5rem); bottom: clamp(0.75rem, 1.6vw, 1.5rem); z-index: 60;
  display: grid; grid-template-columns: auto minmax(0, auto) auto; align-items: center; gap: 0.85rem;
  padding: 0.5rem 0.55rem 0.5rem 0.5rem; border-radius: var(--sc-r-lg);
  background: rgb(255 255 255 / 0.94); box-shadow: var(--sc-e3); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity 260ms var(--sc-ease-out), transform 300ms var(--sc-ease-out);
}
.kp.is-away { opacity: 0; transform: translateY(8px); pointer-events: none; }
.kp__plan { display: block; padding: 0; border: 0; background: #DCE5EA; border-radius: var(--sc-r-md); cursor: pointer; line-height: 0; box-shadow: inset 0 0 0 1px var(--hair); }
.kp__svg { display: block; width: 156px; height: auto; aspect-ratio: 3407 / 1820; border-radius: var(--sc-r-md); }
.kp__text { display: grid; gap: 0.1rem; min-width: 9.5rem; }
.kp__zone { font: italic 600 0.98rem/1.15 var(--sc-font-display); color: var(--gold-ink); }
.kp__sec { font-size: 0.86rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.kp__all { justify-self: start; margin-top: 0.15rem; padding: 0.15rem 0; background: none; border: 0; cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.22em; }
@media (hover: hover) and (pointer: fine) { .kp__all:hover, .kp__plan:hover + .kp__text .kp__all { color: var(--ink); } }
.kp__book { align-self: center; }

/* ------------------------------------------------------------- dialogs -- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--card); box-shadow: var(--sc-e3); }
dialog::backdrop { background: rgb(8 20 32 / 0.6); }
.dlg-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1rem 0.9rem 1.4rem; border-bottom: 1px solid var(--hair); }
.dlg-title { font: italic 500 1.2rem/1.2 var(--sc-font-display); color: var(--ink); }
.dlg-close { min-height: 2.5rem; padding: 0.4rem 1rem; border-radius: 999px; cursor: pointer; background: var(--ink); color: #fff; border: 0; font-size: 0.88rem; font-weight: 600; }
.reaches-dlg { width: min(34rem, calc(100vw - 2rem)); border-radius: var(--sc-r-lg); max-height: min(46rem, calc(100svh - 2rem)); }
.reaches-dlg__body { padding: 1rem 1.4rem 1.4rem; overflow: auto; }
.reaches-dlg__plan { display: block; width: 100%; height: auto; aspect-ratio: 3407 / 1820; border-radius: var(--sc-r-md); background: #DCE5EA; }
.reaches { display: grid; margin-top: 1rem; border-top: 1px solid var(--hair-strong); }
.reaches li { display: grid; grid-template-columns: 9.5rem 1fr; align-items: baseline; gap: 0.25rem 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--hair); }
.reaches__z { font: italic 600 1rem/1.3 var(--sc-font-display); color: var(--ink); }
.reaches a { grid-column: 2; justify-self: start; font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 0.22em; padding: 0.15rem 0; }
.reaches a.is-here { color: var(--gold-ink); }
.plan-dlg { width: min(66rem, calc(100vw - 2rem)); height: min(54rem, calc(100svh - 2rem)); border-radius: var(--sc-r-lg); }
.plan-dlg[open] { display: grid; grid-template-rows: auto 1fr; }
.plan-dlg__body { display: grid; grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.4fr); min-height: 0; }
.plan-dlg__meta { padding: 1.25rem 1.4rem; overflow: auto; border-right: 1px solid var(--hair); }
.plan-dlg__meta .facts { display: grid; gap: 0; border-top: 1px solid var(--hair-strong); margin-top: 0.75rem; }
.plan-dlg__meta .facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--hair); font-size: 0.93rem; }
.plan-dlg__meta .facts dt { color: var(--ink-soft); }
.plan-dlg__meta .facts dd { text-align: right; font-weight: 600; }
.plan-dlg__meta .btn { margin-top: 1.25rem; width: 100%; }
.plan-dlg__meta .link-arrow { display: inline-block; margin-top: 0.9rem; }
.plan-dlg__units { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.plan-dlg__units b { color: var(--ink); }
.plan-dlg__units button { margin: 0.2rem 0.3rem 0 0; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--hair-strong); background: #fff; cursor: pointer; font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-dlg__units button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-dlg__img { overflow: auto; background: #fff; display: grid; place-items: start center; }
.plan-dlg__img img { width: 100%; max-width: 48rem; height: auto; display: block; }
.viewer { width: calc(100vw - 2rem); height: calc(100svh - 2rem); max-width: none; max-height: none; border-radius: var(--sc-r-lg); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer__body { overflow: auto; background: #fff; display: grid; place-items: start center; }
.viewer__body img { display: block; width: auto; max-width: none; height: auto; }
.viewer.is-fit .viewer__body img { width: 100%; max-width: 100%; cursor: zoom-in; }
.viewer:not(.is-fit) .viewer__body img { cursor: zoom-out; }

/* ============================================================== TABLET == */
@media (max-width: 1100px) {
  .dev { grid-template-columns: 1fr; }
  .particulars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards { grid-template-columns: 1fr; }
  .downriver, .loc, .play, .plans__head { grid-template-columns: 1fr; }
  .legend-grid { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book { grid-template-columns: 1fr; margin-top: -4rem; }
  .book__intro { position: relative; top: 0; border-radius: var(--sc-r-lg); }
  .stage__head { grid-template-columns: 1fr; }
  .stage__lede { display: none; }
}

/* =============================================================== PHONE == */
@media (max-width: 860px) {
  :root { --dock-h: calc(4.4rem + env(safe-area-inset-bottom, 0px)); --sect: clamp(3.5rem, 12vw, 5rem); }
  .wrap, .reachline { width: calc(100% - 2 * var(--gut)); }
  .particulars { grid-template-columns: 1fr; }
  .particulars > div:last-child { grid-column: auto; }
  .dev__pair { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .dev__logo { height: 60px; }
  .loc__lists { grid-template-columns: 1fr; }
  .pano__img { overflow: hidden; }
  .pano__img img { width: 180%; max-width: none; margin-left: -62%; }
  .pano__tags { position: absolute; inset: 0; width: 180%; margin-left: -62%; }
  .pano__tags li:not(.is-m) { display: none; }
  .legend-grid { grid-template-columns: 1fr; }
  .pools { grid-template-columns: 1fr; }
  .pools__big { grid-row: auto; }
  .pools__b { width: 100%; }
  .rooms { grid-template-columns: 1fr 1fr; }
  .room--wide { grid-column: 1 / -1; }
  .room--tall, .room--kitchen { grid-column: auto; }
  .rooms__note { grid-column: 1 / -1; padding: 0; }
  .room--dk { grid-column: 1 / -1; }
  .charts { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .chart__cell { min-height: 0.9rem; }
  .book { padding-bottom: calc(1rem + var(--dock-h)); margin-top: -2.5rem; }
  .book__intro { padding: 1.25rem 1.1rem; }
  .book__facts > div { grid-template-columns: 7rem 1fr; }
  .fields { grid-template-columns: 1fr; }
  .field + .field { border-left: 0; border-top: 1px solid var(--hair-strong); }
  .when, .field, .tb__head, .tb__submit { padding-left: 1.1rem; padding-right: 1.1rem; }
  .when__dates button, .when__times button { min-height: 2.6rem; font-size: 0.86rem; }
  .plan-dlg__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
  .plan-dlg__meta { border-right: 0; border-bottom: 1px solid var(--hair); }
  .plan-dlg__img { overflow: visible; }
  .reaches li { grid-template-columns: 1fr; }
  .reaches a { grid-column: 1; }

  /* the stage on a phone: the plan at full height, the camera follows the current */
  .stage { height: 300svh; }
  .stage__sticky { padding: 1rem 0 calc(0.75rem + var(--dock-h)); grid-template-rows: auto minmax(0, 1fr) auto; }
  .stage__head { padding: 0 var(--gut); }
  .stage__frame { --pw: auto; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #DDE7D3; }
  .stage__frame > .stage__img, .stage__frame > .stage__svg { width: auto; max-width: none; height: 100%; aspect-ratio: 3407 / 1820; left: 0; right: auto; transform: translateX(var(--pan, 0px)); will-change: transform; }
  .stage__now { margin: 0 var(--gut); }
  .stage__now span { max-width: 52vw; }

  /* the key plan becomes a dock at the foot */
  .kp {
    left: 0; right: 0; bottom: 0; border-radius: 0; border: 0; border-top: 1px solid var(--hair);
    grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem;
    padding: 0.5rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  .kp.is-tucked { transform: translateY(110%); }
  .kp__svg { width: 92px; }
  .kp__text { min-width: 0; }
  .kp__zone { font-size: 0.9rem; }
  .kp__sec { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; }
  .kp__all { font-size: 0.76rem; }
  .kp__book { align-self: center; }
}
@media (max-width: 380px) {
  .kp__svg { width: 76px; }
  .kp__book { padding-inline: 0.75rem; font-size: 0.8rem; }
  .charts { grid-template-columns: 1fr; }
}

/* ========================================================= WITHOUT SCRIPT == */
.no-js [data-sc-in], .no-js [data-sc-stagger] > * { opacity: 1; transform: none; }
.no-js .kp, .no-js .plans__filter, .no-js .avail__how, .no-js .stage__now { display: none !important; }
.no-js .stage { height: auto; }
.no-js .stage__sticky { position: relative; height: auto; }

/* ====================================================== REDUCED MOTION == */
@media (prefers-reduced-motion: reduce) {
  .hero__plane, .frame__move { transform: none !important; }
  .hero__copy > * { animation: none; }
  [data-wipe] { clip-path: none !important; }
  .stage { height: auto; }
  .stage__sticky { position: relative; height: auto; min-height: 0; }
  .stage__frame { transform: none !important; }
  .kp.is-tucked { transform: none; }
  .fac circle { transition: none; }
}
