/* 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.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Plantin"; src: url("../fonts/plantin-light-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.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; }
@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__copy { position: relative; z-index: 1; 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; }

/* ---------- 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 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.terms { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.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; }
.estimator { background: var(--cream-deep); padding: clamp(1.4rem, 3vw, 2.5rem); }
.estimator h3 { font-size: 1.55rem; }
.est-field { margin-top: 1.6rem; }
.est-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--fs-small); }
.est-field output { font-family: var(--serif); font-size: 1.25rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0.4rem 0 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 3px solid var(--cream-deep); box-shadow: 0 0 0 1px var(--ink); transition: transform 160ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--cream-deep); box-shadow: 0 0 0 1px var(--ink); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 3px var(--rose-ink); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 3px var(--rose-ink); }
.est-scale { display: flex; justify-content: space-between; margin-top: 0.1rem; font-size: var(--fs-micro); color: var(--grey); }
.est-out { margin: 2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.est-out dt { font-size: var(--fs-micro); color: var(--grey); }
.est-out dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
.est-out .full { grid-column: 1 / -1; }
.est-note { margin: 1.4rem 0 0; font-size: var(--fs-micro); color: var(--grey); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
@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__aside .arch { max-width: 300px; margin-top: 2.5rem; aspect-ratio: 3 / 4; }
.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 { 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 { width: 18px; height: 18px; margin: 0.1rem 0 0; accent-color: var(--ink); }
.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__aside .arch { display: none; } }
@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; } }

/* 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; }

@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) */
@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: rise 900ms var(--ease-out) both; }
  .js .hero__copy > *:nth-child(2) { animation-delay: 90ms; }
  .js .hero__copy > *:nth-child(3) { animation-delay: 180ms; }
}
