/* Halcrest Residences: shared stylesheet. Phone first (390), then 768 and 1024+. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/hanken-grotesk-var-latin.woff2') format('woff2'); }

/* ================= Tokens ================= */
:root {
  --paper: #eef1f0;
  --paper-2: #e1e7e6;
  --ink: #0c1416;
  --ink-2: #3c4a4d;
  --rule: #c3cdcc;
  --teal: #0f3b40;
  --teal-2: #0a2a2e;
  --on-dark: #e9efee;
  --on-dark-2: #a9bcbc;
  --rule-dark: rgba(233, 239, 238, 0.22);
  --brass: #b9965f;
  --brass-ink: #74572a;
  --error: #a3261b;

  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-h2: clamp(2.25rem, 1.2rem + 4.6vw, 5.5rem);
  --fs-h3: clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem);

  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;
  --gutter: 20px;
  --section: clamp(88px, 12vw, 176px);
  --hd-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-lift: cubic-bezier(0.7, 0, 0.18, 1);      /* a lift: eases away, eases to a stop */
  /* under-damped spring for things that were pressed and let go */
  --spring: linear(0, 0.31 7%, 0.68 15%, 0.95 23%, 1.08 31%, 1.1 37%, 1.07 45%, 1.02 55%, 0.995 66%, 1 82%, 1);
  --t-fast: 160ms;
  --t: 240ms;
  --grade: saturate(0.8) contrast(1.04);
}
@media (min-width: 768px) { :root { --gutter: 40px; --hd-h: 72px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; } }

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }
@media (max-width: 1023px) { html.is-locked { background: var(--ink); } }   /* shows behind the page when a sheet pushes it back */
body { font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; color: var(--ink); overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; }
.on-dark :focus-visible, .hd.is-dark :focus-visible, .sheet--menu :focus-visible, .ft :focus-visible { outline-color: var(--brass); }
[id] { scroll-margin-top: calc(var(--hd-h) + var(--s-3)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 200; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-3); transform: translateY(-300%); }
.skip:focus { transform: none; }

.page { background: var(--paper); overflow: clip; transform-origin: 50% 0; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.display { font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; }
/* Headings never break inside a word: capped so the longest word (about 9.2em in this face) fits its column. */
.h2 { --h2-col: calc(min(100vw, 1440px) - 2 * var(--gutter)); font-size: min(var(--fs-h2), calc(var(--h2-col) / 9.6)); max-width: 14ch; text-wrap: balance; }
.dot { color: var(--brass); }
.nb { white-space: nowrap; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.on-dark { background: var(--teal); color: var(--on-dark); }
.on-dark .lead { color: var(--on-dark-2); }
.num { font-family: var(--font-display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Buttons and links: pressed things sink to 0.97 and spring back ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 var(--s-4);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; letter-spacing: 0.005em; white-space: nowrap;
  transition: transform 520ms var(--spring), background-color var(--t) var(--ease-out), color var(--t) var(--ease-out); touch-action: manipulation; }
.btn:active, .press:active { transform: scale(0.97); transition: transform 90ms ease-out; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
.arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--t) var(--ease-out); }
.press { transition: transform 520ms var(--spring); touch-action: manipulation; }
.link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 600; text-decoration: none; position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px; background: currentColor; transform-origin: 0 50%; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--teal); color: var(--on-dark); }
  .btn--light:hover { background: var(--brass); color: var(--ink); }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); }
  .on-dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
  .btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }
  .link:hover::after { transform: scaleX(0.35); }
}

/* ---------- Picture frames: one grade for every photograph, a blind that lifts, a slow drift ---------- */
.ph { position: relative; display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: var(--ar, 3 / 2); }
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.ph[data-drift] img { top: -6%; height: 112%; will-change: transform; }
.ph::after { content: ""; position: absolute; inset: 0; background: var(--teal); mix-blend-mode: soft-light; opacity: 0.2; pointer-events: none; }
.ph--warm { --grade: saturate(0.62) contrast(1.05) hue-rotate(-8deg); }
.ph--vivid { --grade: saturate(0.66) contrast(1.03); }
.js .ph[data-unveil]::before { content: ""; position: absolute; inset: -1px; z-index: 2; background: var(--ph-cover, var(--paper)); transform-origin: 50% 0; transition: transform 1100ms var(--ease-out); }
.js .ph[data-unveil].is-in::before { transform: scaleY(0); }
.on-dark .ph { --ph-cover: var(--teal); background: var(--teal-2); }
.cap { font-size: var(--fs-small); color: var(--ink-2); padding-top: var(--s-2); }

/* ---------- Reveals ---------- */
.js [data-rise] { opacity: 0; transform: translateY(18px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js .h2[data-split] { visibility: hidden; animation: show 0s 3s forwards; }
@keyframes show { to { visibility: visible; } }
.js .h2[data-split].is-split { visibility: visible; }

/* ================= First-visit loader (under a second; CSS driven so it can never stick) ================= */
.loader { display: none; }
.first .loader { display: grid; position: fixed; inset: 0; z-index: 300; place-items: center; background: var(--teal); color: var(--on-dark); pointer-events: none;
  animation: loader-out 420ms 560ms var(--ease-lift) forwards; }
.loader-in { display: grid; justify-items: center; gap: var(--s-4); }
.loader-word { font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(2.25rem, 10vw, 6rem); line-height: 1; }
.loader-shaft { width: 2px; height: clamp(88px, 16vh, 150px); background: var(--brass); transform-origin: 50% 100%; animation: shaft 520ms var(--ease-out) both; }
.loader-floor { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--brass); height: 1em; line-height: 1; overflow: hidden; }
.loader-floor span { display: block; animation: floors 520ms steps(6) both; }
.loader-floor b { display: block; height: 1em; font-weight: inherit; }
@keyframes shaft { from { transform: scaleY(0); } }
@keyframes floors { to { transform: translateY(-85.714%); } }
@keyframes loader-out { to { transform: translateY(-100%); visibility: hidden; } }

/* ================= Page transitions: the lift =================
   Going to a higher floor the old page drops away and the new one arrives from above, with a floor slab between them.
   The header stays put, like the panel in the cab, while its indicator counts. */
.hd { view-transition-name: hc-header; }
::view-transition { background: var(--teal-2); }
::view-transition-group(hc-header) { animation-duration: 300ms; }
::view-transition-old(root), ::view-transition-new(root) { animation: 300ms linear both; mix-blend-mode: normal; }
::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
@keyframes lift-out-up { to { transform: translateY(calc(100% + 28px)); } }
@keyframes lift-in-up { from { transform: translateY(calc(-100% - 28px)); } }
@keyframes lift-out-down { to { transform: translateY(calc(-100% - 28px)); } }
@keyframes lift-in-down { from { transform: translateY(calc(100% + 28px)); } }
@media (prefers-reduced-motion: no-preference) {
  html[data-dir]::view-transition-old(root), html[data-dir]::view-transition-new(root) { animation-duration: 680ms; animation-timing-function: var(--ease-lift); }
  html[data-dir="up"]::view-transition-old(root) { animation-name: lift-out-up; }
  html[data-dir="up"]::view-transition-new(root) { animation-name: lift-in-up; box-shadow: 0 3px 0 var(--brass); }
  html[data-dir="down"]::view-transition-old(root) { animation-name: lift-out-down; }
  html[data-dir="down"]::view-transition-new(root) { animation-name: lift-in-down; box-shadow: 0 -3px 0 var(--brass); }
}
/* Fallback for browsers without cross-document view transitions: the page itself leaves and arrives. */
.js.leave .page { transition: transform 300ms var(--ease-in-out), opacity 260ms linear; opacity: 0; }
.js.leave[data-go="up"] .page { transform: translateY(56px); }
.js.leave[data-go="down"] .page { transform: translateY(-56px); }
.js.arrive .page { animation: arrive-up 520ms var(--ease-out) both; }
.js.arrive[data-dir="down"] .page { animation-name: arrive-down; }
@keyframes arrive-up { from { transform: translateY(-56px); opacity: 0; } }
@keyframes arrive-down { from { transform: translateY(56px); opacity: 0; } }

/* ================= Header ================= */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 60; height: calc(var(--hd-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); color: var(--ink);
  transition: transform 320ms var(--ease-out); }
.hd::before { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: 0; transition: opacity var(--t) var(--ease-out); }
.hd.is-solid::before { opacity: 1; }
.hd.is-dark { color: var(--on-dark); }
.hd.is-dark::before { background: var(--teal-2); }
.hd.is-hidden { transform: translateY(-100%); }
.hd-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.brand { font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.hd-nav { display: none; }
.hd-right { display: flex; align-items: center; gap: var(--s-3); }
.hd-tel, .hd-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 0 2px; font-weight: 600; }
.menu-lines { display: grid; gap: 6px; width: 26px; }
.menu-lines span { display: block; height: 2px; background: currentColor; transform-origin: 100% 50%; transition: transform 320ms var(--ease-out); }
.menu-btn[aria-expanded="true"] .menu-lines span:last-child { transform: scaleX(0.55); }
/* the lift indicator */
.lift { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px 0 8px; background: var(--teal-2); color: var(--brass);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hd.is-dark .lift { background: var(--ink); }
.lift-dir { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid currentColor; opacity: 0.3; transition: opacity 200ms linear, transform 200ms var(--ease-out); }
.lift[data-moving] .lift-dir { opacity: 1; }
.lift[data-moving="down"] .lift-dir { transform: rotate(180deg); }
.lift-win { display: block; height: 1em; min-width: 2ch; overflow: hidden; text-align: right; }
.lift-strip { display: block; will-change: transform; }
.lift-strip > span { display: block; height: 1em; }
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .hd-nav { display: flex; gap: var(--s-5); margin-left: auto; margin-right: var(--s-4); }
  .hd-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
  .hd-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 320ms var(--ease-out); }
  .hd-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--brass); }
  .hd-cta { display: inline-flex; }
  .hd.is-dark .hd-cta { background: var(--paper); color: var(--ink); }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .hd-nav a:hover::after { transform: scaleX(1); } }
@media (min-width: 1240px) { .hd-tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; } }

/* ================= Sheets (menu on phones, floor plans everywhere) ================= */
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: transparent; overflow: clip; color: var(--ink); }
.sheet::backdrop { background: transparent; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(6, 18, 20, 0.56); opacity: 0; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto; width: min(100%, 780px); max-height: calc(100svh - 28px); display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px 18px 0 0; transform: translateY(100%); will-change: transform; touch-action: none; }
.sheet-panel::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 50vh; background: inherit; }   /* covers the gap when the spring overshoots */
.sheet-grab { flex: none; height: 28px; display: grid; place-items: center; cursor: grab; }
.sheet-grab::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.28; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2) var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom)); touch-action: pan-y; }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; }
.sheet-close svg { width: 20px; height: 20px; }
.sheet--menu .sheet-panel { background: var(--teal); color: var(--on-dark); }
.floors { display: grid; gap: var(--s-1); padding-top: var(--s-2); }
.floors a { display: flex; align-items: center; gap: var(--s-4); min-height: 68px; text-decoration: none; }
.floor-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--brass); color: var(--brass);
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; transition: background-color 120ms linear, color 120ms linear; }
.floors a[aria-current="page"] .floor-btn, .floors a:active .floor-btn, .floors a.is-called .floor-btn { background: var(--brass); color: var(--teal-2); }
.floor-name { font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(1.25rem, 5.6vw, 2.25rem); line-height: 1; }
.sheet-meta { display: grid; gap: 2px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule-dark); color: var(--on-dark-2); }
.sheet-meta a { color: var(--on-dark); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
/* plan sheet */
.plan-head { display: grid; gap: var(--s-1); padding-right: 44px; }
.plan-title { font-size: var(--fs-h3); line-height: 1; }
.plan-meta { color: var(--ink-2); }
.plan-draw { margin-block: var(--s-4); background: #fff; padding: var(--s-3); }
.plan-draw svg { width: 100%; max-width: 600px; margin-inline: auto; height: auto; }
.plan-draw .wall { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.plan-draw .part { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.plan-draw .glass { fill: none; stroke: var(--brass); stroke-width: 5; }
.plan-draw .terrace { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 5 4; }
.plan-draw text { font-family: var(--font-body); font-size: 16.5px; font-weight: 500; fill: var(--ink); }
.plan-draw text.river { fill: var(--brass-ink); font-weight: 600; }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.plan-foot .cap { padding: 0; flex: 1 1 220px; }
.js .plan-draw [data-room] { opacity: 0; }
.js .plan-draw.is-drawn [data-room] { opacity: 1; transition: opacity 420ms linear; transition-delay: calc(var(--i, 0) * 70ms + 180ms); }

/* ================= Home: hero ================= */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; color: var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
.js .hero-bg { animation: hero-settle 1800ms var(--ease-out) both; animation-delay: var(--intro, 0ms); }
@keyframes hero-settle { from { transform: scale(1.07); } }
/* neutral scrim: keeps the black type legible over the sky and the white text legible at the foot */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(238,241,240,0.9) 0%, rgba(238,241,240,0.62) 30%, rgba(238,241,240,0) 56%, rgba(12,20,22,0) 62%, rgba(12,20,22,0.62) 100%); }
.hero-top { padding-top: calc(var(--hd-h) + env(safe-area-inset-top) + var(--s-4)); }
.hero-title { display: grid; gap: var(--s-2); }
.hero-pre { font-size: clamp(1.125rem, 0.8rem + 2.4vw, 3rem); line-height: 1; }
.mask { display: block; overflow: hidden; }
.mask > span { display: block; }
.fit { display: inline-block; white-space: nowrap; font-size: calc((100vw - 2 * var(--gutter)) / 7); line-height: 0.86; padding-bottom: 0.04em; }
.hero-title .dot { color: var(--brass-ink); }
.hero-bottom { color: var(--on-dark); padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); display: grid; gap: var(--s-4); align-items: end; }
.hero-bottom p { max-width: 34ch; font-size: var(--fs-lead); line-height: 1.45; text-shadow: 0 1px 14px rgba(12,20,22,0.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }
@media (min-width: 1024px) { .hero-bottom { grid-template-columns: 1fr auto; padding-bottom: var(--s-6); } }
.js .hero .mask > span { animation: line-up 1000ms var(--ease-out) both; animation-delay: calc(var(--intro, 0ms) + var(--i, 0) * 90ms + 80ms); }
.js .hero-fade { animation: fade-up 800ms var(--ease-out) both; animation-delay: calc(var(--intro, 0ms) + var(--i, 0) * 90ms + 260ms); }
.first { --intro: 620ms; }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

/* ================= Home: the tower rises ================= */
.rise { position: relative; height: 220svh; }
.rise-stage { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; gap: var(--s-5); padding-top: calc(var(--hd-h) + var(--s-3)); padding-bottom: var(--s-5); }
.rise-copy { display: grid; gap: var(--s-4); }
.rise-line { display: block; font-family: var(--font-display); font-stretch: 110%; font-variation-settings: "wdth" 110; font-weight: 500; letter-spacing: -0.015em;
  font-size: clamp(1.3125rem, 0.9rem + 2vw, 2.75rem); line-height: 1.15; opacity: 0.16; transition: opacity 400ms var(--ease-out); }
.rise-line.is-lit { opacity: 1; }
.rise-note { color: var(--ink-2); max-width: 44ch; }
.rise-frame { --ar: 3 / 4; justify-self: center; height: min(44svh, 760px); }
.rise-frame img { transform: translateY(var(--rise-y, 0%)) scale(var(--rise-s, 1)); transform-origin: 50% 100%; will-change: transform; }
.js .rise-frame img { --rise-y: 90%; --rise-s: 1.12; }
@media (min-width: 768px) { .rise-frame { height: min(52svh, 760px); } }
@media (min-width: 1024px) {
  .rise-stage { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: var(--s-7); }
  .rise-frame { height: min(78svh, 820px); justify-self: end; }
}

/* ================= Section heads ================= */
.sec { padding-block: var(--section); }
.sec-head { display: grid; gap: var(--s-4); margin-bottom: clamp(40px, 6vw, 96px); }
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .sec-head .h2 { --h2-col: calc((min(100vw, 1440px) - 2 * var(--gutter) - var(--s-4)) * 7 / 12); }
}
/* page heads on inner pages */
.phead { padding-top: calc(var(--hd-h) + env(safe-area-inset-top) + clamp(40px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 88px); }
.phead .sec-head { margin-bottom: 0; }

/* ================= Home: three homes, as a table ================= */
.rows { border-top: 1.5px solid var(--ink); }
.row { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) 24px; column-gap: var(--s-3); align-items: center; padding-block: var(--s-3); border-bottom: 1px solid var(--rule); text-decoration: none; }
.row .ph { --ar: 4 / 3; }
.row-name { font-size: 1.125rem; line-height: 1; white-space: nowrap; }
.row-facts { display: block; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.4; margin-top: 6px; }
.row-price { display: block; font-size: 1.125rem; margin-top: 6px; white-space: nowrap; }
.row-price small { font-family: var(--font-body); font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); }
.row .arrow { justify-self: end; }
.row-floors { display: none; }
@media (min-width: 768px) {
  .row { grid-template-columns: 200px minmax(0, 1fr) 28px; column-gap: var(--s-5); padding-block: var(--s-4); }
  .row-name { font-size: 1.75rem; }
  .row-facts { font-size: var(--fs-body); }
  .row-price { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  .row { grid-template-columns: 200px max-content minmax(0, 1fr) auto 28px; }
  .row-main { display: contents; }
  .row-name { font-size: clamp(1.5rem, 2.6vw, 2.75rem); }
  .row-facts, .row-price { margin: 0; }
  .row-price { order: 4; }
  .row .arrow { order: 5; }
}
@media (min-width: 1280px) {
  .row { grid-template-columns: 200px max-content minmax(0, 1fr) minmax(0, 1fr) auto 28px; }
  .row-floors { display: block; order: 3; color: var(--ink-2); }
}
@media (hover: hover) and (pointer: fine) {
  .row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; transition: transform 480ms var(--ease-out); }
  .row:hover::after { transform: scaleX(1); }
  .row:hover .arrow { transform: translateX(6px); }
  .row .ph img { transition: transform 700ms var(--ease-out); }
  .row:hover .ph img { transform: scale(1.05); }
}
.rows-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding-top: var(--s-5); }

/* ================= Home: figures ================= */
.figures-statement { font-family: var(--font-display); font-stretch: 110%; font-variation-settings: "wdth" 110; font-weight: 400; letter-spacing: -0.015em; font-size: clamp(1.5rem, 1rem + 2.4vw, 3.25rem); line-height: 1.2; max-width: 24ch; }
.figures-statement em { font-style: normal; color: var(--brass); }
.figures-row { display: grid; margin-top: clamp(48px, 7vw, 112px); border-top: 1px solid var(--rule-dark); }
.figure { display: grid; gap: var(--s-2); padding-block: var(--s-5); border-bottom: 1px solid var(--rule-dark); }
.figure-num { display: flex; align-items: baseline; font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 300; font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.figure-num .unit { font-size: 0.4em; font-weight: 500; margin-left: 0.15em; color: var(--brass); }
.figure-label { color: var(--on-dark-2); max-width: 28ch; }
@media (min-width: 768px) {
  .figures-row { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-dark); }
  .figure { border-bottom: 0; padding-right: var(--s-4); }
  .figure + .figure { border-left: 1px solid var(--rule-dark); padding-left: var(--s-4); }
}
/* rolling digits */
.odo, .finder-num.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.odo-col { display: block; height: 1em; }
.odo-strip { display: block; will-change: transform; }
.odo-strip > span { display: block; height: 1em; text-align: center; }

/* ================= Home: amenities band ================= */
.band { display: grid; gap: var(--s-5); }
.band-media { margin-inline: calc(-1 * var(--gutter)); }
.band-media .ph { --ar: 4 / 5; }
.band-copy { display: grid; gap: var(--s-4); justify-items: start; order: -1; }
@media (min-width: 768px) { .band-media .ph { --ar: 16 / 10; } }
@media (min-width: 1024px) {
  .band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: end; }
  .band-media { margin-inline: 0; }
  .band-copy { order: 0; }
  .band .h2 { --h2-col: calc((min(100vw, 1440px) - 2 * var(--gutter) - var(--s-7)) * 5 / 12); }
}

/* ================= Vista: full-bleed skyline ================= */
.vista { margin: 0; }
.vista .ph { --ar: 1 / 1; }
@media (min-width: 768px) { .vista .ph { --ar: 2.2 / 1; } }
.vista-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); padding-top: var(--s-3); }
.vista-foot .cap { padding: 0; }

/* ================= Home: films, a strip you can throw ================= */
.films { position: relative; background: var(--teal-2); overflow: hidden; }
.films-ctrls { display: flex; gap: var(--s-2); align-items: center; justify-self: start; }
@media (min-width: 1024px) { .films-ctrls { justify-self: end; } }
.ctrl { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; min-width: 44px; padding: 0 var(--s-3); box-shadow: inset 0 0 0 1px var(--rule-dark); color: var(--on-dark); font-weight: 600; }
.ctrl svg { width: 18px; height: 18px; }
.ctrl--icon { padding: 0; }
.reel { overflow-x: auto; scrollbar-width: none; padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); padding-right: var(--gutter); }
.reel::-webkit-scrollbar { display: none; }
.reel.is-drag { overflow: visible; touch-action: pan-y; }
.reel.has-cursor, .reel.has-cursor * { cursor: none; }
.reel-track { display: flex; gap: var(--s-2); width: max-content; will-change: transform; }
.reel-tile { --h: min(360px, 52svh); flex: none; width: calc(var(--h) * var(--w, 1.6)); }
.reel-tile .ph { aspect-ratio: auto; height: var(--h); background: #123438; }
.reel-tile .ph::after { opacity: 0.12; }
.reel-cap { display: block; padding-top: var(--s-2); color: var(--on-dark-2); font-size: var(--fs-small); }
@media (min-width: 768px) { .reel-tile { --h: min(460px, 56svh); } }
@media (min-width: 1024px) { .reel-tile { --h: min(540px, 60svh); } .reel-track { gap: var(--s-3); } }
.reel-bar { position: relative; height: 2px; margin-top: var(--s-5); background: var(--rule-dark); }
.reel-bar span { position: absolute; inset: 0; background: var(--brass); transform: scaleX(0.16); transform-origin: 0 50%; }
.drag-cursor { position: fixed; left: 0; top: 0; z-index: 80; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--brass); color: var(--teal-2); display: grid; place-items: center;
  font-weight: 600; font-size: var(--fs-small); pointer-events: none; opacity: 0; transform: scale(0.6); transition: opacity 180ms linear; }
.drag-cursor.is-on { opacity: 1; }

/* ================= Ask: the closing call ================= */
.ask { background: var(--paper-2); }
.ask-in { display: grid; gap: var(--s-5); }
.ask-copy { display: grid; gap: var(--s-4); justify-items: start; align-content: end; }
.ask-copy p { color: var(--ink-2); max-width: 40ch; }
.phone-big { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1024px) { .ask-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } .ask .h2 { --h2-col: calc((min(100vw, 1440px) - 2 * var(--gutter) - var(--s-5)) * 7 / 12); } }

/* ================= Residences: find your floor ================= */
.finder { background: var(--teal); color: var(--on-dark); padding-block: clamp(48px, 7vw, 96px); overflow: hidden; }
.finder-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: end; }
.finder-label { display: block; color: var(--on-dark-2); }
.finder-num { display: block; font-family: var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 900; letter-spacing: -0.03em; font-size: clamp(6rem, 30vw, 13rem); line-height: 0.82; font-variant-numeric: tabular-nums; margin-top: var(--s-2); }
.ruler, .finder-steps { display: none; }
.js .ruler { display: block; }
.js .finder-steps { display: flex; }
.finder-title { font-size: var(--fs-h3); line-height: 1; margin-bottom: var(--s-5); }
.tower { display: flex; flex-direction: column-reverse; align-items: center; gap: 1px; width: 56px; }
.tower i { display: block; height: 3px; width: var(--w, 100%); background: currentColor; opacity: 0.26; }
.tower i.is-range { opacity: 0.62; }
.tower i.is-on { opacity: 1; background: var(--brass); }
@media (min-width: 768px) { .tower { width: 88px; gap: 2px; } .tower i { height: 5px; } }
.ruler { position: relative; overflow: hidden; margin: var(--s-5) calc(-1 * var(--gutter)) 0; height: 76px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline-offset: 6px; }
.ruler:active { cursor: grabbing; }
.ruler-needle { position: absolute; left: 50%; top: 0; width: 2px; height: 46px; margin-left: -1px; background: var(--brass); z-index: 2; pointer-events: none; }
.ruler-strip { position: absolute; left: 50%; top: 0; display: flex; height: 100%; will-change: transform; }
.tick { position: relative; flex: none; width: var(--step, 30px); margin-left: calc(var(--step, 30px) / -2); margin-right: calc(var(--step, 30px) / 2); height: 100%; }
.tick::before { content: ""; position: absolute; left: 50%; top: 12px; width: 1.5px; height: 18px; margin-left: -0.75px; background: currentColor; opacity: 0.45; }
.tick.is-five::before { top: 4px; height: 30px; opacity: 0.9; }
.tick span { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.finder-steps { justify-content: space-between; margin-top: var(--s-2); }
.readout { margin-top: var(--s-5); border-top: 1px solid var(--rule-dark); min-height: 200px; }
.readout-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-3); align-items: baseline; padding-block: var(--s-3); border-bottom: 1px solid var(--rule-dark); text-decoration: none; min-height: 44px; }
.readout-row b { font-family: var(--font-display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 700; font-size: 1.25rem; }
.readout-row span { color: var(--on-dark-2); }
.readout-row .num { color: var(--on-dark); white-space: nowrap; }
.readout-row em { font-style: normal; grid-column: 1 / -1; color: var(--on-dark-2); font-size: var(--fs-small); }
.js .readout.is-swap .readout-row { animation: fade-up 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@media (min-width: 1024px) {
  .finder-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: end; }
  .ruler { margin-inline: 0; }
  .readout { margin-top: 0; }
}

/* ================= Residences: the three homes ================= */
.home { display: grid; gap: var(--s-5); padding-block: clamp(56px, 8vw, 120px); }
.home-media { margin-inline: calc(-1 * var(--gutter)); }
.home-body { display: grid; gap: var(--s-4); max-width: 540px; }
.home-name { font-size: min(var(--fs-h2), calc((100vw - 2 * var(--gutter)) / 10.4)); line-height: 0.92; white-space: nowrap; }
.home-body > p { color: var(--ink-2); }
.specs { display: grid; border-top: 1.5px solid var(--ink); }
.spec { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: 14px; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--ink-2); }
.spec dd { font-weight: 600; text-align: right; }
.price { display: grid; }
.price-from { font-size: var(--fs-small); color: var(--ink-2); }
.price-num { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; white-space: nowrap; }
.price-num small { font-family: var(--font-body); font-size: 0.4em; font-weight: 600; letter-spacing: 0.02em; margin-left: 0.4em; color: var(--ink-2); }
.home-actions { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
@media (min-width: 768px) { .home-media { margin-inline: 0; } }
@media (min-width: 1024px) {
  .home { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
  .home:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .home:nth-of-type(even) .home-media { order: 2; }
  .home-name { font-size: min(3.75rem, calc((min(100vw, 1440px) - 2 * var(--gutter) - var(--s-8)) * 5 / 12 / 10.6)); white-space: nowrap; }
}

/* ================= Residences: finishes ================= */
.finish { display: grid; gap: var(--s-5); }
.finish-a { margin-inline: calc(-1 * var(--gutter)); }
.finish-b { width: 62%; justify-self: end; margin-top: calc(-1 * var(--s-7)); position: relative; z-index: 1; }
.finish-b .ph { --ar: 4 / 5; }
.finish-copy { display: grid; gap: var(--s-4); }
.statement { font-family: var(--font-display); font-stretch: 110%; font-variation-settings: "wdth" 110; font-weight: 500; letter-spacing: -0.015em; font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); line-height: 1.2; max-width: 22ch; }
@media (min-width: 1024px) {
  .finish { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-4); align-items: end; }
  .finish-a { grid-column: 1 / 8; margin-inline: 0; }
  .finish-b { grid-column: 9 / 13; width: auto; justify-self: stretch; margin: 0 0 var(--s-8); }
  .finish-copy { grid-column: 1 / 8; padding-top: var(--s-5); }
}

/* ================= Amenities: the tower, floor by floor ================= */
.levels { position: relative; padding-bottom: var(--section); }
.level { display: grid; gap: var(--s-4); padding-block: clamp(40px, 6vw, 88px); border-top: 1.5px solid var(--ink); }
.level-at { font-size: var(--fs-h3); line-height: 1; }
.level-media { margin-inline: calc(-1 * var(--gutter)); }
.level-items { display: grid; }
.amen { display: grid; gap: 2px; padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
.amen:first-child { padding-top: 0; }
.amen-name { font-family: var(--font-display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 700; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); line-height: 1.2; }
.amen-note { color: var(--ink-2); max-width: 46ch; }
.level--pool .ph { --ar: 4 / 5; }
.level--river { border-top: 0; }
.level--river .level-in { background: var(--teal); color: var(--on-dark); margin-inline: calc(-1 * var(--gutter)); padding: var(--s-6) var(--gutter); display: grid; gap: var(--s-5); }
.level--river .amen { border-color: var(--rule-dark); }
.level--river .amen-note { color: var(--on-dark-2); }
.level--river .ph { --ar: 16 / 10; }
.rail { display: none; }
@media (min-width: 768px) {
  .level-media { margin-inline: 0; }
  .level--pool .ph { --ar: 16 / 10; }
  .level--river .level-in { margin-inline: 0; padding: var(--s-7); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
@media (min-width: 1024px) {
  .levels-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-7); }
  .rail { display: block; }
  .rail-in { position: sticky; top: calc(var(--hd-h) + var(--s-6)); display: grid; justify-items: center; gap: var(--s-3); color: var(--ink); }
  .rail .tower { width: 72px; gap: 2px; }
  .rail .tower i { height: 6px; }
  .rail-at { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); text-align: center; min-height: 2.6em; }
  .level { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s-6); align-items: start; }
  .level-media { grid-column: 2; }
  .level-items { grid-column: 2; }
  .level--river .level-in { grid-column: 1 / -1; }
}

/* ================= Neighbourhood: the map and the times ================= */
.near { display: grid; gap: var(--s-6); }
.near-copy { display: grid; gap: var(--s-4); align-content: start; }
.near-copy p { color: var(--ink-2); max-width: 52ch; }
.near-title { font-size: var(--fs-h3); line-height: 1; }
.map { position: relative; background: var(--paper-2); margin-inline: calc(-1 * var(--gutter)); }
.map-l { position: absolute; font-size: 0.8125rem; font-weight: 600; line-height: 1.1; white-space: nowrap; pointer-events: none; transition: color 160ms linear; }
.map-l.l-c { transform: translate(-50%, calc(-100% - 26px)); }
.map-l.l-r { transform: translate(14px, -50%); }
.map-l.l-l { transform: translate(calc(-100% - 14px), -50%); }
.map-l.l-b { transform: translate(-8px, 14px); }
.map-l.quiet { font-weight: 500; color: var(--ink-2); }
.map-l.big { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.04em; color: var(--ink-2); opacity: 0.6; font-size: 0.9375rem; }
.map-l.is-on { color: var(--brass-ink); }
.map-l.wide { display: none; }
@media (min-width: 768px) { .map-l { font-size: 0.9375rem; } .map-l.big { font-size: 1.25rem; } .map-l.wide { display: block; } }
.map svg { width: 100%; height: auto; }
.map .water { fill: #c9d6d6; }
.map .land-far { fill: #d8e0df; }
.map .road { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; }
.map .trail { fill: none; stroke: var(--teal); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; transition: stroke 200ms linear; }
.map .trail.is-on { stroke: var(--brass-ink); stroke-width: 5; }
.map .cross { fill: none; stroke: var(--ink); stroke-width: 4; }
.map .cross--tunnel { stroke-dasharray: 9 8; }
.map text { font-family: var(--font-body); font-size: 15px; font-weight: 600; fill: var(--ink); }
.map text.quiet { font-weight: 500; fill: var(--ink-2); }
.map text.big { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; fill: var(--ink-2); opacity: 0.55; }
.map .pin circle { fill: var(--ink); }
.map .pin .halo { fill: var(--brass); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0.4); transition: transform 520ms var(--spring), opacity 200ms linear; }
.map .pin.is-on .halo { opacity: 0.5; transform: scale(1); }
.map .pin.is-on circle:not(.halo) { fill: var(--brass-ink); }
.map .here rect { fill: var(--brass); stroke: var(--ink); stroke-width: 2; }
.map .ray { stroke: var(--brass-ink); stroke-width: 2.5; opacity: 0; transition: opacity 240ms linear; }
.map .ray.is-on { opacity: 1; }
.times { display: grid; border-top: 1.5px solid var(--ink); }
.place { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; width: 100%; min-height: 56px; padding-block: var(--s-2); border-bottom: 1px solid var(--rule); text-align: left; }
.place::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color 160ms linear, transform 520ms var(--spring); }
.place[aria-pressed="true"]::before { background: var(--brass); box-shadow: inset 0 0 0 1.5px var(--brass-ink); transform: scale(1.3); }
.place b { font-weight: 600; }
.place span { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.place[aria-pressed="true"] span { color: var(--ink); font-weight: 600; }
@media (min-width: 768px) { .map { margin-inline: 0; } }
@media (min-width: 1024px) {
  .near { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
  .near-side { display: grid; gap: var(--s-6); }
}
.bridge { display: grid; gap: var(--s-2); }
.bridge-media { margin-inline: calc(-1 * var(--gutter)); }
@media (min-width: 768px) { .bridge-media { margin-inline: 0; } }
@media (min-width: 1024px) { .bridge { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-4); } .bridge-media, .bridge .cap { grid-column: 4 / 13; } }

/* ================= Inquire ================= */
.inq { padding-top: calc(var(--hd-h) + env(safe-area-inset-top) + clamp(40px, 9vw, 120px)); padding-bottom: var(--section); }
.inq-grid { display: grid; gap: var(--s-6); }
.inq-aside { display: grid; gap: var(--s-4); align-content: start; }
.inq-aside p { color: var(--ink-2); max-width: 40ch; }
.inq-aside .ph { --ar: 4 / 5; margin-top: var(--s-3); }
.demo-note { font-size: var(--fs-small); color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: var(--s-3); }
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--s-2); position: relative; }
.field label { font-weight: 600; }
.req { color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; padding: 14px var(--s-3); background: #fff; border: 1px solid #8a9799; border-radius: 0; font-size: 1.0625rem; line-height: 1.5;
  transition: border-color var(--t-fast) var(--ease-out); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1416' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 48px; }
.field textarea { min-height: 136px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.hint { font-size: var(--fs-small); color: var(--ink-2); }
.err { font-size: var(--fs-small); color: var(--error); font-weight: 600; }
.err::before { content: "! "; }
.summary { border: 2px solid var(--error); padding: var(--s-4); display: grid; gap: var(--s-2); }
.summary h2 { font-size: 1.0625rem; }
.summary ul { padding-left: 1.2em; list-style: disc; }
.summary a { color: var(--error); font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); align-items: center; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-4); background: var(--teal); color: var(--on-dark); transform-origin: 50% 100%; }
.success h2 { font-size: var(--fs-h3); line-height: 1.05; }
.success p { color: var(--on-dark-2); max-width: 44ch; }
.success dl { display: grid; border-top: 1px solid var(--rule-dark); }
.success dl div { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: 12px; border-bottom: 1px solid var(--rule-dark); }
.success dt { color: var(--on-dark-2); }
.success dd { font-weight: 600; text-align: right; }
.success .btn { justify-self: start; }
@media (min-width: 768px) { .success { padding: var(--s-7) var(--s-6); } }
@media (min-width: 1024px) {
  .inq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .inq-aside .h2 { --h2-col: calc((min(100vw, 1440px) - 2 * var(--gutter) - var(--s-8)) * 5 / 12); }
  .inq-aside { position: sticky; top: calc(var(--hd-h) + var(--s-5)); }
}

/* ================= Footer ================= */
.ft { background: var(--ink); color: var(--on-dark); padding-top: var(--section); padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); }
.ft-cols { display: grid; gap: var(--s-5); padding-bottom: var(--s-7); }
.ft-col { display: grid; gap: 2px; align-content: start; }
.ft-col h2 { font-size: var(--fs-small); font-weight: 600; color: var(--on-dark-2); margin-bottom: var(--s-1); }
.ft-col a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; justify-self: start; }
@media (min-width: 768px) { .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (hover: hover) and (pointer: fine) { .ft-col a { transition: transform 320ms var(--ease-out), color 160ms linear; } .ft-col a:hover { transform: translateX(4px); color: var(--brass); } }
.ft-word { border-top: 1px solid rgba(233,239,238,0.18); padding-top: var(--s-5); overflow: hidden; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); padding-top: var(--s-5); color: var(--on-dark-2); font-size: var(--fs-small); }
.ft-legal a { color: inherit; }
.ft-back { text-decoration: underline; text-underline-offset: .22em; color: var(--brass); margin-left: .6em; display: inline-block; padding: 12px 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ================= Reduced motion: keep the fades, drop the travel ================= */
@media (prefers-reduced-motion: reduce) {
  .first .loader { animation: loader-fade 300ms 300ms linear forwards; }
  .loader-shaft, .loader-floor span { animation: none; }
  .js .hero-bg { animation: none; }
  .js .hero .mask > span, .js .hero-fade { animation: fade-in 400ms linear both; }
  .js [data-rise] { transform: none; }
  .js [data-rise].is-in { transition: opacity 400ms linear; }
  .js .ph[data-unveil]::before { transition: opacity 400ms linear; }
  .js .ph[data-unveil].is-in::before { transform: none; opacity: 0; }
  .rise { height: auto; }
  .rise-stage { position: static; height: auto; padding-block: var(--section); }
  .js .rise-frame img { --rise-y: 0%; --rise-s: 1; }
  .rise-line { opacity: 1; }
  .btn, .press, .link::after, .arrow, .hd, .place::before, .map .pin .halo { transition: opacity 200ms linear, background-color 200ms linear; }
  .btn:active, .press:active { transform: none; }
  .hd.is-hidden { transform: none; }
  .js.leave .page, .js.arrive .page { transform: none !important; animation: none; }
  .js .readout.is-swap .readout-row, .success { animation: fade-in 300ms linear both; }
  .spinner { animation-duration: 1.6s; }
  .sheet[open] .sheet-panel, .sheet[open] .sheet-scrim { animation: fade-in 200ms linear both; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes loader-fade { to { opacity: 0; visibility: hidden; } }
