/* Elion Homes and Properties — Stage 2 stylesheet.
   Original code. Fonts: Archivo (SIL OFL 1.1), self-hosted subsets. No third-party assets.
   Baseline = static, readable, no JS required. html.motion (set by enhance.js) adds the scroll track. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Elion Display";
  src: url("/fonts/archivo-expanded-display.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Elion Text";
  src: url("/fonts/archivo-text.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks (measured against Liberation Sans/Arial) to limit layout shift on font swap */
@font-face {
  font-family: "Elion Display Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Roboto Bold"), local("Arial");
  size-adjust: 128.9%;
  ascent-override: 68.1%;
  descent-override: 16.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Elion Text Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"), local("Roboto");
  size-adjust: 98.9%;
  ascent-override: 88.8%;
  descent-override: 21.2%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* Palette: provisional, sampled from the low-resolution logo extract (blue #403F96, gold #D0B16A). */
  --ink: #14174a;          /* deep indigo: hero/dark sections, headings */
  --blue: #3e3d94;         /* brand blue: links, buttons, accents (8.9:1 on white) */
  --blue-deep: #2a2a73;
  --gold: #d0b16a;         /* decorative only on light backgrounds (1.98:1 on white) */
  --gold-on-dark: #e2c77f; /* text-safe gold on --ink (10.2:1) */
  --text: #1d2140;
  --muted: #4b5168;        /* 7.5:1 on white */
  --paper: #ffffff;
  --soft: #f5f6fb;
  --line: #dcdfeb;
  --line-dark: rgba(255, 255, 255, 0.18);

  --font-display: "Elion Display", "Elion Display Fallback", Arial, sans-serif;
  --font-text: "Elion Text", "Elion Text Fallback", Arial, sans-serif;

  /* Type scale (fluid). Min = 320 px phones, max reached around 1440 px. */
  --fs-hero: clamp(2.25rem, 1.2rem + 5.6vw, 6.25rem);      /* 36 → 100 px */
  --fs-h2: clamp(1.75rem, 1.1rem + 2.9vw, 3.75rem);        /* 28 → 60 px */
  --fs-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.875rem);      /* 20 → 30 px */
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.42vw, 1.375rem); /* 17 → 22 px */
  --fs-body: clamp(0.9375rem, 0.9rem + 0.18vw, 1.0625rem); /* 15 → 17 px */
  --fs-nav: 0.875rem;      /* 14 px */
  --fs-btn: 0.9375rem;     /* 15 px */
  --fs-label: 0.75rem;     /* 12 px */
  --fs-caption: 0.8125rem; /* 13 px */

  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);           /* 20 → 64 px */
  --section-y: clamp(4rem, 2.6rem + 5.5vw, 8rem);          /* 64 → 128 px */
  --max: 85rem;                                            /* 1360 px content */
  --radius: 2px;
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .projects :focus-visible, .contact :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: var(--gold-on-dark); }

.skip-link {
  position: fixed; left: 1rem; top: -6rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.875rem 1.125rem;
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 18ch;
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 clamp(1.25rem, 1rem + 1vw, 2rem);
}
.eyebrow::after { content: ""; flex: 0 0 2.5rem; height: 1px; background: var(--gold); }
.eyebrow__num { color: var(--muted); font-variant-numeric: tabular-nums; }
.eyebrow--on-dark { color: var(--gold-on-dark); }
.eyebrow--on-dark .eyebrow__num { color: #c5c8e4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.375rem;
  font-family: var(--font-text); font-size: var(--fs-btn); font-weight: 600; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--solid-light { background: var(--paper); color: var(--ink); }
.btn--solid-light:hover { background: var(--gold-on-dark); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--header { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: var(--fs-nav); color: inherit; border-color: currentColor; }
.btn--header:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Media labels ---------- */
.media-label {
  display: inline-block; margin-right: 0.5rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue);
}
.media-label--on-dark { color: var(--gold-on-dark); }
.media-figure { margin: 0; }
.media-figure img, .media-figure video { width: 100%; background: var(--soft); }
.media-figure figcaption, .media-caption { font-size: var(--fs-caption); line-height: 1.5; color: var(--muted); margin: 0.75rem 0 0; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; z-index: 40; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.75rem var(--gutter);
  padding-top: max(0.75rem, env(safe-area-inset-top));
  color: #fff;
}
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; margin-right: auto; min-height: 2.75rem; justify-content: center; }
.wordmark__name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: 0.02em; text-transform: uppercase; }
.wordmark__sub { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.3rem; opacity: 0.9; }
.primary-nav ul { display: flex; gap: clamp(0.75rem, 0.2rem + 1.3vw, 2rem); }
.primary-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--fs-nav); font-weight: 500; text-decoration: none; }
.primary-nav a:hover { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }

/* JS-enhanced fixed header that turns solid once the hero has passed */
.js .site-header { position: fixed; transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.site-header.is-solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .btn--header:hover { background: var(--soft); }

/* Mobile menu: native <details>, works without JS */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.625rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0.5rem 0.25rem 0.5rem 0.75rem;
  font-size: var(--fs-nav); font-weight: 600;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu__icon, .mobile-menu__icon::before, .mobile-menu__icon::after { display: block; width: 1.25rem; height: 2px; background: currentColor; transition: transform 0.2s ease; }
.mobile-menu__icon { position: relative; }
.mobile-menu__icon::before, .mobile-menu__icon::after { content: ""; position: absolute; left: 0; }
.mobile-menu__icon::before { top: -6px; }
.mobile-menu__icon::after { top: 6px; }
.mobile-menu[open] .mobile-menu__icon { background: transparent; }
.mobile-menu[open] .mobile-menu__icon::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu[open] .mobile-menu__icon::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu__panel {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  padding: 0.5rem var(--gutter) 1.5rem; box-shadow: 0 12px 24px rgba(20, 23, 74, 0.12);
}
.mobile-menu__panel a { display: flex; align-items: center; min-height: 3rem; font-size: 1.125rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu__offices { margin: 1rem 0 0; font-size: var(--fs-caption); color: var(--muted); text-align: center; }
.mobile-menu__call { margin-top: 1rem; justify-content: center; border: 1px solid var(--blue) !important; color: var(--blue); font-weight: 600 !important; border-radius: var(--radius); }
.site-header:has(.mobile-menu[open]) { background: var(--paper); color: var(--ink); }

/* ---------- Hero (static baseline) ---------- */
.hero { position: relative; background: var(--ink); color: #fff; }
.hero__stage {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
}
.hero__frame { position: absolute; inset: 0; z-index: -2; overflow: hidden; transform-origin: 50% 50%; }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; transform-origin: 62% 55%; }
.hero__video { opacity: 0; transition: opacity 0.6s ease; }
.hero__video.is-ready { opacity: 1; }
@media (max-width: 599px) and (orientation: portrait) {
  /* Portrait poster/video are a dedicated 406x720 crop centred on the towers */
  .hero__img, .hero__video { object-position: 50% 40%; transform-origin: 50% 50%; }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 23, 74, 0.55) 0%, rgba(20, 23, 74, 0.2) 38%, rgba(20, 23, 74, 0.82) 100%),
    linear-gradient(90deg, rgba(20, 23, 74, 0.55) 0%, rgba(20, 23, 74, 0) 70%);
}
.hero__content {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}
.hero__kicker { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #e6e7f4; margin-bottom: clamp(1rem, 0.6rem + 1.4vw, 2rem); }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem; }
.hero__kicker-a, .hero__kicker-b { white-space: nowrap; }
.hero__kicker-b { color: var(--gold-on-dark); }
.hero__kicker-b span { padding: 0 0.2rem; }
.hero__title {
  font-family: var(--font-display);
  /* Fluid size, capped so the longest row ("PROPERTIES", ≈ 8 em in this face) always fits the content width */
  font-size: min(var(--fs-hero), calc((100vw - 2 * var(--gutter)) / 8.5), 15svh);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex; flex-direction: column;
}
.hero__row { display: block; width: max-content; max-width: 100%; will-change: auto; }
.hero__row--2 { margin-left: 0.9em; }
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.25rem 2rem; margin-top: clamp(1.5rem, 1rem + 2.2vw, 3rem);
}
.hero__lede { font-size: var(--fs-lead); line-height: 1.5; max-width: 34rem; margin: 0; color: #f1f2fa; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__meta { position: absolute; right: var(--gutter); bottom: 0.5rem; left: var(--gutter); min-height: 2.75rem; /* reserves the video control's height: no layout shift when it appears */ display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem 1rem; flex-wrap: wrap; pointer-events: none; }
.hero__meta > * { pointer-events: auto; }
.hero__label { margin: 0; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: none; font-weight: 600; text-align: right; }
.media-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0.5rem 0.875rem;
  font: 600 0.75rem/1 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(20, 23, 74, 0.45); border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; cursor: pointer;
}
.media-toggle:hover { background: rgba(20, 23, 74, 0.7); border-color: #fff; }
.media-toggle__icon { position: relative; width: 0.625rem; height: 0.75rem; flex: none; }
.media-toggle[data-state="playing"] .media-toggle__icon { border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.media-toggle:not([data-state="playing"]) .media-toggle__icon { width: 0; height: 0; border-style: solid; border-width: 0.375rem 0 0.375rem 0.625rem; border-color: transparent transparent transparent currentColor; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2.5rem, 1rem + 6vw, 7rem); align-items: start; }
.about__text .h2 { margin-bottom: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.about__text > p:not(.lead) { color: var(--muted); max-width: 38rem; }
.about__text .lead { max-width: 38rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.375rem; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: var(--fs-lead); font-weight: 600; line-height: 1.2; color: var(--ink); }
.about__figure img { aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Services ---------- */
.services { background: var(--soft); }
.services__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 1rem + 6vw, 7rem); align-items: start; }
.services__intro .h2 { margin-bottom: 2rem; }
.services__figure img { aspect-ratio: 16 / 9; object-fit: cover; }
.service-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem) 0; border-top: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list__num { grid-row: span 2; font-size: var(--fs-label); font-weight: 700; color: var(--blue); padding-top: 0.45em; font-variant-numeric: tabular-nums; }
.service-list .h3 { margin-bottom: 0.5rem; }
.service-list p { margin: 0; color: var(--muted); max-width: 34rem; }

/* ---------- Projects (dark) ---------- */
.projects { background: var(--ink); color: #e9eaf5; }
.projects .h2, .projects .h3 { color: #fff; }
.projects__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.projects__head p { margin: 0; color: #c9cbe3; max-width: 30rem; }
.projects__intro { display: grid; gap: 1rem; }
.projects__count { display: flex; align-items: baseline; gap: 1rem; margin: 0; }
.projects__count-num { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 600; line-height: 0.9; color: var(--gold-on-dark); font-variant-numeric: tabular-nums; }
.projects__count-text { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #e9eaf5; max-width: 16rem; line-height: 1.5; }
.project-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); counter-reset: none; }
.project-card {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  min-height: clamp(10rem, 7rem + 6vw, 13.5rem); padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.25s ease;
}
.project-card::after { content: ""; position: absolute; left: clamp(1.25rem, 1rem + 1vw, 2rem); bottom: -1px; width: 2.5rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.project-card:hover { background: rgba(255, 255, 255, 0.04); }
.project-card:hover::after { transform: scaleX(1); }
.project-card__num { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; color: #a9acd2; font-variant-numeric: tabular-nums; }
.project-card__name { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 600; line-height: 1.15; color: #fff; margin-top: auto; overflow-wrap: break-word; }
.project-card__place { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: var(--fs-caption); color: #d6d8ec; }
.project-card__place::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 2px solid var(--gold-on-dark); flex: none; }
.projects__note { margin: 1.5rem 0 0; font-size: var(--fs-caption); color: #b9bcdc; max-width: 30rem; }
.concepts { margin-top: clamp(4rem, 3rem + 4vw, 7rem); border-top: 1px solid var(--line-dark); padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.concepts__head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem 4rem; margin-bottom: 2rem; }
.concepts__head p { margin: 0; color: #c9cbe3; max-width: 40rem; }
.concepts__head strong { color: #fff; font-weight: 600; }
.concept-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); }
.concept-grid img { aspect-ratio: 16 / 10; object-fit: cover; background: #252a63; }
.concept-grid .media-caption { color: #c9cbe3; }

/* ---------- On site ---------- */
.on-site { background: var(--paper); }
.on-site__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.on-site__head p { margin: 0; color: var(--muted); max-width: 34rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.2vw, 2rem) clamp(0.75rem, 0.5rem + 1vw, 1.5rem); }
.photo-grid img, .photo-grid video { aspect-ratio: 16 / 9; object-fit: cover; }
.photo-grid img[src*="field-visit"] { object-position: 50% 58%; }
.video-card video { background: #000; }

/* ---------- Leadership ---------- */
.leadership { background: var(--soft); }
.leadership__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.leadership__photo { margin: 0; }
.leadership__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.leadership__photo figcaption { font-size: var(--fs-caption); color: var(--muted); margin-top: 0.75rem; }
.leadership__role { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 0.75rem 0 1.5rem; }
.leadership__text > p:not(.lead):not(.leadership__role):not(.eyebrow) { color: var(--muted); max-width: 38rem; }
.leadership__text .lead { max-width: 38rem; }

/* ---------- FAQ ---------- */
.questions { background: var(--paper); }
.questions__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  min-height: 3rem; padding: 1.125rem 2.5rem 1.125rem 0;
  font-weight: 600; font-size: calc(var(--fs-body) * 1.06); color: var(--ink); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.375rem; top: 1.45rem; width: 0.625rem; height: 0.625rem; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq details p { color: var(--muted); max-width: 40rem; padding-bottom: 1.25rem; margin: 0; }
.faq a { color: var(--blue); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #e9eaf5; }
.contact .h2 { color: #fff; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr); gap: 2rem clamp(1.5rem, 1rem + 3vw, 4rem); border-top: 1px solid var(--line-dark); padding-top: 2rem; }
.contact__label { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-on-dark); margin: 0 0 0.5rem; }
.contact__phone { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: #fff; text-decoration: none; margin-bottom: 1.25rem; }
.contact__email { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--fs-lead); color: #fff; text-underline-offset: 0.25em; text-decoration-thickness: 1px; word-break: break-word; }
.contact__phone:hover, .contact__email:hover { color: var(--gold-on-dark); }
.contact__office { font-style: normal; }
.contact__office p:last-child { color: #d6d8ec; line-height: 1.6; }
.contact__note { margin: 2.5rem 0 0; font-size: var(--fs-caption); color: #b9bcdc; max-width: 40rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0e1038; color: #c9cbe3; padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: var(--fs-caption); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; }
.site-footer__offices { color: #e9eaf5; font-weight: 600; letter-spacing: 0.04em; margin: 0; }
.site-footer__brand { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; justify-content: flex-end; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: #e9eaf5; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer__legal { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: #a9acd2; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .btn--header { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 900px) {
  .about__grid, .services__grid, .projects__head, .concepts__head, .on-site__head, .questions__grid, .leadership__grid { grid-template-columns: minmax(0, 1fr); }
  .about__figure { max-width: 30rem; }
  .project-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leadership__photo { max-width: 40rem; }
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__direct { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav ul { justify-content: flex-start; }
}
@media (max-width: 600px) {
  :root { --header-h: 4rem; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .facts dd { text-align: right; }
  .project-cards { grid-template-columns: minmax(0, 1fr); }
  .project-card { min-height: 0; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.25rem 0.75rem; align-items: baseline; }
  .project-card__name { margin-top: 0; }
  .project-card__place { grid-column: 2; }
  .project-card::after { left: 1.25rem; }
  .concept-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__foot { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { flex: 1 1 12rem; }
  /* Phones: the disclosure + video control sit in normal flow under the content, never over the buttons */
  .hero__stage { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero__content { padding-bottom: 1rem; }
  .hero__meta { position: static; justify-content: space-between; flex-wrap: nowrap; padding: 0 var(--gutter) 0.75rem; }
  .hero__label { text-align: left; flex: 1 1 auto; line-height: 1.45; min-height: calc(3 * 1.45em); /* reserve 3 lines: no shift when the web font swaps in */ }
}
@media (max-width: 380px) {
  .hero__actions .btn { padding-left: 0.875rem; padding-right: 0.875rem; }
  .wordmark__sub { letter-spacing: 0.14em; }
}
/* Short landscape phones: keep the hero compact so actions stay reachable */
@media (max-height: 500px) and (orientation: landscape) {
  .hero__content { padding-top: calc(var(--header-h) + 1rem); padding-bottom: 2.75rem; }
  .hero__title { font-size: min(var(--fs-hero), calc((100vw - 2 * var(--gutter)) / 8.5), 13svh); }
  .hero__foot { margin-top: 1rem; }
  .hero__lede { font-size: var(--fs-body); }
}

/* ---------- Motion layer (html.motion is only set by enhance.js on capable devices) ---------- */
/* Track: hero stage is sticky; scroll progress drives --curtain (0..1), --zoom (0..1). About overlaps the last viewport. */
.svh-probe { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
.motion .hero { height: calc(var(--effect-svh, 80) * 1vh + 200vh); height: calc(var(--effect-svh, 80) * 1svh + 200svh); }
.motion .hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.motion .about { margin-top: -100vh; margin-top: -100svh; z-index: 2; box-shadow: 0 -1px 0 var(--paper); }
.motion .hero__row--1, .motion .hero__row--3 { transform: translate3d(calc(var(--curtain, 0) * -62vw), 0, 0); }
.motion .hero__row--2 { transform: translate3d(calc(var(--curtain, 0) * 62vw), 0, 0); }
.motion .hero__title { opacity: calc(1 - max(0, var(--curtain, 0) - 0.55) * 2.2); }
.motion .hero__kicker, .motion .hero__foot { opacity: calc(1 - var(--curtain, 0) * 2.4); transform: translate3d(0, calc(var(--curtain, 0) * 1.5rem), 0); }
.motion .hero__frame { transform: scale(calc(0.88 + var(--zoom, 0) * 0.12)); }
.motion .hero__img { transform: scale(calc(1.02 + var(--zoom, 0) * 0.08)); }
.motion .hero__shade { opacity: calc(1 - var(--zoom, 0) * 0.6); }
.motion .hero__stage.is-curtained .hero__foot, .motion .hero__stage.is-curtained .hero__kicker { visibility: hidden; }
.motion-active .hero__row, .motion-active .hero__frame, .motion-active .hero__img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* ============================================================
   STAGE 4 — RIO-INSPIRED SPATIAL HERO (owner-provided 1366×646
   reference). Intentional placement, not another stacked hero.
   All brand tokens, company sections and media remain unchanged.
   ============================================================ */

/* The header is only the wordmark and the menu trigger, at every width. */
.site-header {
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  position: relative;
  z-index: 8;
  margin-right: auto;
  flex: 0 1 auto;
  min-width: 0;
}
.wordmark__full {
  display: block;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(0.64rem, 0.4rem + 0.7vw, 1.02rem);
  line-height: 1.3;
  letter-spacing: 0.27em;
  white-space: nowrap;
}
.primary-nav,.btn--header { display: none !important; }
.mobile-menu { display: block !important; position: relative; z-index: 7; margin-left: auto; }
.mobile-menu summary {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  min-width: 3rem;
  min-height: 3rem;
  border: 0;
  color: inherit;
}
.mobile-menu__icon,.mobile-menu__icon::before,.mobile-menu__icon::after {
  width: 1.6rem;
}
.mobile-menu__panel {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 7;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  max-height: none;
  padding: clamp(104px, 14vh, 165px) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink);
  color: #fff;
  border: 0;
  box-shadow: none;
}
.mobile-menu__eyebrow {
  margin: 0;
  color: var(--gold-on-dark);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.mobile-menu__panel ul {
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 clamp(2rem, 7vw, 7rem);
  list-style: none;
}
.mobile-menu__panel li { min-width: 0; }
.mobile-menu__panel li a {
  display: flex;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.28);
  overflow-wrap: anywhere;
}
.mobile-menu__panel a:hover { color: var(--gold-on-dark); }
.mobile-menu__panel a:focus-visible, .mobile-menu summary:focus-visible {
  outline: 3px solid var(--gold-on-dark);
  outline-offset: 3px;
}
.mobile-menu__bottom {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
}
.mobile-menu__call,.mobile-menu__email,.mobile-menu__offices {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: none;
  text-decoration: none;
}
.mobile-menu__call {
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 0;
  padding: 0.65rem 1rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.mobile-menu__email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.mobile-menu__offices { color: var(--gold-on-dark); }
.menu-open { overflow: hidden !important; }
.site-header:has(.mobile-menu[open]),
.site-header.is-solid:has(.mobile-menu[open]) {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

/* Hero is a typographic poster, not a conventional hero text card. */
.hero__stage { display: block; }
.hero__content {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0 !important;
  display: block;
  pointer-events: none;
}
.hero__microcopy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 19.4%;
  display: grid;
  grid-template-columns: 58% minmax(0,1fr);
  gap: 0;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(0.68rem, 0.72vw + 0.18rem, 0.88rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #fff;
}
.hero__microcopy p { margin: 0; }
.hero__services { justify-self: start; }
.hero__locality { justify-self: start; }
.hero__title {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 38.2%;
  width: auto;
  height: 53%;
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: min(8.5vw, 18svh, 8.35rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #fff;
}
.hero__row,
.hero__row--1,.hero__row--2,.hero__row--3,.hero__row--4 {
  position: absolute;
  display: block;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  line-height: .94;
  white-space: nowrap;
  will-change: auto;
}
.hero__row--1 { top: 0; left: 0; right: auto; }
.hero__row--2 { top: 32%; left: 0; right: auto; }
.hero__row--3 { top: 32%; right: 0; left: auto; }
.hero__row--4 { top: 64%; right: 0; left: auto; }

/* Rio begins with a full-bleed image, then zooms closer as the word groups part. */
.hero__img,.hero__video { object-position: 62% 48%; }
.motion .hero__row--1,.motion .hero__row--2 {
  transform: translate3d(calc(var(--curtain, 0) * -66vw),0,0);
}
.motion .hero__row--3,.motion .hero__row--4 {
  transform: translate3d(calc(var(--curtain, 0) * 66vw),0,0);
}
.motion .hero__microcopy {
  opacity: max(0,calc(1 - var(--curtain, 0) * 2.4));
  transform: translate3d(0, calc(var(--curtain, 0) * -1.2rem), 0);
}
.motion .hero__frame {
  transform: scale(calc(1 + var(--zoom, 0) * .055));
}
.motion .hero__img,.motion .hero__video {
  transform: scale(calc(1 + var(--zoom, 0) * .045));
}
.motion .hero__stage.is-curtained .hero__microcopy {
  visibility: hidden;
}
.motion-active .hero__video { will-change: transform; }

/* Short, unobtrusive opening reveal; never lock scrolling or wait for video. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes elion-word-enter {
    from { opacity: 0; translate: 0 0.55em; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes elion-micro-enter {
    from { opacity: 0; translate: 0 0.7rem; }
    to { opacity: 1; translate: 0 0; }
  }
  .js .hero__row {
    animation: elion-word-enter .58s cubic-bezier(.18,.67,.21,1) both;
  }
  .js .hero__row--1 { animation-delay: .08s; }
  .js .hero__row--2 { animation-delay: .16s; }
  .js .hero__row--3 { animation-delay: .20s; }
  .js .hero__row--4 { animation-delay: .26s; }
  .js .hero__microcopy { animation: elion-micro-enter .55s ease-out .16s both; }
}
@media (max-width: 900px) {
  .mobile-menu { display: block !important; }
  .mobile-menu__panel { top: 0; max-height: none; }
  .mobile-menu__panel ul { grid-template-columns: 1fr; }
  .mobile-menu__panel li a { font-size: clamp(2rem, 7vw, 3.5rem); min-height: 3.1rem; }
}
@media (max-width: 600px) {
  .wordmark__full {
    font-size: clamp(.57rem, 2.1vw, .72rem);
    letter-spacing: .11em;
  }
  .hero__microcopy {
    top: 18%;
    grid-template-columns: 47% 53%;
    font-size: clamp(.55rem, 2.4vw, .69rem);
    letter-spacing: 0;
    line-height: 1.42;
  }
  .hero__title {
    top: 43%;
    height: 42%;
    font-size: min(10.7vw, calc((100vw - 2 * var(--gutter)) / 8.55), 9svh);
    letter-spacing: -.025em;
  }
  .hero__row--2,.hero__row--3 { top: 33%; }
  .hero__row--4 { top: 66%; }
  .hero__locality { white-space: nowrap; }
  .mobile-menu__panel {
    padding-top: max(102px,calc(env(safe-area-inset-top) + 5.5rem));
    padding-bottom: max(1.25rem,env(safe-area-inset-bottom));
  }
  .mobile-menu__panel ul { margin: 1.2rem 0; }
  .mobile-menu__panel li a { font-size: clamp(1.85rem, 9vw, 2.9rem); padding: .25rem 0; }
  .mobile-menu__bottom { gap: 0.55rem 1rem; }
  .mobile-menu__email { font-size: .82rem; }
}
@media (max-width: 345px) {
  .hero__microcopy { font-size: 0.54rem; }
  .wordmark__full { font-size: .54rem; letter-spacing: .06em; }
  .hero__title { font-size: min(10.1vw, calc((100vw - 2 * var(--gutter)) / 8.8)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero__microcopy { top: 24%; font-size: .65rem; }
  .hero__title {
    top: 41%;
    height: 51%;
    font-size: min(6.8vw, 13svh, calc((100vw - 2 * var(--gutter)) / 8.8));
  }
  .hero__row--2,.hero__row--3 { top: 31%; }
  .hero__row--4 { top: 62%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__row,.js .hero__microcopy { animation: none !important; translate: none !important; }
}

/* Without JS the native <details> menu remains usable as a non-fixed dropdown.
   Its section links then carry the reader to the content, without a persistent overlay. */
html:not(.js) .mobile-menu__panel {
  position: absolute;
  inset: auto 0 auto auto;
  top: calc(100% + .4rem);
  width: min(24rem, calc(100vw - 2 * var(--gutter)));
  height: auto;
  max-height: 75svh;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,.24);
}
html:not(.js) .mobile-menu__panel ul { grid-template-columns: 1fr; margin: 1rem 0; }
html:not(.js) .mobile-menu__panel li a {
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  color: var(--ink);
  min-height: 2.8rem;
  border-bottom-color: var(--line);
}
html:not(.js) .mobile-menu__panel a,
html:not(.js) .mobile-menu__offices { color: var(--ink); }

/* ============================================================
   CORRECTION PASS — menu typography, clearer cinematic hero,
   section reveals. Brand tokens unchanged.
   ============================================================ */

/* ---------- Fullscreen menu: refined, fits every screen ---------- */
/* One fluid scale: ~22 px (320) · ~24 (390) · ~34 (768 tablet) · ~41 (1024) · ~52 (1440+),
   additionally capped by screen height so 7 links always fit short/landscape screens. */
.mobile-menu__panel li a,
.mobile-menu__panel ul li a {
  font-size: min(clamp(1.375rem, 0.85rem + 2.65vw, 3.25rem), 6.4svh);
  line-height: 1.12;
  letter-spacing: -0.02em;
  min-height: 2.75rem;
  padding: 0.42em 0;
  border-bottom-color: rgba(255, 255, 255, 0.16);
  overflow-wrap: normal;
  white-space: nowrap;
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.mobile-menu__panel ul { gap: 0 clamp(2rem, 6vw, 6rem); margin: 1.25rem 0 1.75rem; max-width: 72rem; }
.mobile-menu__panel { padding-top: clamp(5.5rem, 12svh, 8.5rem); }
@media (hover: hover) and (pointer: fine) {
  .mobile-menu__panel li a:hover { padding-left: 0.35rem; }
}
@media (max-width: 900px) {
  .mobile-menu__panel li a { font-size: min(clamp(1.375rem, 0.85rem + 2.65vw, 2.5rem), 6.4svh); }
}
@media (max-width: 600px) {
  .mobile-menu__panel { padding-top: max(5.25rem, calc(env(safe-area-inset-top) + 4.5rem)); }
  .mobile-menu__panel li a { font-size: min(clamp(1.375rem, 0.85rem + 2.65vw, 2rem), 6.4svh); padding: 0.36em 0; }
  .mobile-menu__panel ul { margin: 1rem 0 1.25rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu__panel { padding-top: 4.5rem; }
  .mobile-menu__panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0.75rem 0; }
}

/* ---------- Hero: clearly visible, reversible cinematic sequence ---------- */
/* The video control is the only overlay on the footage (no captions). */
.hero__meta {
  position: absolute; left: auto; right: var(--gutter);
  bottom: max(0.75rem, env(safe-area-inset-bottom)); top: auto;
  min-height: 0; padding: 0; display: flex; justify-content: flex-end;
}
.hero__veil { position: absolute; inset: 0; z-index: -1; background: #fff; opacity: 0; pointer-events: none; }
/* Phase 1: words part like curtains and leave the frame completely; footage zooms toward the towers. */
.motion .hero__row--1, .motion .hero__row--2 { transform: translate3d(calc(var(--curtain, 0) * -100vw), 0, 0); }
.motion .hero__row--3, .motion .hero__row--4 { transform: translate3d(calc(var(--curtain, 0) * 100vw), 0, 0); }
.motion .hero__title { opacity: calc(1 - max(0, var(--curtain, 0) - 0.6) * 2.5); }
.motion .hero__microcopy { opacity: max(0, calc(1 - var(--curtain, 0) * 2.2)); transform: translate3d(0, calc(var(--curtain, 0) * -1.5rem), 0); }
.motion .hero__frame { transform: none; }
.motion .hero__img, .motion .hero__video {
  transform: scale(calc(1 + var(--zoom, 0) * 0.2 + var(--exit, 0) * 0.06));
  transform-origin: 62% 52%;
}
.motion .hero__shade { opacity: calc(1 - var(--zoom, 0) * 0.45); }
/* Phase 2: as the white About panel rises over the pinned footage, the footage fades toward white. */
/* Bottom-weighted wash preserves the skyline as the white About panel advances. */
.motion .hero__veil {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.12) 34%,
    rgba(255,255,255,.64) 77%,
    #fff 100%
  );
  opacity: calc(var(--exit, 0) * 0.62);
}
.motion .hero__meta { opacity: calc(1 - var(--exit, 0) * 2); }
/* The top of About carries a soft white feather into the footage, instead of
   a heavy shadow and an abrupt horizontal cut. No added JS or scroll hijacking. */
.motion .about {
  --handoff-feather: clamp(5.5rem, 12svh, 10rem);
  box-shadow: none;
}
.motion .about::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(-1 * var(--handoff-feather) + 1px);
  height: var(--handoff-feather);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.12) 22%,
    rgba(255,255,255,.56) 58%,
    rgba(255,255,255,.94) 89%,
    #fff 100%);
}
.motion-active .hero__row { will-change: transform; }
@media (max-width: 599px) and (orientation: portrait) {
  .motion .hero__img, .motion .hero__video { transform-origin: 50% 45%; }
}

/* ---------- Section reveals (only when enhance.js sets .reveal-on) ---------- */
.reveal-on [data-reveal],
.reveal-on [data-reveal-group] > * {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
}
.reveal-on [data-reveal="image"] { transform: translate3d(0, 2.25rem, 0); }
.reveal-on [data-reveal="image"] img { transform: scale(1.06); }
/* Transitions live on the revealed state only: hiding is instant (no fade-out at load), only the entrance animates. */
.reveal-on [data-reveal].is-in,
.reveal-on [data-reveal-group] > .is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.85s cubic-bezier(0.2, 0.65, 0.3, 1), background-color 0.25s ease;
}
.reveal-on [data-reveal="image"].is-in img { transform: none; transition: transform 1.2s cubic-bezier(0.2, 0.65, 0.3, 1); }
.reveal-on .projects [data-reveal-group] > *,
.reveal-on .contact [data-reveal-group] > * { transform: translate3d(0, 1.25rem, 0); }

/* ---------- Hover polish (pointer devices only) ---------- */
.about__figure, .services__figure, .leadership__photo, .concept-grid li, .photo-grid__item:not(.video-card) { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .service-list li { transition: background-color 0.3s ease; }
  .service-list .h3, .service-list__num { transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1), color 0.3s ease; }
  .service-list li:hover .h3 { transform: translateX(0.4rem); }
  .service-list li:hover .service-list__num { color: var(--gold); }
  .project-card__name { transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1); }
  .project-card:hover .project-card__name { transform: translateX(0.35rem); }
  .concept-grid img, .photo-grid img, .services__figure img {
    transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .concept-grid li:hover img, .photo-grid__item:hover img, .services__figure:hover img { transform: scale(1.045); }
  .faq summary { transition: color 0.2s ease; }
  .faq summary:hover { color: var(--blue); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal], .reveal-on [data-reveal-group] > *, .reveal-on [data-reveal] img { opacity: 1 !important; transform: none !important; }
  .service-list li:hover .h3, .project-card:hover .project-card__name, .concept-grid li:hover img, .photo-grid__item:hover img { transform: none !important; }
}
/* Short portrait phones (e.g. 320×568): tighter rhythm so the whole menu fits without scrolling. */
@media (max-height: 680px) and (orientation: portrait) {
  .mobile-menu__panel { padding-top: 4.5rem; padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }
  .mobile-menu__panel ul { margin: 0.6rem 0 0.9rem; }
  .mobile-menu__panel li a { padding: 0.22em 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu__panel { padding-bottom: 0.5rem; }
  .mobile-menu__panel li a { padding: 0.2em 0; }
}
@media (max-height: 600px) and (orientation: portrait) {
  /* Email and offices stay in the Contact section; the menu keeps the call action. */
  .mobile-menu__panel .mobile-menu__email, .mobile-menu__panel .mobile-menu__offices { display: none; }
}
@media (max-height: 400px) and (orientation: landscape) {
  .mobile-menu__panel { padding-top: 3.75rem; padding-bottom: 0.75rem; }
  .mobile-menu__panel .mobile-menu__eyebrow, .mobile-menu__panel .mobile-menu__email, .mobile-menu__panel .mobile-menu__offices { display: none; }
  .mobile-menu__panel ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0.25rem 0 0.5rem; }
  .mobile-menu__bottom { padding-top: 0.25rem; }
}

/* iOS Safari: use a text arrow, not the platform emoji glyph, in the call link. */
.mobile-menu__call-arrow { font-family: Arial, Helvetica, sans-serif; font-size: 1.15em; font-weight: 400; line-height: 1; }

/* Compact editorial Leadership layout on phones. Preserve the complete
   authorised office photo and the visible Ehome · Eauto sign (no clipping). */
@media (max-width: 600px) {
  .leadership { padding-block: clamp(3rem, 8vw, 4.25rem); }
  .leadership__grid { gap: clamp(1rem, 4vw, 1.5rem); align-items: start; }
  .leadership__photo { margin: 0; max-width: none; overflow: visible; }
  .leadership__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .leadership__text .eyebrow { margin-bottom: .5rem; }
  .leadership__text .h2 {
    font-size: clamp(1.85rem, 7.4vw, 2.55rem);
    line-height: 1.12;
    margin-bottom: .3rem;
    overflow-wrap: normal;
  }
  .leadership__role {
    font-size: clamp(.69rem, 2.65vw, .79rem);
    line-height: 1.45;
    letter-spacing: .075em;
    margin: .4rem 0 .85rem;
  }
  .leadership__text .lead {
    font-size: clamp(1rem, 3.65vw, 1.125rem);
    line-height: 1.55;
    margin-bottom: .8rem;
  }
  .leadership__text > p:not(.lead):not(.leadership__role):not(.eyebrow) {
    font-size: .9375rem;
    line-height: 1.58;
    margin-bottom: .75rem;
  }
}


/* Launch contact actions: no form, tracking SDK or backend. */
.contact__sms {
  display:flex;
  width:max-content;
  max-width:100%;
  align-items:center;
  gap:.65rem;
  min-height:2.75rem;
  margin:-.55rem 0 1.45rem;
  font-size:clamp(.875rem,1.25vw,1rem);
  font-weight:700;
  color:#fff;
  text-decoration:underline;
  text-underline-offset:.25rem;
}
.contact__sms:hover {color:var(--gold-on-dark);}
.mobile-menu__sms {
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:2.75rem;
  font-size:clamp(.78rem,1.1vw,.98rem)!important;
  font-weight:700!important;
  text-transform:none;
  color:#fff;
  white-space:normal;
}
html:not(.js) .mobile-menu__sms { color:var(--ink); }


/* Static 404 page: same approved identity, no script or API dependency. */
.not-found-page{min-height:100svh;background:var(--ink);color:#fff;}
.not-found-content{min-height:100svh;padding:clamp(1.25rem,4vw,4rem) var(--gutter) clamp(3rem,8vw,7rem);display:flex;flex-direction:column;justify-content:space-between;gap:4rem;max-width:1200px;margin:auto;}
.not-found-brand{font:700 clamp(.72rem,.5rem + .8vw,1.05rem)/1.3 var(--font-text);letter-spacing:.22em;color:#fff;}
.not-found-index{color:var(--gold-on-dark);font-size:.75rem;font-weight:700;letter-spacing:.17em;margin:0 0 1.5rem;}
.not-found-content h1{font:700 clamp(2.5rem,7.5vw,6.5rem)/1.04 var(--font-display);letter-spacing:-.055em;max-width:13ch;margin:0 0 1.25rem;}
.not-found-content p:not(.not-found-index){line-height:1.7;font-size:clamp(.98rem,1.3vw,1.2rem);max-width:38rem;color:#e3e5f4;}
.not-found-actions{display:flex;gap:.8rem 1.75rem;align-items:center;flex-wrap:wrap;margin-top:2.5rem;}
.not-found-actions a{min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:.22rem;color:#fff;font-weight:700;font-size:.9rem;}
.not-found-actions a:hover{color:var(--gold-on-dark);}
