/* ==========================================================================
   Elan channel partner — public site
   Tokens: Basalt charcoal, Milk, Ivory, Sandstone, Champagne gold.
   Type: Bodoni Moda (display), Jost (text & interface).
   Signature device: the gilt frame (inset gold keyline) on hero photography only.
   ========================================================================== */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-wght-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* Dark ("black") theme. Swap the six values under "Surfaces" back to the light set in the
     comment beside each one if you ever want the ivory version of the site again. */
  --basalt: #F7F4EE;           /* ink: headings and strong text   (light theme: #1D1C1A) */
  --basalt-2: #E6E1D7;         /* ink, slightly softer                                   */

  /* Surfaces */
  --milk: #131211;             /* page background                 (light theme: #FBFAF7) */
  --ivory: #1B1A17;            /* alternate band                  (light theme: #F2ECE1) */
  --sand: #2E2A25;             /* hairlines and borders           (light theme: #E4D9C6) */
  --mist: #3B3630;             /* input borders                   (light theme: #D8D6D1) */
  --surface-dark: #0E0D0C;     /* deepest band: footer, hero, dark sections              */
  --surface-dark-2: #1A1917;   /* raised dark surface                                    */
  --milk-ink: #FBFAF7;         /* light text sitting on any dark surface                  */

  /* Text */
  --text: #D8D3C9;
  --muted: #A29B8F;
  --on-dark: #EDE8DF;
  --on-dark-muted: #B0A99D;

  /* Gold */
  --gold: #C9A96B;
  --gold-bright: #DCC08A;
  --gold-ink: #D5B678;         /* gold for small text on dark     (light theme: #86682F) */

  /* Buttons */
  --btn-dark-bg: #F5F1E9;
  --btn-dark-ink: #16150F;
  --btn-dark-bg-hover: #FFFFFF;
  --btn-dark-ink-hover: #16150F;

  --danger: #E2887A;
  --ok: #7FB68C;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-text: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(44px, 5vw, 76px);   /* section rhythm: tighter than before */
  --radius: 3px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.62; font-weight: 400; color: var(--text); background: var(--milk); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; height: auto; }
img { background: #201E1B; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--basalt); font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.2vw + 1rem, 4.75rem); }
h2 { font-size: clamp(1.95rem, 2.2vw + 1rem, 3rem); }
h3 { font-size: clamp(1.3rem, .6vw + 1rem, 1.6rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.band-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-bright); }
::selection { background: var(--gold); color: #16150F; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: #1D1C1A; padding: 10px 16px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(46rem + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(26px, 3vw, 40px) var(--section); }
.band-dark { background: var(--surface-dark); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: var(--milk-ink); }
.band-ivory { background: var(--ivory); }
.band-dark { border-block: 1px solid var(--sand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(22px, 2.6vw, 34px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-intro { max-width: 40rem; margin: .75rem 0 0; color: var(--muted); font-size: 1.0625rem; }
.band-dark .section-intro { color: var(--on-dark-muted); }
.h-small { font-family: var(--font-text); font-size: 1rem; font-weight: 500; letter-spacing: .01em; color: var(--basalt); margin-bottom: 1rem; }
.narrow-grid { display: grid; gap: 40px clamp(40px, 6vw, 96px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .narrow-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.kicker { font-size: .9375rem; color: var(--gold-ink); margin: 0 0 .5rem; font-weight: 500; }
.kicker--light { color: var(--gold-bright); }
.lead { font-size: 1.1875rem; color: var(--basalt); line-height: 1.55; }

/* ---------- Links & buttons ---------- */
.text-link { color: var(--gold-ink); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-decoration-thickness: 1px; text-underline-offset: .35em; white-space: nowrap; }
.band-dark .text-link { color: var(--gold-bright); }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-ink); font-weight: 500; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 12px 26px; border: 1px solid transparent; border-radius: var(--radius); font-size: .98rem; font-weight: 500; letter-spacing: .01em; line-height: 1.2; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--basalt); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-ink); border-color: var(--btn-dark-bg); }
.btn-dark:hover { background: var(--btn-dark-bg-hover); color: var(--btn-dark-ink-hover); }
.btn-outline { background: transparent; color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 38%, transparent); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-outline-light { background: transparent; color: var(--milk-ink); border-color: color-mix(in srgb, var(--milk) 45%, transparent); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.icon-btn:hover { color: var(--gold-bright); }
.badge { position: absolute; top: 14px; left: 14px; background: rgba(8, 8, 7, .82); color: var(--gold-bright); font-size: .8125rem; padding: 4px 10px; border-radius: var(--radius); }
.badge--muted { background: var(--mist); color: var(--on-dark); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--sand); border-radius: 999px; background: var(--surface-dark-2); text-decoration: none; font-size: .95rem; }
.chip span { color: var(--gold-ink); font-size: .85rem; }
.chip:hover, .chip[aria-current="page"] { border-color: var(--gold); background: #26241F; color: var(--gold-bright); }
.sep { display: inline-block; width: 18px; height: 1px; background: currentColor; opacity: .45; margin: 0 10px; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--milk); color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--sand) 70%, transparent); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s; }
.site-header.is-overlay { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; color: var(--milk-ink); }
.site-header.is-overlay.is-scrolled, .site-header.is-overlay.is-open { background: rgba(14, 13, 12, .94); backdrop-filter: blur(8px); color: var(--on-dark); border-color: var(--sand); }
.header-bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; margin-right: auto; }
.brand-word { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: .01em; color: inherit; }
.site-header:not(.is-overlay) .brand-word, .is-scrolled .brand-word { color: var(--basalt); }
.brand-sub { font-size: .78rem; letter-spacing: .04em; color: var(--gold-ink); margin-top: 3px; }
.is-overlay:not(.is-scrolled) .brand-sub { color: var(--gold-bright); }
.brand-logo { height: 44px; width: auto; background: none; }
.brand-logo--light { display: none; }
.is-overlay:not(.is-scrolled):not(.is-open) .brand-logo--light { display: block; }
.is-overlay:not(.is-scrolled):not(.is-open) .brand-logo--light + .brand-logo--dark, .is-overlay:not(.is-scrolled):not(.is-open) .brand-logo--dark:has(+ .brand-logo--light) { display: none; }
.primary-nav { display: none; }
.primary-nav > ul { display: flex; gap: 4px; list-style: none; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; background: none; border: 0; font-size: .98rem; text-decoration: none; position: relative; color: inherit; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-caret { width: 14px; height: 14px; transition: transform .2s; }
.has-menu { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; padding: 10px 0; background: var(--surface-dark-2); color: var(--on-dark); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(29,28,26,.35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-menu.is-open .nav-menu, .has-menu:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.has-menu.is-open .nav-caret { transform: rotate(180deg); }
.nav-menu a { display: block; padding: 9px 20px; text-decoration: none; }
.nav-menu a:hover, .nav-menu a[aria-current] { background: var(--ivory); color: var(--gold-ink); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-phone { display: none; align-items: center; gap: 8px; padding: 8px 10px; text-decoration: none; font-weight: 500; }
.header-cta { display: none; }
@media (min-width: 1180px) { .primary-nav { display: block; } .nav-toggle { display: none; } .header-cta { display: inline-flex; } }
@media (min-width: 1400px) { .header-phone { display: inline-flex; } }
.search-panel { border-top: 1px solid var(--sand); background: var(--surface-dark-2); color: var(--on-dark); padding: 18px 0; }
.search-form { position: relative; display: flex; align-items: center; gap: 12px; }
.search-form input { flex: 1; border: 0; border-bottom: 1px solid var(--sand); background: transparent; padding: 12px 4px; font-size: 1.15rem; outline: none; }
.search-form input:focus { border-color: var(--gold); }
.search-results { position: absolute; top: calc(100% + 8px); left: 32px; right: 56px; list-style: none; background: var(--surface-dark-2); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(29,28,26,.35); z-index: 5; max-height: 60vh; overflow: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; text-decoration: none; }
.search-results a span { color: var(--muted); font-size: .9rem; }
.search-results a:hover, .search-results [aria-selected="true"] a { background: var(--ivory); }
.search-results .empty { padding: 12px 18px; color: var(--muted); }
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: var(--surface-dark); color: var(--on-dark); overflow-y: auto; }
.mobile-nav-inner { min-height: 100%; display: flex; flex-direction: column; padding: 18px var(--gutter) 32px; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav-top .brand-word { color: var(--milk-ink); }
.mobile-nav ul { list-style: none; }
.mobile-nav nav a { display: block; padding: 12px 0; font-family: var(--font-display); font-size: 1.7rem; color: var(--milk-ink); text-decoration: none; border-bottom: 1px solid rgba(237,232,223,.1); }
.mobile-nav nav a[aria-current] { color: var(--gold-bright); }
.mobile-nav-contact { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); padding-top: calc(var(--header-h) + clamp(12px, 2.5vh, 40px)); display: flex; flex-direction: column; justify-content: flex-end; color: var(--milk-ink); background: var(--surface-dark); overflow: hidden; isolation: isolate; }
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s var(--ease); z-index: 0; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img, .project-hero-media img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-dark-2); }
.hero-slide.is-active img { animation: settle 9s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(29,28,26,.55) 0%, rgba(29,28,26,.05) 28%, rgba(29,28,26,.2) 55%, rgba(29,28,26,.82) 100%); }
.hero-frame { position: absolute; z-index: 3; inset: clamp(12px, 2vw, 26px); top: calc(var(--header-h) + 8px); border: 1px solid rgba(201,169,107,.55); pointer-events: none; }
.hero-content { position: relative; z-index: 4; padding-bottom: clamp(24px, 4vw, 40px); }
/* With a single slide there is no caption strip below, so the hero content itself has to
   leave room for the quick-search bar that overlaps the hero's bottom edge. */
.hero-content:last-child { padding-bottom: clamp(104px, 11vh, 124px); }
.hero-title { color: var(--milk-ink); max-width: 17ch; font-size: clamp(2.25rem, 3.4vw + 1rem, 4.25rem); font-weight: 500; margin-bottom: .35em; }
.hero-sub { max-width: 36rem; font-size: clamp(1.02rem, .35vw + .95rem, 1.2rem); color: var(--on-dark); margin-bottom: clamp(1.1rem, 2.5vh, 1.6rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px clamp(88px, 9vw, 110px); border-top: 1px solid rgba(237,232,223,.18); margin-top: 8px; }
.hero-caption-item { display: flex; flex-direction: column; text-decoration: none; }
.hero-caption-name { font-family: var(--font-display); font-size: 1.35rem; }
.hero-caption-loc { font-size: .92rem; color: var(--on-dark-muted); }
.hero-nav { display: flex; align-items: center; gap: 4px; }
.hero-nav .icon-btn { color: var(--milk-ink); border: 1px solid rgba(237,232,223,.25); width: 42px; height: 42px; }
.hero-nav .icon-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.hero-count { font-variant-numeric: tabular-nums; padding: 0 10px; font-size: .95rem; color: var(--on-dark); }
@media (max-width: 700px) { .hero-caption { flex-direction: column; align-items: flex-start; } .hero-frame { display: none; } }
/* Short laptop screens: keep the whole hero readable rather than forcing full height. */
@media (max-height: 760px) and (min-width: 900px) {
  .hero { min-height: 0; }
  .hero-title { font-size: clamp(2.1rem, 2.6vw + 1rem, 3.4rem); }
  .hero-caption { padding-block: 14px clamp(72px, 8vw, 92px); }
  .project-hero { min-height: 0; padding-bottom: 8px; }
}

/* Quick search overlaps the hero edge */
.quick-search { position: relative; z-index: 5; margin-top: clamp(-76px, -6vw, -56px); }
.qs-form { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); background: var(--sand); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(29,28,26,.6); width: auto; padding: 0; margin-inline: var(--gutter); max-width: calc(var(--wrap) - var(--gutter) * 2); }
.qs-field { background: var(--surface-dark-2); padding: 13px 18px 9px; display: flex; flex-direction: column; min-width: 0; }
.qs-field label { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.qs-field select { width: 100%; min-width: 0; border: 0; background: transparent; padding: 4px 0; font-size: 1.02rem; color: var(--basalt); outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23D5B678' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; padding-right: 22px; }
.qs-submit { border-radius: 0; min-height: 64px; }
/* Two columns on mid-size screens; a single row only once there is room for it,
   otherwise the four selects push the Search button off the edge. */
@media (min-width: 900px) { .qs-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .qs-submit { grid-column: 1 / -1; } }
@media (min-width: 1160px) { .qs-form { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; } .qs-submit { grid-column: auto; padding-inline: 32px; } }
@media (min-width: 1368px) { .qs-form { margin-inline: auto; } }

.trust-strip { padding: clamp(40px, 5vw, 64px) 0 0; }
.trust-list { display: grid; gap: 18px 32px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; color: var(--basalt); }
.trust-list .icon { color: var(--gold-ink); width: 24px; height: 24px; margin-top: 2px; }

/* Heroes fall back to charcoal when a project has no photograph yet,
   so overlaid white text always stays readable. */
.hero .is-placeholder, .project-hero .is-placeholder { opacity: .22; }

/* ---------- Framed photography (signature) ---------- */
.framed { position: relative; display: block; overflow: hidden; }
.framed::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(220,192,138,.7); pointer-events: none; }
.framed img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Spotlight ---------- */
.spotlight { display: grid; gap: 28px clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.spotlight-media { aspect-ratio: 4 / 3; }
.spotlight-title { font-size: clamp(2.1rem, 2.4vw + 1rem, 3.3rem); margin-bottom: .3em; }
.spotlight-title a { text-decoration: none; }
.spotlight-loc, .project-card-loc, .project-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 1rem; }
.spotlight-loc .icon, .project-card-loc .icon { color: var(--gold-ink); }
.spotlight-text { font-size: 1.08rem; max-width: 34rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 1.5rem 0 2rem; padding-top: 1.25rem; border-top: 1px solid var(--sand); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { color: var(--basalt); font-weight: 500; }
.spotlight-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) { .spotlight { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ---------- Rails ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 85%); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; overscroll-behavior-x: contain; }
.rail:focus-visible { outline-offset: 6px; }
.rail-item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 700px) { .rail { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 48px) / 3); } }
.rail--quotes { grid-auto-columns: minmax(280px, 90%); }
@media (min-width: 900px) { .rail--quotes { grid-auto-columns: calc((100% - 24px) / 2); } }
.rail-controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.section-head .rail-controls { margin: 0; }
.rail-btn { border: 1px solid var(--sand); }
.band-dark .rail-btn { border-color: rgba(237,232,223,.25); color: var(--milk-ink); }
.rail-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: clamp(24px, 2.4vw, 32px) 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.project-card { display: flex; flex-direction: column; height: 100%; background: transparent; }
.project-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.project-card--portrait .project-card-media { aspect-ratio: 3 / 4; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.03); }
.project-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 0 0; }
.project-card-kind { font-size: .88rem; color: var(--gold-ink); margin-bottom: .4rem; }
.project-card-title { font-size: 1.55rem; margin-bottom: .35rem; }
.project-card-title a { text-decoration: none; }
.project-card-title a:hover { color: var(--gold-ink); }
.project-card-loc { margin-bottom: .35rem; font-size: .96rem; }
.project-card-type { font-size: .96rem; color: var(--text); margin-bottom: 0; }
.project-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--sand); margin-block-start: 18px; }
.price { margin: 0; font-weight: 500; color: var(--basalt); }
.price small { font-weight: 400; color: var(--muted); }
.band-dark .project-card { background: transparent; }
.band-dark .project-card-title, .band-dark .price { color: var(--milk-ink); }

.tile-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--milk-ink); text-decoration: none; }
@media (min-width: 800px) { .tile { aspect-ratio: 5 / 6; } }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(29,28,26,.85)); }
.tile-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 2px; }
.tile-title { font-family: var(--font-display); font-size: clamp(1.8rem, 1.6vw + 1rem, 2.6rem); line-height: 1.1; margin-bottom: 6px; }
.tile-meta { color: var(--on-dark); font-size: .98rem; }
.tile:hover .tile-title { color: var(--gold-bright); }

.unit-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.unit-card { display: flex; flex-direction: column; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--surface-dark-2); overflow: hidden; }
.unit-card-media { position: relative; aspect-ratio: 16 / 10; }
.unit-card-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.unit-card-project { font-size: .9rem; color: var(--gold-ink); margin-bottom: .3rem; }
.unit-card-project a { text-decoration: none; }
.unit-card-title { font-family: var(--font-text); font-size: 1.15rem; font-weight: 500; margin-bottom: .75rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: .92rem; margin-bottom: 16px; }
.specs dt { color: var(--muted); font-size: .82rem; }
.specs dd { color: var(--basalt); }
.unit-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--sand); }

.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding-top: 16px; }
.post-card-meta { font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.post-card-title { font-size: 1.4rem; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { color: var(--gold-ink); }
.post-card-excerpt { color: var(--muted); font-size: .98rem; }

.release-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; background: var(--surface-dark-2); }
.release-media { position: relative; aspect-ratio: 16 / 10; }
.release-media img { width: 100%; height: 100%; object-fit: cover; }
.release-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.release-date { font-size: .88rem; color: var(--gold-ink); margin-bottom: .3rem; }
.release-title { font-size: 1.35rem; }
.release-loc { color: var(--muted); font-size: .95rem; }
.release-text { font-size: .96rem; }
.release-note { font-size: .92rem; color: var(--basalt); border-left: 2px solid var(--gold); padding-left: 10px; }
.release-actions { margin-top: auto; display: flex; gap: 20px; flex-wrap: wrap; padding-top: 8px; }

/* ---------- Home: lease list, resale, why, places ---------- */
.lease-list { list-style: none; border-top: 1px solid rgba(237,232,223,.14); }
.lease-row { display: grid; gap: 12px 24px; grid-template-columns: 96px 1fr; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(237,232,223,.14); }
.lease-thumb { width: 96px; aspect-ratio: 1; overflow: hidden; }
.lease-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lease-main h3 { margin: 0 0 4px; font-size: 1.55rem; }
.lease-main h3 a { text-decoration: none; }
.lease-main h3 a:hover { color: var(--gold-bright); }
.lease-main p { margin: 0; color: var(--on-dark-muted); font-size: .96rem; }
.lease-count { margin: 0; color: var(--gold-bright); font-size: .96rem; grid-column: 2; }
.lease-row .btn { grid-column: 2; justify-self: start; }
@media (min-width: 900px) { .lease-row { grid-template-columns: 120px minmax(0, 1fr) 220px auto; } .lease-thumb { width: 120px; } .lease-count, .lease-row .btn { grid-column: auto; } }

.resale-grid { list-style: none; display: grid; gap: 1px; background: var(--sand); border: 1px solid var(--sand); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.resale-tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px; background: var(--surface-dark-2); text-decoration: none; transition: background-color .2s; }
.resale-tile:hover { background: #26241F; }
.resale-name { font-family: var(--font-display); font-size: 1.45rem; color: var(--basalt); }
.resale-meta { color: var(--muted); font-size: .94rem; }
.resale-count { margin-top: 10px; color: var(--gold-ink); font-weight: 500; font-size: .94rem; }

.why-grid { display: grid; gap: 40px clamp(40px, 6vw, 96px); }
@media (min-width: 960px) { .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .why-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.why-intro p { font-size: 1.08rem; margin-bottom: 1.6rem; max-width: 32rem; }
.why-list { list-style: none; display: grid; gap: 0; }
.why-list li { padding: 24px 0; border-top: 1px solid var(--gold); }
.why-list li:last-child { border-bottom: 1px solid var(--sand); }
.why-list h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.why-list p { margin: 0; color: var(--muted); max-width: 36rem; }

.places-grid { display: grid; gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
@media (min-width: 960px) { .places-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.place-index { list-style: none; border-top: 1px solid var(--sand); }
.place-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sand); text-decoration: none; }
.place-name { font-family: var(--font-display); font-size: clamp(1.5rem, 1vw + 1rem, 2rem); color: var(--basalt); transition: color .2s; }
.place-meta { color: var(--muted); font-size: .94rem; text-align: right; }
.place-index a:hover .place-name { color: var(--gold-ink); }

.about-grid { display: grid; gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-media { aspect-ratio: 5 / 4; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-body p { font-size: 1.08rem; max-width: 34rem; }
.stat-row, .stat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin: 1.5rem 0; padding-top: 1.25rem; border-top: 1px solid var(--sand); }
.stat-row div, .stat-list div { display: flex; flex-direction: column-reverse; }
.stat-row dd, .stat-list dd { font-family: var(--font-display); font-size: 2rem; color: var(--basalt); line-height: 1.1; }
.stat-row dt, .stat-list dt { color: var(--muted); font-size: .92rem; }

.logo-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.logo-row img { height: 48px; width: auto; background: none; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-row li:hover img { filter: none; opacity: 1; }
.quote { margin: 0; padding: 32px; border: 1px solid rgba(237,232,223,.16); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; color: var(--milk-ink); }
.quote blockquote p { margin: 0; }
.quote-name { display: block; font-weight: 500; color: var(--gold-bright); }
.quote-meta { display: block; font-size: .92rem; color: var(--on-dark-muted); }

.closing-grid { display: grid; gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
@media (min-width: 960px) { .closing-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.closing p { color: var(--on-dark); font-size: 1.08rem; max-width: 30rem; }
.closing-contacts { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.closing-contacts a { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--milk-ink); font-size: 1.1rem; }
.closing-contacts .icon { color: var(--gold); }
.closing-form { background: var(--surface-dark-2); color: var(--text); padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--sand); border-radius: var(--radius); }
.cta-inline { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta-inline h2 { margin-bottom: .3rem; }
.cta-inline p { margin: 0; color: var(--muted); max-width: 40rem; }
.band-dark .cta-inline p { color: var(--on-dark-muted); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--sand); }
.faq { border-bottom: 1px solid var(--sand); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 500; color: var(--basalt); }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--gold-ink); transition: transform .25s var(--ease); }
.faq[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 22px; max-width: 46rem; color: var(--text); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-nav ul { list-style: none; display: grid; gap: 8px; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-nav a { text-decoration: none; color: var(--muted); }
.faq-nav a:hover { color: var(--gold-ink); }

/* ---------- Page heads, filters, results ---------- */
.page-head { padding: clamp(26px, 4vw, 48px) 0 clamp(22px, 3vw, 34px); }
.page-head--ivory { background: var(--ivory); border-bottom: 1px solid var(--sand); }
.page-head--dark { background: var(--surface-dark); color: var(--on-dark); }
.page-head--dark .page-title { color: var(--milk-ink); }
.page-title { margin-bottom: .35em; max-width: 20ch; }
.page-intro { max-width: 44rem; font-size: 1.12rem; color: var(--muted); margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.breadcrumbs { margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-ink); }
.breadcrumbs--light { color: var(--on-dark); }
.breadcrumbs--light a:hover { color: var(--gold-bright); }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--sand); margin-bottom: 28px; }
.tabs a { padding: 10px 0; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--basalt); border-color: var(--gold); }
.filter-bar { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; margin-bottom: 26px; padding: 16px; background: var(--surface-dark-2); border: 1px solid var(--sand); border-radius: var(--radius); }
.filter-bar .btn { min-height: 46px; }
.results { transition: opacity .2s; }
.results.is-loading { opacity: .45; }
.results-count { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--surface-dark-2); text-decoration: none; }
.pagination span[aria-current] { background: var(--gold); color: #1D1C1A; border-color: var(--gold); }
.pagination a:hover { border-color: var(--gold); }
.empty-state { padding: clamp(32px, 5vw, 56px); border: 1px dashed var(--sand); border-radius: var(--radius); text-align: left; max-width: 46rem; }
.empty-state h3 { font-size: 1.6rem; }
.empty-state p { color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-size: .9rem; color: var(--basalt); font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .search-inline input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--mist); border-radius: var(--radius); background: #100F0E; color: var(--on-dark); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-inline input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; margin: 2px 0 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .lead-form--compact .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }
.field-check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; font-size: .9rem; color: var(--muted); }
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.field-check a { color: var(--gold-ink); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 12px 14px; border-left: 3px solid var(--danger); background: color-mix(in srgb, var(--danger) 14%, #100F0E); color: var(--danger); margin-bottom: 16px; font-size: .95rem; }
.form-alert.is-ok { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, #100F0E); }
.turnstile { margin-bottom: 14px; }
.search-inline { display: flex; gap: 10px; margin: 24px 0; }

/* ---------- Project page ---------- */
.project-hero { position: relative; min-height: min(86svh, 820px); padding-top: calc(var(--header-h) + clamp(12px, 2.5vh, 40px)); display: flex; align-items: flex-end; color: var(--milk-ink); background: var(--surface-dark); overflow: hidden; isolation: isolate; }
.project-hero-media { position: absolute; inset: 0; }
.project-hero-content { position: relative; z-index: 4; padding-bottom: clamp(40px, 6vw, 72px); }
.project-title { color: var(--milk-ink); font-size: clamp(2.1rem, 4vw + 1rem, 4.6rem); max-width: 20ch; margin-bottom: .2em; }
.project-loc { color: var(--on-dark); font-size: 1.1rem; margin-bottom: 1.6rem; }
.project-loc .icon { color: var(--gold-bright); }
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(19, 18, 17, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand); }
.subnav ul { display: flex; gap: 28px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 16px 0; white-space: nowrap; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-current { color: var(--basalt); border-color: var(--gold); }
.project-layout { display: grid; gap: 40px clamp(36px, 4vw, 64px); padding-block: clamp(30px, 4vw, 52px); }
@media (min-width: 1100px) { .project-layout { grid-template-columns: minmax(0, 1fr) 380px; } .project-aside { position: sticky; top: calc(var(--header-h) + 80px); align-self: start; } }
.block { padding-bottom: clamp(30px, 3.5vw, 44px); margin-bottom: clamp(30px, 3.5vw, 44px); border-bottom: 1px solid var(--sand); }
.block:last-of-type { border-bottom: 0; }
.fact-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--sand); margin-top: 28px; }
.fact-table div { padding: 14px 0; border-bottom: 1px solid var(--sand); padding-right: 16px; }
.fact-table dt { font-size: .85rem; color: var(--muted); }
.fact-table dd { color: var(--basalt); font-weight: 500; }
.check-list { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.check-list li { display: flex; gap: 12px; }
.check-list .icon { color: var(--gold-ink); margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--sand); vertical-align: top; }
.data-table thead th { font-size: .85rem; color: var(--muted); font-weight: 500; }
.data-table tbody th { font-weight: 500; color: var(--basalt); }
.amenity-list { list-style: none; columns: 2 220px; column-gap: 32px; }
.amenity-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--sand); }
.gallery { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery-lead { grid-column: 1 / -1; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-lead .gallery-item { aspect-ratio: 16 / 9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.video { margin: 24px 0 0; }
.video video, .video iframe, .video-poster { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--surface-dark); }
.video-poster { position: relative; display: block; padding: 0; overflow: hidden; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--basalt); }
.play .icon { width: 28px; height: 28px; fill: currentColor; }
.video figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.connect-list { list-style: none; border-top: 1px solid var(--sand); margin: 20px 0; }
.connect-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sand); }
.connect-list li span:last-child { color: var(--gold-ink); text-align: right; }
.location-map { margin-top: 20px; }
.map-embed { position: relative; aspect-ratio: 16 / 9; margin-top: 20px; background: var(--surface-dark-2); display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.avail-group + .avail-group { margin-top: 36px; }
.avail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.avail-head h3 { margin: 0; }
.doc-list { list-style: none; border-top: 1px solid var(--sand); }
.doc-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--sand); }
.doc-list li > span { flex: 1; display: flex; flex-direction: column; }
.doc-list small { color: var(--muted); }
.doc-list .icon { color: var(--gold-ink); }
.disclaimer-note { display: flex; gap: 10px; font-size: .9rem; color: var(--muted); max-width: 46rem; }
.aside-card { background: var(--surface-dark-2); padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius); border: 1px solid var(--sand); border-top: 2px solid var(--gold); }
.aside-card--plain { margin-top: 28px; }
.aside-title { font-size: 1.6rem; margin-bottom: .3rem; }
.aside-text { color: var(--muted); font-size: .98rem; }
.aside-wa { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; color: var(--gold-ink); font-weight: 500; text-decoration: none; }
.aside-project { margin-top: 32px; }

.listing-head { padding: clamp(24px, 3.4vw, 40px) 0; background: var(--ivory); border-bottom: 1px solid var(--sand); }
.listing-head-grid { display: grid; gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .listing-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.listing-head-media { aspect-ratio: 4 / 3; }

/* ---------- Locations ---------- */
.location-grid { list-style: none; display: grid; gap: 1px; background: var(--sand); border: 1px solid var(--sand); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.location-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px; background: var(--surface-dark-2); text-decoration: none; }
.location-card img { aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 12px; }
.location-card a:hover { background: #26241F; }
.location-name { font-family: var(--font-display); font-size: 1.8rem; color: var(--basalt); }
.location-meta { color: var(--gold-ink); font-size: .92rem; }
.location-text { color: var(--muted); font-size: .96rem; }
.side-facts .h-small:not(:first-child) { margin-top: 32px; }
.plain-list { list-style: none; display: grid; gap: 8px; }
.plain-list a { text-decoration: none; }
.plain-list a:hover { color: var(--gold-ink); }
.sitemap-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Article & prose ---------- */
.article-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.article-meta { font-size: .92rem; color: var(--muted); }
.article-meta a { color: var(--gold-ink); text-decoration: none; }
.article-title { font-size: clamp(2.2rem, 3vw + 1rem, 3.8rem); }
.article-author { color: var(--muted); }
.article-hero { aspect-ratio: 16 / 8; margin-bottom: clamp(32px, 4vw, 56px); padding-inline: 0; max-width: calc(var(--wrap) - var(--gutter) * 2); }
.article-layout { display: grid; gap: 44px; padding-bottom: var(--section); }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 46rem) 340px; justify-content: space-between; } .article-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.article-summary { font-size: 1.22rem; line-height: 1.55; color: var(--basalt); padding-left: 20px; border-left: 2px solid var(--gold); }
.toc { margin: 28px 0; padding: 18px 22px; background: var(--surface-dark-2); border: 1px solid var(--sand); border-radius: var(--radius); }
.toc-title { font-weight: 500; color: var(--basalt); margin-bottom: 8px; }
.toc ol { padding-left: 20px; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--gold-ink); }
.prose { font-size: 1.0625rem; }
.prose--article { font-family: var(--font-text); font-size: 1.125rem; line-height: 1.72; }
.prose h2 { font-size: clamp(1.6rem, 1vw + 1.1rem, 2.1rem); margin: 2em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--gold-ink); }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--gold); font-family: var(--font-display); font-size: 1.3rem; color: var(--basalt); }
.prose img { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--sand); }
.author-box { margin-top: 40px; padding: 24px; border: 1px solid var(--sand); border-radius: var(--radius); }
.author-name { font-weight: 500; color: var(--basalt); margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact-list { list-style: none; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .icon { color: var(--gold-ink); width: 24px; height: 24px; margin-top: 4px; }
.contact-label { font-size: .85rem; color: var(--muted); margin: 0; }
.contact-list a { font-size: 1.15rem; color: var(--basalt); text-decoration: none; }

/* ---------- Dialogs ---------- */
.dialog { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
.dialog::backdrop { background: rgba(29,28,26,.62); backdrop-filter: blur(2px); }
.dialog[open] { animation: rise .28s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dialog-panel { position: relative; background: var(--surface-dark-2); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border-top: 2px solid var(--gold); max-height: calc(100dvh - 24px); overflow-y: auto; }
.dialog-close { position: absolute; top: 10px; right: 10px; }
.dialog-title { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.1rem); padding-right: 36px; }
.dialog-context { color: var(--muted); }
.dialog--media { max-width: min(1400px, 100vw); max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; }
.dialog--media::backdrop { background: rgba(29,28,26,.95); }
.media-stage { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px; }
.media-stage img { max-height: calc(100dvh - 140px); width: auto; object-fit: contain; background: none; }
.media-stage figcaption { color: var(--on-dark); margin-top: 12px; font-size: .95rem; }
.media-prev, .media-next { position: fixed; top: 50%; transform: translateY(-50%); color: var(--milk-ink); border: 1px solid rgba(237,232,223,.3); }
.media-prev { left: 12px; } .media-next { right: 12px; }
.dialog-close--light { position: fixed; top: 12px; right: 12px; color: var(--milk-ink); }

/* ---------- Floating contact, mobile bar, cookie banner ---------- */
.reach-us { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: none; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (min-width: 900px) { .reach-us { display: flex; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; } }
.reach-us.is-ready { opacity: 1; visibility: visible; transform: none; }
.reach-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--sand); border-radius: 999px; background: var(--surface-dark-2); color: var(--on-dark); font-weight: 500; box-shadow: 0 16px 36px -18px rgba(29,28,26,.7); }
.reach-toggle .icon { color: var(--gold-bright); }
.reach-toggle:hover, .reach-toggle[aria-expanded="true"] { background: var(--surface-dark-2); }
.reach-panel { width: 280px; padding: 18px; background: var(--surface-dark-2); border: 1px solid var(--sand); border-top: 2px solid var(--gold); border-radius: var(--radius); box-shadow: 0 24px 48px -28px rgba(29,28,26,.6); display: grid; gap: 4px; }
.reach-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--basalt); margin-bottom: 8px; }
.reach-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; background: none; border: 0; border-radius: var(--radius); text-align: left; text-decoration: none; color: var(--on-dark); }
.reach-item:hover { background: #26241F; }
.reach-item .icon { color: var(--gold-ink); }
.reach-dismiss { justify-self: start; font-size: .85rem; margin-top: 8px; color: var(--muted); }
.reach-restore { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sand); background: var(--surface-dark-2); color: var(--gold-ink); display: grid; place-items: center; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-dark); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(201,169,107,.4); }
.mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; background: none; border: 0; color: var(--milk-ink); text-decoration: none; font-size: .82rem; }
.mobile-bar .icon { color: var(--gold-bright); }
.mobile-bar > * + * { border-left: 1px solid rgba(237,232,223,.12); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); } }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; }
@media (max-width: 899px) { .cookie-banner { bottom: calc(72px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .cookie-banner { right: auto; max-width: 560px; left: 24px; bottom: 24px; } }
.cookie-inner { background: var(--surface-dark-2); border: 1px solid var(--sand); border-radius: var(--radius); padding: 20px; box-shadow: 0 24px 48px -28px rgba(29,28,26,.6); }
.cookie-text { font-size: .94rem; margin-bottom: 12px; }
.cookie-text a { color: var(--gold-ink); }
.cookie-options { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .94rem; }
.toggle input { width: 18px; height: 18px; accent-color: var(--gold); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--surface-dark); color: var(--on-dark-muted); padding-top: clamp(44px, 5vw, 72px); font-size: .98rem; isolation: isolate; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .brand-word { color: var(--milk-ink); font-size: 1.7rem; margin-bottom: 6px; }
.footer-tagline { color: var(--on-dark); }
.footer-contact { display: grid; gap: 10px; margin-top: 20px; }
.footer-contact span, .footer-contact a { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--on-dark); }
.footer-contact .icon { color: var(--gold); margin-top: 3px; }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.footer-social a { color: var(--on-dark); }
.footer-head { font-family: var(--font-text); font-weight: 500; color: var(--gold-bright); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--on-dark); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-cta { display: grid; gap: 12px; align-content: start; }
.footer-cta p { margin: 0 0 6px; }
.footer-legal { border-top: 1px solid rgba(237,232,223,.12); padding-top: 24px; padding-bottom: 32px; }
.footer-disclaimer { font-size: .88rem; max-width: 70rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a, .footer-bottom .link-btn { color: var(--on-dark-muted); text-decoration: none; font-weight: 400; }
.footer-bottom a:hover, .footer-bottom .link-btn:hover { color: var(--gold-bright); }

/* ---------- About Elan Group (homepage) ---------- */
.elan-about { background: var(--ivory); }
.elan-about-grid { display: grid; gap: 36px clamp(36px, 5vw, 80px); align-items: center; }
@media (min-width: 1000px) { .elan-about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.elan-about-media { position: relative; overflow: hidden; }
.elan-about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.elan-about-media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 169, 107, .75); pointer-events: none; }
.elan-about-body h2 { max-width: 26ch; }
.elan-about-body .lead { max-width: 42rem; }
.elan-about-body > p { max-width: 42rem; }
.pillar-list { list-style: none; display: grid; gap: 0; margin: 28px 0 32px; }
.pillar-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--sand); }
.pillar-list li:last-child { border-bottom: 1px solid var(--sand); }
.pillar-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-ink); }
.pillar-list h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.pillar-list h3 a { text-decoration: none; }
.pillar-list h3 a:hover { color: var(--gold-ink); }
.pillar-list p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 40rem; }
.elan-about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.elan-about-note { margin: 14px 0 0; }

/* ---------- Elan legacy band (about page) ---------- */
.elan-legacy { position: relative; padding-block: clamp(44px, 5.5vw, 76px); background: var(--surface-dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.elan-legacy-media { position: absolute; inset: 0; z-index: 0; }
.elan-legacy-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.elan-legacy::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(29, 28, 26, .92) 0%, rgba(29, 28, 26, .78) 42%, rgba(29, 28, 26, .18) 100%); }
.elan-legacy-inner { position: relative; z-index: 2; }
.elan-legacy-card { max-width: 40rem; }
.elan-legacy-card h2 { color: var(--milk-ink); max-width: 24ch; }
.elan-legacy-card .kicker { color: var(--gold-bright); }
.elan-legacy-card p { color: var(--on-dark); font-size: 1.08rem; }
.elan-legacy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 720px) {
  .elan-legacy::after { background: linear-gradient(180deg, rgba(29, 28, 26, .74) 0%, rgba(29, 28, 26, .9) 55%); }
  .elan-legacy-media img { object-position: center 30%; }
}

/* ---------- Footer backdrop ---------- */
/* The photograph sits behind the whole footer under an 80% black layer, so it reads as
   texture rather than a picture. Swap the file in public/assets/img to change it. */
.footer-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; background: none; }
.footer-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 7, .84) 0%, rgba(8, 8, 7, .86) 55%, rgba(8, 8, 7, .94) 100%); }

/* ---------- Location map (homepage) ---------- */
.map-head { max-width: 46rem; margin-bottom: clamp(24px, 3vw, 36px); }
.map-head h2 { margin-bottom: .4em; }
.map-layout { display: grid; gap: 28px clamp(32px, 5vw, 72px); align-items: start; }
.map-layout > * { min-width: 0; }
@media (min-width: 1080px) { .map-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
/* The map artwork itself is light, so it keeps a pale plate even on the black theme. */
.map-figure { margin: 0; min-width: 0; position: relative; background: #F4F0E8; border: 1px solid var(--sand); border-radius: var(--radius); padding: clamp(10px, 1.6vw, 18px); }
.map-figure::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201, 169, 107, .55); border-radius: 2px; pointer-events: none; }
/* The map carries small labels, so on narrow screens it scrolls sideways rather than
   shrinking into illegibility. */
.map-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.map-scroll img { width: 100%; min-width: 620px; height: auto; background: none; }
.map-figure figcaption { margin-top: 10px; font-size: .85rem; color: #6E6A62; }
.map-side { display: flex; flex-direction: column; }
.sector-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand); }
.sector-index li { margin: 0; }
.sector-index a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sand); text-decoration: none; }
.sector-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--basalt); transition: color .2s var(--ease); }
.sector-count { font-size: .88rem; color: var(--gold-ink); white-space: nowrap; }
.sector-index a:hover .sector-name, .sector-index a:focus-visible .sector-name { color: var(--gold-bright); }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.map-note { margin: 12px 0 0; }

/* ---------- Project showcase slider (homepage) ---------- */
.showcase { background: var(--surface-dark); border-block: 1px solid var(--sand); }
.showcase .section-head h2 { color: var(--milk-ink); }
.showcase .section-intro { color: var(--on-dark-muted); }
.showcase .rail-btn { border-color: color-mix(in srgb, var(--on-dark) 25%, transparent); color: var(--on-dark); }
.showcase-rail-wrap { position: relative; }
.rail--showcase { grid-auto-columns: 100%; gap: 24px; padding-bottom: 4px; }
.showcase-slide { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-dark-2); isolation: isolate; }
.showcase-media { aspect-ratio: 4 / 5; }
@media (min-width: 700px) { .showcase-media { aspect-ratio: 21 / 10; } }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 8, 7, .1) 0%, rgba(8, 8, 7, .58) 45%, rgba(8, 8, 7, .94) 100%); }
@media (min-width: 700px) { .showcase-slide::after { background: linear-gradient(90deg, rgba(8, 8, 7, .92) 0%, rgba(8, 8, 7, .64) 45%, rgba(8, 8, 7, .12) 100%); } }
.showcase-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 44px); max-width: 40rem; }
.showcase-index { font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: .82rem; color: var(--gold-bright); margin-bottom: .6rem; }
.showcase-kind { font-size: .9rem; color: var(--on-dark); margin-bottom: .3rem; }
.showcase-title { font-size: clamp(1.9rem, 2.4vw + 1rem, 3.2rem); margin-bottom: .3rem; color: var(--milk-ink); }
.showcase-title a { text-decoration: none; }
.showcase-title a:hover { color: var(--gold-bright); }
.showcase-loc { display: flex; align-items: center; gap: 8px; color: var(--on-dark); margin-bottom: .3rem; }
.showcase-loc .icon { color: var(--gold-bright); }
.showcase-type { color: var(--on-dark-muted); margin-bottom: 1rem; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Associates slider ---------- */
.assoc-strip { position: relative; background: var(--surface-dark); border-top: 1px solid var(--sand); }
.assoc-strip h2 { color: var(--milk-ink); }
.assoc-strip .section-intro { color: var(--on-dark-muted); }
.assoc-strip .kicker { color: var(--gold-bright); }
.assoc-strip .rail-btn { border-color: color-mix(in srgb, var(--on-dark) 25%, transparent); color: var(--on-dark); }
.rail--logos { grid-auto-columns: minmax(150px, 46%); gap: 1px; background: var(--sand); border: 1px solid var(--sand); border-radius: var(--radius); }
@media (min-width: 700px) { .rail--logos { grid-auto-columns: minmax(0, calc(100% / 3)); } }
@media (min-width: 1100px) { .rail--logos { grid-auto-columns: minmax(0, calc(100% / 5)); } }
.assoc-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 132px; padding: 20px 18px; background: var(--surface-dark-2); text-align: center; }
.assoc-card a { display: block; text-decoration: none; }
.assoc-logo { max-height: 44px; width: auto; margin-inline: auto; padding: 8px 12px; border-radius: 3px; background: rgba(255, 255, 255, .9); box-sizing: content-box; filter: grayscale(1); opacity: .8; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.assoc-card:hover .assoc-logo, .assoc-card a:focus-visible .assoc-logo { filter: none; opacity: 1; }
.assoc-card { transition: background-color .25s var(--ease); }
.assoc-card:hover { background: #23211D; }
.assoc-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--milk-ink); }
.assoc-cat { margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- Misc pages ---------- */
.error-page, .thanks { min-height: 60vh; }
.error-code { font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--gold-ink); margin-bottom: 12px; }
.thanks-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-dark); color: var(--gold-bright); }
.thanks-mark .icon { width: 30px; height: 30px; }
img.is-placeholder { object-fit: cover; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-slide.is-active img { animation: none; }
}
@media print {
  .site-header, .site-footer, .reach-us, .mobile-bar, .cookie-banner, .project-aside, .subnav, .hero-actions, .dialog { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .project-hero, .hero { min-height: auto; color: #000; background: none; }
  .hero-shade, .hero-frame { display: none; }
}
