/* 1 Marlborough V2 · presented by Daniel Kim
   Design language inherited from the developer site (Plantin Light + Inter, cream/ink, arch mark).
   Signature shape: the arch. One ink passage (the archive). Rose is reserved for state. */

@font-face { font-family: "Plantin"; src: url("../fonts/plantin-light.6a8757bc3c6a.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Plantin"; src: url("../fonts/plantin-light-italic.67f8e484d907.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.97748b33aa0f.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.28b0a0925b0c.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --cream: #f2efea;
  --cream-deep: #e8e3db;
  --ink: #1a1818;
  --ink-soft: #2e2e2e;
  --grey: #5f6063;          /* #6d6e71 darkened a step so small text clears 4.5:1 on cream */
  --rule: rgba(26, 24, 24, 0.16);
  --rule-strong: rgba(26, 24, 24, 0.54);  /* control boundaries: 3.2:1 on cream */
  --rose: #c0748f;
  --rose-wash: rgba(192, 116, 143, 0.16);
  --rose-ink: #9e4e6e;       /* focus rings and small rose text: 5:1 on cream */
  --on-ink: #f2efea;
  --on-ink-muted: rgba(242, 239, 234, 0.72);

  --serif: "Plantin", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.6rem, 1.55rem + 3.3vw, 4.6rem);
  --fs-h2: clamp(2.1rem, 1.45rem + 2.2vw, 3.4rem);
  --fs-h3: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  --fs-lead: clamp(1.14rem, 1.05rem + 0.35vw, 1.34rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.78rem;

  --gutter: clamp(1rem, 0.5rem + 2.4vw, 3rem);
  --max: 1320px;
  --section: clamp(5rem, 3rem + 7vw, 9.5rem);
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--rose);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--rose-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: rgba(26, 24, 24, 0.35) transparent; scrollbar-width: thin; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; text-wrap: balance; }
h1, .display { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; padding-bottom: 0.06em; }
.lead { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.5; max-width: 38rem; margin: 1.4rem 0 0; text-wrap: pretty; }
.body { max-width: 34rem; margin: 1rem 0 0; color: var(--ink-soft); text-wrap: pretty; }
.small { font-size: var(--fs-small); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: inherit;
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
  .btn--solid:hover { background: var(--ink-soft); }
  .btn--light:hover { background: transparent; color: var(--cream); border-color: var(--cream); }
  .on-ink .btn:not(.btn--light):hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
}
.btn[disabled] { opacity: 0.5; cursor: progress; }
.link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; background: none; border: 0; padding: 0.5rem 0; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 calc(100% - 4px); background-repeat: no-repeat;
  transition: background-size 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { background-size: 0% 1px; background-position: 100% calc(100% - 4px); }
  .link:hover .i { transform: translateX(3px); }
}
.link .i { transition: transform 200ms var(--ease-out); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: var(--cream);
  transition: background-color 320ms ease, color 320ms ease, box-shadow 320ms ease;
}
.nav::before { /* legibility over the hero, fades once the bar goes solid */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(26, 24, 24, 0.5), rgba(26, 24, 24, 0));
  transition: opacity 320ms ease;
}
.nav.is-solid {
  color: var(--ink);
  background: rgba(242, 239, 234, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--rule);
}
.nav.is-solid::before { opacity: 0; }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; width: 168px; aspect-ratio: 247.531 / 37.986; flex: none; color: inherit; }
.mark { display: block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.brand .mark { width: 100%; height: 100%; --src: url("../logos/wordmark.svg"); }
.nav__inner > nav { margin-inline: auto; }
.nav__links { display: flex; gap: clamp(1rem, 1.6vw, 1.9rem); margin: 0; padding: 0; list-style: none; }
.nav__links a {
  position: relative; display: block; padding: 0.5rem 0; text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.86;
  transition: opacity 200ms ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px; background: var(--rose);
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out);
}
.nav__links a[aria-current="true"] { opacity: 1; }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav.is-solid .nav__links a::after { background: var(--rose-ink); }
@media (hover: hover) { .nav__links a:hover { opacity: 1; } }
.nav .btn { min-height: 42px; padding: 0 1.2rem; border-color: currentColor; }
.nav__menu { display: none; background: none; border: 0; padding: 0.5rem; margin-left: auto; cursor: pointer; color: inherit; }
.nav__menu .i { width: 28px; height: 28px; }
@media (max-width: 1180px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
}

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; padding: 1rem var(--gutter) 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms;
}
.sheet.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out); }
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--nav-h) - 1rem); }
.sheet__close { background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.sheet__close .i { width: 28px; height: 28px; }
.sheet ul { list-style: none; margin: 2rem 0 auto; padding: 0; }
.sheet li a { display: block; padding: 0.55rem 0; font-family: var(--serif); font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.1; text-decoration: none; }
.sheet__foot { display: grid; gap: 0.75rem; }

/* sticky mobile action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  grid-template-columns: auto 1fr; gap: 0.6rem; padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(242, 239, 234, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--rule);
  transform: translateY(110%); transition: transform 320ms var(--ease-out);
}
.actionbar.is-shown { transform: none; }
.actionbar .btn { min-height: 46px; }
.actionbar__call { gap: 0.5rem; padding: 0 1.15rem 0 1rem; }
.actionbar__call .i { width: 1.05rem; height: 1.05rem; }
@media (max-width: 760px) { .actionbar { display: grid; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--cream); overflow: hidden; background: var(--ink); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 42%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(26, 24, 24, 0.78) 0%, rgba(26, 24, 24, 0.42) 32%, rgba(26, 24, 24, 0) 62%),
    linear-gradient(to right, rgba(26, 24, 24, 0.45) 0%, rgba(26, 24, 24, 0.12) 50%, rgba(26, 24, 24, 0) 70%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__copy { padding-bottom: clamp(3rem, 9vh, 6.5rem); padding-top: calc(var(--nav-h) + 3rem); }
.hero h1 { max-width: 34ch; font-size: clamp(2.5rem, 1.5rem + 3vw, 4.25rem); }
.hero .lead { color: rgba(242, 239, 234, 0.9); max-width: 30rem; margin-top: 1.2rem; }
@media (max-width: 560px) { .hero h1 { font-size: 2.15rem; line-height: 1.08; } }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* the brief form: an ivory card in the hero on wide screens, a cream panel straight after the first screen on phones */
.brief { color: var(--ink); }
.brief__title { font-size: clamp(1.75rem, 1.45rem + 0.9vw, 2.15rem); line-height: 1.1; }
.brief__sub { margin: 0.6rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); max-width: 30rem; text-wrap: pretty; }
.brief__note { flex-basis: 100%; margin: 0; font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--ink-soft); }
.form--brief { gap: 1.1rem 1.25rem; margin-top: 1.4rem; }
.form--brief .field input:not([type="checkbox"]):not([type="radio"]), .form--brief .field select { min-height: 44px; padding: 0.4rem 0; font-size: 1rem; }
.form--brief .field { gap: 0.2rem; }
.form--brief .field > label { font-size: var(--fs-micro); letter-spacing: 0.02em; }
.form--brief .err:empty { display: none; }
.form--brief .consent { font-size: 0.72rem; }
.form--brief .form__submit { gap: 0.7rem; margin-top: 0.2rem; }
.form--brief .form__submit .btn { flex: 1 1 100%; }
.form--brief .form__status:empty { display: none; }
/* "or call": a quiet serif line under the submit buttons. The number is a hairline link; its tap area grows
   to about 44px through an invisible overlay, so the line keeps its rhythm */
.call-line { flex-basis: 100%; margin: 0; font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--ink-soft); }
.call-line a {
  position: relative; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule-strong); text-underline-offset: 0.24em;
  transition: text-decoration-color 200ms ease;
}
.call-line a::after { content: ""; position: absolute; inset: -0.8rem -0.4rem; }
@media (hover: hover) { .call-line a:hover { text-decoration-color: currentColor; } }

@media (min-width: 1000px) {
  .hero__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); align-items: end;
    column-gap: clamp(3rem, 6vw, 7rem);
    padding-top: calc(var(--nav-h) + 2rem); padding-bottom: clamp(2.5rem, 7vh, 5rem);
  }
  .hero__copy { padding: 0 0 0.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 0.9rem + 3.2vw, 4.1rem); }
  .brief {
    padding: clamp(1.6rem, 2.2vw, 2.25rem);
    background: rgba(242, 239, 234, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 40px 80px -40px rgba(10, 8, 8, 0.55);
  }
  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .brief { background: rgba(242, 239, 234, 0.97); } }
}
@media (max-width: 999.98px) {
  .hero { display: block; min-height: 0; }
  /* the image and its shade fill the first screen only; the brief panel follows on cream */
  .hero__media, .hero::after { bottom: auto; height: 100vh; height: 100svh; }
  .hero__copy { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .brief {
    margin-inline: calc(var(--gutter) * -1); padding: clamp(2.75rem, 9vw, 4rem) var(--gutter) clamp(3rem, 10vw, 4.5rem);
    background: var(--cream-deep);
  }
  .brief > * { max-width: 36rem; }
}

/* the brief form's choice of request: two quiet words, not a button group */
.intent { display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.intent label { position: relative; }
.intent input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.intent span { display: inline-block; padding: 0.55rem 0 0.35rem; font-size: var(--fs-small); color: var(--grey); border-bottom: 1px solid transparent; transition: color 200ms ease, border-color 200ms ease; }
.intent input:checked + span { color: var(--ink); border-bottom-color: var(--ink); }
.intent input:focus-visible + span { outline: 2px solid var(--rose-ink); outline-offset: 3px; }
@media (hover: hover) { .intent label:hover span { color: var(--ink); } }

/* ---------- ledger ---------- */
.ledger { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.ledger dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.ledger dl > div { padding: 0.25rem clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--rule); }
.ledger dl > div:first-child { border-left: 0; padding-left: 0; }
.ledger dt { font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.015em; }
.ledger dd { margin: 0.55rem 0 0; font-size: var(--fs-small); color: var(--grey); max-width: 16rem; }
@media (max-width: 900px) {
  .ledger dl { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .ledger dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 360px) {
  .ledger dl { grid-template-columns: 1fr; }
  .ledger dl > div { border-left: 0; padding: 0.25rem 0; }
}

/* ---------- arch frames ---------- */
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; background: var(--cream-deep); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.on-ink .arch { background: #262323; }

/* reveal grammar: arches rise open, copy lifts. Content stays visible without JS. */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* the clip lives on the image, never on the observed frame: a fully clipped target reports zero
   intersection in Chromium, so the reveal would never fire */
.js .arch[data-reveal] { opacity: 1; transform: none; }
.js .arch[data-reveal] img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1100ms var(--ease-out), transform 1600ms var(--ease-out); }
.js .arch[data-reveal].is-in img { clip-path: inset(0 0 0 0); transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: 90ms; }
.js [data-reveal][data-delay="2"] { transition-delay: 180ms; }
.js [data-reveal][data-delay="3"] { transition-delay: 270ms; }

/* ---------- archive (the one ink passage) ---------- */
.on-ink { background: var(--ink); color: var(--on-ink); }
.archive { padding: var(--section) 0; }
.archive__head { display: grid; gap: 1rem; max-width: 46rem; }
.archive__head .lead { color: var(--on-ink-muted); }
.timeline { list-style: none; padding: 0; margin: clamp(3rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 1.55rem; height: 1px; background: rgba(242, 239, 234, 0.22); }
.timeline li { position: relative; display: grid; align-content: start; gap: 0.9rem; }
.timeline li .year { order: 0; } .timeline li .arch { order: 1; margin: 0.4rem 0 0.6rem; } .timeline li h3 { order: 2; } .timeline li p { order: 3; }
.timeline .year { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--on-ink); background: var(--ink); justify-self: start; padding-right: 0.9rem; position: relative; }
.timeline h3 { font-size: 1.35rem; margin-top: 0.3rem; }
.timeline p { margin: 0; font-size: 0.95rem; color: var(--on-ink-muted); max-width: 30ch; }
.timeline .arch { aspect-ratio: 4 / 5; }
.timeline .arch img { filter: grayscale(1) contrast(1.05); }
.timeline li:last-child .arch img { filter: none; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } .timeline .arch { max-width: 22rem; } }

/* ---------- building section (signature) ---------- */
.building__grid { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.tower-col { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.tower { display: grid; gap: 0; }
.tower__crown { height: 64px; border: 1px solid var(--rule-strong); border-bottom: 0; border-radius: 999px 999px 0 0; width: 58%; justify-self: center; }
.zone {
  display: grid; gap: 0; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; text-align: left;
  border-left: 1px solid var(--rule-strong); border-right: 1px solid var(--rule-strong);
  transition: background-color 220ms ease;
}
.zone:last-child { border-bottom: 1px solid var(--rule-strong); }
.floor { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 0.85rem; border-top: 1px solid var(--rule); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--grey); }
.zone .floor:first-child { border-top-color: var(--rule-strong); }
.floor b { font-weight: 500; color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; }
.zone--single .floor { height: 44px; }
.zone[aria-selected="true"] { background: var(--ink); }
.zone[aria-selected="true"] .floor { color: rgba(242, 239, 234, 0.7); border-top-color: rgba(242, 239, 234, 0.14); }
.zone[aria-selected="true"] .floor b { color: var(--cream); }
@media (hover: hover) { .zone:not([aria-selected="true"]):hover { background: rgba(26, 24, 24, 0.045); } }
.tower__note { margin-top: 0.9rem; font-size: var(--fs-micro); color: var(--grey); }
.levels { position: relative; }
.level { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.level[hidden] { display: none; }
.level.is-entering { animation: level-in 360ms var(--ease-out) both; }
@keyframes level-in { from { opacity: 0; transform: translateY(8px); } }
.level__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-deep); }
.level__media.arch { border-radius: 999px 999px 0 0; }
.level__media img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 1.6rem 0 1.8rem; display: grid; gap: 0.7rem; }
.facts li { font-size: 0.95rem; padding-top: 0.7rem; border-top: 1px solid var(--rule); }
.facts { gap: 0.7rem; }
@media (max-width: 980px) {
  .building__grid { grid-template-columns: 1fr; }
  .tower-col { position: static; max-width: 420px; }
  .level { grid-template-columns: 1fr; }
  .level__media { aspect-ratio: 4 / 5; max-width: 420px; }
}

/* ---------- residences ---------- */
.plan { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.plan__sheet { margin: 0; }
.plan__sheet img { width: 100%; mix-blend-mode: multiply; }
.plan__meta h3 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin: 1.8rem 0 0; }
.spec dt { font-size: var(--fs-micro); color: var(--grey); letter-spacing: 0.04em; }
.spec dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.rooms { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 2rem; font-size: 0.92rem; }
.rooms div { display: flex; justify-content: space-between; gap: 1rem; }
.rooms span:last-child { color: var(--grey); }
.plan__keys { display: grid; grid-template-columns: 132px 1fr; gap: 1rem; align-items: center; margin-top: 1.6rem; font-size: var(--fs-small); color: var(--grey); }
.plan__keys img { mix-blend-mode: multiply; }
.pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(3.5rem, 7vw, 6rem); align-items: end; }
.pair figure { margin: 0; }
.pair .tall { aspect-ratio: 4 / 5; overflow: hidden; }
.pair .wide { aspect-ratio: 16 / 10; overflow: hidden; }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair figcaption { margin-top: 0.7rem; font-size: var(--fs-small); color: var(--grey); }
.standard { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); }
.standard__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.standard__groups h4 { margin: 0 0 0.8rem; font-family: var(--serif); font-weight: 300; font-size: 1.3rem; }
.standard__groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.92rem; color: var(--ink-soft); }
.included { margin-top: 2.2rem; padding: 1.2rem 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.included p { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
@media (max-width: 980px) {
  .plan, .standard { grid-template-columns: 1fr; }
  .standard__groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .standard__groups, .rooms { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
}

/* ---------- penthouse band ---------- */
.band { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; color: var(--cream); overflow: hidden; background: var(--ink); }
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 24, 24, 0.8) 0%, rgba(26, 24, 24, 0.35) 38%, rgba(26, 24, 24, 0) 68%); pointer-events: none; }
.band__copy { position: relative; z-index: 1; padding-bottom: clamp(3rem, 8vh, 6rem); }
.band__copy .lead { color: rgba(242, 239, 234, 0.88); max-width: 34rem; }
.band__copy .btn { margin-top: 2rem; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band__media img { animation: band-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes band-drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.02) translateY(2%); } }
  }
}

/* ---------- amenities bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 17vw, 250px); gap: clamp(0.6rem, 1.2vw, 1rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.bento figure { margin: 0; position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.bento .ph { overflow: hidden; min-height: 0; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) { .bento figure:hover img { transform: scale(1.03); } }
.bento figcaption { padding-top: 0.5rem; font-size: var(--fs-small); color: var(--grey); }
.bento .b-lounge { grid-column: span 2; grid-row: span 2; }
.bento .b-terrace { grid-column: span 2; }
.bento .b-services { grid-column: span 2; border-top: 1px solid var(--rule-strong); padding: 1.25rem 0 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 1.1rem; }
.b-services h3 { font-size: 1.5rem; }
.b-services ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.5rem; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(160px, 40vw, 260px); }
  .bento .b-lounge { grid-column: span 2; grid-row: span 1; }
  .bento .b-services { grid-row: span 2; }
  .b-services ul { grid-template-columns: 1fr; }
}

/* ---------- performance tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.2rem; }
.tab { min-height: 44px; padding: 0 1.2rem; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; cursor: pointer; font-size: 0.875rem; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
@media (hover: hover) { .tab:not([aria-selected="true"]):hover { border-color: var(--ink); } }
.perf { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.perf[hidden] { display: none; }
.perf.is-entering { animation: level-in 320ms var(--ease-out) both; }
.perf__lead { margin: 0; font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 30rem; }
.perf ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.perf li { break-inside: avoid; padding: 0 0 1rem; font-size: 0.95rem; color: var(--ink-soft); }
.footnote { margin-top: 1.6rem; font-size: var(--fs-micro); color: var(--grey); }
@media (max-width: 820px) { .perf { grid-template-columns: 1fr; } .perf ul { columns: 1; } }

/* ---------- location ---------- */
.loc { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.loc__map { background: #e6e1d8; overflow: hidden; }
.loc__map img { width: 100%; }
.walk { margin-top: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.walk h3 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.walk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.walk .transit { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.strip-ctrl { display: none; justify-content: flex-end; gap: 0.6rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.strip-ctrl .lb-btn { color: var(--ink); border-color: var(--rule-strong); }
@media (hover: hover) and (pointer: fine) { .strip-ctrl { display: flex; } .strip-ctrl + .strip { margin-top: 1rem; } .strip-ctrl .lb-btn:hover { background: rgba(26, 24, 24, 0.06); } }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 300px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-top: clamp(3rem, 6vw, 4.5rem); padding: 0 var(--gutter) 1rem; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip .ph { aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream-deep); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { margin-top: 0.6rem; font-size: var(--fs-small); }
.strip figcaption span { color: var(--grey); }
@media (min-width: 1416px) { .strip { padding-left: calc((100vw - var(--max)) / 2); scroll-padding-inline: calc((100vw - var(--max)) / 2); } }
@media (max-width: 900px) { .loc { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .walk { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.asof { margin: 1.4rem 0 0; color: var(--grey); }
.pricing { margin-top: clamp(2.5rem, 5vw, 4rem); }
.terms { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 2rem; }
@media (max-width: 900px) { .terms { grid-template-columns: 1fr 1fr; } }
.terms dt { font-size: var(--fs-micro); color: var(--grey); letter-spacing: 0.04em; }
.terms dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.terms .wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .terms { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.filters .tab span { color: var(--grey); margin-left: 0.35rem; }
.filters .tab[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filters .tab[aria-pressed="true"] span { color: rgba(242, 239, 234, 0.65); }
.masonry { columns: 3 300px; column-gap: clamp(0.6rem, 1.2vw, 1rem); margin-top: 2rem; }
.masonry .g { display: block; width: 100%; margin: 0 0 clamp(0.6rem, 1.2vw, 1rem); padding: 0; border: 0; background: var(--cream-deep); cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.masonry .g[hidden] { display: none; }
.masonry img { width: 100%; transition: transform 900ms var(--ease-out), opacity 300ms ease; }
@media (hover: hover) { .masonry .g:hover img { transform: scale(1.025); } }
@media (max-width: 700px) { .masonry { columns: 2; } }
.gallery-more { display: flex; justify-content: center; margin-top: 2rem; }
.masonry .g.is-arriving { animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.field.is-arriving { animation: level-in 240ms var(--ease-out) both; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 18, 18, 0.96); color: var(--cream); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in 240ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb-top, .lb-foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); gap: 1rem; font-size: var(--fs-small); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(0.5rem, 5vw, 5rem); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity 160ms ease; user-select: none; -webkit-user-drag: none; }
.lightbox[open] .lb-stage img { animation: lb-img 300ms var(--ease-out); }
@keyframes lb-img { from { opacity: 0; transform: scale(0.985); } }
.lb-stage img.is-swapping { opacity: 0; }
.lb-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(242, 239, 234, 0.35); background: transparent; cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.lb-btn:active { transform: scale(0.95); }
@media (hover: hover) { .lb-btn:hover { background: rgba(242, 239, 234, 0.12); } }
.lb-btn .i { width: 22px; height: 22px; }
.lb-nav { display: flex; gap: 0.6rem; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); }
.faq__list { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform 260ms var(--ease-out); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { margin: -0.2rem 0 1.5rem; max-width: 40rem; color: var(--ink-soft); }
.faq details[open] p { animation: level-in 280ms var(--ease-out) both; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.team .mark { height: 40px; width: 100%; max-width: 170px; color: var(--ink); -webkit-mask-position: left center; mask-position: left center; }
.m-devron { --src: url("../logos/devron.svg"); }
.m-dorsay { --src: url("../logos/dorsay.svg"); }
.m-audax { --src: url("../logos/audax.svg"); }
.m-paul-johnston { --src: url("../logos/paul-johnston.svg"); }
.team p { margin: 1.4rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.team .role { display: block; margin-top: 1.4rem; font-size: var(--fs-micro); color: var(--grey); letter-spacing: 0.04em; }
.team .role + p { margin-top: 0.35rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; row-gap: 3rem; } }

/* ---------- advisor ---------- */
.advisor { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.advisor .arch { aspect-ratio: 2 / 3; background: #c9c7cf; }
.advisor .arch img { object-position: 50% 18%; }
.advisor__title { margin: 1rem 0 0; font-size: var(--fs-small); color: var(--grey); }
.advisor__links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; align-items: center; margin-top: 2rem; }
.advisor__links a:not(.btn) { display: inline-flex; gap: 0.5rem; align-items: center; text-decoration: none; font-size: 0.95rem; }
@media (max-width: 820px) { .advisor { grid-template-columns: 1fr; } .advisor .arch { max-width: 320px; } }

/* ---------- register ---------- */
.register { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.register__visit { max-width: 320px; margin: 2.5rem 0 0; }
.register__visit .arch { aspect-ratio: 4 / 7; }
.register__visit .arch img { object-position: 50% 25%; }
.register__visit figcaption { margin-top: 0.7rem; font-size: var(--fs-micro); color: var(--grey); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.8rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font-size: var(--fs-small); color: var(--ink-soft); }
.field .opt { color: var(--grey); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select {
  width: 100%; min-height: 48px; padding: 0.55rem 0; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  background: transparent; font-size: 1.05rem; transition: border-color 200ms ease;
}
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%231a1818'%3E%3Cpath d='M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 16px; padding-right: 1.6rem; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:user-invalid, .field select:user-invalid { border-bottom-color: #a4394f; }
.field .err { font-size: var(--fs-micro); color: #8f2f45; min-height: 1em; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--rule-strong); font-size: 0.9rem; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.choice input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--rose-ink); outline-offset: 3px; }
.choice span { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.choice label:active span { transform: scale(0.97); }
.consent, .check { display: grid; grid-template-columns: 20px 1fr; gap: 0.8rem; align-items: start; font-size: var(--fs-micro); line-height: 1.5; color: var(--ink-soft); }
.consent input, .check input { width: 18px; height: 18px; margin: 0.1rem 0 0; accent-color: var(--ink); }
.check { align-items: center; font-size: var(--fs-small); cursor: pointer; }
.check input { margin: 0; cursor: pointer; }
.form .field input[aria-invalid="true"], .form .field select[aria-invalid="true"] { border-bottom-color: #a4394f; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form__status { font-size: var(--fs-small); min-height: 1.2em; }
.form__status.is-error { color: #8f2f45; }
@media (max-width: 900px) { .register { grid-template-columns: 1fr; } .register__visit { max-width: 280px; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-ink); padding: clamp(3.5rem, 7vw, 6rem) 0 calc(2rem + env(safe-area-inset-bottom)); }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer .lockup { width: 128px; aspect-ratio: 299 / 260.121; color: var(--cream); --src: url("../logos/lockup.svg"); }
.footer .footer__h { margin: 0 0 0.8rem; font-family: var(--serif); font-weight: 300; font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
.footer p, .footer li { margin: 0; font-size: 0.9rem; color: var(--on-ink-muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer a { text-decoration: none; }
@media (hover: hover) { .footer a:hover { text-decoration: underline; } }
.footer__legal { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.6rem; border-top: 1px solid rgba(242, 239, 234, 0.16); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; font-size: 0.74rem; line-height: 1.6; color: rgba(242, 239, 234, 0.6); }
.footer__legal p { margin: 0; max-width: 72rem; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__legal { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: 2.2rem; } }

/* far-below sections render only as they near the screen; the sizes are placeholders the browser replaces once seen */
#gallery { content-visibility: auto; contain-intrinsic-size: auto 1800px; }
#faq { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
#team { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* section heads */
.head { display: grid; gap: 0; max-width: 44rem; }

/* ---------- simple pages ---------- */
.page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.page__main { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 var(--section); }
.page .nav { position: absolute; color: var(--ink); }
.page .nav::before { display: none; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin: 2.6rem 0 0.6rem; }
.prose p, .prose li { color: var(--ink-soft); }
.downloads { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* ---------- guide pages (built by tools/guides.py) ---------- */
.crumbs ol { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: var(--fs-small); color: var(--grey); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--rule-strong); }
.crumbs a { color: inherit; }
.guide .prose { max-width: 46rem; }
.guide .prose h3 { font-size: 1.25rem; margin: 2rem 0 0.4rem; }
.guide__figure { margin: clamp(2rem, 4vw, 3rem) 0; }
.guide__figure img { display: block; width: 100%; height: auto; }
.guide__figure--plan img { mix-blend-mode: multiply; }
.guide__figure--tall img { max-width: 30rem; }
.guide__figure figcaption { margin-top: 0.6rem; font-size: var(--fs-micro); color: var(--grey); }
.guide .terms { margin: 2rem 0 0.5rem; }
.guide .facts { margin: 1rem 0; }
.guide .team { grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.guide .faq--page { display: block; }
.guide .faq--page h2:first-child { margin-top: 2.4rem; }
.guide__asof { margin-top: 2.6rem; font-size: var(--fs-small); color: var(--grey); }
.guide__cta { max-width: 46rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.8rem, 4vw, 2.8rem); background: var(--cream-deep); }
.guide__cta h2 { font-size: 1.8rem; }
.guide__cta p { max-width: 34rem; margin: 0.8rem 0 1.5rem; color: var(--ink-soft); }
.guide__cta .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.guide__next { max-width: 46rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--rule); }
.guide__next h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.guide__next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 2rem; }
@media (max-width: 560px) { .guide__next ul, .guide .team { grid-template-columns: 1fr; } }
.guide-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 1.4rem; }
/* simple-page header: brand and one button must fit down to 320px */
.page .nav__inner { gap: 1rem; }
.guide .nav__cta-short { display: none; }
@media (max-width: 520px) { .page .brand { width: 132px; } .page .nav .btn { padding: 0 1rem; letter-spacing: 0.04em; } }
@media (max-width: 420px) { .guide .nav__cta-long { display: none; } .guide .nav__cta-short { display: inline; } }
@media (max-width: 360px) { .page .brand { width: 112px; } }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- reduced motion: cross-fades only ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .arch[data-reveal] { transform: none !important; clip-path: none !important; transition: opacity 300ms ease; }
  .js .arch[data-reveal] { opacity: 0; }
  .js .arch[data-reveal].is-in { opacity: 1; }
  .js .arch[data-reveal] img, .hero__media img { transform: none !important; clip-path: none !important; transition: none; animation: none !important; }
  .masonry .g.is-arriving, .field.is-arriving, .level.is-entering, .perf.is-entering, .lightbox[open], .lightbox[open] .lb-stage img, .faq details[open] p { animation: fade 200ms ease both !important; }
  @keyframes fade { from { opacity: 0; } }
  .btn:active, .tab:active, .lb-btn:active, .choice label:active span { transform: none; }
  .bento figure:hover img, .masonry .g:hover img, .link:hover .i { transform: none; }
  .faq summary .i { transition: none; }
  .sheet { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-solid, .actionbar { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* hero entrance (first load only). Movement only, never a fade from 0: the headline is the page's largest paint
   and must count as painted the moment it is drawn */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media img { animation: hero-settle 1800ms var(--ease-out) both; }
  @keyframes hero-settle { from { transform: scale(1.06); } }
  .js .hero__copy > * { animation: hero-lift 900ms var(--ease-out) both; }
  .js .hero__copy > *:nth-child(2) { animation-delay: 90ms; }
  .js .hero__copy > *:nth-child(3) { animation-delay: 180ms; }
  @keyframes hero-lift { from { transform: translateY(14px); } }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1000px) {
  .js .brief { animation: hero-lift 1000ms 160ms var(--ease-out) both; }
}
@media (prefers-reduced-transparency: reduce) and (min-width: 1000px) { .brief { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- film: the vertical film beside its chapter list (stacks under 820px) ---------- */
.film__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "frame copy"; column-gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.film__frame { grid-area: frame; position: relative; height: min(82svh, 760px); aspect-ratio: 9 / 16; background: var(--ink); overflow: hidden; }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__fallback { position: absolute; inset: auto 1rem 1rem; color: var(--cream); }
.film__copy { grid-area: copy; display: grid; gap: clamp(2rem, 4vw, 3rem); max-width: 34rem; }
.film__chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.film__chapters li { position: relative; border-bottom: 1px solid var(--rule); }
/* the playing chapter draws its own progress along its bottom rule */
.film__chapters li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.film__chapters li[aria-current="true"]::after { transform: scaleX(var(--p, 0)); transition: transform 260ms linear; }
.film__chapters button { display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; gap: 0.75rem; width: 100%; min-height: 44px; padding: 0.55rem 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: var(--fs-small); color: var(--ink-soft); transition: color 200ms ease; }
.film__chapters .num { font-family: var(--serif); font-size: 1.05rem; color: var(--grey); transition: color 200ms ease; }
.film__chapters li[aria-current="true"] button, .film__chapters li[aria-current="true"] .num { color: var(--ink); }
.film__note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; margin: 0; font-size: var(--fs-micro); color: var(--grey); }
.film__note .link { color: var(--ink); }

.film__controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 0.6rem; padding: 3.5rem 1rem 1rem; background: linear-gradient(to top, rgba(26, 24, 24, 0.5), rgba(26, 24, 24, 0)); transition: opacity 200ms ease; }
.film__btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(242, 239, 234, 0.45); background: transparent; color: var(--cream); cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.film__btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .film__btn:hover { background: rgba(242, 239, 234, 0.14); }
  .film__chapters button:hover, .film__chapters button:hover .num { color: var(--ink); }
}
/* the closing card: the film's own end frame, with the booking pill set in its empty lower third */
.film__end { position: absolute; left: 1rem; right: 1rem; bottom: calc(1rem + 48px + 1.5rem); display: flex; justify-content: center; align-items: center; gap: 0.6rem; }
.film__end:not([hidden]) { animation: film-end 420ms var(--ease-out) both; }
@keyframes film-end { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.film.is-ended .film__controls { opacity: 0; pointer-events: none; }
/* before the first play: the poster and one quiet invitation; nothing of the film is fetched until it is pressed */
.film__start {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
  padding: 0; border: 0; color: var(--cream); cursor: pointer;
  background: radial-gradient(circle at 50% 50%, rgba(26, 24, 24, 0.28), rgba(26, 24, 24, 0) 60%);
}
.film__start-ring {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 999px;
  border: 1px solid rgba(242, 239, 234, 0.7); background: rgba(26, 24, 24, 0.16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 240ms ease, transform 200ms var(--ease-out);
}
.film__start-ring .i { width: 26px; height: 26px; margin-left: 3px; }
.film__start-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.film__start-label .num { margin-left: 0.5rem; opacity: 0.75; }
.film__start:active .film__start-ring { transform: scale(0.96); }
.film__start:focus-visible { outline-color: var(--cream); outline-offset: -8px; }
@media (hover: hover) and (pointer: fine) { .film__start:hover .film__start-ring { background: rgba(242, 239, 234, 0.16); } }
.film.is-started .film__start, html:not(.js) .film__start { display: none; }
.js .film:not(.is-started) .film__controls { visibility: hidden; }

@media (max-width: 820px) {
  .film__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "frame" "chapters" "note"; row-gap: clamp(1.75rem, 6vw, 2.5rem); }
  .film__copy { display: contents; }
  .film__head { grid-area: head; }
  .film__chapters { grid-area: chapters; }
  .film__note { grid-area: note; }
  .film__frame { height: auto; width: min(100%, 460px); }
}
@media (prefers-reduced-motion: reduce) {
  .film__end:not([hidden]) { animation: film-fade 200ms ease both; }
  .film__chapters li[aria-current="true"]::after { transition: none; }
  .film__btn:active { transform: none; }
}
@keyframes film-fade { from { opacity: 0; } to { opacity: 1; } }
/* Audit fixes: readable disclosures, keyboard/touch targets and guide contact bar. */
.source-note, .advisor-disclosure, .brokerage-office { max-width: 1100px; margin: 24px auto; padding: 0 24px; font-size: 16px; line-height: 1.6; }
.nav__phone { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 14px; }
.footer a, .crumbs a, .guide__next a { display: inline-flex; align-items: center; min-height: 44px; }
.table-scroll { overflow-x: auto; }
.page > * { min-width: 0; }
.table-scroll { max-width: 100%; }
.table-scroll table { width: 100%; border-collapse: collapse; }
.table-scroll th, .table-scroll td { padding: 16px; border-bottom: 1px solid #6d6e71; text-align: left; vertical-align: top; }
.guide-call-bar { display: none; }
@media (max-width: 700px) {
  .nav__phone { display: none; }
  .guide-call-bar { display: flex; justify-content: space-around; position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; background: #1a1818; color: #f2efea; padding-bottom: env(safe-area-inset-bottom); }
  .guide-call-bar a { display: flex; align-items: center; min-height: 52px; padding: 8px 12px; font-size: 14px; }
  .page .footer { padding-bottom: 90px; }
}
