/* ============================================================
   MERIDIAN — Gallery Minimal · REInfluence Group
   Light luxe editorial · museum-catalog minimalism
   One stylesheet, two fully designed themes.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand blue scale — built on #004AAD */
  --blue-50: #E9F0FB;
  --blue-100: #C9DBF6;
  --blue-300: #004AAD;
  --blue-400: #3D85E0;
  --blue-500: #1462C4;
  --blue-600: #004AAD;
  --blue-700: #00388A;
  --blue-900: #02224F;
  --blue: var(--blue-600);
  --blue-soft: var(--blue-50);
  --on-blue: #FFFFFF;

  /* Surfaces & ink — light (default) */
  --paper: #FAFAF7;
  --paper-2: #F4F3ED;
  --surface: #FFFFFF;
  --ink: #0E1320;
  --ink-soft: #434A5E;
  --ink-faint: #71778A;
  --line: rgba(14, 19, 32, 0.16);
  --line-faint: rgba(14, 19, 32, 0.09);
  --line-strong: rgba(14, 19, 32, 0.38);
  --hero-scrim: linear-gradient(to bottom, rgba(2,17,43,.68), rgba(2,17,43,.58) 45%, rgba(2,17,43,.82));
  --shadow-soft: 0 18px 50px -22px rgba(14, 19, 32, 0.28);
  --shadow-pop: 0 26px 70px -28px rgba(14, 19, 32, 0.4);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Cormorant Garamond", Georgia, serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;
  --topbar-h: 38px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #0B0F1A;
  --paper-2: #0E1422;
  --surface: #111728;
  --ink: #F2EFE7;
  --ink-soft: #C2C5CF;
  --ink-faint: #8C92A4;
  --line: rgba(242, 239, 231, 0.16);
  --line-faint: rgba(242, 239, 231, 0.09);
  --line-strong: rgba(242, 239, 231, 0.4);
  --blue: var(--blue-400);
  --blue-soft: rgba(61, 133, 224, 0.16);
  --on-blue: #0B0F1A;
  --hero-scrim: linear-gradient(to bottom, rgba(1,10,27,.78), rgba(1,10,27,.7) 45%, rgba(1,10,27,.92));
  --shadow-soft: 0 18px 50px -22px rgba(0, 0, 0, 0.65);
  --shadow-pop: 0 26px 70px -28px rgba(0, 0, 0, 0.8);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--blue); color: var(--on-blue); }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: 0.8em 1.4em;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

main { display: block; }

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--blue);
  flex: none;
}
.kicker--cross::before {
  content: "+";
  width: auto;
  height: auto;
  background: none;
  color: var(--blue);
  font-weight: 300;
  font-size: 1.35em;
  line-height: 0;
}

.display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 120;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display-1 { font-size: clamp(2.9rem, 8.2vw, 7rem); }
.display-2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.display-3 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
.display-1 em, .display-2 em, .display-3 em, .accent-word {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}
.body-copy { color: var(--ink-soft); max-width: 66ch; }
.small { font-size: 0.9rem; color: var(--ink-faint); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.45em;
  transition: color 0.3s, border-color 0.3s;
}
.text-link::after { content: "→"; font-weight: 400; transition: transform 0.3s var(--ease-out); }
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Buttons (thin outline, sliding blue fill) ---------- */
.btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  overflow: hidden;
  padding: 1.05em 2.1em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: color 0.35s, border-color 0.35s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--on-blue); border-color: var(--blue); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }

.btn--solid { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .btn--solid:hover,
[data-theme="dark"] .btn--solid:focus-visible { color: var(--paper); }

.btn--hero { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--hero:hover, .btn--hero:focus-visible { color: #fff; border-color: var(--blue-500); }
.btn--hero::before { background: var(--blue-600); }

/* ---------- Sections, hairlines, crosshair marks ---------- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--rule { border-top: 1px solid var(--line); }
.section--rule::before,
.section--rule::after {
  content: "+";
  position: absolute;
  top: -0.72em;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--blue);
  background: var(--paper);
  padding-inline: 0.45em;
  pointer-events: none;
}
.section--rule::before { left: clamp(0.6rem, 3vw, 2.5rem); }
.section--rule::after { right: clamp(0.6rem, 3vw, 2.5rem); }
.section--alt { background: var(--paper-2); }
.section--alt.section--rule::before,
.section--alt.section--rule::after { background: var(--paper-2); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .kicker { display: flex; margin-bottom: 1.1rem; }
.section-head__main { max-width: 760px; }

/* ---------- Image frames (gallery presentation) ---------- */
.frame { position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 1px solid var(--line);
  z-index: -1;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), border-color 0.5s;
}
.frame:hover::after { transform: translate(8px, 8px); border-color: var(--blue); }
.frame--inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 4px;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   CHROME — top bar + header + mega menus
   ============================================================ */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  color: #fff;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.site-chrome.is-solid,
.site-chrome.is-open {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* Top bar */
.topbar {
  height: var(--topbar-h);
  overflow: hidden;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: height 0.35s var(--ease-out), opacity 0.3s, border-color 0.4s;
}
.site-chrome.is-solid .topbar,
.site-chrome.is-open .topbar { border-color: var(--line-faint); }
.site-chrome.is-solid .topbar { height: 0; opacity: 0; border-color: transparent; }
.topbar__inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.topbar__group { display: flex; align-items: center; gap: 1.6rem; }
.topbar a { display: inline-flex; align-items: center; gap: 0.5em; opacity: 0.92; transition: color 0.25s, opacity 0.25s; }
.topbar a:hover { color: var(--blue-300); opacity: 1; }
.site-chrome.is-solid .topbar a:hover,
.site-chrome.is-open .topbar a:hover { color: var(--blue); }
.topbar__trec { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.66rem; opacity: 0.8; }
.topbar__social { display: flex; gap: 0.9rem; }
.topbar__social a { opacity: 0.85; }
.topbar svg { width: 13px; height: 13px; fill: currentColor; }

/* Header row */
.header { height: var(--header-h); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo lockup (HTML text, Cormorant Garamond) */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-word {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.72rem;
  letter-spacing: 0.015em;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.14em;
  color: currentColor;
  transition: border-color 0.3s;
}
.logo-re { color: var(--blue); }
/* over the hero video (transparent header) the whole lockup goes white */
.site-chrome:not(.is-solid):not(.is-open) .logo-re { color: #FFFFFF; }
.site-chrome:not(.is-solid):not(.is-open) .logo-word { border-color: rgba(255, 255, 255, 0.9); }
.logo-group {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.55em;
  margin-left: 0.55em; /* optically recenters letterspaced text */
  margin-top: 0.5em;
  color: var(--blue);
}
.site-chrome:not(.is-solid):not(.is-open) .logo-group { color: #FFFFFF; }

/* Primary nav */
.nav { display: flex; align-items: center; height: 100%; }
.nav__list { display: flex; align-items: center; height: 100%; gap: clamp(0.4rem, 1.4vw, 1.4rem); }
/* .nav__item stays static so the full-width .mega positions against .site-chrome */
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.6em 0.55em;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: currentColor;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.55em;
  right: 0.55em;
  bottom: 0.15em;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-expanded="true"]::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link .caret { width: 9px; height: 9px; transition: transform 0.3s; }
.nav__link .caret path { stroke: currentColor; stroke-width: 1.6; fill: none; }
.nav__link[aria-expanded="true"] .caret { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__cta { padding: 0.85em 1.6em; font-size: 0.7rem; }
.site-chrome:not(.is-solid):not(.is-open) .header__cta { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.site-chrome:not(.is-solid):not(.is-open) .header__cta:hover { color: #fff; border-color: var(--blue-500); }

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 0.3s, color 0.3s;
}
.theme-toggle:hover { border-color: currentColor; color: var(--blue); }
.site-chrome:not(.is-solid):not(.is-open) .theme-toggle:hover { color: var(--blue-300); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  align-items: center;
  justify-content: center;
}
.nav-burger span,
.nav-burger::before,
.nav-burger::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.25s, top 0.35s;
}
.nav-burger::before { top: 14px; }
.nav-burger span { top: 20px; }
.nav-burger::after { top: 26px; }
.nav-burger[aria-expanded="true"]::before { top: 20px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span { opacity: 0; }
.nav-burger[aria-expanded="true"]::after { top: 20px; transform: rotate(-45deg); }

/* ---------- Mega menu (full-width floating panel) ---------- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  pointer-events: none;
}
.nav__item.open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 2), minmax(0, 1fr)) 1.25fr;
  padding-block: clamp(2rem, 3.5vw, 3rem);
}
.mega__col { padding-inline: clamp(1.4rem, 2.5vw, 2.6rem); border-left: 1px solid var(--line-faint); }
.mega__col:first-child { border-left: 0; padding-left: 0; }
.mega__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 1.15rem;
}
.mega__list { display: grid; gap: 0.15rem; }
.mega__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5em 0.2em;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, padding-left 0.25s;
}
.mega__list a small { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-faint); }
.mega__list a:hover { color: var(--blue); border-bottom-color: var(--blue); padding-left: 0.55em; }

.mega__promo {
  position: relative;
  display: flex;
  margin-left: clamp(1.4rem, 2.5vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 230px;
  transition: border-color 0.3s;
}
.mega__promo:hover { border-color: var(--blue); }
.mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__promo-body {
  position: relative;
  align-self: flex-end;
  width: 100%;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.88), rgba(7, 10, 18, 0.45) 70%, transparent);
  color: #fff;
}
.mega__promo-body .kicker { color: var(--blue-300); margin-bottom: 0.5rem; }
.mega__promo-body p { font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.7rem; }
.mega__promo-body .text-link { color: #fff; border-color: rgba(255, 255, 255, 0.5); font-size: 0.68rem; }
.mega__promo-body .text-link:hover { color: var(--blue-300); border-color: var(--blue-300); }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  pointer-events: none;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.5);
  opacity: 0;
  transition: opacity 0.35s;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  overflow-y: auto;
  padding: calc(var(--header-h) + 1.5rem) 1.8rem 7rem;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer.open .drawer__panel { transform: translateX(0); }

.drawer__list > li { border-bottom: 1px solid var(--line-faint); }
.drawer__link,
.drawer__acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.05em 0.2em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.45rem;
  text-align: left;
  color: var(--ink);
  transition: color 0.25s;
}
.drawer__link:hover, .drawer__acc-btn:hover { color: var(--blue); }
.drawer__acc-btn .caret { width: 12px; height: 12px; transition: transform 0.3s; }
.drawer__acc-btn .caret path { stroke: currentColor; stroke-width: 1.4; fill: none; }
.drawer__acc-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.drawer__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.drawer__sub > div { overflow: hidden; }
.drawer__acc-btn[aria-expanded="true"] + .drawer__sub { grid-template-rows: 1fr; }
.drawer__sub a {
  display: block;
  padding: 0.55em 0.2em 0.55em 1.2em;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  margin-left: 0.3em;
  transition: color 0.25s, border-color 0.25s;
}
.drawer__sub a:hover { color: var(--blue); border-color: var(--blue); }
.drawer__sub > div { padding-bottom: 0.6rem; }
.drawer__cta { margin-top: 2rem; width: 100%; }
.drawer__contact { margin-top: 2.2rem; display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-faint); }
.drawer__contact a:hover { color: var(--blue); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 72vh; /* fallback for browsers without svh */
  min-height: 72svh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero--full { min-height: 100vh; min-height: 100svh; }
.hero--short { min-height: 62vh; min-height: 62svh; }
.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim);
}
.hero__inner {
  padding-bottom: clamp(3rem, 7vh, 6rem);
  padding-top: calc(var(--header-h) + var(--topbar-h) + 3rem);
}
.hero .kicker {
  color: rgba(238, 242, 248, 0.92);
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 2px rgba(2, 10, 24, 0.55), 0 2px 14px rgba(2, 10, 24, 0.4);
}
.hero .kicker::before { background: var(--blue-400); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em {
  color: #C7DCFF;
  text-shadow: 0 2px 6px rgba(2, 10, 24, 0.45), 0 0 24px rgba(2, 10, 24, 0.35);
}
.hero__sub {
  margin-top: 1.8rem;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero__rule {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero__rule span + span::before { content: "+"; color: var(--blue-300); margin-right: 1.4rem; font-weight: 300; }

.scroll-cue {
  position: absolute;
  right: clamp(1.2rem, 4vw, 3rem);
  bottom: clamp(2.6rem, 6vh, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: cue-drop 2.4s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(1.8rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 2.4rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 4.3rem);
  line-height: 1;
  color: var(--ink);
}
.stat__num .stat-suffix { color: var(--blue); font-style: italic; font-weight: 400; }
.stat__label {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.card:hover { border-color: var(--blue); transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.045); }
.badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.45em 0.9em;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.badge--blue { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.badge--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card__body { padding: 1.5rem 1.5rem 1.7rem; }
.card__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
}
.card__price small { font-size: 0.7em; color: var(--ink-faint); font-family: var(--font-body); letter-spacing: 0.04em; }
.card__title { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin-top: 0.45rem; letter-spacing: 0.01em; }
.card__meta { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 0.35em 0; }
.card__meta span + span::before { content: "·"; margin-inline: 0.55em; color: var(--line-strong); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2.4rem);
}

/* Split feature panels */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.split--rev > .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split__body .kicker { margin-bottom: 1.2rem; }
.split__body h2, .split__body h3 { margin-bottom: 1.3rem; }
.split__body .body-copy + .body-copy { margin-top: 1em; }
.split__list { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.split__list li {
  display: flex;
  gap: 0.85em;
  align-items: baseline;
  font-size: 0.97rem;
  color: var(--ink-soft);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-faint);
}
.split__list li::before { content: "+"; color: var(--blue); font-weight: 300; flex: none; }
.split__body .btn, .split__body .text-link { margin-top: 1.9rem; }

/* Area tiles */
.area-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.35s;
  color: #fff;
}
.area-tile:hover { border-color: var(--blue); }
.area-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.area-tile:hover img { transform: scale(1.05); }
.area-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.82), rgba(7, 10, 18, 0.1) 55%, transparent);
}
.area-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.4rem 1.5rem; }
.area-tile__name { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; }
.area-tile__tag { margin-top: 0.35rem; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue-300); }

/* Testimonials */
.quote {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s, transform 0.4s var(--ease-out);
}
.quote:hover { border-color: var(--blue); transform: translateY(-4px); }
.quote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
}
.quote figcaption { display: flex; align-items: center; gap: 0.95rem; margin-top: 1.6rem; }
.quote figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.quote__name { font-weight: 600; font-size: 0.93rem; }
.quote__role { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.06em; }

/* CTA band */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 50% 0%, var(--blue-soft), transparent 70%),
    var(--paper-2);
}
.cta-band .kicker { justify-content: center; margin-bottom: 1.4rem; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin: 1.4rem auto 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.6rem; }

/* Filter bar (listings) */
.filterbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.filterbar label { display: grid; gap: 0.3rem; background: var(--surface); padding: 0.9rem 1.2rem; }
.filterbar .filter-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.filterbar select {
  appearance: none;
  border: 0;
  background:
    linear-gradient(45deg, transparent 49%, var(--ink-faint) 50%, transparent 61%) no-repeat right 6px top 58%/7px 7px,
    linear-gradient(-45deg, transparent 49%, var(--ink-faint) 50%, transparent 61%) no-repeat right 0 top 58%/7px 7px;
  font: 500 0.95rem var(--font-body);
  color: var(--ink);
  padding-right: 1.4rem;
  cursor: pointer;
}
.filterbar select:focus-visible { outline-offset: 1px; }
.filterbar__btn { border: 0; border-radius: 0; }

/* Process timeline */
.timeline { display: grid; gap: 0; counter-reset: step; }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1;
  color: var(--blue);
}
.timeline h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin-bottom: 0.55rem; }
.timeline p { color: var(--ink-soft); max-width: 62ch; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0.2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; color: var(--blue); font-size: 1.5em; line-height: 0.6; transition: transform 0.3s var(--ease-out); flex: none; }
.faq details[open] summary { color: var(--blue); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0.2rem 1.6rem; color: var(--ink-soft); max-width: 70ch; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
  padding: 0.9em 1em;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.field select { appearance: none; background-image:
    linear-gradient(45deg, transparent 49%, var(--ink-faint) 50%, transparent 61%),
    linear-gradient(-45deg, transparent 49%, var(--ink-faint) 50%, transparent 61%);
  background-position: right 1.2rem top 55%, right 0.78rem top 55%;
  background-size: 7px 7px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.form-success {
  display: none;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue-soft);
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.6rem; }
.form-success h3 em { font-style: italic; color: var(--blue); }
form.submitted .form-grid, form.submitted .form-actions { display: none; }

/* Office info list */
.info-list { display: grid; gap: 0; }
.info-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line-faint);
  font-size: 0.97rem;
}
.info-list > div:last-child { border-bottom: 1px solid var(--line-faint); }
.info-list dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.25em;
}
.info-list dd { margin: 0; color: var(--ink-soft); }
.info-list a:hover { color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--paper);
  position: relative;
}
.footer::before {
  content: "+";
  position: absolute;
  top: -0.72em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--blue);
  background: var(--paper);
  padding-inline: 0.45em;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.footer .logo { align-items: flex-start; margin-bottom: 1.4rem; }
.footer__blurb { color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; }
.footer__heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 1.3rem;
}
.footer__links { display: grid; gap: 0.55rem; }
.footer__links a { font-size: 0.93rem; color: var(--ink-soft); transition: color 0.25s, padding-left 0.25s; }
.footer__links a:hover { color: var(--blue); padding-left: 0.4em; }
.footer__contact { display: grid; gap: 0.55rem; font-size: 0.93rem; color: var(--ink-soft); font-style: normal; }
.footer__contact a:hover { color: var(--blue); }
.newsletter { margin-top: 1.6rem; }
.newsletter__row { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.85em 1em;
  font: 400 0.92rem var(--font-body);
}
.newsletter input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--blue); }
.newsletter button {
  padding: 0 1.3em;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.newsletter button:hover { background: var(--blue-700); }
[data-theme="dark"] .newsletter button:hover { background: var(--blue-300); }
.newsletter__msg { display: none; margin-top: 0.6rem; font-size: 0.82rem; color: var(--blue); }
.newsletter.done .newsletter__msg { display: block; }

.footer__legal {
  border-top: 1px solid var(--line-faint);
  padding-block: 1.6rem calc(1.6rem + 0px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer__legal a:hover { color: var(--blue); }
.footer__eho { display: inline-flex; align-items: center; gap: 0.6em; }
.footer__eho svg { width: 20px; height: 20px; fill: currentColor; }

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottombar__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
}
.bottombar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.25rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.25s;
}
.bottombar__item svg { width: 21px; height: 21px; }
.bottombar__item svg path, .bottombar__item svg circle, .bottombar__item svg rect {
  stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.bottombar__item[aria-current="page"],
.bottombar__item:hover { color: var(--blue); }

/* Center CTA — thin double ring, blue core, slow halo pulse */
.bottombar__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.55rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.bottombar__cta-ring {
  position: relative;
  width: 62px;
  height: 62px;
  margin-top: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 4px var(--blue),
    0 10px 26px -8px rgba(0, 74, 173, 0.6);
}
[data-theme="dark"] .bottombar__cta-ring {
  background: linear-gradient(140deg, var(--blue-400), var(--blue-600));
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 4px var(--blue),
    0 10px 26px -8px rgba(61, 133, 224, 0.55);
}
.bottombar__cta-ring::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  opacity: 0.55;
}
.bottombar__cta-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  animation: halo-pulse 3.2s ease-out infinite;
}
@keyframes halo-pulse {
  0% { transform: scale(0.92); opacity: 0.75; }
  70% { transform: scale(1.42); opacity: 0; }
  100% { transform: scale(1.42); opacity: 0; }
}
.bottombar__cta-ring svg { width: 24px; height: 24px; fill: currentColor; }

/* ============================================================
   REVEALS & MOTION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-group > * { /* stagger applied by JS via --rd */ }

.hero [data-hero-reveal] {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-in 1s var(--ease-out) forwards;
}
.hero [data-hero-reveal="2"] { animation-delay: 0.15s; }
.hero [data-hero-reveal="3"] { animation-delay: 0.3s; }
.hero [data-hero-reveal="4"] { animation-delay: 0.45s; }
.hero [data-hero-reveal="5"] { animation-delay: 0.6s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero [data-hero-reveal] { opacity: 1; transform: none; animation: none; }
  .scroll-cue::after { animation: none; }
  .bottombar__cta-ring::after { animation: none; opacity: 0.4; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .mega__grid { grid-template-columns: repeat(var(--mega-cols, 2), minmax(0, 1fr)) 1fr; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .nav-burger { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .split--rev > .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .filterbar { grid-template-columns: 1fr 1fr; }
  .filterbar__btn { grid-column: 1 / -1; padding-block: 1em; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; --topbar-h: 0px; }
  .topbar { display: none; }
  .bottombar { display: block; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 64px 1fr; }
  .hero__rule { flex-wrap: wrap; gap: 0.7rem 1.4rem; }
  .scroll-cue { display: none; }
  .logo-word { font-size: 1.5rem; }
  .info-list > div { grid-template-columns: 105px 1fr; gap: 1rem; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .filterbar { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .footer__legal { justify-content: flex-start; }
}

/* Print: keep it readable */
@media print {
  .site-chrome, .bottombar, .drawer, .scroll-cue, .cta-band__actions { display: none !important; }
  body { padding: 0; }
}
