/* ============ 112 Woodland Road — design system ============
   Reference: Dalhousie Castle (see 3. Design References/)
   Dark petrol editorial luxury; Italiana display caps,
   Cormorant Garamond light serif, Work Sans body.            */

@font-face {
  font-family: "Antiqua Roman";
  src: url("fonts/AntiquaRoman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Rolex-green palette: deep rich emerald with a subtle viewport-fixed gradient for depth */
  --bg: #071f14;
  --bg-deep: #04140c;
  --bg-hi: #0a2c1c;
  --bg-lo: #03120b;
  --ink: #ffffff;
  --ink-soft: #ffffff;                 /* bright white everywhere — no gray body copy */
  --utility: rgba(255, 255, 255, 0.55); /* footer utility links only */
  --faint: rgba(255, 255, 255, 0.3);    /* disclaimer only */
  --brass: #c9a35f; /* brightened gold */
  --hairline: rgba(255, 255, 255, 0.85);
  --display: "Antiqua Roman", "span", "Cormorant Garamond", serif; /* the reference's own accent face */
  --serif: "span", "Cormorant Garamond", serif;
  --sans: "Work Sans", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --room-left: clamp(56px, 11vw, 210px); /* the shared left column line on room pages */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500; /* body/UI weight per client (headlines keep their own weights) */
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------- type ---------- */
.serif-h {
  font-family: var(--serif);
  font-weight: 200; /* Span Light/ExtraLight — activates once those weights are added to the Adobe Fonts kit */
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
p + p { margin-top: 1.2em; }

/* reference-style link: underline wipes out left-to-collapse on hover, regrows from the left */
.text-link {
  position: relative;
  display: inline-block;
  margin-top: 34px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 8px;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.text-link:hover::after { transform: scaleX(0); }

/* ---------- floating chrome ---------- */
.float-actions {
  position: fixed;
  top: 28px; right: 28px;
  z-index: 50;
  display: flex;
}
.float-cta {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg-deep);
  padding: 21px 34px;
  cursor: pointer; /* no hover color change — cursor alone signals the button */
}
.burger {
  width: 62px;
  background: var(--bg);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.4s var(--ease);
}
.burger { position: relative; }
/* lines centered absolutely (X always crosses dead-center in any box), with the
   two-phase choreography: opening = lines meet, then rotate into the X;
   closing = X folds flat first, then splits back into the burger */
/* the span translates, its ::before line rotates — plain `transform` only,
   so the staggered morph animates on every mobile browser */
.burger span {
  position: absolute; left: 50%; top: calc(50% - 0.5px);
  width: 26px; height: 1px; margin-left: -13px;
  transition: transform 0.22s var(--ease) 0.14s;
}
.burger span::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transition: transform 0.26s var(--ease) 0s;
}
.burger span:nth-child(1) { transform: translateY(-4.5px); }
.burger span:nth-child(2) { transform: translateY(4.5px); }
.burger.x span { transform: none; transition: transform 0.22s var(--ease) 0s; }
.burger.x span::before { transition: transform 0.26s var(--ease) 0.14s; }
.burger.x span:nth-child(1)::before { transform: rotate(45deg); }
.burger.x span:nth-child(2)::before { transform: rotate(-45deg); }

/* ---------- menu overlay (slides down open, up closed) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  transform: translateY(-100%);
  visibility: hidden;
  overflow: hidden;
  transition: transform 0.8s var(--ease), visibility 0s 0.8s;
}
.menu.open { transform: none; visibility: visible; transition: transform 0.8s var(--ease); }
.menu-nav {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 1.5px minmax(240px, 0.9fr) minmax(0, 560px);
  align-items: start; /* both link columns top-align */
  gap: clamp(30px, 4vw, 80px);
  padding-left: clamp(30px, 7vw, 130px);
  padding-top: clamp(120px, 24vh, 240px);
}
.menu-primary, .menu-secondary { list-style: none; }
.menu-primary a, .menu-primary button {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.9;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.3s;
}
.menu-primary a:hover, .menu-primary button:hover { color: var(--brass); }
.menu-note { color: var(--utility); } /* same size as the link, gray only */
.menu-divider { width: 1.5px; height: 100vh; margin-top: calc(-1 * clamp(120px, 24vh, 240px)); align-self: start; background: var(--hairline); }
.menu-sub-head {
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.menu-secondary a {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.9;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.3s;
}
.menu-secondary a:hover { color: var(--brass); }
.menu-image { height: 100vh; margin-top: calc(-1 * clamp(120px, 24vh, 240px)); margin-bottom: 0; overflow: hidden; }

/* ---------- hero (parallax: image fixed, title scrolls) ---------- */
.hero { position: relative; height: 100svh; }
.hero-media, .hero-scrim { position: fixed; inset: 0; z-index: 0; }
.hero-media img { animation: heroScale 4s var(--ease) both; }
@keyframes heroScale { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-scrim {
  /* no darkening on the house — only a slight gradient at the base for the wordmark */
  background: linear-gradient(180deg, rgba(6,27,18,0) 0%, rgba(6,27,18,0) 58%, rgba(6,27,18,0.42) 88%, rgba(6,27,18,0.58) 100%);
}
.hero-lockup {
  position: absolute;
  inset: auto 0 clamp(14px, 3vh, 44px) 0;
  z-index: 1;
  text-align: center;
}
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-size: 11vw; /* fitted precisely by script.js */
  animation: fadeUp 1.6s 0.4s var(--ease) both;
}
.hero-title, .marquee, .crest, .footer-tagline, .room-title, .room-logo {
  font-feature-settings: "lnum" 1; /* Antiqua Roman's cap-height lining figures */
}
.hero-title .num { font-size: 1.17em; line-height: 0; } /* Antiqua Roman lnum digits are ~85% of cap height */
@keyframes fadeUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* main scrolls over the fixed hero image. One viewport-fixed field:
   a cursor-following emerald glow (--mx/--my set by JS) over the depth gradient.
   The footer lives INSIDE main so the field is seamless to the last pixel. */
main {
  background:
    radial-gradient(1700px circle at var(--mx, 50vw) var(--myp, 30vh), rgba(26, 88, 58, 0.55), rgba(20, 72, 47, 0.22) 42%, transparent 78%),
    linear-gradient(172deg, var(--bg-hi) 0%, var(--bg) 45%, var(--bg-lo) 100%);
}
.menu {
  background:
    radial-gradient(1700px circle at var(--mx, 50vw) var(--my, 30vh), rgba(26, 88, 58, 0.55), rgba(20, 72, 47, 0.22) 42%, transparent 78%),
    linear-gradient(165deg, var(--bg-hi) 0%, var(--bg) 45%, var(--bg-lo) 100%);
}
main { position: relative; z-index: 2; }
.footer { position: relative; z-index: 2; }

/* ---------- sections ---------- */
.section { padding: clamp(90px, 13vw, 190px) var(--gutter); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.intro-text .serif-h { margin-bottom: 34px; max-width: 17em; }
.intro-text p { max-width: 34em; color: var(--ink-soft); }
.intro-img { aspect-ratio: 4 / 5; overflow: hidden; }
/* parallax targets: image oversized inside its frame so it can drift within */
.intro-img img, .duo-a img, .duo-b img { scale: 1.15; will-change: transform; }

/* floating detail duo — air and stagger */
.intro { padding-top: clamp(60px, 8vw, 120px); padding-bottom: 0; }
.float-duo {
  max-width: 1400px;
  margin: clamp(60px, 8vw, 130px) auto 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.duo-a { grid-column: 1 / span 7; aspect-ratio: 4 / 3; overflow: hidden; }
.duo-b {
  grid-column: 9 / span 4;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  align-self: end;
  margin-top: clamp(80px, 10vw, 170px);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(44px, 6.75vw, 115px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
  /* equal air above and below: image → marquee ink = marquee ink → film
     (bottom padding is smaller to offset the font's built-in descender space) */
  padding: clamp(74px, 9vw, 144px) 0 clamp(50px, 7.1vw, 114px);
}
/* marquee is scroll-scrubbed by script.js — scrolling down advances it, up reverses it */
.marquee span { display: inline-block; will-change: transform; }

/* ---------- film ---------- */
.film { padding-top: 0; }
.film-frame { position: relative; max-width: 1400px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; }
.film-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
  background: rgba(6, 27, 18, 0.35);
  transition: background 0.5s var(--ease);
}
.film-frame:hover .film-overlay { background: rgba(6, 27, 18, 0.2); }
.film-play {
  width: 92px; height: 92px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink); /* the disc; the triangle is a transparent cutout */
  transition: transform 0.4s var(--ease);
}
.film-play:hover { transform: scale(1.06); }
.film-play svg { display: block; }
.film-note { font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- stats ---------- */
.stats { padding: 0 var(--gutter) clamp(40px, 5vw, 70px); }
.stats-row {
  max-width: 1150px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(28px, 3.5vw, 46px) 0;
  gap: 28px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 100px; }
.stat-num { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.stat-label { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- residence ---------- */
.section-head { max-width: 1400px; margin: 0 auto clamp(50px, 6vw, 90px); }
.section-head .serif-h { margin-bottom: 26px; }
.section-head p { max-width: 44em; color: var(--ink-soft); }

.rooms {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 34px);
}
.room-tile { position: relative; overflow: hidden; aspect-ratio: 7 / 5; text-align: left; padding: 0; }
.room-tile img { transition: transform 1.2s var(--ease); }
.room-tile:hover img { transform: scale(1.045); }
.room-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(6,27,18,0) 55%, rgba(6,27,18,0.55) 100%);
}
.room-name {
  position: absolute; left: 28px; bottom: 22px; z-index: 2;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: 0.02em;
}

/* ---------- full gallery banner (home) + gated gallery page ---------- */
.gallery-banner-wrap {
  text-align: center;
  /* sits closer to the room grid above than to the architect section below */
  padding-top: clamp(16px, 2vw, 34px);
  padding-bottom: clamp(56px, 7vw, 112px);
}
.gb-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(38px, 4.4vw, 70px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.gb-btn {
  display: inline-block;
  margin-top: 34px;
  background: var(--brass);
  color: var(--bg-deep);
  text-decoration: none;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  padding: 21px 54px;
  transition: background 0.4s var(--ease);
}
.gb-btn:hover { background: #d6b26c; }
/* headline aligns with the image grid — gutter, not the room pages' --room-left column */
.gallery-page .room-hero { max-width: 1500px; margin: 0 auto; padding-left: var(--gutter); }
.g-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 30px);
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.g-item { margin: 0; }
.g-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
#fullGrid { margin-top: clamp(16px, 2vw, 30px); }
/* locked teaser: third row fades out, contained to the image columns */
#teaserGrid { position: relative; }
#teaserGrid::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(7,31,20,0) 0%, var(--bg) 90%);
  pointer-events: none;
}
.g-unlocked #teaserGrid::after { display: none; }
/* gate rides up over the fading third row, full width of the gallery columns */
.gate {
  position: relative; z-index: 2;
  max-width: 1500px;
  margin: clamp(-200px, -16vw, -110px) auto 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.g-unlocked-gate-spacer { display: none; }
.gate { padding-top: 0; padding-bottom: clamp(60px, 7vw, 110px); }
.gate-panel {
  border: 1.5px solid var(--hairline);
  background: rgba(7, 31, 20, 0.92);
  backdrop-filter: blur(6px);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.gate-panel .lead-form { max-width: 760px; margin-left: auto; margin-right: auto; }
/* gate: button and captcha stack cleanly on the center line */
.gate-panel .form-actions { flex-direction: column; gap: 18px; }
/* layout box = natural 304px width so the scaled widget truly centers under the button */
.gate-panel .form-actions .g-recaptcha { transform-origin: top center; width: 304px; height: 61.5px; }
.gate-panel .serif-h { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.gate-note { color: var(--ink); }
.gate-panel .lead-form .form-submit { margin: 36px auto 0; }

/* ---------- quote ---------- */
.film { padding-bottom: clamp(40px, 5vw, 80px); }
.residence { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 80px); }
.quote { text-align: center; padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 80px); }
.serif-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200; /* slims down once Span Light is added to the Adobe kit */
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.35;
  max-width: 22em;
  margin: 0 auto;
}
.quote-cite {
  margin-top: 26px;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
}

/* ---------- architect (dark, image flush right) ---------- */
.architect { padding-right: 0; padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 80px); }
.architect-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.architect-text { text-align: center; max-width: 32em; margin: 0 auto; }
.architect-text .serif-h { margin-bottom: 30px; }
/* the three landmark names lead the paragraph in the display face */
.arch-landmark { font-weight: 700; color: var(--ink); }
.architect-text p { color: var(--ink-soft); }
.architect-art { margin: 0; position: relative; }
.architect-art img { aspect-ratio: 3 / 2; }
/* hover reveals the full straight-on floor plan; release returns the corner close-up */
.architect-art .fp-alt {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.architect-art:hover .fp-alt { opacity: 1; }

/* ---------- architect page: notable works list ---------- */
.works { max-width: 1100px; margin: 0 auto; }
.works-head { margin-bottom: clamp(36px, 4vw, 60px); }
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.work-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.work-name { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); }
.work-place { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.work-year { font-family: var(--serif); font-size: 18px; text-align: right; }

/* ---------- contact (image left, form right) ---------- */
.contact { padding-top: clamp(50px, 6vw, 100px); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start; /* fireplace image tops out level with the headline */
  max-width: 1400px;
  margin: 0 auto;
}
.contact-img { aspect-ratio: 4 / 5; overflow: hidden; margin: 0; }
.contact-text .serif-h { margin-bottom: 20px; max-width: 14em; }
.contact-text > .reveal > p, .contact-text > p { color: var(--ink-soft); max-width: 34em; }

/* ---------- forms (shared) ---------- */
.lead-form { margin-top: 44px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.lead-form label {
  display: block;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-soft);
}
.lead-form input {
  display: block; width: 100%;
  margin-top: 10px;
  background: none; border: 0; border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color 0.4s var(--ease);
}
.lead-form input:focus { border-color: var(--brass); }
.form-message {
  display: block;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.lead-form textarea {
  display: block; width: 100%;
  margin-top: 12px;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px;
  line-height: 1.6;
  padding: 16px;
  min-height: 140px;
  resize: vertical;
  outline: none;
  transition: border-color 0.4s var(--ease);
}
.lead-form textarea:focus { border-color: var(--brass); }
.form-submit {
  display: inline-block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  border: 0;
  background: var(--brass);
  color: var(--bg-deep);
  padding: 21px 52px;
  transition: background 0.4s var(--ease);
}
.form-submit:hover { background: #d6b26c; }
.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
}
.contact-text .form-actions { justify-content: flex-start; }
.form-actions .form-submit { margin: 0; }
/* the v2 widget is a fixed 304x78 — scale it to EXACTLY the button's 61.5px height (78 x 0.789) */
.form-actions .g-recaptcha {
  transform: scale(0.789);
  transform-origin: 0 0;
  width: 240px;  /* layout box matched to the scaled size */
  height: 61.5px;
}
.form-sent { margin-top: 24px; text-align: center; font-size: 13px; color: var(--brass); }
.form-sent.err { color: #e08b7a; }
.contact-text .form-sent { text-align: left; }
.form-consent {
  margin-top: 22px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.7;
  max-width: none; /* spans the form width — two lines, not three */
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.form-consent a { color: inherit; text-decoration: underline; }
.form-consent a:hover { color: var(--ink); }
/* p.form-consent outranks the generic .contact-text > .reveal > p 34em cap;
   right boundary meets the reCAPTCHA's right edge (button 222 + gap 22 + widget ≈ 429px) */
.contact-text p.form-consent { text-align: left; max-width: 430px; }
/* gate: rein the one-liner in so it breaks into two centered lines */
.gate-panel .form-consent { max-width: 40em; margin-left: auto; margin-right: auto; }

/* ---------- modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(5, 23, 15, 0.8);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.modal-panel .eyebrow { margin-bottom: 12px; }
.modal-panel .serif-h { font-size: clamp(30px, 3.4vw, 42px); }
.modal-close {
  position: absolute; top: 16px; right: 22px;
  font-size: 30px; font-weight: 300; line-height: 1;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.modal-close:hover { color: var(--ink); }

/* ---------- footer (inside main — inherits the continuous gradient field) ---------- */
.footer { padding: clamp(70px, 8vw, 110px) var(--gutter) 0; }
.footer-crest { display: flex; align-items: center; gap: 36px; max-width: 1400px; margin: 0 auto; }
.crest-rule { flex: 1; height: 1.5px; background: var(--hairline); }
.crest {
  font-family: var(--display);
  font-size: 44px;
  width: 108px; height: 108px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: grid; place-items: center;
  letter-spacing: 0.06em;
}
.crest-emblem { width: 132px; height: 132px; object-fit: contain; }
/* the crest gap (36px) sets the rhythm: the vertical divider starts the same
   distance below the circle, and both text blocks center inside the tall box */
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1.5px 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 0;
  min-height: 560px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.5;
  color: var(--ink);
}
.footer-contact p + p { margin-top: 0; }
.footer-contact .fc-label {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-contact a { text-decoration: none; color: var(--ink); transition: color 0.3s; }
.footer-contact a:hover { color: var(--brass); }
.footer-contact p.fc-gap { margin-top: 1.15em; }
.footer-divider { width: 1.5px; height: auto; align-self: stretch; background: var(--hairline); }
.footer-tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.06;
  letter-spacing: 0.06em;
  text-align: center;
}
.footer-tagline span { display: block; }
.footer-brokerage {
  text-align: center;
  padding-top: clamp(34px, 4vw, 60px);
  padding-bottom: clamp(40px, 5vw, 70px);
}
.hh-logo { display: inline-block; width: auto; height: 46px; opacity: 0.95; }
.footer-address {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink);
}
.footer-address a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-address a:hover { color: var(--brass); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: 1400px; margin: 0 auto;
  border-top: 1.5px solid var(--hairline);
  padding: 26px 0;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--utility);
}
.footer-base a { text-decoration: none; transition: color 0.3s; }
.footer-base a:hover { color: var(--ink); }
.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto;
  padding: 4px 0 30px;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: var(--faint);
}

/* ---------- lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 19, 24, 0.96);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 3vw, 50px);
  padding: 0 clamp(12px, 3vw, 50px);
}
.lb-stage { max-width: min(1200px, 78vw); width: 100%; }
.lb-stage img { width: 100%; height: min(74vh, 800px); object-fit: contain; }
.lb-stage figcaption {
  display: flex; justify-content: space-between;
  margin-top: 18px;
  font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-soft);
}
.lb-close {
  position: absolute; top: 26px; right: 34px;
  font-size: 34px; font-weight: 300; line-height: 1;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.lb-close:hover { color: var(--ink); }
.lb-arrow { padding: 30px 6px; }
.petal-arrow {
  display: block;
  width: clamp(44px, 5vw, 64px);
  height: auto;
  fill: var(--ink);
  transition: fill 0.3s var(--ease), transform 0.3s var(--ease);
}
.petal-arrow.flip { transform: scaleX(-1); }
.lb-arrow:hover .petal-arrow { fill: var(--brass); }
.lb-arrow:hover .petal-arrow.flip { transform: scaleX(-1) translateX(4px); }
.lb-arrow:hover .petal-arrow:not(.flip) { transform: translateX(4px); }

/* ================== ROOM PAGES ================== */
.room-page { background: var(--bg); }
.room-top {
  display: flex;
  align-items: center;
  /* logo hugs the left more, balancing the tight right margin of the buttons */
  padding: 30px var(--gutter) 0 clamp(20px, 2.6vw, 38px);
}
.room-logo { translate: 0 0.1em; } /* Antiqua caps ink rides high in its em box — drop to optical center */
.room-logo {
  font-family: var(--display);
  font-feature-settings: "lnum" 1;
  text-transform: uppercase;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
}
.room-logo .num { font-size: 1.17em; line-height: 0; }

.room-hero { padding: clamp(70px, 9vw, 140px) var(--gutter) clamp(50px, 6vw, 90px) var(--room-left); }
.room-hero .eyebrow { color: var(--ink-soft); }
.room-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(38px, 3.7vw, 64px); /* reference-scaled, not oversized */
  line-height: 1.08;
  letter-spacing: 0.02em;
  max-width: 1400px;
}

/* sliding gallery */
.room-gallery {
  position: relative;
  overflow: hidden;
  cursor: none;
}
.gallery-track {
  display: flex;
  gap: clamp(10px, 1.4vw, 22px);
  margin-left: var(--room-left); /* first slide sits on the shared left column line */
  height: min(46vw, 715px);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.gallery-slide { flex: 0 0 auto; height: 100%; overflow: hidden; }
/* portraits keep their orientation — same height as the horizontals, natural width */
.gallery-slide img { height: 100%; width: auto; display: block; }
.cursor-orb {
  position: absolute;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: rgba(245, 242, 234, 0.16);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 3;
}
.petal-arrow {
  display: block;
  width: 54px;
  aspect-ratio: 39.185 / 34.297; /* true vector arrow extracted from the reference theme */
  background-color: var(--ink);
  -webkit-mask: url("images/arrow-right.svg") center / contain no-repeat;
  mask: url("images/arrow-right.svg") center / contain no-repeat;
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.petal-arrow.flip { transform: scaleX(-1); }
.cursor-orb .petal-arrow { width: 38px; }
.gallery-dots {
  display: flex; gap: 12px;
  padding: 26px var(--gutter) 0 var(--room-left);
}
.dot-btn {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  transition: background 0.3s, border-color 0.3s;
}
.dot-btn.on { background: var(--ink); border-color: var(--ink); }

/* split info columns — generous left offset like the reference */
.room-info {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(50px, 9vw, 170px);
  padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(90px, 12vw, 170px) var(--room-left);
}
.feature-head {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.feature-head:not(:first-child) { margin-top: 40px; }
.feature-list { list-style: none; }
.feature-list li { color: var(--ink-soft); padding: 3px 0; }
.info-right p { color: var(--ink-soft); max-width: 36em; }

/* next room */
/* previous / next: two dimmed cover tiles, label + arrow centered on each */
.room-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 34px);
  padding: 0 var(--gutter) clamp(90px, 12vw, 160px);
}
.nav-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 1; text-decoration: none; }
.nav-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.42);
  transform: scale(1.02);
  transition: filter 0.6s var(--ease), transform 1.2s var(--ease);
}
.nav-tile:hover img { filter: brightness(0.55); transform: scale(1.055); }
.nav-tile-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
}
.next-eyebrow { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); }
.next-name { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.8vw, 42px); }
.nav-tile .petal-arrow { width: 50px; }
.nav-tile:hover .petal-arrow:not(.flip) { background-color: var(--brass); transform: translateX(8px); }
.nav-tile:hover .petal-arrow.flip { background-color: var(--brass); transform: scaleX(-1) translateX(8px); }

@media (max-width: 900px) {
  .room-top { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding-top: 74px; }
  .room-back { justify-self: center; }
  .room-info { grid-template-columns: 1fr; gap: 50px; }
  .gallery-slide { width: 86vw; }
  .room-gallery { cursor: auto; }
  .cursor-orb { display: none; }
  .room-next { grid-template-columns: 1fr; }
}

/* ---------- preloader: emblem with a light sweep, dissolves into the page ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  /* same cursor-following glow as the page, so the light works from the first frame */
  background:
    radial-gradient(1700px circle at var(--mx, 50vw) var(--my, 30vh), rgba(26, 88, 58, 0.55), rgba(20, 72, 47, 0.22) 42%, transparent 78%),
    var(--bg);
  display: grid; place-items: center;
  /* two-step exit: the emblem fades first, then the green background fades to reveal the page */
  transition: opacity 1.1s var(--ease) 0.55s, visibility 0s 1.65s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-mark {
  position: relative;
  width: clamp(110px, 13vw, 168px);
  aspect-ratio: 1;
  animation: plIn 1s var(--ease) both;
  transition: opacity 0.6s ease;
}
#preloader.done .pl-mark { animation: none; opacity: 0; } /* release the entrance animation so the fade transition can run */
.pl-mark img { width: 100%; height: 100%; object-fit: contain; opacity: 0.92; }
.pl-sheen {
  position: absolute; inset: 0;
  -webkit-mask: url("images/emblem-white.png") center / contain no-repeat;
  mask: url("images/emblem-white.png") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.95) 50%, transparent 68%);
  background-size: 260% 100%;
  animation: plSheen 1.7s ease-in-out 0.6s 1 both; /* a single pass of light */
}
@keyframes plIn { from { opacity: 0; transform: scale(0.9); } }
@keyframes plSheen { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
/* hold the hero's own cinematics until the preloader hands off */
.hero-title, .hero-media img { animation-play-state: paused; }
body.loaded .hero-title, body.loaded .hero-media img { animation-play-state: running; }

/* ---------- page-load entrance choreography ---------- */
body { animation: bodyFade 0.6s var(--ease) both; }
@keyframes bodyFade { from { opacity: 0; } to { opacity: 1; } }
.lseq {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
body.loaded .lseq { opacity: 1; transform: none; }
.lseq-d1 { transition-delay: 0.15s; }
.lseq-d2 { transition-delay: 0.3s; }
.lseq-d3 { transition-delay: 0.45s; }
.lseq-d4 { transition-delay: 0.65s; }
.lseq-d5 { transition-delay: 0.85s; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-words .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.reveal-words.in .w > span { transform: none; }
.img-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.img-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .img-reveal, .reveal-words .w > span, .lseq { opacity: 1 !important; transform: none !important; transition: none !important; }
  body { animation: none !important; }
  .hero-media img, .marquee span { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .intro-grid, .architect-grid, .contact-grid { grid-template-columns: 1fr; }
  .architect-grid { gap: 60px; }
  .architect-text { padding-right: var(--gutter); }
  .menu-nav { grid-template-columns: 1fr; align-content: center; padding: 90px var(--gutter) 40px; overflow-y: auto; gap: 26px; }
  .menu-divider { width: 120px; height: 1px; }
  .menu-image { display: none; }
  .menu-divider, .menu-secondary { opacity: 1; }
  .menu-primary a, .menu-primary button { font-size: 27px; line-height: 1.8; }
  .g-grid { grid-template-columns: 1fr; }
  .menu-secondary a { font-size: 19px; line-height: 1.8; }
  .rooms { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .float-duo { grid-template-columns: 1fr; gap: 40px; }
  .duo-a { grid-column: auto; }
  .duo-b { grid-column: auto; width: 70%; margin: 0 0 0 auto; align-self: auto; }
  .footer-cols { grid-template-columns: 1fr; gap: 44px; min-height: 0; }
  .footer-divider { width: 200px; height: 1.5px; align-self: center; margin: 0 auto; }
  .float-actions { top: 16px; right: var(--gutter); } /* right edge rides the same gutter line as images/forms */
  .float-cta { padding: 15px 18px; font-size: 10px; letter-spacing: 0.16em; }
  .burger { width: 46px; gap: 6px; }
  .burger span { width: 20px; margin-left: -10px; }
}

/* ================== MOBILE PASS — reference-matched (Dalhousie mobile) ================== */
/* the stacked statement replaces the marquee on mobile; hidden on desktop */
.statement { display: none; }
.hero-title .fit-m { display: none; } /* mobile-only stacked hero variant */

@media (max-width: 900px) {
  /* ---- hero: the full address, stacked like the reference's display statements ---- */
  .hero-title { font-size: 16.6vw !important; line-height: 1.06; }
  .hero-title .fit { display: none; }
  .hero-title .fit-m { display: block; }
  .hero-lockup { inset: auto 0 10px 0; }

  /* ---- headlines carry more weight against the body text ---- */
  .serif-h { font-size: clamp(37px, 9.6vw, 46px); line-height: 1.18; }

  /* ---- editorial images: all three run the same full width, tighter, no parallax ---- */
  .duo-b { width: 100%; margin: 0; }
  .intro-grid { gap: 28px; }
  .float-duo { margin-top: 28px; gap: 28px; }
  .intro-img img, .duo-a img, .duo-b img { scale: 1; will-change: auto; }

  /* ---- marquee off (the ✳ renders as an emoji on iOS); stacked statement instead ---- */
  .marquee { display: none; }
  .statement { display: block; padding: clamp(70px, 16vw, 110px) var(--gutter); text-align: center; }
  .statement-stack {
    font-family: var(--display);
    font-feature-settings: "lnum" 1;
    text-transform: uppercase;
    font-size: 15.5vw;
    line-height: 1.16;
    display: flex; flex-direction: column;
  }

  /* ---- film: the play disc takes less of the screen ---- */
  .film-play, .film-play svg { width: 62px; height: 62px; }

  /* ---- architect: the blueprint first, then the story ---- */
  .architect-art { order: -1; }

  /* ---- footer ---- */
  .footer-crest { gap: 14px; }
  .footer-cols { gap: 0; }
  .footer-contact { border-bottom: 1.5px solid var(--hairline); padding-bottom: 46px; }
  .footer-divider { display: none; }
  .footer-tagline {
    font-size: 11vw;
    row-gap: 0.16em;
    text-align: center;
    padding: clamp(56px, 14vw, 90px) 0;
    border-bottom: 1.5px solid var(--hairline);
  }
  .footer-brokerage { padding-top: clamp(44px, 10vw, 64px); padding-bottom: clamp(48px, 11vw, 70px); }
  .footer-base { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  .footer-disclaimer { text-align: center; }

  /* ---- menu: one readable column; Explore the Property expands like the reference ---- */
  .menu-nav { align-content: start; padding-top: 190px; padding-bottom: 90px; gap: 8px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    /* invisible header: scrolling items fully dissolve below the Request Info box */
    mask-image: linear-gradient(to bottom, transparent 108px, #000 185px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 108px, #000 185px);
  }
  .menu-primary .menu-sub-head { display: none; } /* no "Sitemap" label on mobile */
  .menu-primary a, .menu-primary button { font-size: 29px; line-height: 1.95; }
  .menu-divider { display: none; } /* the stray hairline read as an underscore */
  .menu-secondary .menu-sub-head {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--serif); font-weight: 300;
    font-size: 29px; line-height: 1.95;
    letter-spacing: 0; text-transform: none;
    color: var(--ink);
    margin: 0;
    cursor: pointer;
  }
  .menu-secondary .menu-sub-head::after {
    content: "";
    width: 11px; height: 11px; flex: none;
    border-right: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
    transform: rotate(-45deg);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
    margin-right: 8px;
  }
  .menu-secondary.open .menu-sub-head { color: var(--brass); }
  .menu-secondary.open .menu-sub-head::after { transform: rotate(45deg); border-color: var(--brass); }
  .menu-secondary li:not(.menu-sub-head) { display: none; }
  .menu-secondary.open li:not(.menu-sub-head) { display: list-item; }
  .menu-secondary a { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 2.1; padding-left: 28px; }

  /* ---- request info modal: full-screen sheet that scrolls ---- */
  .modal { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-panel { width: 100%; min-height: 100%; max-height: none; }

  /* ---- forms: button (and JS-scaled captcha) span the fields' width ---- */
  .form-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-submit { width: 100%; }
  .gate-panel .lead-form .form-submit { margin: 36px 0 0; }
  .gate-panel .form-actions .g-recaptcha { width: auto; height: auto; }

  /* ---- room + gallery pages: compact left-aligned header, burger only ---- */
  :root { --room-left: var(--gutter); }
  .room-top { grid-template-columns: 1fr; justify-items: start; padding: 30px var(--gutter) 0; }
  .room-page .float-cta { display: none; }
  /* the hidden Request Info button was the row's height source — give the lone burger real proportions */
  .room-page .burger { width: 56px; height: 52px; }
  /* burger anchors to the PAGE on these pages: it scrolls away with the content
     and is only back once you return to the top */
  .room-page .float-actions { position: absolute; }

  /* ---- room galleries: slides hug their images, tighter and left-aligned ---- */
  .gallery-slide { width: auto; }
  .gallery-track { height: min(62vw, 715px); }
}

/* the page must not rubber-band past the footer and reveal the fixed hero behind it */
html { overscroll-behavior-y: none; background: var(--bg-lo); }
