/* ==========================================================================
   THE TRILOGY RESIDENCES  |  STYLES
   --------------------------------------------------------------------------
   1. Fonts            6. Hero               11. Video
   2. Design tokens    7. Facts              12. Location
   3. Base             8. Overview           13. Contact and form
   4. Shared parts     9. Homes              14. Footer, sticky CTA, lightbox,
   5. Header and menu  10. Amenities, gallery    consent, sub-pages, motion

   Breakpoints (mobile first):  640px  |  960px  |  1200px
   ========================================================================== */

/* 1. FONTS  (self-hosted, SIL Open Font Licence) ------------------------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. DESIGN TOKENS -------------------------------------------------------- */
:root {
  /* Colour */
  --c-paper: #f7f6f1;        /* warm white, page background */
  --c-white: #fdfcf9;        /* raised surfaces */
  --c-stone: #e6e2d9;        /* soft stone grey */
  --c-stone-deep: #cdc8bb;   /* borders on stone */
  --c-line: #d9d5ca;         /* 1px rules on paper */
  --c-charcoal: #2b2f2c;     /* body text */
  --c-muted: #59605b;        /* secondary text (6.3:1 on paper) */
  --c-forest: #2f4a3c;       /* brand green */
  --c-sage: #8fa08f;         /* muted sage */
  --c-sage-tint: #dde3d9;
  --c-brass: #b8975a;        /* restrained warm accent (on dark) */
  --c-brass-deep: #775a1c;   /* accent as text on light (6.1:1) */
  --c-ink: #1c2420;          /* deep green-charcoal, dark sections */
  --c-ink-deep: #141a17;     /* footer */
  --c-on-dark: #efede6;
  --c-on-dark-muted: #b7bdb5;
  --c-line-dark: rgba(239, 237, 230, 0.16);
  --c-error: #9a2d1f;
  --focus: var(--c-forest);

  /* Type */
  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-hero: clamp(2.75rem, 1.45rem + 5.6vw, 6.25rem);
  --t-h2: clamp(2rem, 1.45rem + 2.3vw, 3.5rem);
  --t-h3: clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
  --t-stat: clamp(6rem, 1.5rem + 19vw, 15rem);
  --t-stat-sm: clamp(3.5rem, 1.9rem + 6.5vw, 7rem);
  --t-lead: clamp(1.125rem, 1.04rem + 0.36vw, 1.375rem);
  --t-body: clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  /* Spacing: 8px system */
  --s-1: 0.5rem;   --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 2.5rem;   --s-6: 3rem;   --s-8: 4rem;    --s-10: 5rem;
  --s-12: 6rem;    --s-16: 8rem;
  --section-y: clamp(4rem, 2.4rem + 7vw, 8rem);

  /* Layout */
  --container: 80rem;                     /* 1280px maximum content width */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --col-gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  --measure: 62ch;

  /* Borders, radii (two only), shadows (two only) */
  --border: 1px solid var(--c-line);
  --r-1: 3px;      /* controls, images */
  --r-2: 12px;     /* cards and panels */
  --shadow-1: 0 1px 2px rgba(28, 36, 32, 0.05), 0 8px 24px -12px rgba(28, 36, 32, 0.18);
  --shadow-2: 0 2px 4px rgba(28, 36, 32, 0.06), 0 24px 48px -20px rgba(28, 36, 32, 0.32);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --d-fast: 180ms;
  --d-med: 320ms;
  --d-slow: 640ms;

  --header-h: 5.5rem;
  --header-h-solid: 4.25rem;
}

/* 3. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-solid) + 1rem);
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-charcoal);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

::selection { background: var(--c-forest); color: var(--c-on-dark); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--s-1); left: var(--s-1);
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-radius: var(--r-1);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--c-brass); }

/* 4. SHARED PARTS --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--stone { background: var(--c-stone); }
.section--dark {
  background: var(--c-ink);
  color: var(--c-on-dark);
  --focus: var(--c-brass);
}

.icon {
  width: 1.25rem; height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 2rem; height: 2rem; stroke-width: 1.25; }

.eyebrow {
  margin-bottom: var(--s-2);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-brass-deep);
}
.eyebrow--on-dark { color: var(--c-brass); }

.h2 {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.prose { max-width: var(--measure); color: var(--c-muted); }
.prose p + p { margin-top: var(--s-2); }
.section--dark .prose { color: var(--c-on-dark-muted); }

.section-head {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.section-head__aside { max-width: 38ch; color: var(--c-muted); font-size: var(--t-small); }
@media (min-width: 960px) {
  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: var(--s-6);
  }
}

/* Links */
.inline-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--d-fast) var(--ease);
}
.inline-link:hover { text-decoration-thickness: 2px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.55rem) / 100% 1px no-repeat;
  transition: background-size var(--d-med) var(--ease);
}
.text-link .icon { transition: transform var(--d-fast) var(--ease); }
.text-link:hover { background-size: 0 1px; background-position-x: 100%; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link--small { font-size: var(--t-small); }

.link-btn {
  padding: 0; border: 0; background: none;
  text-decoration: underline; text-underline-offset: 0.2em;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-1);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease);
}
.btn__arrow { transition: transform var(--d-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--block { display: flex; width: 100%; }
.btn--small { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: var(--t-small); }

.btn--dark { background: var(--c-ink); color: var(--c-on-dark); }
.btn--dark:hover { background: var(--c-forest); }

.btn--light { background: var(--c-paper); color: var(--c-ink); }
.btn--light:hover { background: #fff; }

.btn--ghost-light { border-color: rgba(247, 246, 241, 0.7); color: var(--c-paper); }
.btn--ghost-light:hover { background: rgba(247, 246, 241, 0.14); border-color: var(--c-paper); }

.btn--outline { border-color: var(--c-charcoal); color: var(--c-ink); background: transparent; }
.btn--outline:hover { background: var(--c-ink); color: var(--c-on-dark); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-1);
  background: transparent;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.icon-btn--light { border-color: var(--c-line-dark); color: var(--c-on-dark); }
.icon-btn--light:hover { background: rgba(239, 237, 230, 0.12); border-color: rgba(239, 237, 230, 0.4); }

/* Filter tabs: underlined text, not pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-3);
  border-bottom: var(--border);
}
.filter {
  position: relative;
  min-height: 2.75rem;
  padding: 0.5rem 0.125rem 0.75rem;
  border: 0;
  background: none;
  color: var(--c-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease);
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-med) var(--ease);
}
.filter:hover { color: var(--c-ink); }
.filter[aria-pressed="true"] { color: var(--c-ink); font-weight: 650; }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter__count { font-weight: 400; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.filters--quiet { border-bottom: 0; gap: 0 var(--s-3); }
.filters--quiet .filter { padding-bottom: 0.5rem; }
.filters--quiet .filter::after { bottom: 0.25rem; height: 1px; }

.temp-note {
  margin-top: var(--s-3);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--c-brass);
  background: var(--c-white);
  font-size: var(--t-small);
  color: var(--c-charcoal);
}
.noscript-note {
  margin-top: var(--s-3);
  padding: var(--s-2);
  border: var(--border);
  background: var(--c-white);
}

/* Responsive pictures injected by main.js */
[data-img] { position: relative; overflow: hidden; background: var(--c-stone); }
[data-img] picture, [data-img] img { width: 100%; height: 100%; }
[data-img] img { object-fit: cover; }

/* Three-line architectural mark (one line per building) */
.waitlist-state__mark, .map__idle-mark {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 2.5rem;
}
.waitlist-state__mark span, .map__idle-mark span { width: 1px; background: currentColor; }
.waitlist-state__mark span:nth-child(1), .map__idle-mark span:nth-child(1) { height: 60%; }
.waitlist-state__mark span:nth-child(2), .map__idle-mark span:nth-child(2) { height: 100%; }
.waitlist-state__mark span:nth-child(3), .map__idle-mark span:nth-child(3) { height: 78%; }

/* 5. HEADER AND MENU ------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--c-paper);
  --focus: var(--c-paper);
  transition: background-color var(--d-med) var(--ease), color var(--d-med) var(--ease),
              box-shadow var(--d-med) var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  height: var(--header-h-solid);
  transition: height var(--d-med) var(--ease);
}
@media (min-width: 960px) {
  .site-header__inner { height: var(--header-h); }
  .site-header.is-solid .site-header__inner { height: var(--header-h-solid); }
}
.site-header.is-solid {
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 1px 0 var(--c-line);
  --focus: var(--c-forest);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  min-height: 2.75rem;
  padding-block: 0.5rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__lead, .wordmark__trail {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.wordmark__name {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark img { height: 2.25rem; width: auto; }
/* When an approved logo replaces the text wordmark (see config.js). */
.wordmark__img--on-light { display: none; }
.site-header.is-solid .wordmark__img--on-dark { display: none; }
.site-header.is-solid .wordmark__img--on-light { display: block; }
@media (max-width: 380px) {
  .wordmark__lead { display: none; }
  .wordmark__trail { letter-spacing: 0.14em; }
}

.site-nav { display: none; }
@media (min-width: 1040px) {
  .site-nav { display: block; }
  .site-nav__list { display: flex; gap: clamp(1rem, 2vw, 2rem); }
  .site-nav__list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.5rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--d-med) var(--ease);
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__list a[aria-current="true"] { font-weight: 650; }
}

.site-header__actions { display: flex; align-items: center; gap: var(--s-1); }

.btn--header {
  display: none;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border-color: rgba(247, 246, 241, 0.7);
  color: inherit;
  font-size: var(--t-small);
}
.btn--header:hover { background: rgba(247, 246, 241, 0.14); }
.site-header.is-solid .btn--header { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-dark); }
.site-header.is-solid .btn--header:hover { background: var(--c-forest); border-color: var(--c-forest); }
@media (min-width: 640px) { .btn--header { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem 0.5rem 0.75rem;
  border: 0;
  background: none;
  color: inherit;
  font-size: var(--t-small);
  font-weight: 600;
}
.menu-toggle__bars { display: grid; gap: 6px; width: 1.5rem; }
.menu-toggle__bars span { height: 1.5px; background: currentColor; }
@media (min-width: 1040px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--c-ink);
  color: var(--c-on-dark);
  --focus: var(--c-brass);
  overflow-y: auto;
  animation: fade-in var(--d-med) var(--ease);
}
.mobile-menu__panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom));
}
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-solid);
}
.mobile-menu__list { margin-top: var(--s-3); border-top: 1px solid var(--c-line-dark); }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
  border-bottom: 1px solid var(--c-line-dark);
  font-family: var(--f-display);
  font-size: 1.75rem;
  text-decoration: none;
}
.mobile-menu__foot { margin-top: auto; padding-top: var(--s-5); display: grid; gap: var(--s-2); }
.mobile-menu__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--c-on-dark-muted);
  text-decoration: none;
}

/* 6. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 34rem;
  height: 90svh;
  max-height: 60rem;
  color: var(--c-paper);
  background: var(--c-ink);
  --focus: var(--c-paper);
  overflow: hidden;
}
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: center 60%; }
/* A restrained gradient only where the text sits. */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 26, 23, 0.34) 0, rgba(20, 26, 23, 0) 22%),
    linear-gradient(to top, rgba(20, 26, 23, 0.66) 0, rgba(20, 26, 23, 0.3) 34%, rgba(20, 26, 23, 0) 62%);
}
.hero__inner { position: relative; padding-block: var(--s-8) clamp(3rem, 2rem + 5vw, 6rem); }
.hero__content { max-width: 58rem; }
.hero__place {
  margin-bottom: var(--s-2);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: var(--s-3);
  max-width: 34ch;
  font-size: var(--t-lead);
  line-height: 1.45;
}
.hero__br { display: none; }
@media (min-width: 640px) {
  .hero__lead { max-width: none; }
  .hero__br { display: inline; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
@media (max-width: 479px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  display: none;
  width: 2.75rem;
  height: 6rem;
  justify-content: center;
  transition: opacity var(--d-med) var(--ease);
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(247, 246, 241, 0.35);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-paper);
  transform: translateY(-100%);
  animation: cue 2.4s var(--ease) infinite;
}
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
@media (min-width: 960px) { .scroll-cue { display: flex; } }

/* 7. FACTS ---------------------------------------------------------------- */
.facts { background: var(--c-stone); padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.facts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--col-gap);
}
.fact { display: flex; flex-direction: column; justify-content: flex-end; }
.fact--lead { grid-column: 1 / -1; padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-stone-deep); }
.fact--words { grid-column: 1 / -1; padding-top: var(--s-3); border-top: 1px solid var(--c-stone-deep); }
.fact__figure {
  font-family: var(--f-display);
  font-size: var(--t-stat-sm);
  font-weight: 350;
  line-height: 0.84;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  font-variant-numeric: lining-nums;
}
.fact--lead .fact__figure { font-size: var(--t-stat); letter-spacing: -0.045em; color: var(--c-forest); }
.fact__figure--set { display: flex; align-items: flex-end; }
.fact__figure--set span + span {
  margin-left: 0.14em;
  padding-left: 0.16em;
  border-left: 1px solid var(--c-stone-deep);
}
.fact__figure--words {
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
}
.fact__label {
  order: 2;
  margin-top: var(--s-2);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--c-muted);
}
@media (min-width: 960px) {
  .facts__grid { grid-template-columns: repeat(12, 1fr); align-items: end; gap: 0 var(--col-gap); }
  .fact { padding-left: var(--col-gap); border-left: 1px solid var(--c-stone-deep); min-height: 8rem; }
  .fact--lead { grid-column: 1 / span 5; padding: 0; border: 0; }
  .fact:nth-child(2) { grid-column: 6 / span 2; }
  .fact:nth-child(3) { grid-column: 8 / span 2; }
  .fact--words { grid-column: 10 / span 3; padding-top: 0; border-top: 0; }
  .fact__figure--words { white-space: nowrap; font-size: clamp(2rem, 0.2rem + 2.9vw, 3.25rem); }
  .fact:not(.fact--lead) .fact__figure:not(.fact__figure--words) { font-size: clamp(3.5rem, 0.5rem + 5vw, 5.75rem); }
}

/* 8. OVERVIEW ------------------------------------------------------------- */
.overview__grid { display: grid; gap: var(--s-5) var(--col-gap); }
.overview__copy .prose { margin-top: var(--s-3); }
.overview__copy .text-link { margin-top: var(--s-3); }
.overview__main { aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); }
.overview__inset {
  position: relative;
  z-index: 1;
  width: 46%;
  aspect-ratio: 4 / 5;
  margin: calc(var(--s-10) * -1) 0 0 auto;
  border: 6px solid var(--c-paper);
  border-right: 0;
}
.overview__list { border-top: var(--border); }
.overview__list li {
  padding-block: 0.75rem;
  border-bottom: var(--border);
  font-size: 0.9375rem;
}
@media (min-width: 960px) {
  .overview__grid { grid-template-columns: repeat(12, 1fr); row-gap: var(--s-8); align-items: start; }
  .overview__copy { grid-column: 1 / span 5; grid-row: 1; padding-top: var(--s-4); }
  .overview__main {
    grid-column: 7 / -1; grid-row: 1 / span 2;
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 40rem;
    margin-inline: 0;
    border-radius: var(--r-1);
  }
  .overview__inset {
    grid-column: 5 / span 3; grid-row: 2;
    width: auto;
    align-self: end;
    margin: 0 0 var(--s-6);
    border: 8px solid var(--c-paper);
    border-radius: var(--r-1);
  }
  .overview__list { grid-column: 1 / span 3; grid-row: 2; align-self: end; }
}

/* 9. HOMES ---------------------------------------------------------------- */
.homes { background: var(--c-paper); }
@media (min-width: 960px) { .homes { padding-top: calc(var(--section-y) * 0.75); } }

@media (max-width: 639px) {
  .homes .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-2); }
  .homes .filter { text-align: left; }
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: var(--col-gap);
  margin-top: var(--s-4);
  transition: opacity var(--d-fast) var(--ease);
}
.suite-grid.is-swapping { opacity: 0; }

.suite {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-3);
  background: var(--c-white);
  border: var(--border);
  border-radius: var(--r-2);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease);
}
.suite:hover, .suite:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  border-color: var(--c-stone-deep);
}
.suite__rent {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 2rem + 1vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.suite__per { font-family: var(--f-body); font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--c-muted); }
.suite__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: var(--t-small);
  font-weight: 600;
}
/* Status is carried by the words; the shape differs too, never colour alone. */
.suite__status::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--c-forest);
  border: 1.5px solid var(--c-forest);
}
.suite__status--soon::before { background: transparent; border-color: var(--c-brass-deep); }
.suite__status--waitlist::before { background: transparent; border-color: var(--c-muted); border-radius: 0; }
.suite__type {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: var(--border);
  font-family: var(--f-display);
  font-size: 1.375rem;
  line-height: 1.2;
}
.suite__number { font-size: var(--t-small); color: var(--c-muted); }
.suite__specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: var(--s-1);
  margin-top: var(--s-2);
  font-size: var(--t-small);
}
.suite__specs dt { font-size: var(--t-label); color: var(--c-muted); }
.suite__specs dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.suite__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); margin-top: var(--s-1); }
.suite__cta { margin-top: auto; padding-top: var(--s-3); }

.filter-empty {
  display: grid;
  justify-items: start;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding-block: var(--s-4);
  border-block: var(--border);
}
.filter-empty__text { font-family: var(--f-display); font-size: var(--t-h3); max-width: 30ch; }

.waitlist-state {
  display: grid;
  justify-items: start;
  gap: var(--s-2);
  max-width: 44rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: var(--c-white);
  border: var(--border);
  border-radius: var(--r-2);
  color: var(--c-charcoal);
}
.waitlist-state__mark { color: var(--c-forest); margin-bottom: var(--s-1); }
.waitlist-state p { max-width: 52ch; color: var(--c-muted); }
.waitlist-state__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-2); }

.disclaimer {
  max-width: 78ch;
  margin-top: var(--s-5);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--c-muted);
}

/* Promotion */
.promo {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--c-sage-tint);
  border-left: 3px solid var(--c-forest);
  border-radius: var(--r-1);
}
.promo__flag { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-forest); }
.promo__title { margin-top: var(--s-1); font-family: var(--f-display); font-size: var(--t-h3); font-weight: 450; line-height: 1.2; }
.promo__text { margin-top: var(--s-1); max-width: 60ch; }
.promo__expiry { margin-top: var(--s-1); font-size: var(--t-small); color: var(--c-muted); }
.promo__side { display: grid; gap: var(--s-1); align-content: start; justify-items: start; }
.promo__terms { font-size: var(--t-small); max-width: 46ch; }
.promo__terms summary { min-height: 2.75rem; display: inline-flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.promo__terms p { color: var(--c-muted); }
@media (min-width: 960px) {
  .promo { grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s-6); }
}

/* 10. AMENITIES AND GALLERY ---------------------------------------------- */
.amenities__head { max-width: 46rem; margin-bottom: var(--s-6); }
.amenities__layout { display: grid; gap: var(--s-5) var(--col-gap); }
.amenities__image { aspect-ratio: 16 / 10; border-radius: var(--r-1); background: #26302b; }
.advantages { display: grid; align-content: start; }
.advantage {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--s-2);
  align-content: start;
  padding-block: var(--s-3);
  border-top: 1px solid var(--c-line-dark);
}
.advantage .icon { color: var(--c-brass); margin-top: 0.125rem; }
.advantage__title { font-family: var(--f-display); font-size: 1.375rem; font-weight: 450; line-height: 1.2; }
.advantage p { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--c-on-dark-muted); max-width: 36ch; }
@media (min-width: 640px) {
  .advantages { grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
}
@media (min-width: 1200px) {
  .advantages { grid-template-columns: repeat(3, 1fr); }
  .advantage { grid-template-columns: 1fr; gap: var(--s-2); padding-block: var(--s-3) var(--s-4); }
}
@media (min-width: 960px) {
  .amenities__layout { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .amenities__image { grid-column: 1 / span 4; aspect-ratio: 3 / 4; }
  .advantages { grid-column: 6 / -1; }
}
@media (min-width: 1200px) {
  .amenities__image { grid-column: 1 / span 3; aspect-ratio: auto; align-self: stretch; }
  .advantages { grid-column: 5 / -1; }
}

.building-list {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-8);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line-dark);
}
.building-list__title { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-brass); }
.building-list ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-family: var(--f-display); font-size: 1.375rem; }
.building-list__note { font-size: var(--t-small); color: var(--c-on-dark-muted); max-width: 52ch; }
@media (min-width: 960px) {
  .building-list { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: baseline; }
  .building-list__title { grid-column: 1 / span 3; }
  .building-list ul { grid-column: 6 / -1; }
  .building-list__note { grid-column: 6 / -1; }
}

/* Gallery mosaic: balanced columns with mixed proportions */
.mosaic { columns: 2; column-gap: var(--s-1); margin-top: var(--s-3); }
@media (min-width: 640px) { .mosaic { column-gap: var(--s-2); } }
@media (min-width: 960px) { .mosaic { columns: 3; column-gap: var(--col-gap); } }
.mosaic__item { break-inside: avoid; margin-bottom: var(--s-1); }
@media (min-width: 640px) { .mosaic__item { margin-bottom: var(--s-2); } }
@media (min-width: 960px) { .mosaic__item { margin-bottom: var(--col-gap); } }
.mosaic__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-1);
  background: var(--c-stone);
  overflow: hidden;
  cursor: zoom-in;
}
.mosaic__btn picture, .mosaic__btn img { width: 100%; height: 100%; }
.mosaic__btn img { object-fit: cover; transition: transform var(--d-slow) var(--ease); }
.mosaic__btn:hover img { transform: scale(1.035); }
.mosaic__btn--landscape { aspect-ratio: 3 / 2; }
.mosaic__btn--wide { aspect-ratio: 16 / 10; }
.mosaic__btn--portrait { aspect-ratio: 3 / 4; }
.mosaic__btn--detail { aspect-ratio: 1 / 1; }

/* 11. VIDEO --------------------------------------------------------------- */
.video__grid { display: grid; gap: var(--s-4) var(--col-gap); }
.video__copy .prose { margin-top: var(--s-2); max-width: 34ch; color: var(--c-muted); }
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--c-ink);
  box-shadow: var(--shadow-2);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; color: var(--c-paper); }
.video__play:focus-visible { outline-offset: -6px; outline-color: var(--c-paper); }
.video__poster { position: absolute; inset: 0; }
.video__poster img { transition: transform var(--d-slow) var(--ease); }
.video__play:hover .video__poster img { transform: scale(1.02); }
.video__button {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 5rem; height: 5rem;
  border: 1px solid rgba(247, 246, 241, 0.8);
  border-radius: 50%;
  background: rgba(20, 26, 23, 0.5);
  transform: translate(-50%, -50%);
  transition: background-color var(--d-fast) var(--ease);
}
.video__button .icon { width: 1.75rem; height: 1.75rem; fill: currentColor; stroke: none; margin-left: 3px; }
.video__play:hover .video__button { background: var(--c-forest); }
@media (min-width: 960px) {
  .video__grid { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .video__copy { grid-column: 1 / span 4; padding-bottom: var(--s-3); }
  .video__frame { grid-column: 5 / -1; }
}

/* 12. LOCATION ------------------------------------------------------------ */
.location__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 960px) {
  .location__head { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: end; }
  .location__head > div { grid-column: 1 / span 6; }
  .location__head > .prose { grid-column: 8 / -1; }
}

.map { position: relative; }
.map__canvas {
  position: relative;
  z-index: 0;
  height: clamp(20rem, 12rem + 34vw, 35rem);
  border-radius: var(--r-2) var(--r-2) 0 0;
  background: var(--c-stone);
  overflow: hidden;
}
.map__idle {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: var(--s-2);
  color: var(--c-muted);
  font-size: var(--t-small);
}
.map__panel {
  padding: var(--s-3);
  background: var(--c-white);
  border: var(--border);
  border-top: 0;
  border-radius: 0 0 var(--r-2) var(--r-2);
}
.map__panel-name { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.15; }
.map__panel-address { margin-top: var(--s-1); color: var(--c-muted); }
@media (min-width: 960px) {
  .map__canvas { border-radius: var(--r-2); }
  .map__panel {
    position: absolute;
    z-index: 2;
    top: var(--s-3); left: var(--s-3);
    width: 19rem;
    border: 0;
    border-radius: var(--r-2);
    box-shadow: var(--shadow-2);
  }
}

/* Leaflet adjustments: muted tiles and controls that match the site */
.map__canvas .leaflet-tile-pane { filter: grayscale(0.85) sepia(0.12) contrast(0.95) brightness(1.03); }
.map__canvas .leaflet-container { height: 100%; font-family: var(--f-body); background: var(--c-stone); }
.map__canvas .leaflet-bar { border: 0; box-shadow: var(--shadow-1); border-radius: var(--r-1); }
.map__canvas .leaflet-bar a { width: 2.75rem; height: 2.75rem; line-height: 2.75rem; color: var(--c-ink); }
.map__canvas .leaflet-control-attribution { font-size: 0.6875rem; background: rgba(253, 252, 249, 0.86); }
.map__canvas .leaflet-popup-content-wrapper { border-radius: var(--r-1); box-shadow: var(--shadow-1); }
.map__canvas .leaflet-popup-content { margin: 0.75rem 1rem; font-size: var(--t-small); line-height: 1.4; color: var(--c-charcoal); }
.map-marker { position: relative; }
.map-marker__pin {
  position: absolute;
  left: 50%; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 44px; height: 44px;
  padding-bottom: 13px;
  border-radius: 50% 50% 50% 0;
  background: var(--c-forest);
  border: 2px solid var(--c-white);
  box-shadow: var(--shadow-1);
  transform: translateX(-50%) rotate(-45deg);
  transform-origin: 50% 100%;
}
.map-marker__pin::after { content: none; }
.map-marker__bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; transform: rotate(45deg) translate(-2px, -6px); }
.map-marker__bars i { width: 2px; background: var(--c-paper); }
.map-marker__bars i:nth-child(1) { height: 9px; }
.map-marker__bars i:nth-child(2) { height: 16px; }
.map-marker__bars i:nth-child(3) { height: 12px; }
.poi-marker {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-white);
  border: 3px solid var(--c-brass-deep);
  box-shadow: 0 1px 3px rgba(28, 36, 32, 0.3);
}

.map-tools { margin-top: var(--s-3); }
.map-tools__label { font-size: var(--t-small); font-weight: 600; }
.map-tools__status { min-height: 1.5rem; margin-top: var(--s-1); font-size: var(--t-small); color: var(--c-muted); }
.nearby-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0 var(--col-gap);
  margin-top: var(--s-2);
  border-top: var(--border);
  font-size: var(--t-small);
}
.nearby-list li { padding-block: 0.625rem; border-bottom: var(--border); }

.location__lower { display: grid; gap: var(--s-6) var(--col-gap); margin-top: var(--s-8); }
@media (min-width: 960px) {
  .location__lower { grid-template-columns: repeat(12, 1fr); }
  .scores { grid-column: 1 / span 6; }
  .map-alt { grid-column: 8 / -1; }
}
.scores__list { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.score__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.score__name { font-weight: 600; }
.score__value { font-family: var(--f-display); font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--c-ink); }
.score__of { font-family: var(--f-body); font-size: var(--t-small); letter-spacing: 0; color: var(--c-muted); }
.score__track { position: relative; height: 1px; margin-top: var(--s-2); background: var(--c-stone-deep); }
.score__fill {
  position: absolute;
  left: 0; top: -1px;
  width: calc(var(--v) * 1%);
  height: 3px;
  background: var(--c-forest);
  transform-origin: left;
}
.scores__note, .map-alt__note { margin-top: var(--s-3); font-size: 0.8125rem; color: var(--c-muted); }
.map-alt p { margin-top: var(--s-2); color: var(--c-muted); max-width: 52ch; }
.map-alt__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); margin-top: var(--s-2); }
.map-alt__links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* 13. CONTACT AND FORM ---------------------------------------------------- */
.contact__grid { display: grid; gap: var(--s-6) var(--col-gap); }
.contact__lead { margin-top: var(--s-3); max-width: 44ch; font-size: var(--t-lead); line-height: 1.5; color: var(--c-on-dark-muted); }
.contact__details { margin-top: var(--s-5); border-top: 1px solid var(--c-line-dark); }
.contact__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--c-line-dark);
}
.contact__row dt { padding-top: 0.25rem; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-brass); }
.contact__row dd { display: grid; justify-items: start; gap: 0.25rem; }
.contact__phone {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: lining-nums;
}
.contact__phone:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.contact__phone--small { font-size: 1.375rem; }
.contact__person { font-weight: 600; }
.contact__email { min-height: 2.75rem; display: inline-flex; align-items: center; word-break: break-all; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.75rem 0 0.5rem;
  margin-left: -0.5rem;
  border: 0;
  border-radius: var(--r-1);
  background: none;
  color: var(--c-on-dark-muted);
  font-size: var(--t-small);
  transition: color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease);
}
.copy-btn:hover { color: var(--c-on-dark); background: rgba(239, 237, 230, 0.08); }
.copy-btn.is-copied { color: var(--c-brass); }
@media (max-width: 479px) { .contact__row { grid-template-columns: 1fr; gap: var(--s-1); } }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .contact__intro { grid-column: 1 / span 5; }
  .contact__form-wrap { grid-column: 7 / -1; }
}

.contact__form-wrap {
  padding: clamp(1.25rem, 0.8rem + 2.4vw, 2.5rem);
  background: var(--c-paper);
  color: var(--c-charcoal);
  border-radius: var(--r-2);
  --focus: var(--c-forest);
}
@media (max-width: 639px) {
  .contact__form-wrap { margin-inline: calc(var(--gutter) * -0.5); }
}
.form { display: grid; gap: var(--s-4); }
.form__legend-note { font-size: var(--t-small); color: var(--c-muted); }
.form__group { display: grid; gap: var(--s-2); }
.form__legend {
  width: 100%;
  margin-bottom: var(--s-2);
  padding-bottom: 0.75rem;
  border-bottom: var(--border);
  font-family: var(--f-display);
  font-size: 1.375rem;
  line-height: 1.2;
}
.form__row { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.375rem; align-content: start; }
.field label { font-size: var(--t-small); font-weight: 600; }
.req { color: var(--c-error); }
.opt { font-weight: 400; color: var(--c-muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  background: var(--c-white);
  border: 1px solid #8d938d;
  border-radius: var(--r-1);
  font-size: 1rem;
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2f2c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-charcoal); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--c-forest);
  outline-offset: 1px;
  border-color: var(--c-forest);
}
.field [aria-invalid="true"] { border-color: var(--c-error); box-shadow: inset 0 0 0 1px var(--c-error); }
.field__error {
  display: flex;
  gap: 0.375rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--c-error);
}
.field__error::before {
  content: "!";
  flex: none;
  display: inline-grid; place-items: center;
  width: 1.125rem; height: 1.125rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--c-error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.field--check { grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: start; }
.field--check input {
  width: 1.5rem; height: 1.5rem;
  margin: 0.125rem 0 0;
  accent-color: var(--c-forest);
}
.field--check label { font-weight: 400; font-size: 0.9375rem; padding-block: 0.125rem; }
.field--check .field__error { grid-column: 2; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__suite {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  background: var(--c-sage-tint);
  border-radius: var(--r-1);
  font-size: var(--t-small);
  font-weight: 600;
}
.form__suite-clear { min-height: 2.75rem; padding: 0 0.75rem; border: 0; background: none; text-decoration: underline; text-underline-offset: 0.2em; font-weight: 400; }

.form__status {
  padding: 1rem;
  border: 1px solid var(--c-error);
  border-left-width: 3px;
  border-radius: var(--r-1);
  background: #fbf1ee;
  font-size: 0.9375rem;
}
.form__status strong { display: block; margin-bottom: 0.25rem; }

.btn--submit { justify-self: start; min-width: 14rem; }
@media (max-width: 479px) { .btn--submit { width: 100%; } }
.btn__spinner {
  display: none;
  width: 1.125rem; height: 1.125rem;
  border: 2px solid rgba(239, 237, 230, 0.35);
  border-top-color: var(--c-on-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn--submit[aria-disabled="true"] { cursor: progress; background: var(--c-forest); }
.btn--submit[aria-disabled="true"] .btn__arrow { display: none; }
.btn--submit[aria-disabled="true"] .btn__spinner { display: block; }

.form-done { display: grid; justify-items: start; gap: var(--s-2); padding-block: var(--s-4); }
.form-done:focus-visible { outline-offset: 8px; }
.form-done__icon {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--c-forest);
  color: var(--c-paper);
}
.form-done__icon .icon { width: 1.75rem; height: 1.75rem; }
.form-done p { max-width: 46ch; color: var(--c-muted); }

/* 14. FOOTER -------------------------------------------------------------- */
.site-footer {
  background: var(--c-ink-deep);
  color: var(--c-on-dark-muted);
  padding-block: var(--s-8) calc(var(--s-4) + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  --focus: var(--c-brass);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-on-dark); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__top { display: grid; gap: var(--s-5) var(--col-gap); }
.wordmark--footer { color: var(--c-on-dark); margin-bottom: var(--s-1); }
.wordmark--footer .wordmark__name { font-size: 2.25rem; }
.site-footer__brand address { line-height: 1.7; }
.site-footer__brand address a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--c-on-dark); }
.site-footer__nav ul { display: grid; }
.site-footer__nav a, .site-footer__nav .link-btn {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  color: var(--c-on-dark);
}
.site-footer__nav .link-btn:hover { text-decoration-thickness: 2px; }
.site-footer__mgmt { display: grid; gap: var(--s-3); justify-items: start; align-content: start; }
.site-footer__credit { max-width: 26ch; font-size: var(--t-small); }
/* Devon logo: proportions locked, generous clear space, never stretched. */
.devon { display: inline-block; padding: var(--s-2) var(--s-2) var(--s-2) 0; }
.devon img { width: 9.5rem; height: auto; aspect-ratio: 269.69 / 120.06; }
a.devon { transition: opacity var(--d-fast) var(--ease); }
a.devon:hover { opacity: 0.8; }
.site-footer__base {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line-dark);
  font-size: 0.8125rem;
}
@media (min-width: 960px) {
  .site-footer__top { grid-template-columns: repeat(12, 1fr); }
  .site-footer__brand { grid-column: 1 / span 5; }
  .site-footer__nav { grid-column: 7 / span 3; }
  .site-footer__mgmt { grid-column: 10 / -1; }
  .site-footer__base { grid-template-columns: 1fr auto; }
}

/* Mobile sticky call to action */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--c-paper);
  border-top: var(--border);
  box-shadow: 0 -8px 24px -16px rgba(28, 36, 32, 0.3);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform var(--d-med) var(--ease), visibility 0s linear var(--d-med);
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
@media (min-width: 768px) { .sticky-cta { display: none !important; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(20, 26, 23, 0.97);
  color: var(--c-on-dark);
  --focus: var(--c-brass);
  animation: fade-in var(--d-med) var(--ease);
}
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(0.75rem + env(safe-area-inset-top)) var(--gutter) 0.75rem;
}
.lightbox__count { font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--c-on-dark-muted); }
.lightbox__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-1);
  min-height: 0;
  padding: 0 var(--s-1) calc(var(--s-3) + env(safe-area-inset-bottom));
}
.lightbox__figure { display: grid; grid-template-rows: 1fr auto; height: 100%; min-height: 0; min-width: 0; touch-action: pan-y; }
.lightbox__img { display: grid; place-items: center; min-height: 0; }
.lightbox__img picture { display: contents; }
.lightbox__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-1); }
.lightbox__caption { min-height: 1.5rem; padding-top: var(--s-2); text-align: center; font-size: var(--t-small); color: var(--c-on-dark-muted); }
@media (max-width: 639px) {
  .lightbox__stage { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: calc(var(--s-2) + env(safe-area-inset-bottom)); z-index: 1; background: rgba(20, 26, 23, 0.7); }
  .lightbox__nav--prev { left: var(--gutter); }
  .lightbox__nav--next { right: var(--gutter); }
  .lightbox__caption { padding-inline: 3.5rem; min-height: 2.75rem; }
}

/* Consent banner */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 120;
  padding: var(--s-2) var(--gutter) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--c-white);
  border-top: var(--border);
  box-shadow: var(--shadow-2);
}
.consent__inner {
  display: grid;
  gap: var(--s-2);
  max-width: var(--container);
  margin-inline: auto;
}
.consent__text { font-size: var(--t-small); max-width: 70ch; }
.consent__actions { display: flex; gap: var(--s-1); }
@media (min-width: 768px) {
  .consent__inner { grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s-5); }
}

/* Sub-pages (privacy, accessibility, 404) */
.page-sub .site-header { position: sticky; top: 0; }
.subpage { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section-y); }
.subpage__head { max-width: 46rem; margin-bottom: var(--s-6); padding-bottom: var(--s-4); border-bottom: var(--border); }
.subpage__head .h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.subpage__head p { margin-top: var(--s-2); color: var(--c-muted); }
.longform { max-width: 44rem; }
.longform h2 { margin-top: var(--s-6); font-family: var(--f-display); font-size: var(--t-h3); font-weight: 450; line-height: 1.2; }
.longform h2:first-child { margin-top: 0; }
.longform p, .longform ul, .longform dl { margin-top: var(--s-2); }
.longform ul { list-style: disc; padding-left: 1.25rem; }
.longform li + li { margin-top: 0.5rem; }
.longform a { font-weight: 600; text-underline-offset: 0.2em; }
.longform table { width: 100%; margin-top: var(--s-2); border-collapse: collapse; font-size: 0.9375rem; }
.longform th, .longform td { padding: 0.75rem 0.75rem 0.75rem 0; text-align: left; vertical-align: top; border-bottom: var(--border); }
.longform th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.draft-flag { margin-bottom: var(--s-5); }

.notfound { min-height: 70svh; display: grid; align-content: center; justify-items: start; gap: var(--s-3); }
.notfound__code { font-family: var(--f-display); font-size: var(--t-stat); line-height: 0.8; letter-spacing: -0.045em; color: var(--c-forest); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }

/* MOTION ------------------------------------------------------------------ */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__content { animation: rise var(--d-slow) var(--ease) both; }

/* One-time section reveals: opacity plus 10px, whole blocks only. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .score__fill { transform: scaleX(0); transition: transform 900ms var(--ease) 150ms; }
.js .is-in .score__fill { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .score__fill { transform: scaleX(1); }
  .scroll-cue { display: none !important; }
  .suite:hover, .suite:focus-within { transform: none; }
  .mosaic__btn:hover img, .video__play:hover .video__poster img { transform: none; }
  .btn:hover .btn__arrow, .text-link:hover .icon { transform: none; }
}

@media print {
  .site-header, .sticky-cta, .consent, .scroll-cue, .mobile-menu, .lightbox { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
