/* ============================================================================
   ARRASAN REAL ESTATES — Architectural Design System
   ----------------------------------------------------------------------------
   A premium, editorial visual language for a land & layout developer.

   Palette balance (approx.)
     55%  warm ivory / sand neutrals
     25%  deep forest / charcoal
     10%  photography & plan drawings
      7%  muted champagne gold
      3%  brand red (accent only — never a field colour)

   Type
     Display : Cormorant Garamond  — headings, numerals, statements
     Body    : Manrope             — UI, body copy, eyebrows, metadata

   Motion
     transform / opacity / clip-path only. Everything respects
     prefers-reduced-motion.
   ========================================================================== */

/* ============================================================
   01 — TOKENS
   ============================================================ */
:root {
  /* ---- Core palette ---- */
  --forest:        #102c2a;
  --forest-deep:   #0a1e1c;
  --forest-soft:   #1c403d;
  --charcoal:      #171918;
  --charcoal-soft: #242926;
  --ivory:         #faf7f0;
  --ivory-lift:    #ffffff;
  --cream:         #f4efe3;
  --sand:          #ece6d8;
  --sand-deep:     #ddd5c3;
  --gold:          #b99a5b;
  --gold-soft:     #cdb384;
  --gold-deep:     #96793f;

  /* Action colour. The crest in the logo is red, so red carries the CTAs and
     red alone means "do this" — it is never used as a field or a border tint. */
  --brand-red:     #c4231d;
  --brand-red-lift:#d92c25;
  --brand-red-deep:#9d1a15;
  --whatsapp:      #25d366;

  /* ---- Semantic ---- */
  --bg:            var(--ivory);
  --surface:       var(--ivory-lift);
  --ink:           var(--charcoal);
  --ink-soft:      #5c625c;
  --ink-faint:     #676c67;
  --on-dark:       #f2efe6;
  --on-dark-soft:  rgba(242, 239, 230, 0.66);
  --on-dark-faint: rgba(242, 239, 230, 0.58);
  --line:          rgba(23, 25, 24, 0.14);
  --line-soft:     rgba(23, 25, 24, 0.08);
  --line-dark:     rgba(242, 239, 230, 0.16);
  --line-dark-soft: rgba(242, 239, 230, 0.09);

  /* ---- Type ---- */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero:    clamp(2.5rem, 6.1vw, 5.75rem);
  --fs-display: clamp(2.6rem, 5.6vw, 5.25rem);
  --fs-h1:      clamp(2.4rem, 4.8vw, 4.25rem);
  --fs-h2:      clamp(2rem, 3.9vw, 3.5rem);
  --fs-h3:      clamp(1.35rem, 1.9vw, 1.9rem);
  --fs-h4:      clamp(1.1rem, 1.3vw, 1.3rem);
  --fs-lead:    clamp(1.02rem, 1.15vw, 1.2rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.8125rem;
  --fs-eyebrow: 0.6875rem;

  /* ---- Space & measure ---- */
  --container:      86rem;
  --container-wide: 100rem;
  --container-text: 46rem;
  --section:        clamp(4rem, 6vw, 7rem);
  --section-tight:  clamp(2.75rem, 4vw, 4.5rem);

  /* ---- Radius. Sections stay square; the things you touch are rounded. ---- */
  --radius-xs: 3px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-sm:    0 1px 2px rgba(28, 24, 16, 0.05);
  --shadow-soft:  0 2px 8px rgba(28, 24, 16, 0.05), 0 12px 28px -18px rgba(28, 24, 16, 0.18);
  --shadow-md:    0 4px 14px rgba(28, 24, 16, 0.06), 0 20px 44px -26px rgba(28, 24, 16, 0.26);
  --shadow-lg:    0 40px 90px -50px rgba(10, 30, 28, 0.45);
  --shadow-panel: 0 32px 80px -44px rgba(10, 30, 28, 0.55);

  /* ---- Motion ---- */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:    cubic-bezier(0.40, 0, 0.20, 1);
  --ease-sweep:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.28s;
  --dur-mid:  0.55s;
  --dur-slow: 0.95s;

  --header-h: 5.25rem;
}

/* ============================================================
   02 — RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--forest-deep); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--forest);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }
p  { text-wrap: pretty; }

:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 400;
  transform: translate(-50%, -220%);
  background: var(--forest);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  transition: transform var(--dur-fast) var(--ease-premium);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ============================================================
   03 — LAYOUT PRIMITIVES
   ============================================================ */
.page-shell { display: flex; min-height: 100vh; flex-direction: column; }
.page-main { flex: 1 0 auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-wide { max-width: var(--container-wide); }
.container-text { max-width: var(--container-text); }
@media (min-width: 768px)  { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3.5rem; } }

.section { padding-block: var(--section); }
.section-tight { padding-block: var(--section-tight); }

/* Tonal fields — the rhythm of the page */
.field-ivory    { background: var(--ivory); color: var(--ink); }
.field-sand     { background: var(--sand); color: var(--ink); }
.field-forest   { background: var(--forest); color: var(--on-dark); }
.field-charcoal { background: var(--charcoal); color: var(--on-dark); }
.field-forest :is(h1, h2, h3, h4),
.field-charcoal :is(h1, h2, h3, h4) { color: var(--on-dark); }

/* Paper grain — a whisper of warmth, never noise */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(185, 154, 91, 0.10), transparent 46%),
    radial-gradient(circle at 84% 82%, rgba(185, 154, 91, 0.07), transparent 52%);
}

/* ============================================================
   04 — TYPE UTILITIES
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-soft);
}
.eyebrow-gold { color: var(--gold-deep); }
.field-forest .eyebrow,
.field-charcoal .eyebrow { color: var(--gold-soft); }

.display { font-size: var(--fs-display); line-height: 0.98; }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 54ch;
}
.field-forest .lead,
.field-charcoal .lead { color: var(--on-dark-soft); }

.body-copy { color: var(--ink-soft); line-height: 1.75; max-width: 62ch; }
.field-forest .body-copy,
.field-charcoal .body-copy { color: var(--on-dark-soft); }

.numeral {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
}
.text-gold { color: var(--gold-deep); }
.text-red  { color: var(--brand-red); }

.masthead { display: grid; gap: 1.1rem; }
.masthead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hairline { height: 1px; width: 100%; background: var(--line); border: 0; }
.field-forest .hairline,
.field-charcoal .hairline { background: var(--line-dark); }

.rule-gold { display: block; width: 3.25rem; height: 1px; background: var(--gold); }

.index-tag {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.field-forest .index-tag,
.field-charcoal .index-tag { color: var(--on-dark-faint); }

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

.icon    { width: 1rem;      height: 1rem;      flex: none; }
.icon-sm { width: 0.8125rem; height: 0.8125rem; flex: none; }
.icon-lg { width: 1.25rem;   height: 1.25rem;   flex: none; }
.icon-xl { width: 1.5rem;    height: 1.5rem;    flex: none; }
.flip { transform: rotate(180deg); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   05 — BUTTONS & LINKS
   ============================================================ */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--on-dark);
  --btn-line: var(--forest);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 1.75rem;
  border: 1px solid var(--btn-line);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill, var(--brand-red-deep));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-mid) var(--ease-premium);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn .icon { transition: transform var(--dur-mid) var(--ease-premium); }
.btn:hover .icon { transform: translateX(0.35rem); }
.btn:hover { transform: translateY(-2px); }
.btn { transition: color var(--dur-fast) var(--ease-soft),
                   border-color var(--dur-fast) var(--ease-soft),
                   transform var(--dur-mid) var(--ease-premium),
                   box-shadow var(--dur-mid) var(--ease-premium); }

/* Primary — the one thing on the page we want pressed. */
.btn-primary {
  --btn-bg: var(--brand-red);
  --btn-fg: #fff;
  --btn-line: var(--brand-red);
  --btn-fill: var(--brand-red-deep);
  box-shadow: 0 10px 24px -14px rgba(196, 35, 29, 0.7);
}
.btn-primary:hover, .btn-primary:focus-visible {
  color: #fff;
  border-color: var(--brand-red-deep);
  box-shadow: 0 16px 32px -14px rgba(196, 35, 29, 0.55);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--forest);
  --btn-line: rgba(16, 44, 42, 0.24);
  --btn-fill: var(--forest);
}
.btn-outline:hover, .btn-outline:focus-visible { color: var(--ivory); border-color: var(--forest); }

.btn-light { --btn-bg: #fff; --btn-fg: var(--forest); --btn-line: #fff; --btn-fill: var(--cream); }
.btn-light:hover, .btn-light:focus-visible { color: var(--forest-deep); border-color: var(--cream); }

.btn-ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  --btn-line: rgba(242, 239, 230, 0.32);
  --btn-fill: rgba(242, 239, 230, 0.12);
}
.btn-ghost-light:hover, .btn-ghost-light:focus-visible { color: #fff; border-color: rgba(242, 239, 230, 0.6); }

.btn-sm { padding: 0.8rem 1.35rem; font-size: 0.6875rem; }
.btn-block { width: 100%; }

/* Text link with a rule that redraws on hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  padding-bottom: 0.45rem;
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: currentColor;
  opacity: 0.3;
  transform-origin: right center;
  transition: transform var(--dur-mid) var(--ease-premium), opacity var(--dur-fast);
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { transform: scaleX(0.32); opacity: 1; transform-origin: left center; }
.link-arrow .icon { transition: transform var(--dur-mid) var(--ease-premium); }
.link-arrow:hover .icon { transform: translateX(0.4rem); }
.field-forest .link-arrow,
.field-charcoal .link-arrow { color: var(--gold-soft); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border-bottom: 1px solid rgba(23, 25, 24, 0.2);
  padding-bottom: 2px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.link-quiet:hover { color: var(--gold-deep); border-color: var(--gold); }
.field-forest .link-quiet,
.field-charcoal .link-quiet { border-color: var(--line-dark); }
.field-forest .link-quiet:hover,
.field-charcoal .link-quiet:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* Status marker — a small architectural tag, red used only for "ongoing" */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.status-tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.status-tag.is-ongoing::before { background: var(--brand-red); }
.status-tag.is-upcoming::before { background: var(--forest-soft); }
.field-forest .status-tag,
.field-charcoal .status-tag,
.on-image .status-tag { color: var(--on-dark-soft); }

/* ============================================================
   06 — SITE CHROME: LOADER, CURSOR, HEADER, NAVIGATION
   ============================================================ */

/* ---- 06.1 Loading curtain ---- */
/* Hidden unless JS confirmed it can take it away again (and only once
   per session, never for reduced-motion visitors). */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  background: var(--forest-deep);
  transition: opacity 0.5s var(--ease-soft), visibility 0.5s;
}
html.js:not(.seen):not(.no-motion) .curtain { display: grid; }
.curtain.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.curtain-inner { display: grid; justify-items: center; gap: 1.5rem; }
.curtain-mark {
  width: 3rem; height: 3rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: curtain-mark 0.9s var(--ease-premium) forwards;
}
.curtain-word {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  opacity: 0;
  animation: curtain-mark 0.9s 0.15s var(--ease-premium) forwards;
  padding-left: 0.42em;
}
.curtain-line {
  width: 7rem; height: 1px;
  background: var(--line-dark);
  overflow: hidden;
}
.curtain-line span {
  display: block; height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  animation: curtain-line 1.05s 0.1s var(--ease-sweep) forwards;
}
@keyframes curtain-mark { to { opacity: 1; } }
@keyframes curtain-line { to { transform: scaleX(1); } }

/* ---- 06.2 Custom cursor (pointer: fine only) ---- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 480;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--forest);
  transition: opacity 0.3s, background-color 0.3s, transform 0.12s var(--ease-soft);
}
.cursor-ring {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(16, 44, 42, 0.35);
  display: grid;
  place-items: center;
  transition: opacity 0.3s, width 0.4s var(--ease-premium), height 0.4s var(--ease-premium),
              margin 0.4s var(--ease-premium), background-color 0.4s var(--ease-premium),
              border-color 0.4s var(--ease-premium);
}
.cursor-ring span {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.35s var(--ease-premium);
  white-space: nowrap;
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring { opacity: 0; }

body.cursor-link .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--gold); }
body.cursor-link .cursor-dot { opacity: 0; }

body.cursor-label .cursor-ring {
  width: 104px; height: 104px; margin: -52px 0 0 -52px;
  background: var(--forest);
  border-color: var(--forest);
}
body.cursor-label .cursor-ring span { opacity: 1; transform: scale(1); }
body.cursor-label .cursor-dot { opacity: 0; }

body.cursor-on-dark .cursor-dot { background: var(--ivory); }
body.cursor-on-dark .cursor-ring { border-color: rgba(242, 239, 230, 0.4); }

@media (pointer: coarse), (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---- 06.3 Header ---- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  transition: transform var(--dur-mid) var(--ease-premium),
              background-color var(--dur-mid) var(--ease-soft),
              border-color var(--dur-mid) var(--ease-soft),
              backdrop-filter var(--dur-mid) var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 30, 28, 0.55), rgba(10, 30, 28, 0));
  opacity: 1;
  transition: opacity var(--dur-mid) var(--ease-soft);
  pointer-events: none;
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid {
  background: rgba(245, 242, 234, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.site-header.is-hidden { transform: translateY(-101%); }

/* Pages that do not open with a full-bleed hero start in the solid state */
body:not(.has-hero) .site-header {
  background: rgba(245, 242, 234, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
body:not(.has-hero) .site-header::before { opacity: 0; }
body:not(.has-hero) .page-main { padding-top: var(--header-h); }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

/* ---- Brand -----------------------------------------------------------
   The supplied logo is used as-is on every surface. Over photography it
   sits on a soft light plate, which keeps the red wordmark and green
   sub-line legible without altering the artwork. */
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  transition: background-color var(--dur-mid) var(--ease-soft),
              box-shadow var(--dur-mid) var(--ease-soft);
}
.brand-logo {
  position: relative;
  z-index: 1;
  width: auto;
  height: 2.1rem;
  object-fit: contain;
  transition: transform var(--dur-mid) var(--ease-premium);
}
@media (min-width: 768px) { .brand-logo { height: 2.5rem; } }
.brand:hover .brand-logo { transform: translateY(-1px); }

/* Plate only while the header floats over the hero image. */
body.has-hero .site-header:not(.is-solid) .brand {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px -12px rgba(10, 30, 28, 0.45);
}

/* ---- 06.4 Desktop navigation ---- */
.nav-desktop { display: none; align-items: center; gap: 2.35rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding-block: 0.45rem;
  transition: color var(--dur-fast) var(--ease-soft);
}
/* Small ordinal that fades in as you approach the item. */
.nav-link .nav-num { display: none; }

/* Label swap: the word rolls up and an identical one rises to replace it. */
.nav-swap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.25;
}
.nav-swap span {
  display: block;
  transition: transform 0.5s var(--ease-premium);
}
.nav-swap span + span {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(105%);
  color: #fff;
}
.nav-link:hover .nav-swap span { transform: translateY(-105%); }
.nav-link:hover .nav-swap span + span { transform: translateY(0); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-mid) var(--ease-premium);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: left center; }
.site-header.is-solid .nav-link,
body:not(.has-hero) .nav-link { color: var(--forest); }
.site-header.is-solid .nav-swap span + span,
body:not(.has-hero) .nav-swap span + span { color: var(--brand-red); }

/* A single indicator dot glides between items as the pointer moves. */
.nav-desktop { position: relative; }
.nav-marker {
  display: none;
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translateX(var(--x, 0)) scale(0.4);
  transition: transform 0.55s var(--ease-premium), opacity 0.3s var(--ease-soft);
  pointer-events: none;
}
.nav-desktop:hover .nav-marker { opacity: 1; transform: translateX(var(--x, 0)) scale(1); }

.nav-item { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-caret { width: 0.7rem; height: 0.7rem; transition: transform var(--dur-fast) var(--ease-soft); }
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(180deg); }

/* Mega panel */
.nav-mega {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  width: min(46rem, 78vw);
  transform: translate(-50%, 0.6rem);
  background: rgba(251, 249, 244, 0.94);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-panel);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-soft),
              transform var(--dur-mid) var(--ease-premium),
              visibility var(--dur-mid);
}
.nav-item:hover .nav-mega,
.nav-item:focus-within .nav-mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega-link {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.mega-link:hover, .mega-link.active { background: var(--sand); border-color: var(--line-soft); }
.mega-link .mega-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--forest);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.mega-link .mega-count {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}
.mega-link .mega-note { font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.55; }
.mega-aside {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }
/* Once the header sits on ivory glass the ghost button has to darken with it. */
.header-cta,
.site-header.is-solid .header-cta,
body:not(.has-hero) .header-cta {
  --btn-bg: var(--brand-red);
  --btn-fg: #fff;
  --btn-line: var(--brand-red);
  --btn-fill: var(--brand-red-deep);
}
.header-cta:hover { color: #fff; border-color: var(--brand-red-deep); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(242, 239, 230, 0.32);
  color: var(--on-dark);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.site-header.is-solid .icon-btn,
body:not(.has-hero) .icon-btn { border-color: var(--line); color: var(--forest); }
@media (min-width: 1024px) { .icon-btn.call-btn { display: none; } }

/* Menu toggle: two rules that become a cross */
.menu-toggle { position: relative; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle .bar {
  position: absolute;
  left: 0.7rem;
  width: 1.35rem;
  height: 1px;
  background: var(--on-dark);
  transition: transform var(--dur-mid) var(--ease-premium), opacity var(--dur-fast);
}
.menu-toggle .bar:nth-child(1) { transform: translateY(-4px); }
.menu-toggle .bar:nth-child(2) { transform: translateY(4px); }
.site-header.is-solid .menu-toggle .bar,
body:not(.has-hero) .menu-toggle .bar { background: var(--forest); }
body.menu-open .menu-toggle .bar { background: var(--on-dark); }
body.menu-open .menu-toggle .bar:nth-child(1) { transform: rotate(45deg); }
body.menu-open .menu-toggle .bar:nth-child(2) { transform: rotate(-45deg); }

/* ---- 06.5 Full-screen mobile menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--forest-deep);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) 1.25rem 2rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-premium), visibility 0.7s;
}
@media (min-width: 768px) { .mobile-menu { padding-inline: 2.5rem; } }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }

.menu-nav { display: grid; }
.menu-link {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark-soft);
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(1.25rem);
  transition: color var(--dur-fast);
}
body.menu-open .menu-link {
  animation: menu-item 0.7s var(--ease-premium) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
@keyframes menu-item { to { opacity: 1; transform: none; } }
.menu-link .menu-num {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.menu-link:hover, .menu-link.active { color: var(--gold-soft); }

.menu-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.1rem 0 0.25rem;
}
.menu-sub a {
  border: 1px solid var(--line-dark);
  padding: 0.55rem 0.95rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.menu-sub a:hover, .menu-sub a.active { color: var(--forest-deep); background: var(--gold); border-color: var(--gold); }

.menu-foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
.menu-foot .menu-contact { display: grid; gap: 0.5rem; font-size: var(--fs-sm); color: var(--on-dark-soft); }
.menu-foot .menu-contact a { display: inline-flex; align-items: center; gap: 0.6rem; }
.menu-foot .menu-contact a:hover { color: var(--gold-soft); }

/* ============================================================
   07 — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--on-dark);
  padding-bottom: 2rem;
}
@media (min-width: 1024px) { .hero { min-height: 94vh; } }
.hero { padding-bottom: clamp(2.5rem, 3.5vw, 3.5rem); }

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.09);
  will-change: transform;
}
.hero-ready .hero-media img {
  animation: hero-zoom 2.4s var(--ease-premium) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }

.hero-scrim {
  position: absolute;
  inset: 0;
  /* Narrow screens put copy over the brightest part of the wall, so the
     vertical wash is heavier there and lightens as the layout widens. */
  background:
    linear-gradient(to top, rgba(10, 30, 28, 0.94) 0%, rgba(10, 30, 28, 0.62) 42%, rgba(10, 30, 28, 0.34) 72%, rgba(10, 30, 28, 0.5) 100%),
    linear-gradient(to right, rgba(10, 30, 28, 0.55) 0%, rgba(10, 30, 28, 0.15) 70%);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(10, 30, 28, 0.92) 0%, rgba(10, 30, 28, 0.45) 38%, rgba(10, 30, 28, 0.12) 66%, rgba(10, 30, 28, 0.42) 100%),
      linear-gradient(to right, rgba(10, 30, 28, 0.62) 0%, rgba(10, 30, 28, 0.05) 60%);
  }
}

.hero-body { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 3rem); }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr); gap: 3.5rem; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gold-soft);
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--gold); }

.hero-title {
  font-size: var(--fs-hero);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--on-dark);
  max-width: 15ch;
  text-wrap: balance;
}
.hero-title .accent { font-style: italic; color: var(--gold-soft); }

.hero-intro {
  margin-top: 1.9rem;
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--on-dark-soft);
}
.hero-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Floating featured-project panel */

/* Hero footer strip: scroll cue + live counters */
.hero-foot {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem; }
.hero-stat { display: grid; gap: 0.3rem; }
.hero-stat b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--on-dark);
}
.hero-stat span { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-faint); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  transition: color var(--dur-fast);
}
.scroll-cue:hover { color: var(--gold-soft); }
.scroll-cue .cue-track {
  position: relative;
  width: 3.5rem; height: 1px;
  background: var(--line-dark);
  overflow: hidden;
}
.scroll-cue .cue-track::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform-origin: left center;
  animation: cue-sweep 2.6s var(--ease-sweep) infinite;
}
@keyframes cue-sweep {
  0%   { transform: scaleX(0); transform-origin: left center; }
  45%  { transform: scaleX(1); transform-origin: left center; }
  55%  { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}

/* Staged hero entrance — only hidden when JS is there to bring it back. */
html.js .hero-stagger > * { opacity: 0; transform: translateY(1.5rem); }
.hero-ready .hero-stagger > * {
  animation: hero-in 1.05s var(--ease-premium) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 260ms);
}
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ============================================================
   08 — BRAND STATEMENT
   ============================================================ */
.statement { position: relative; overflow: hidden; }
.statement .statement-mark {
  position: absolute;
  right: -4%;
  top: 50%;
  width: min(38rem, 60vw);
  transform: translateY(-50%);
  opacity: 0.05;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.statement-inner { position: relative; z-index: 1; display: grid; gap: 2.75rem; }
.statement-text {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  max-width: 24ch;
}
.statement-text em { font-style: italic; color: var(--gold-soft); }
.statement-grid {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--line-dark-soft);
  padding-top: 2.25rem;
}
@media (min-width: 900px) { .statement-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.statement-grid p { color: var(--on-dark-soft); font-size: var(--fs-sm); line-height: 1.75; }
.statement-grid .col-head { margin-bottom: 0.9rem; }

/* ============================================================
   09 — FEATURED PROJECT
   ============================================================ */
.featured { position: relative; overflow: hidden; }
.featured-grid { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

.featured-visual {
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  min-height: 22rem;
}
@media (min-width: 1024px) { .featured-visual { min-height: 40rem; } }
.featured-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-premium);
}
.featured-visual.is-plan {
  background: var(--sand);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.featured-visual.is-plan img {
  width: auto; height: auto;
  max-height: 34rem;
  object-fit: contain;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
  background: #fff;
}
.featured-visual:hover img { transform: scale(1.03); }

/* Corner ticks — a drafting-table detail */
.tick-frame { position: absolute; inset: 1.25rem; pointer-events: none; }
.tick-frame::before,
.tick-frame::after {
  content: "";
  position: absolute;
  width: 1.5rem; height: 1.5rem;
  border: 1px solid rgba(16, 44, 42, 0.28);
}
.tick-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tick-frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.featured-panel {
  background: var(--forest);
  color: var(--on-dark);
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.featured-panel h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); color: var(--on-dark); }
.featured-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  border-top: 1px solid var(--line-dark-soft);
  border-bottom: 1px solid var(--line-dark-soft);
  padding-block: 1.5rem;
}
.featured-facts dt { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.featured-facts dd { margin-top: 0.4rem; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; color: var(--on-dark); }

/* ============================================================
   10 — PROJECT STORIES (pinned horizontal rail)
   ============================================================ */
.stories { position: relative; background: var(--ivory); }
.stories-head { padding-block: var(--section-tight) 2.5rem; }

/* Track: on large screens the section pins and the row translates */
.stories-pin { position: relative; }
@media (min-width: 1024px) {
  /* JS measures the row and writes --pin-height; without it the section is
     just a one-viewport-tall rail you can still scroll sideways. */
  .stories-pin { height: var(--pin-height, 100vh); }
  .stories-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .stories-row {
    display: flex;
    gap: 2rem;
    padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2 + 3.5rem));
    will-change: transform;
  }
  /* The row is wider than the screen and is moved by transform, so it must not
     clip itself — only the viewport around it does. Without JS it falls back
     to an ordinary sideways scroll. */
  html:not(.js) .stories-row { overflow-x: auto; }
  .stories-row > * { flex: none; width: 25rem; }
}
/* Below 1024px: a natural swipe rail */
@media (max-width: 1023.98px) {
  .stories-viewport { overflow: hidden; }
  .stories-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 1.25rem;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .stories-row > * { flex: none; width: min(78vw, 22rem); scroll-snap-align: start; }
}

.stories-progress {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.5rem;
}
.stories-progress .bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.stories-progress .bar span {
  position: absolute;
  inset: 0;
  background: var(--forest);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform 0.2s linear;
}
.stories-count { font-variant-numeric: tabular-nums; }

.rail-controls { display: flex; gap: 0.6rem; }
.rail-btn {
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid var(--line);
  color: var(--forest);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast);
}
.rail-btn:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.rail-btn[disabled] { opacity: 0.3; pointer-events: none; }

/* ============================================================
   11 — MEASURE (stats)
   ============================================================ */
.measure-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark-soft);
}
@media (min-width: 640px) { .measure-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .measure-grid { grid-template-columns: repeat(4, 1fr); } }
.measure-item {
  padding: 2.5rem 0 2.25rem;
  border-bottom: 1px solid var(--line-dark-soft);
}
@media (min-width: 640px) {
  .measure-item { padding-inline: 2rem; border-right: 1px solid var(--line-dark-soft); }
  .measure-item:first-child { padding-left: 0; }
  .measure-grid > .measure-item:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1024px) {
  .measure-grid > .measure-item:nth-child(2n) { border-right: 1px solid var(--line-dark-soft); }
  .measure-grid > .measure-item:last-child { border-right: 0; padding-right: 0; }
}
.measure-value {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  font-variant-numeric: lining-nums tabular-nums;
}
.measure-value .suffix { color: var(--gold-soft); }
.measure-label { margin-top: 1.1rem; }
.measure-note { margin-top: 0.5rem; font-size: var(--fs-xs); color: var(--on-dark-faint); line-height: 1.6; }

/* ============================================================
   12 — PRINCIPLES (numbered editorial list)
   ============================================================ */
.principles-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .principles-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 5rem; } }
.principle-list { display: grid; }
.principle {
  display: grid;
  gap: 0.85rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 1.5rem;
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .p-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand-red);
  grid-row: span 2;
}
.principle h3 { color: var(--forest); }
.principle p { color: var(--ink-soft); line-height: 1.75; font-size: var(--fs-sm); grid-column: 2; }

/* ============================================================
   13 — EDITORIAL SPREADS
   ============================================================ */
.spread { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) {
  .spread { grid-template-columns: repeat(12, 1fr); gap: 3.5rem; }
  .spread .spread-media { grid-column: 1 / span 7; }
  .spread .spread-copy  { grid-column: 9 / span 4; }
  .spread.is-reversed .spread-media { grid-column: 6 / span 7; grid-row: 1; }
  .spread.is-reversed .spread-copy  { grid-column: 1 / span 4; grid-row: 1; }
}
.spread-media { position: relative; overflow: hidden; }
.spread-media img { width: 100%; object-fit: cover; }
.spread-media .img-45 { aspect-ratio: 4 / 5; }
.spread-media .img-43 { aspect-ratio: 4 / 3; }
.spread-media .img-32 { aspect-ratio: 3 / 2; }
.spread-copy > * + * { margin-top: 1.4rem; }
.spread-copy h2 { margin-top: 1rem; }

/* A small overlapping caption plate */
.media-plate {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(245, 242, 234, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  max-width: 20rem;
}
.media-plate .plate-title { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); line-height: 1.2; }
.media-plate .plate-note { display: block; margin-top: 0.25rem; font-size: var(--fs-xs); color: var(--ink-soft); }

/* ============================================================
   14 — PRESENCE / LOCATION
   ============================================================ */
.presence-grid { display: grid; gap: 0; }
@media (min-width: 1024px) { .presence-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.presence-media { position: relative; overflow: hidden; min-height: 20rem; background: var(--sand); }
.presence-media img { width: 100%; height: 100%; object-fit: cover; }
.presence-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(16, 44, 42, 0.18), rgba(16, 44, 42, 0));
}
.presence-pin { position: absolute; top: 46%; left: 38%; z-index: 2; }
.presence-pin .dot {
  position: relative;
  display: block;
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(217, 44, 37, 0.18);
}
.presence-pin .dot::after {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  border: 1px solid var(--brand-red);
  animation: pin-pulse 2.8s var(--ease-sweep) infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(0.7); opacity: 0.7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.presence-panel {
  background: var(--forest);
  color: var(--on-dark);
  padding: clamp(2rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
}
.presence-panel :is(h2, h3) { color: var(--on-dark); }

/* Dark panels that sit inside a light section still need the dark-field
   treatment for eyebrows, body copy and links. */
.featured-panel .eyebrow,
.contact-aside .eyebrow,
.presence-panel .eyebrow { color: var(--gold-soft); }
.featured-panel .body-copy,
.featured-panel .lead,
.contact-aside .body-copy,
.presence-panel .body-copy { color: var(--on-dark-soft); }
.featured-panel .link-arrow,
.contact-aside .link-arrow,
.presence-panel .link-arrow { color: var(--gold-soft); }
.featured-panel .hairline,
.contact-aside .hairline,
.presence-panel .hairline { background: var(--line-dark); }
.featured-panel .status-tag,
.presence-panel .status-tag { color: var(--on-dark-soft); }
.presence-panel .eyebrow { color: var(--gold-soft); }
.presence-panel .body-copy { color: var(--on-dark-soft); }
.presence-panel .link-arrow { color: var(--gold-soft); }
.locality-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.locality-list li {
  border: 1px solid var(--line-dark);
  padding: 0.5rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.locality-list li:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ============================================================
   15 — INVITATION (contact band)
   ============================================================ */
.invite { position: relative; overflow: hidden; }
.invite-grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 1024px) { .invite-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 5rem; } }
.invite h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.02; max-width: 16ch; }
.invite-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.invite-lines { display: grid; gap: 1rem; margin-top: 2rem; }
.invite-lines > a, .invite-lines > span { display: flex; align-items: flex-start; gap: 0.85rem; font-size: var(--fs-sm); color: var(--on-dark-soft); }
.invite-lines > span > span { display: block; }
.invite-lines a:hover { color: var(--gold-soft); }
.invite-lines .icon { margin-top: 0.28rem; color: var(--gold); }

/* ============================================================
   16 — PROJECT CARD
   ============================================================ */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  isolation: isolate;
}
.project-card .card-media {
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  aspect-ratio: 4 / 5;
}
.project-card .card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-premium), filter var(--dur-mid) var(--ease-soft);
}
/* Layout plans are wide, dense drawings. At card size they are cropped into
   like a survey fragment; the whole sheet is shown on the project page. */
.project-card .card-media.is-plan { background: #fff; }
.project-card .card-media.is-plan img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.project-card .card-media.is-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  background: linear-gradient(to top, rgba(23, 25, 24, 0.55), rgba(23, 25, 24, 0) 32%);
}
/* Drawings carry their own title block at the top, so the card's own labels
   move to the foot where they sit on a wash of their own. */
.project-card .card-media.is-plan .card-index {
  top: auto;
  bottom: 1rem;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--on-dark);
  padding: 0;
}
.project-card .card-media.is-plan .card-badge {
  top: auto;
  bottom: 0.9rem;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  padding: 0;
}
.project-card .card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 28, 0.55), rgba(10, 30, 28, 0) 55%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-soft);
  pointer-events: none;
}
.project-card:hover .card-media img { transform: scale(1.055); }
.project-card:hover .card-media.is-plan img { transform: scale(1.02); }
.project-card:hover .card-media::after { opacity: 1; }

.project-card .card-index {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--forest);
  background: rgba(245, 242, 234, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.6rem;
}
.project-card .card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  background: rgba(10, 30, 28, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 239, 230, 0.2);
  padding: 0.4rem 0.7rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.project-card .card-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.project-card .card-badge.is-ongoing::before { background: var(--brand-red); }

.project-card .card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  flex: 1;
}
.project-card .card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.12;
  color: var(--forest);
  transition: color var(--dur-fast);
}
.project-card:hover .card-name { color: var(--gold-deep); }
.project-card .card-meta {
  margin-top: 0.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}
.project-card .card-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.project-card .card-arrow {
  flex: none;
  color: var(--forest);
  transition: transform var(--dur-mid) var(--ease-premium), color var(--dur-fast);
}
.project-card:hover .card-arrow { transform: translate(0.3rem, -0.3rem); color: var(--gold-deep); }

/* Dark surfaces */
.field-forest .project-card .card-body,
.field-charcoal .project-card .card-body { border-color: var(--line-dark-soft); }
.field-forest .project-card .card-name,
.field-charcoal .project-card .card-name { color: var(--on-dark); }
.field-forest .project-card .card-meta,
.field-charcoal .project-card .card-meta { color: var(--on-dark-soft); }
.field-forest .project-card .card-arrow,
.field-charcoal .project-card .card-arrow { color: var(--gold-soft); }

/* ============================================================
   17 — LISTING PAGE
   ============================================================ */
.page-head { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(2.5rem, 4vw, 4rem); }
.page-head .eyebrow { color: var(--brand-red); }
.page-head .page-title { font-size: var(--fs-display); line-height: 1.0; max-width: 18ch; margin-top: 1.25rem; }
.page-head .page-intro { margin-top: 1.75rem; max-width: 58ch; font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.72; }
.page-head-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1024px) { .page-head-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; } }

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(245, 242, 234, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-block: 1px solid var(--line-soft);
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  flex-wrap: wrap;
}
.filter-set { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-link {
  position: relative;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast);
}
.filter-link:hover { color: var(--forest); border-color: var(--line); }
.filter-link.active { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.filter-count { font-size: var(--fs-xs); color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* Year-grouped editorial index */
.year-group { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.year-group:first-child { border-top: 0; }
@media (min-width: 1024px) { .year-group { grid-template-columns: 10rem minmax(0, 1fr); gap: 3.5rem; } }
.year-mark { position: relative; }
@media (min-width: 1024px) { .year-mark { position: sticky; top: calc(var(--header-h) + 5rem); align-self: start; } }
.year-mark .y {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 0.9;
  color: var(--brand-red);
  font-variant-numeric: lining-nums;
}
.year-mark .n { margin-top: 0.5rem; }

.project-grid { display: grid; gap: 2.5rem 1.75rem; }
@media (min-width: 560px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; } }
.project-grid.is-loose { gap: 3.5rem 2.5rem; }

/* Lead project — the first item gets a full-width editorial treatment */
.lead-project { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 900px) { .lead-project { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.lead-project .lead-visual { position: relative; overflow: hidden; background: var(--sand); min-height: 18rem; }
.lead-project .lead-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-premium); }
.lead-project .lead-visual.is-plan { display: grid; place-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); }
.lead-project .lead-visual.is-plan img {
  width: auto; height: auto; max-height: 28rem; object-fit: contain;
  background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-md);
}
.lead-project:hover .lead-visual img { transform: scale(1.03); }
.lead-project .lead-copy { padding: clamp(1.75rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1.15rem; }
.lead-project .lead-copy h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }

.empty-state {
  border: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
  background: var(--surface);
}
.empty-state h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
.empty-state p { max-width: 46ch; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ============================================================
   18 — PROJECT DETAIL
   ============================================================ */
.detail-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--on-dark);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 1024px) { .detail-hero { min-height: 80vh; } }
.detail-hero .dh-media { position: absolute; inset: 0; overflow: hidden; }
.detail-hero .dh-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero-ready .detail-hero .dh-media img { animation: hero-zoom 2.2s var(--ease-premium) forwards; }
.detail-hero .dh-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 30, 28, 0.94) 0%, rgba(10, 30, 28, 0.5) 42%, rgba(10, 30, 28, 0.15) 72%, rgba(10, 30, 28, 0.5) 100%);
}
/* Plan-drawing hero: an approved layout is a document, not a backdrop — it is
   shown whole beside the title rather than dimmed behind it. */
.detail-hero.is-plan {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 0;
  padding: calc(var(--header-h) + 2.5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
}
.detail-hero.is-plan .dh-scrim { display: none; }
.detail-hero.is-plan .dh-media {
  position: static;
  order: 2;
  display: grid;
  place-items: center;
  overflow: visible;
}
.detail-hero.is-plan .dh-media img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: 32rem;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid rgba(242, 239, 230, 0.18);
  box-shadow: var(--shadow-lg);
  transform: none;
  animation: none;
}
.hero-ready .detail-hero.is-plan .dh-media img { animation: none; }
.detail-hero.is-plan .detail-hero-body { order: 1; }
.detail-hero.is-plan .detail-hero-body .container { padding-inline: 0; max-width: none; }
@media (min-width: 1000px) {
  .detail-hero.is-plan {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2 + 3.5rem));
  }
  .detail-hero.is-plan .dh-media img { max-height: 36rem; }
}
@media (min-width: 768px) and (max-width: 999.98px) {
  .detail-hero.is-plan { padding-inline: 2.5rem; }
}
.detail-hero-body { position: relative; z-index: 2; width: 100%; }
.detail-hero h1 { font-size: clamp(2.25rem, 4.4vw, 4.25rem); line-height: 1.0; color: var(--on-dark); max-width: 18ch; }
.detail-hero:not(.is-plan) h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.detail-hero .dh-meta {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  font-size: var(--fs-sm);
  color: var(--on-dark-soft);
}
.detail-hero .dh-meta .bit { display: inline-flex; align-items: center; gap: 0.5rem; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 1.75rem;
}
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { opacity: 0.5; }

/* Facts strip */
.facts-strip { background: var(--sand); border-bottom: 1px solid var(--line-soft); }
.facts-list { display: grid; }
@media (min-width: 640px) { .facts-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facts-list { grid-template-columns: repeat(4, 1fr); } }
.facts-list > div {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 640px) {
  .facts-list > div { padding-inline: 1.75rem; border-right: 1px solid var(--line-soft); }
  .facts-list > div:first-child { padding-left: 0; }
}
.facts-list dt { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.facts-list dd { margin-top: 0.55rem; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--forest); }

.detail-story-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .detail-story-grid.has-aside { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 5rem; }
}
.detail-story-grid p { color: var(--ink-soft); line-height: 1.8; font-size: var(--fs-lead); }
.feature-list { display: grid; gap: 0; margin-top: 1.5rem; }
.feature-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  width: 1.25rem; height: 1px;
  background: var(--gold);
  flex: none;
  transform: translateY(-0.3rem);
}

/* ============================================================
   19 — GALLERY & LIGHTBOX
   ============================================================ */
.masonry { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px)  { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; column-gap: 1.75rem; } }
@media (min-width: 1600px) { .masonry { columns: 4; } }
.masonry-item { break-inside: avoid; margin-bottom: 1.25rem; display: block; }
@media (min-width: 1024px) { .masonry-item { margin-bottom: 1.75rem; } }

.shot {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--sand-deep);
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.shot img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.15s var(--ease-premium), filter var(--dur-mid) var(--ease-soft);
  filter: saturate(1.04) contrast(1.03);
}
.shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 28, 0.6), rgba(10, 30, 28, 0) 55%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-soft);
}
.shot:hover img { transform: scale(1.045); }
.shot:hover::after { opacity: 1; }
.shot figcaption {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem;
  z-index: 2;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity var(--dur-mid) var(--ease-soft), transform var(--dur-mid) var(--ease-premium);
}
.shot:hover figcaption { opacity: 1; transform: none; }

/* Fixed-ratio variants used in composed strips */
.shot.r-45 img { aspect-ratio: 4 / 5; }
.shot.r-11 img { aspect-ratio: 1 / 1; }
.shot.r-169 img { aspect-ratio: 16 / 9; }
.shot.r-43 img { aspect-ratio: 4 / 3; }

.gallery-item.is-hidden { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 30, 28, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 4.5rem 1rem 5.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  animation: lb-in 0.5s var(--ease-premium) forwards;
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lb-caption {
  position: absolute;
  left: 50%; bottom: 2.25rem;
  transform: translateX(-50%);
  max-width: min(46rem, 88vw);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--on-dark-soft);
}
.lb-count {
  position: absolute;
  left: 50%; top: 1.75rem;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--on-dark-faint);
  font-variant-numeric: tabular-nums;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(242, 239, 230, 0.22);
  color: var(--on-dark);
  background: rgba(10, 30, 28, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1rem; top: 50%; margin-top: -1.5rem; }
.lb-next { right: 1rem; top: 50%; margin-top: -1.5rem; }
@media (min-width: 768px) { .lb-prev { left: 2rem; } .lb-next { right: 2rem; } }

/* ============================================================
   20 — CONTACT & FORMS
   ============================================================ */

.form-panel {
  background: var(--surface);
  padding: clamp(2rem, 4vw, 4rem);
  display: flex; flex-direction: column; gap: 1.75rem;
  border: 1px solid var(--line-soft);
}
.form-grid { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: block; position: relative; }
.field > .field-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0 0.75rem;
  font-size: var(--fs-body);
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c625c' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 1rem;
  padding-right: 1.75rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }

.form-feedback {
  display: none;
  border-left: 2px solid var(--gold);
  background: var(--sand);
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--forest);
}
.form-feedback.show { display: block; }
.form-feedback.error { border-color: var(--brand-red); color: #8f1a15; background: rgba(217, 44, 37, 0.06); }
.form-feedback .wa-followup { display: block; margin-top: 0.75rem; }

/* ============================================================
   21 — ABOUT
   ============================================================ */
.about-lede {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--forest);
  max-width: 26ch;
}
.about-columns { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .about-columns { grid-template-columns: repeat(2, 1fr); gap: 3.5rem; } }
.about-columns p { color: var(--ink-soft); line-height: 1.8; }

.timeline { display: grid; }
.timeline-row {
  display: grid;
  gap: 0.75rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 768px) { .timeline-row { grid-template-columns: 5rem minmax(0, 1fr); } }
.timeline-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-row .t-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-red); line-height: 1; }
.timeline-row p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.75; margin-top: 0.6rem; max-width: 62ch; }

/* ============================================================
   22 — FOOTER
   ============================================================ */
.site-footer { background: var(--forest-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.footer-statement {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line-dark-soft);
}
.footer-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  max-width: 28ch;
}
.footer-statement em { font-style: italic; color: var(--gold-soft); }

.footer-grid { display: grid; gap: 3rem; padding-block: clamp(3rem, 5vw, 4.5rem); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3.5rem; } }
.footer-brand p { margin-top: 1.5rem; font-size: var(--fs-sm); line-height: 1.8; color: var(--on-dark-soft); max-width: 34ch; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); }
.footer-col ul { margin-top: 1.5rem; display: grid; gap: 0.85rem; }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: var(--on-dark-soft); }
.footer-col a { display: inline-flex; align-items: center; gap: 0.6rem; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-col .icon { color: var(--gold); }
.footer-col .index-tag { letter-spacing: 0.04em; margin-left: 0.15rem; }
.footer-col .addr { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-col .addr span span { display: block; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark-soft);
  font-size: var(--fs-xs);
  color: var(--on-dark-faint);
}
.footer-bottom .to-top {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-dark-soft);
}
.footer-bottom .to-top:hover { color: var(--gold-soft); }
.footer-bottom .to-top .icon { transition: transform var(--dur-mid) var(--ease-premium); }
.footer-bottom .to-top:hover .icon { transform: translateY(-0.25rem); }
/* Keep the last row clear of the floating action column. */
@media (min-width: 1024px) { .footer-bottom { padding-right: 4.5rem; } }
@media (max-width: 1023.98px) { .site-footer { padding-bottom: 4.75rem; } }

/* ============================================================
   23 — FLOATING ACTIONS & ASSISTANT
   ============================================================ */
.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 150;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
}
@media (min-width: 1024px) { .floating-actions { display: flex; } }
.fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border: 1px solid var(--line-dark-soft);
  background: rgba(10, 30, 28, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-mid) var(--ease-premium), background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.fab:hover { transform: translateY(-3px); background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.fab .fab-label {
  position: absolute;
  right: calc(100% + 0.65rem);
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--forest-deep);
  color: var(--on-dark);
  padding: 0.45rem 0.7rem;
  opacity: 0;
  transform: translateX(0.4rem);
  pointer-events: none;
  transition: opacity var(--dur-fast), transform var(--dur-mid) var(--ease-premium);
}
.fab:hover .fab-label { opacity: 1; transform: none; }

.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 150;
  background: rgba(10, 30, 28, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--line-dark-soft);
  transform: translateY(0);
  transition: transform var(--dur-mid) var(--ease-premium);
}
@media (min-width: 1024px) { .mobile-bar { display: none; } }
body.menu-open .mobile-bar { transform: translateY(110%); }
.mobile-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.mobile-bar-inner > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.5rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  border-right: 1px solid var(--line-dark-soft);
}
.mobile-bar-inner > *:last-child { border-right: 0; }
.mobile-bar-inner .icon { color: var(--gold-soft); }

.assistant {
  position: fixed;
  z-index: 180;
  right: 0; left: 0; bottom: 0;
  height: min(80vh, 34rem);
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}
@media (min-width: 640px) {
  .assistant {
    right: 1.5rem; left: auto; bottom: 1.5rem;
    width: 23rem;
    height: 32rem;
    border: 1px solid var(--line);
  }
}
.assistant.open { display: flex; animation: assistant-in 0.45s var(--ease-premium); }
@keyframes assistant-in { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
.assistant-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--forest);
  color: var(--on-dark);
}
.assistant-head .who { display: flex; align-items: center; gap: 0.75rem; }
.assistant-head .avatar {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--line-dark);
  flex: none;
}
.assistant-head .avatar img { width: 1.1rem; height: 1.1rem; object-fit: contain; filter: brightness(0) invert(1); }
.assistant-head .title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; color: var(--on-dark); }
.assistant-head .sub { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-faint); }
.assistant-head .close-btn { padding: 0.35rem; color: var(--on-dark-soft); transition: color var(--dur-fast); }
.assistant-head .close-btn:hover { color: var(--gold-soft); }

.assistant-log { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.msg-assistant { max-width: 94%; font-size: var(--fs-sm); line-height: 1.7; white-space: pre-line; color: var(--ink); }
.msg-visitor {
  align-self: flex-end;
  max-width: 88%;
  background: var(--forest);
  color: var(--on-dark);
  padding: 0.6rem 0.9rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.assistant-typing { color: var(--ink-faint); }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.assistant-suggestions button {
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  font-size: 0.6875rem;
  color: var(--ink-soft);
  transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast);
}
.assistant-suggestions button:hover { border-color: var(--gold); color: var(--forest); background: var(--sand); }
.assistant-shortcuts {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}
.assistant-shortcuts a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  color: var(--ink-soft);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.assistant-shortcuts a:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.assistant-form { display: flex; align-items: center; gap: 0.5rem; border-top: 1px solid var(--line-soft); padding: 0.75rem; }
.assistant-form input {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.25rem;
  font-size: var(--fs-sm);
}
.assistant-form input:focus { outline: none; border-bottom-color: var(--gold); }
.assistant-form button {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  background: var(--forest);
  color: var(--ivory);
  flex: none;
  transition: background-color var(--dur-fast);
}
.assistant-form button:hover { background: var(--gold); color: var(--forest-deep); }

/* ============================================================
   24 — ERROR PAGES
   ============================================================ */
.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: var(--section) 1.25rem;
  text-align: center;
}
.error-page .inner { display: grid; gap: 1.25rem; justify-items: center; max-width: 34rem; }
.error-page .code { font-family: var(--font-display); font-size: clamp(4.5rem, 14vw, 9rem); line-height: 0.85; color: var(--sand-deep); }
.error-page h1 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
.error-page p { color: var(--ink-soft); font-size: var(--fs-sm); }
.error-page .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 0.75rem; }

/* ============================================================
   25 — MOTION SYSTEM
   ============================================================ */
html.js [data-reveal] { opacity: 0; transform: translateY(1.75rem); }
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-premium), transform 1.05s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
html.js [data-reveal="mask"].is-in {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal="fade"] { transform: none; }

/* Word-by-word heading reveal — masks are inline so the line still wraps
   naturally at any viewport width. */
.reveal-lines .line-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
html.js .reveal-lines .line-inner {
  display: inline-block;
  transform: translateY(104%);
  transition: transform 1.05s var(--ease-premium);
  transition-delay: calc(var(--i, 0) * 65ms + 180ms);
}
html.js .reveal-lines.is-in .line-inner { transform: none; }

/* Parallax host — JS writes --py */
[data-parallax] { will-change: transform; }
[data-parallax] > img,
img[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }

/* ============================================================
   26 — REDUCED MOTION
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }
  [data-reveal], .hero-stagger > *, .menu-link { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-lines .line-inner { transform: none !important; }
  .hero-media img, .detail-hero .dh-media img { transform: none !important; }
  [data-parallax] > img, img[data-parallax] { transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .curtain { display: none !important; }
}

/* ============================================================
   27 — PRINT
   ============================================================ */
@media print {
  .site-header, .mobile-menu, .floating-actions, .mobile-bar, .assistant, .curtain, .cursor-dot, .cursor-ring { display: none !important; }
  body { background: #fff; color: #000; }
  .field-forest, .field-charcoal, .site-footer { background: #fff !important; color: #000 !important; }
}

/* ============================================================
   28 — NAVIGATION DEPTH & SITE-WIDE MOTION
   ============================================================ */

/* ---- 28.1 Scroll progress rule under the header ---- */
.scroll-rail {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}
.scroll-rail span {
  display: block;
  height: 100%;
  background: linear-gradient(to right, var(--gold-deep), var(--gold));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform 0.15s linear;
}
.site-header.is-solid .scroll-rail,
body:not(.has-hero) .scroll-rail { background: var(--line-soft); }

/* ---- 28.2 Mega panel: staggered entry, gold seam ---- */
.nav-mega {
  border-top: 1px solid var(--gold);
  transform: translate(-50%, 0.9rem);
}
.nav-mega > * {
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.4s var(--ease-soft), transform 0.5s var(--ease-premium);
}
.nav-item:hover .nav-mega > *,
.nav-item:focus-within .nav-mega > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 55ms + 60ms);
}
.mega-link { position: relative; overflow: hidden; }
.mega-link::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s var(--ease-premium);
}
.mega-link:hover::before,
.mega-link.active::before { transform: scaleY(1); transform-origin: top center; }
.mega-link .mega-title { transition: transform 0.45s var(--ease-premium); }
.mega-link:hover .mega-title { transform: translateX(0.35rem); }

/* ---- 28.3 Mobile menu polish ---- */
.menu-link { position: relative; overflow: hidden; }
.menu-link .menu-label {
  display: inline-block;
  transition: transform 0.5s var(--ease-premium), color var(--dur-fast);
}
.menu-link:hover .menu-label { transform: translateX(0.5rem); }
.menu-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease-premium);
}
.menu-link:hover::after { transform: scaleX(1); transform-origin: left center; }

/* ---- 28.4 Magnetic controls (fine pointers only) ---- */
[data-magnetic] {
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.45s var(--ease-premium);
}
[data-magnetic].is-pulled { transition: transform 0.12s var(--ease-soft); }

/* ---- 28.5 Heading rules that draw themselves in ---- */
.masthead .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.masthead .eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease-premium) 0.1s;
}
.masthead .eyebrow.is-in::before,
.is-in .masthead .eyebrow::before,
.masthead .is-in.eyebrow::before { transform: scaleX(1); }
html:not(.js) .masthead .eyebrow::before { transform: scaleX(1); }

/* ---- 28.6 Card interactions ---- */
.project-card .card-name {
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.55s var(--ease-premium), color var(--dur-fast);
}
.project-card:hover .card-name { background-size: 100% 1px; }
.project-card .card-media { transition: transform 0.7s var(--ease-premium); }
.project-card:hover .card-media { transform: translateY(-4px); }
.project-card .card-meta { transition: transform 0.6s var(--ease-premium); }
.project-card:hover .card-meta { transform: translateY(-2px); }

/* Discovery / stage cards get a gold seam on hover */
.project-card .card-media::before { transition: opacity var(--dur-mid) var(--ease-soft); }

/* ---- 28.7 Shot (gallery) refinement ---- */
.shot { transition: transform 0.7s var(--ease-premium); }
.masonry-item:hover .shot { transform: translateY(-4px); }

/* ---- 28.8 Filter links ---- */
.filter-link { overflow: hidden; }
.filter-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sand);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.4s var(--ease-premium);
  z-index: -1;
}
.filter-link:not(.active):hover::before { transform: scaleY(1); transform-origin: top center; }
.filter-link { position: relative; isolation: isolate; }

/* ---- 28.9 Footer link travel ---- */
.footer-col a { transition: color var(--dur-fast), transform 0.45s var(--ease-premium); }
.footer-col a:hover { transform: translateX(0.3rem); }

/* ---- 28.10 Locality chips ---- */
.locality-list li {
  transition: border-color var(--dur-fast), color var(--dur-fast), transform 0.45s var(--ease-premium);
  cursor: default;
}
.locality-list li:hover { transform: translateY(-2px); }

/* ---- 28.11 Contact / office rows ---- */
.contact-lines li { transition: transform 0.45s var(--ease-premium); }
.contact-lines li:hover { transform: translateX(0.3rem); }

/* ---- 28.12 Principle + timeline rows ---- */
.principle, .timeline-row { transition: background-color 0.4s var(--ease-soft); }
.principle:hover, .timeline-row:hover { background: rgba(185, 154, 91, 0.06); }

/* ---- 28.13 Measure figures lift as they count ---- */
.measure-item { transition: transform 0.5s var(--ease-premium); }
.measure-item:hover { transform: translateY(-3px); }

/* ---- 28.14 Reduced motion switches all of it off ---- */
@media (prefers-reduced-motion: reduce) {
  .nav-swap span, .nav-swap span + span,
  .nav-marker, .nav-mega > *, .menu-link .menu-label,
  [data-magnetic], .masthead .eyebrow::before {
    transform: none !important;
    opacity: 1 !important;
  }
  .nav-swap span + span { display: none; }
  .scroll-rail { display: none; }
}

/* ============================================================
   29 — LAYOUT PLAN: INLINE PLATE + FULLSCREEN VIEWER
   ============================================================ */

.plan { margin: 0; display: grid; gap: 1.25rem; }

.plan-stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  padding: clamp(1rem, 3vw, 2.5rem);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.plan-stage img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 46rem);
  object-fit: contain;
  transition: transform 0.9s var(--ease-premium);
}
.plan-stage:hover img { transform: scale(1.015); }
.plan-stage .tick-frame { inset: 0.75rem; }

.plan-open {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(10, 30, 28, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 239, 230, 0.2);
  color: var(--on-dark);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-mid) var(--ease-premium);
}
.plan-open:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); transform: translateY(-2px); }

.plan-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.plan-meta { display: grid; gap: 0.4rem; }
.plan-sub { font-size: var(--fs-xs); color: var(--ink-soft); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---- Fullscreen viewer ---- */
.plan-viewer {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  flex-direction: column;
  background: var(--forest-deep);
  color: var(--on-dark);
}
.plan-viewer[hidden] { display: none; }
.plan-viewer.is-open { animation: pv-in 0.35s var(--ease-premium); }
@keyframes pv-in { from { opacity: 0; } to { opacity: 1; } }

.pv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line-dark-soft);
  flex: none;
}
@media (min-width: 768px) { .pv-bar { padding-inline: 2rem; } }
.pv-title { display: grid; gap: 0.2rem; min-width: 0; }
.pv-title p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-tools { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.pv-btn {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.65rem;
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.pv-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.pv-reset { text-transform: uppercase; font-size: 0.625rem; letter-spacing: 0.14em; }
.pv-zoom {
  min-width: 3.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--on-dark-soft);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .pv-reset { display: none; }
  .pv-title p { font-size: 1rem; }
}

.pv-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  background:
    linear-gradient(rgba(242, 239, 230, 0.04) 1px, transparent 1px) 0 0 / 100% 2.5rem,
    linear-gradient(90deg, rgba(242, 239, 230, 0.04) 1px, transparent 1px) 0 0 / 2.5rem 100%;
}
.pv-canvas.is-panning { cursor: grabbing; }
.pv-canvas img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  background: #fff;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--scale, 1));
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.pv-canvas.is-smooth img { transition: transform 0.35s var(--ease-premium); }

.pv-hint {
  flex: none;
  padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--on-dark-faint);
  border-top: 1px solid var(--line-dark-soft);
}
.pv-hint kbd {
  font-family: var(--font-body);
  font-size: 0.625rem;
  border: 1px solid var(--line-dark);
  padding: 0.1rem 0.35rem;
  color: var(--on-dark-soft);
}

/* ============================================================
   30 — DETAIL HERO PLATE & DENSITY FIXES
   ============================================================ */

.dh-grid { display: grid; gap: 2rem; align-items: end; }
/* Only the photographic hero has room to set the plate beside the title —
   the plan hero already spends its right-hand column on the drawing. */
@media (min-width: 1024px) {
  .detail-hero:not(.is-plan) .dh-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
    gap: 3.5rem;
  }
}
.dh-ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dh-ctas .btn { flex: 0 0 auto; }
.detail-hero .hero-eyebrow { flex-wrap: nowrap; }
.detail-hero .hero-eyebrow span { white-space: nowrap; }

/* In the plan hero the plate is a full-width strip under the copy. */
.detail-hero.is-plan .dh-plate { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.35rem 1.5rem; }
@media (min-width: 1280px) {
  .detail-hero.is-plan .dh-plate { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dh-meta .bit.is-approval { color: var(--gold-soft); }

/* Glass fact plate floating over the hero */
.dh-plate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.25rem;
  padding: 1.75rem;
  background: rgba(10, 30, 28, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(242, 239, 230, 0.18);
  box-shadow: var(--shadow-lg);
}
.dh-plate dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.dh-plate dd {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--on-dark);
}


/* Overview: two asks side by side rather than one lonely link */
.detail-asks {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}

.detail-story-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .detail-story-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 5rem; }
}
.detail-aside {
  border-top: 2px solid var(--forest);
  padding-top: 1.5rem;
  align-self: start;
}
.detail-aside .aside-note {
  margin-top: 1.25rem;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  line-height: 1.7;
}

/* Locality band — used when a project has no map embed */
.locality-band {
  display: grid;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 900px) { .locality-band { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 4rem; } }
.locality-actions { display: grid; gap: 0.5rem; justify-items: start; }
@media (min-width: 900px) { .locality-actions { justify-items: end; text-align: right; } }


/* ---- Listing filter bar: area selector ---- */
.filter-side { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.area-filter { display: flex; align-items: center; gap: 0.5rem; }
.area-filter select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.5rem 1.9rem 0.5rem 0.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c625c' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.9rem;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.area-filter select:hover { border-color: var(--gold); color: var(--forest); }

/* ============================================================
   32 — DENSITY: page heads earn their whitespace
   ============================================================ */
.page-head-grid > *:last-child { align-self: end; }
.page-head .page-intro { max-width: 46ch; }

/* A quiet meta strip under a page title stops the right column reading empty */
.page-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
}
.page-note span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}
.page-note b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   33 — THE RECORD (layouts per year, straight from the register)
   ============================================================ */
.record { margin: 0; display: grid; gap: 1.5rem; }

.record-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: clamp(0.25rem, 0.8vw, 0.7rem);
  height: clamp(12rem, 26vw, 20rem);
  padding-top: 1.75rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
@media (max-width: 700px) {
  .record-chart { grid-auto-columns: minmax(2.4rem, 1fr); }
}

.record-col {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: end;
  justify-items: center;
  height: 100%;
  gap: 0.5rem;
  min-width: 0;
}

.record-count {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.record-bar {
  display: block;
  width: 100%;
  max-width: 2.75rem;
  height: 100%;
  align-self: end;
  display: flex;
  align-items: flex-end;
}
.record-bar > span {
  display: block;
  width: 100%;
  height: var(--h, 0%);
  background: var(--forest);
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-premium);
  transition-delay: calc(var(--i, 0) * 45ms);
}
html:not(.js) .record-bar > span { transform: scaleY(1); }
.record.is-in .record-bar > span { transform: scaleY(1); }

/* The one ongoing year is the live one — mark it in the brand accent. */
.record-col:last-child .record-bar > span { background: var(--brand-red); }
.record-col:last-child .record-count { color: var(--brand-red); }

.record-year {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 0.6rem;
  font-variant-numeric: tabular-nums;
  writing-mode: horizontal-tb;
}
@media (max-width: 640px) {
  .record-year { writing-mode: vertical-rl; transform: rotate(180deg); padding-top: 0.4rem; }
}

.record-note {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .record-bar > span { transform: scaleY(1) !important; }
}

/* ---- Enquiry: budget + site-visit request ---- */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--sand);
  cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.check:hover { border-color: var(--gold); }
.check input {
  appearance: none;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border: 1px solid var(--forest);
  background: transparent;
  display: grid;
  place-items: center;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.check input::after {
  content: "";
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid var(--ivory);
  border-bottom: 2px solid var(--ivory);
  transform: rotate(-45deg) scale(0);
  transition: transform var(--dur-fast) var(--ease-premium);
}
.check input:checked { background: var(--forest); border-color: var(--forest); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.check-title { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--forest); }
.check-note { display: block; margin-top: 0.2rem; font-size: var(--fs-xs); color: var(--ink-soft); }


/* ============================================================
   34 — REFERENCE ALIGNMENT
   Warmer grounds, rounded surfaces, red as the action colour.
   Sections stay square; anything you touch or that holds an
   image is softened.
   ============================================================ */

.field-cream { background: var(--cream); color: var(--ink); }

/* ---- 34.1 Rounded surfaces (one place, not twenty) ---- */
.project-card .card-media,
.shot,
.spread-media,
.featured-visual,
.presence-media,
.hero-panel,
.dh-plate,
.plan-stage,
.form-panel,
.empty-state,
.mega-link,
.contact-map,
.media-plate,
.lead-project {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lead-project .lead-visual { border-radius: 0; }
.hero-panel, .dh-plate { border-radius: var(--radius-lg); }
.plan-stage, .form-panel { border-radius: var(--radius-lg); }
.media-plate { border-radius: 0 var(--radius-md) 0 0; }

/* Cards lift instead of merely tinting */
.project-card .card-media { box-shadow: var(--shadow-soft); }
.project-card:hover .card-media { box-shadow: var(--shadow-md); }

/* ---- 34.2 Metadata chips on project cards ---- */
.project-card .card-meta { gap: 0.4rem; }
.project-card .card-meta > span:not(.dot-sep) {
  border: 1px solid var(--line-soft);
  background: var(--cream);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  font-size: 0.6875rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.project-card .card-meta .dot-sep { display: none; }

/* Circular arrow, as in the reference */
.project-card .card-arrow {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  display: grid;
  place-items: center;
  padding: 0.6rem;
  box-sizing: content-box;
  flex: none;
}
.project-card:hover .card-arrow { background: var(--brand-red); color: #fff; transform: translate(2px, -2px); }

.card-badge, .card-index { border-radius: var(--radius-pill); }
.filter-link { border-radius: var(--radius-pill); }
.filter-link.active { box-shadow: 0 8px 20px -12px rgba(16, 44, 42, 0.6); }
.locality-list li { border-radius: var(--radius-pill); }
.status-tag { border-radius: var(--radius-pill); }

/* ---- 34.3 Statement on cream ---- */
.field-cream .statement-text { color: var(--forest); }
.field-cream .statement-mark { filter: none; opacity: 0.05; }
.field-cream .statement-grid { border-top-color: var(--line); }
.field-cream .statement-grid p { color: var(--ink-soft); }
.field-cream .eyebrow { color: var(--brand-red); }
.field-cream .hairline { background: var(--line); }
.field-cream .link-arrow { color: var(--forest); }

/* ---- 34.4 Measure band on cream, with rules instead of a dark field ---- */
.measure-band .measure-grid { border-top-color: var(--line); }
.measure-band .measure-item { border-bottom-color: var(--line); border-right-color: var(--line); }
@media (min-width: 640px) {
  .measure-band .measure-grid > .measure-item { border-right-color: var(--line); }
}
.measure-band .measure-value { color: var(--forest); }
.measure-band .measure-value .suffix { color: var(--brand-red); }
.measure-band .measure-label { color: var(--brand-red); }
.measure-band .measure-note { color: var(--ink-soft); }
.measure-band h2 { color: var(--forest); }
.measure-band .eyebrow { color: var(--brand-red); }

/* An icon above each figure, the way the reference marks its stats */
.measure-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(196, 35, 29, 0.08);
  color: var(--brand-red);
  margin-bottom: 1.25rem;
}
.measure-icon .icon { width: 1.15rem; height: 1.15rem; }

/* ---- 34.5 Forms: filled, rounded, comfortable ---- */
.field input,
.field select,
.field textarea {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  transition: border-color var(--dur-fast) var(--ease-soft), background-color var(--dur-fast) var(--ease-soft);
}
.field select { padding-right: 2.5rem; background-position: right 1rem center; }
.field textarea { padding-top: 0.9rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-red);
  background: #fff;
  outline: none;
}
.field > .field-label { color: var(--forest); letter-spacing: 0.12em; }
.check { border-radius: var(--radius-sm); background: var(--cream); }
.form-feedback { border-radius: var(--radius-sm); }

/* ---- 34.6 Floating actions ---- */
.fab { border-radius: 50%; }
.fab-label { border-radius: var(--radius-pill); }
.mobile-bar-inner > * { border-radius: 0; }

/* ---- 34.7 Assistant ---- */
@media (min-width: 640px) { .assistant { border-radius: var(--radius-md); overflow: hidden; } }
.assistant-suggestions button, .assistant-shortcuts a { border-radius: var(--radius-pill); }
.msg-visitor { border-radius: var(--radius-md) var(--radius-md) 2px var(--radius-md); }
.assistant-form button { border-radius: 50%; }
.assistant-form input { border-radius: var(--radius-pill); border: 1px solid var(--line); padding-inline: 1rem; }
.assistant-form input:focus { border-color: var(--brand-red); }

/* ---- 34.8 Explore panel sits on cream, not glass over ivory ---- */

/* ---- 34.9 Feature cards (the reference's "Why Arasan" block) ---- */
.feature-cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.feature-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-mid) var(--ease-premium),
              box-shadow var(--dur-mid) var(--ease-premium),
              border-color var(--dur-fast) var(--ease-soft);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 35, 29, 0.28);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: rgba(196, 35, 29, 0.07);
  color: var(--brand-red);
  margin-bottom: 1.35rem;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.feature-card:hover .feature-icon { background: var(--brand-red); color: #fff; }
.feature-card h3 { color: var(--forest); font-size: 1.35rem; }
.feature-card p {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-soft);
}

/* The principles column keeps its editorial left rail */
.principles-grid > div:first-child .eyebrow { color: var(--brand-red); }

/* ---- 34.10 Hero, per the reference ---- */

/* Eyebrow becomes a badge pill sitting on the image */
.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 30, 28, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(242, 239, 230, 0.22);
  color: var(--ivory);
  margin-bottom: 1.9rem;
}
.hero .hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-red-lift);
  flex: none;
}


/* Stats sit in a white card overlapping the image, as in the reference */
.hero-foot {
  align-items: stretch;
  border-top: 0;
  padding-top: 0;
  margin-top: 2.5rem;
  gap: 1.25rem;
}
.hero-stats {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.35rem 1.75rem;
  gap: 0;
  order: -1;
}
.hero-stat {
  padding-inline: 1.6rem;
  border-right: 1px solid var(--line-soft);
  justify-items: start;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stats .hero-stat b { color: var(--forest); font-size: 2rem; }
.hero-stats .hero-stat span { color: var(--ink-soft); }
.scroll-cue { align-self: center; }
@media (max-width: 700px) {
  .hero-stats { width: 100%; padding: 1.1rem 1.25rem; }
  .hero-stat { padding-inline: 0.9rem; }
}

/* Sentence copy on a card is prose, not a metadata chip. */
.project-card .card-copy {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ============================================================
   35 — REFERENCE LAYOUT COMPONENTS
   ============================================================ */

.eyebrow-red { color: var(--brand-red); }
.rule-red { display: block; width: 3.5rem; height: 3px; background: var(--brand-red); margin-top: 2rem; }

/* ---- 35.1 Hero: round secondary CTA, project deck ---- */
.cta-round {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
}
.cta-round-btn {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(242, 239, 230, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-mid) var(--ease-premium);
}
.cta-round:hover .cta-round-btn { background: #fff; color: var(--forest); transform: scale(1.06); }

.hero-deck { position: relative; display: grid; }
.hero-panel {
  grid-area: 1 / 1;
  /* Flex, not grid: the slides differ in height (only some carry a locality
     line) and the CTA must land at the same place on all of them, clear of
     the absolutely positioned controls below. */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--forest);
  border: 1px solid rgba(242, 239, 230, 0.12);
  border-radius: var(--radius-lg);
  /* Shorthand first — a later `padding` would reset the reserved space. */
  padding: 1.9rem;
  padding-bottom: 5.5rem;
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  /* The outgoing card clears before the incoming one arrives — a plain
     crossfade superimposed two different projects mid-transition. */
  transition: opacity 0.28s var(--ease-soft) 0.22s, visibility 0s 0s, border-color var(--dur-mid);
}
.hero-deck .hero-panel:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-soft) 0s, visibility 0s 0.22s;
}
.hero-panel:hover { border-color: rgba(242, 239, 230, 0.32); }
.hero-panel .panel-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  color: var(--on-dark);
  margin-top: 0.9rem;
}
.hero-panel .panel-place {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-xs); color: var(--on-dark-soft);
}
.hero-panel .panel-rule { display: block; height: 1px; background: var(--line-dark-soft); margin: 1.1rem 0 0.9rem; }
.hero-panel .panel-facts {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem;
  font-size: var(--fs-xs); color: var(--on-dark-soft);
}
.hero-panel .panel-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-pill);
  color: var(--forest);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.hero-panel:hover .panel-cta { background: var(--brand-red); color: #fff; }

.deck-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.9rem 1.6rem;
  pointer-events: none;
  z-index: 2;
}
.deck-controls > * { pointer-events: auto; }
.deck-count {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em;
  color: var(--on-dark-soft); font-variant-numeric: tabular-nums;
}
.deck-arrows { display: flex; gap: 0.5rem; }
.deck-btn {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 230, 0.35);
  color: var(--ivory);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.deck-btn:hover { background: #fff; border-color: #fff; color: var(--forest); }

/* ---- 35.2 Hero stat strip ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.35rem 1.5rem;
}
@media (min-width: 860px) { .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-cell {
  display: flex;
  align-items: center;
  justify-content: center;   /* labels differ in length; centring keeps the
                                gaps either side of each divider even */
  gap: 0.85rem;
  padding: 0.55rem 1rem;
  border-right: 1px solid var(--line-soft);
  min-width: 0;
}
.stat-cell > div { min-width: 0; }
.stat-cell:last-child { border-right: 0; }
@media (max-width: 859.98px) { .stat-cell:nth-child(2n) { border-right: 0; } }
.stat-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: rgba(196, 35, 29, 0.08);
  color: var(--brand-red);
}
.stat-cell > div { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.stat-cell b {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.75rem; line-height: 28px; color: var(--forest);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-cell > div > span {
  display: block; margin-top: 4px;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em;
  line-height: 14px;
  text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap;
}
/* Narrow screens put two per row, where nowrap would overflow. */
@media (max-width: 859.98px) {
  .stat-cell > div > span { white-space: normal; }
}

/* ---- 35.3 Editorial split (lead + cards) ---- */
.split-editorial { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) {
  .split-editorial { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 3.5rem; }
}
.split-lead h2 { margin-top: 1.1rem; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.12; max-width: 15ch; }
.split-lead .body-copy { margin-top: 1.5rem; font-size: var(--fs-sm); max-width: 40ch; }

.why-cards { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .why-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- 35.4 Featured layout card ---- */
.layout-card {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
@media (min-width: 1000px) { .layout-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.layout-visual {
  position: relative;
  background: var(--cream);
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  min-height: 18rem;
}
.layout-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.layout-visual.is-plan img {
  width: auto; height: auto;
  max-height: 30rem; max-width: 100%;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.layout-visual .tick-frame { inset: 1rem; }

.layout-info {
  padding: clamp(1.75rem, 3.2vw, 3rem);
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
}
.layout-info h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.layout-info .body-copy { font-size: var(--fs-sm); max-width: 46ch; }
.layout-info .btn { align-self: flex-start; margin-top: 0.6rem; }

.fact-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0.5rem 0 0; }
@media (min-width: 480px) { .fact-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact-chip {
  display: flex; align-items: center; gap: 0.65rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--cream);
  padding: 0.7rem 0.85rem;
  min-width: 0;
}
.chip-icon {
  display: grid; place-items: center; flex: none;
  width: 1.9rem; height: 1.9rem;
  border-radius: var(--radius-xs);
  background: rgba(196, 35, 29, 0.09);
  color: var(--brand-red);
}
.fact-chip dt { font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.fact-chip dd { margin: 0.1rem 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--forest); line-height: 1.3; }

/* ---- 35.5 Portfolio row ---- */
.portfolio-grid { display: grid; gap: 1.5rem; }
@media (min-width: 620px)  { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.portfolio-grid .card-media { aspect-ratio: 4 / 3; }

/* ---- 35.6 Figures band ---- */
.figures-band { border-block: 1px solid var(--line-soft); }
.figures-grid { display: grid; gap: 2.5rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
@media (min-width: 900px) { .figures-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure-cell { display: grid; justify-items: center; gap: 0.35rem; }
.figure-icon {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: rgba(196, 35, 29, 0.08);
  color: var(--brand-red);
  margin-bottom: 0.85rem;
}
.figure-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
  line-height: 1; color: var(--forest);
  font-variant-numeric: lining-nums tabular-nums;
}
.figure-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); }
.figure-note { font-size: var(--fs-xs); color: var(--ink-soft); }

/* ---- 35.7 Locations ---- */
.areas-layout { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .areas-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3.5rem; } }
.areas-lead h2 { margin-top: 1.1rem; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.12; max-width: 14ch; }
.areas-lead .body-copy { margin-top: 1.4rem; font-size: var(--fs-sm); max-width: 38ch; }
.areas-lead .btn { margin-top: 2rem; }

.areas-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.area-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.area-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-premium); }
.area-card:hover img { transform: scale(1.06); }
.area-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 28, 0.92) 0%, rgba(10, 30, 28, 0.35) 45%, rgba(10, 30, 28, 0.05) 75%);
}
.area-body { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.15rem; display: grid; gap: 0.2rem; }
.area-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; color: #fff; }
.area-meta { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.area-arrow {
  position: absolute; top: 1rem; right: 1rem;
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest);
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-mid) var(--ease-premium);
}
.area-card:hover .area-arrow { background: var(--brand-red); color: #fff; transform: translate(2px, -2px); }

/* ---- 35.8 Trust grid ---- */
.trust-grid { display: grid; gap: 1.5rem 2rem; }
@media (min-width: 680px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust-item { display: flex; gap: 1rem; align-items: flex-start; }
.trust-icon {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-sm);
  background: rgba(196, 35, 29, 0.08);
  color: var(--brand-red);
}
.trust-item h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--forest); letter-spacing: -0.005em; }
.trust-item p { margin-top: 0.3rem; font-size: var(--fs-xs); line-height: 1.7; color: var(--ink-soft); }

/* ---- 35.9 Beyond land ---- */
.beyond-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) {
  .beyond-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.85fr) minmax(0, 1fr); gap: 2.5rem; }
}
.beyond-media { border-radius: var(--radius-md); overflow: hidden; }
.beyond-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.beyond-copy h2 { margin-top: 1rem; font-size: clamp(1.75rem, 2.8vw, 2.4rem); line-height: 1.15; }
.beyond-copy .body-copy { margin-top: 1.25rem; font-size: var(--fs-sm); }
.beyond-copy .btn { margin-top: 1.75rem; }

.beyond-shots {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.shot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; width: 100%; }
.shot-grid .shot { border-radius: var(--radius-xs); }
.shot-grid .shot img { aspect-ratio: 4 / 3; }

/* ---- 35.10 Get in touch ---- */
.touch-grid { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 1000px) {
  .touch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 0.9fr); gap: 2.5rem; }
}
.touch-lead h2 { margin-top: 1.1rem; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.12; max-width: 14ch; }
.touch-lead .body-copy { margin-top: 1.4rem; font-size: var(--fs-sm); max-width: 40ch; }
.touch-lines { margin-top: 2rem; display: grid; gap: 1rem; }
.touch-lines li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.touch-lines a:hover { color: var(--brand-red); }
.touch-icon {
  display: grid; place-items: center; flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(196, 35, 29, 0.08);
  color: var(--brand-red);
}
.touch-media { border-radius: var(--radius-md); overflow: hidden; }
.touch-media img { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; }
.touch-actions {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: flex; flex-direction: column; justify-content: center;
}
.touch-alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 1rem;
  font-size: var(--fs-xs); color: var(--ink-soft);
}
.touch-alt:hover { color: var(--brand-red); }

/* ---- 35.11 Light footer (reference treatment) ---- */
.site-footer.is-light { background: var(--cream); color: var(--ink); }
.site-footer.is-light .footer-statement { border-bottom: 1px solid var(--line-soft); }
.site-footer.is-light .footer-statement p { color: var(--forest); font-size: clamp(1.5rem, 2.8vw, 2.4rem); max-width: 30ch; }
.site-footer.is-light .footer-statement em { color: var(--brand-red); }
.site-footer.is-light .footer-brand p { color: var(--ink-soft); }
.site-footer.is-light .footer-col h2 { color: var(--brand-red); }
.site-footer.is-light .footer-col a,
.site-footer.is-light .footer-col li { color: var(--ink-soft); }
.site-footer.is-light .footer-col a:hover { color: var(--brand-red); }
.site-footer.is-light .footer-col .icon { color: var(--brand-red); }
.site-footer.is-light .footer-col .index-tag { color: var(--ink-faint); }
.site-footer.is-light .footer-bottom {
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
}
.site-footer.is-light .footer-bottom .to-top { color: var(--forest); }
.site-footer.is-light .footer-bottom .to-top:hover { color: var(--brand-red); }
.site-footer.is-light .eyebrow { color: var(--ink-faint); }
.footer-logo { width: auto; height: 2.75rem; object-fit: contain; }

/* ============================================================
   36 — CONTACT PANELS
   The office card and the enquiry card are siblings of equal
   height inside the container, so neither stretches edge to
   edge on a wide screen and neither is left with dead space.
   ============================================================ */

.contact-panels {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1000px) {
  .contact-panels { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2rem; }
  /* The office details stay in view while the form is filled in. */
  .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ---- Office card ---- */
.contact-aside {
  background: var(--forest);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.contact-aside h2 { color: var(--on-dark); font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
.contact-aside .eyebrow { color: var(--gold-soft); }

/* The rows take the slack rather than leaving a hole beneath them. */
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-lines li {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dark-soft);
  font-size: var(--fs-sm);
  color: var(--on-dark-soft);
}
.contact-lines li:first-child { border-top: 1px solid var(--line-dark-soft); }
.contact-lines .icon { margin-top: 0.2rem; color: var(--gold); flex: none; }
.contact-lines a { transition: color var(--dur-fast); }
.contact-lines a:hover { color: var(--gold-soft); }
.contact-lines .line-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 0.3rem;
}

/* Closing block sits directly under the rows — no auto margin, no gap. */
.aside-close {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark-soft);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.aside-close .eyebrow { color: var(--gold-soft); }
.aside-close .body-copy { color: var(--on-dark-soft); font-size: var(--fs-sm); margin: 0; }
.aside-close .btn { margin-top: 0.5rem; }

.contact-map {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark-soft);
  filter: grayscale(0.2) contrast(1.02);
  flex: none;
}

/* ---- Enquiry card ---- */
.contact-form-col { display: flex; }
.contact-form-col .form-panel {
  flex: 1;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  gap: 1.5rem;
}

@media (max-width: 999.98px) {
  .contact-aside { gap: 1.5rem; }
}

/* ---- Footer credit ---- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1.5rem;
}
.footer-legal .credit { color: var(--ink-faint); }
.footer-legal .credit a {
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.footer-legal .credit a:hover,
.footer-legal .credit a:focus-visible { color: var(--brand-red); border-bottom-color: var(--brand-red); }
/* The dark footer variant, if it is ever switched back on. */
.site-footer:not(.is-light) .footer-legal .credit a { color: var(--on-dark-soft); }
.site-footer:not(.is-light) .footer-legal .credit a:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

/* ============================================================
   37 — BLOG
   ============================================================ */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}
.post-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(196, 35, 29, 0.08);
  color: var(--brand-red);
  padding: 0.3rem 0.7rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Lead post ---- */
.post-lead {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: transform var(--dur-mid) var(--ease-premium), box-shadow var(--dur-mid) var(--ease-premium);
}
@media (min-width: 900px) { .post-lead { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.post-lead:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-lead-media { display: block; overflow: hidden; background: var(--cream); min-height: 16rem; }
.post-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-premium); }
.post-lead:hover .post-lead-media img { transform: scale(1.04); }
.post-lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.75rem, 3.2vw, 3rem);
}
.post-lead-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.12;
  color: var(--forest);
}
.post-excerpt { font-size: var(--fs-sm); line-height: 1.75; color: var(--ink-soft); max-width: 52ch; }

/* ---- Card grid ---- */
.post-grid { display: grid; gap: 1.5rem; }
@media (min-width: 620px)  { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  height: 100%;
  transition: transform var(--dur-mid) var(--ease-premium), box-shadow var(--dur-mid) var(--ease-premium);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-media { display: block; overflow: hidden; background: var(--cream); }
.post-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.1s var(--ease-premium); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.35rem; flex: 1; }
.post-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--forest);
}
.post-card .post-excerpt { font-size: var(--fs-xs); }
.post-more {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red);
}
.post-more .icon { transition: transform var(--dur-mid) var(--ease-premium); }
.post-card:hover .post-more .icon { transform: translate(2px, -2px); }

/* ---- Post page ---- */
.post-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.post-head-inner { max-width: 44rem; margin-top: 1.75rem; }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; margin-top: 1.1rem; }
.post-lede { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.7; color: var(--ink-soft); }
.post-byline { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--ink-faint); }
.breadcrumb.is-light { color: var(--ink-faint); margin-bottom: 0; }
.breadcrumb.is-light a:hover { color: var(--brand-red); }

.post-cover { margin-bottom: 0; }
.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.post-layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 4rem; } }

.post-prose { max-width: 40rem; }
.post-prose p {
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--ink-soft);
}
.post-prose p + p { margin-top: 1.5rem; }
/* An opening drop line, the way a magazine sets a first paragraph. */
.post-prose > p:first-child { color: var(--ink); font-size: clamp(1.1rem, 1.4vw, 1.3rem); }

.post-aside {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1000px) { .post-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.post-aside .touch-alt { margin-top: 0.85rem; }

/* ============================================================
   38 — LEGAL PAGES
   ============================================================ */

.legal-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 4rem; } }

.legal-toc {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
@media (min-width: 1000px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.legal-toc .eyebrow { color: var(--brand-red); }
.legal-toc ol { margin-top: 1rem; display: grid; gap: 0.55rem; counter-reset: toc; }
.legal-toc li { counter-increment: toc; display: flex; gap: 0.6rem; font-size: var(--fs-xs); line-height: 1.5; }
.legal-toc li::before {
  content: counter(toc);
  flex: none;
  min-width: 1.2rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.legal-toc a { color: var(--ink-soft); transition: color var(--dur-fast); }
.legal-toc a:hover { color: var(--brand-red); }

.legal-prose { max-width: 44rem; }
.legal-prose section + section { margin-top: 2.75rem; }
.legal-prose h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.25;
  color: var(--forest);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  display: flex;
  gap: 0.6rem;
}
.legal-num { color: var(--brand-red); font-variant-numeric: tabular-nums; }
.legal-prose p {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--ink-soft);
}
.legal-list { margin-top: 1rem; display: grid; gap: 0.5rem; }
.legal-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 1px;
  background: var(--brand-red);
}
.legal-contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal-contact a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal-contact a:hover { color: var(--brand-red); border-color: var(--brand-red); }

/* Footer legal row */
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-legal-links a {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  transition: color var(--dur-fast);
}
.footer-legal-links a:hover { color: var(--brand-red); }
.site-footer:not(.is-light) .footer-legal-links a { color: var(--on-dark-soft); }
.site-footer:not(.is-light) .footer-legal-links a:hover { color: var(--gold-soft); }
