/* ==========================================================================
   Dallas Luxury Real Estate — Design System
   1. Tokens  2. Base  3. Layout  4. Typography  5. Buttons
   6. Masthead  7. Heroes  8. Sections & components  9. Forms
   10. Footer  11. Overlays (menu, lightbox, popup)  12. Motion  13. Responsive
   ========================================================================== */

/* 1. TOKENS ============================================================== */
:root {
  /* Palette derived from the logo: indigo navy wordmark + crimson roof swoosh */
  --onyx: #0B0826;       /* Midnight Indigo: deepest backgrounds */
  --navy: #140A4B;       /* Logo Navy: dark sections, surfaces */
  --navy-2: #22186A;     /* Royal Indigo: elevated surfaces */
  --accent: #C8201E;     /* Logo Crimson: primary CTAs */
  --accent-deep: #9E1714;
  --gold: #F06A5F;       /* Coral Crimson: accent text, lines & icons on dark */
  --gold-soft: #F7A39B;  /* Blush glow: hover highlights */
  --bronze: #B31D1B;     /* Deep Crimson: accent text on light */
  --star: #F4B400;
  --ivory: #F6F4F1;
  --porcelain: #FFFFFF;
  --graphite: #17142E;
  --stone: #57536B;
  --mist: #C4C0D8;
  --line-gold: rgba(240, 106, 95, 0.32);
  --line-dark: rgba(28, 31, 38, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --error: #B42318;
  --success: #2E7D4F;

  --ff-display: "Bodoni Moda", "Didot", Georgia, serif;
  --ff-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-h1: clamp(2.6rem, 1.3rem + 4vw, 4.75rem);
  --fs-h1-page: clamp(2.5rem, 1.6rem + 3.8vw, 5.25rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 3vw, 4rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-eyebrow: 0.78rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);

  --shadow-1: 0 1px 2px rgba(11, 8, 38, 0.06), 0 4px 12px rgba(11, 8, 38, 0.06);
  --shadow-2: 0 1px 2px rgba(11, 8, 38, 0.06), 0 8px 24px rgba(11, 8, 38, 0.1), 0 32px 64px rgba(11, 8, 38, 0.16);
  --shadow-3: 0 2px 4px rgba(11, 8, 38, 0.08), 0 16px 40px rgba(11, 8, 38, 0.18), 0 48px 96px rgba(11, 8, 38, 0.28);
  --shadow-gold: 0 10px 30px rgba(200, 32, 30, 0.3), 0 2px 6px rgba(200, 32, 30, 0.3);

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(80px, 12vw, 160px);

  --topbar-h: 40px;
  --header-h: 84px;

  --z-header: 50;
  --z-dropdown: 55;
  --z-sticky: 60;
  --z-menu: 70;
  --z-lightbox: 90;
  --z-popup: 100;
}

/* 2. BASE ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--graphite);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
main { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* 3. LAYOUT ============================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--dark { background: var(--onyx); color: var(--ivory); }
.section--navy { background: linear-gradient(180deg, var(--navy) 0%, var(--onyx) 100%); color: var(--ivory); }
.section--white { background: var(--porcelain); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); position: relative; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }

/* 4. TYPOGRAPHY ========================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--ff-body); font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .section--navy .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--gold); }
.display, .h2, .h3 { font-family: var(--ff-display); line-height: 1.04; letter-spacing: -0.015em; }
.h2 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; margin-bottom: .6rem; }
.display em, .h2 em, .h3 em { font-style: italic; color: var(--bronze); }
.section--dark .h2 em, .section--navy .h2 em, .hero em, .page-hero em, .cta-band em { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.65; color: var(--stone); max-width: 62ch; }
.section--dark .lead, .section--navy .lead, .page-hero .lead, .hero .lead { color: var(--mist); }
.muted { color: var(--stone); }
/* Dark contexts: brighter accent + readable body copy */
.journey .eyebrow, .split-cta .eyebrow, .contact-card .eyebrow, .aside-card .eyebrow { color: var(--gold); }
.journey .h2 em, .split-cta .h2 em, .contact-card .h2 em, .aside-card em { color: var(--gold); }
.journey .lead, .split-cta .muted, .contact-card .muted { color: var(--mist); }
.section--dark .muted, .section--navy .muted { color: var(--mist); }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--ff-display); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; margin: 2.2em 0 .6em; }
.prose h3 { font-family: var(--ff-body); font-weight: 700; font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose ul { margin: 0 0 1.2em; display: grid; gap: .55rem; }
.prose li { position: relative; padding-left: 1.6rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--bronze); }
.prose a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }

/* 5. BUTTONS ============================================================= */
.btn {
  --bg: var(--accent); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.75rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid transparent; overflow: hidden; isolation: isolate; cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform .45s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease), border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, #E0463B, var(--accent) 55%, var(--accent-deep));
  transform: translateX(-101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { box-shadow: 0 16px 40px rgba(200, 32, 30, .4), 0 2px 6px rgba(200, 32, 30, .3); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--outline { --bg: transparent; --fg: var(--ivory); border-color: rgba(247, 243, 236, .4); box-shadow: none; }
.btn--outline::before { background: var(--ivory); }
.btn--outline:hover { --fg: var(--onyx); box-shadow: none; border-color: var(--ivory); }
.btn--dark { --bg: var(--onyx); --fg: var(--ivory); box-shadow: var(--shadow-2); }
.btn--dark::before { background: var(--navy-2); }
.btn--outline-dark { --bg: transparent; --fg: var(--graphite); border-color: rgba(28, 31, 38, .3); box-shadow: none; }
.btn--outline-dark::before { background: var(--onyx); }
.btn--outline-dark:hover { --fg: var(--ivory); box-shadow: none; }
.btn--sm { min-height: 44px; padding: .6rem 1.3rem; font-size: .88rem; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .92rem; letter-spacing: .04em; color: var(--bronze);
}
.section--dark .link-arrow, .section--navy .link-arrow { color: var(--gold); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.link-arrow:hover span { background-size: 100% 1px; }
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* 6. MASTHEAD ============================================================ */
.masthead { position: fixed; inset: 0 0 auto; z-index: var(--z-header); transition: transform .55s var(--ease); }
.masthead.is-scrolled { transform: translateY(calc(-1 * var(--topbar-h))); }
.topbar { height: var(--topbar-h); background: var(--onyx); color: var(--mist); font-size: .82rem; border-bottom: 1px solid var(--line-light); }
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar__info, .topbar__social { display: flex; align-items: center; gap: 1.5rem; }
.topbar a { display: inline-flex; align-items: center; gap: .5rem; transition: color .25s; min-height: 32px; }
.topbar a:hover { color: var(--gold); }
.topbar .icon { color: var(--gold); width: 15px; height: 15px; }
.topbar__social { gap: .35rem; }
.topbar__social a { width: 32px; justify-content: center; border-radius: 50%; }
.topbar__social .icon { color: currentColor; width: 16px; height: 16px; }

.site-header { height: var(--header-h); position: relative; transition: background-color .45s var(--ease), box-shadow .45s var(--ease), backdrop-filter .45s; }
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent); opacity: .6;
}
.masthead.is-scrolled .site-header {
  background: rgba(11, 8, 38, .9);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { width: 196px; height: auto; transition: transform .5s var(--ease), filter .5s; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.brand:hover img { transform: translateY(-2px) scale(1.02); }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .8rem; min-height: 44px;
  color: rgba(247, 243, 236, .86); font-size: .92rem; font-weight: 600; letter-spacing: .02em; transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .45rem; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--porcelain); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__item--has-menu { position: relative; }
.nav__link .icon { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item--has-menu.is-open .nav__link .icon { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 260px; z-index: var(--z-dropdown);
  padding: .6rem; border-radius: var(--radius-sm);
  background: rgba(20, 10, 75, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line-light); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
}
.nav__item--has-menu.is-open .dropdown,
.nav__item--has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) { .nav__item--has-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.dropdown a { display: block; padding: .7rem 1rem; border-radius: 8px; color: var(--ivory); font-size: .92rem; transition: background-color .25s, color .25s, padding-left .35s var(--ease); }
.dropdown a:hover { background: rgba(240, 106, 95, .12); color: var(--gold-soft); padding-left: 1.3rem; }
.header-cta { flex: none; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--ivory); align-items: center; justify-content: center; margin-left: auto; }
.menu-toggle span { position: relative; width: 20px; height: 1.5px; background: currentColor; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* 7. HEROES ============================================================== */
.hero {
  position: relative; min-height: 100svh; background: var(--onyx); color: var(--ivory); overflow: hidden;
  padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(3rem, 6vw, 5rem);
  display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: -10% 0 0; z-index: 0; }
.hero__bg img { width: 100%; height: 110%; object-fit: cover; opacity: .16; filter: saturate(.6) blur(2px); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, transparent 0%, var(--onyx) 70%), linear-gradient(180deg, rgba(11, 8, 38, .4), var(--onyx) 92%); }
.blueprint { position: absolute; inset: 0; z-index: 1; pointer-events: none; color: var(--gold); opacity: .22; }
.blueprint path, .blueprint line, .blueprint circle { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.6s var(--ease-soft); }
.is-drawn .blueprint path, .is-drawn .blueprint line, .is-drawn .blueprint circle, .blueprint.is-drawn path, .blueprint.is-drawn line, .blueprint.is-drawn circle { stroke-dashoffset: 0; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { font-family: var(--ff-display); font-size: var(--fs-h1); line-height: .98; letter-spacing: -0.025em; margin-bottom: 1.75rem; }
.hero__title em { font-style: italic; color: var(--gold); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 200ms); }
.is-loaded .line > span { transform: none; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 500ms); }
.is-loaded .fade-up { opacity: 1; transform: none; }

.hero__visual { position: relative; perspective: 1400px; justify-self: center; width: min(100%, 480px); }
.arch {
  position: relative; aspect-ratio: 4 / 5.4; border-radius: 999px 999px 24px 24px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px rgba(0, 0, 0, .45), 0 80px 120px rgba(0, 0, 0, .35);
  transform-style: preserve-3d; transition: transform .6s var(--ease);
  clip-path: inset(18% 22% 0 22% round 999px 999px 24px 24px);
  transition: clip-path 1.8s var(--ease) .35s, transform .6s var(--ease);
}
.is-loaded .arch { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); }
.arch img { width: 100%; height: 118%; object-fit: cover; transform: translateY(-6%) scale(1.08); }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(240, 106, 95, .12), transparent 40%, rgba(11, 8, 38, .55)); }
.arch-frame {
  position: absolute; inset: -18px -18px 28px 18px; border: 1px solid var(--line-gold); border-radius: 999px 999px 28px 28px; z-index: -1;
  transform: translateZ(-60px);
}
.arch-frame--2 { inset: 22px 30px -22px -26px; border-color: rgba(240, 106, 95, .16); }
.glass {
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .25), 0 30px 60px rgba(0, 0, 0, .2);
}
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.05rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--ivory); white-space: nowrap;
  animation: float var(--dur, 7s) ease-in-out infinite; animation-delay: var(--delay, 0s);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(240, 106, 95, .22); }
.chip--1 { top: 12%; left: -14%; --dur: 7s; }
.chip--2 { top: 38%; right: -16%; --dur: 8.5s; --delay: -2s; }
.chip--3 { bottom: 26%; left: -20%; --dur: 9s; --delay: -4s; }
.chip--4 { bottom: 7%; right: -8%; --dur: 6.5s; --delay: -1s; }
.hero-card {
  position: absolute; z-index: 3; left: 50%; bottom: -1.75rem; transform: translateX(-50%); width: max-content; max-width: 92%;
  padding: 1rem 1.4rem; border-radius: 16px; display: flex; align-items: center; gap: .9rem;
}
.hero-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); }
.hero-card strong { display: block; font-size: .95rem; color: var(--porcelain); }
.hero-card span { font-size: .78rem; color: var(--mist); letter-spacing: .04em; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); }
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease-soft) infinite; transform-origin: top; }

.page-hero {
  position: relative; background: var(--onyx); color: var(--ivory); overflow: hidden;
  padding: calc(var(--topbar-h) + var(--header-h) + clamp(3.5rem, 8vw, 7rem)) 0 clamp(4rem, 8vw, 7rem);
  min-height: min(78svh, 760px); display: flex; align-items: flex-end;
}
.page-hero__bg { position: absolute; inset: -12% 0 -12%; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11, 8, 38, .94) 0%, rgba(11, 8, 38, .78) 45%, rgba(11, 8, 38, .35) 100%), linear-gradient(0deg, var(--onyx) 0%, transparent 45%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero__title { font-family: var(--ff-display); font-size: var(--fs-h1-page); line-height: 1; letter-spacing: -.02em; max-width: 16ch; margin-bottom: 1.5rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0 0 2rem; padding: 0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--gold); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--ivory); }

/* Marquee */
.marquee { background: var(--onyx); color: var(--gold); border-block: 1px solid var(--line-light); overflow: hidden; padding: 1.4rem 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); white-space: nowrap; padding-inline: 1.6rem; display: inline-flex; align-items: center; gap: 3.2rem; }
.marquee__track span::after { content: ""; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* 8. SECTIONS & COMPONENTS =============================================== */
/* Trust points */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--porcelain); box-shadow: var(--shadow-2); position: relative; z-index: 3; }
.trust__item { padding: clamp(1.4rem, 2.5vw, 2.2rem); display: flex; gap: 1rem; align-items: flex-start; }
.trust__item + .trust__item { border-left: 1px solid var(--line-dark); }
.trust__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--bronze); background: rgba(200, 32, 30, .08); }
.trust__item strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.trust__item p { font-size: .9rem; color: var(--stone); margin: 0; line-height: 1.55; }

/* Tilt cards */
.tilt-wrap { perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--porcelain);
  box-shadow: var(--shadow-1); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); display: flex; flex-direction: column; cursor: pointer;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(247, 163, 155, .28), transparent 45%);
  opacity: 0; transition: opacity .4s;
  box-shadow: inset 0 0 0 1px rgba(240, 106, 95, .35);
}
.card:hover { box-shadow: var(--shadow-3); }
.card:hover::after { opacity: 1; }
.card.is-tilting { transition: transform .12s linear, box-shadow .5s var(--ease); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 8, 38, .5)); opacity: .6; transition: opacity .5s; }
.card:hover .card__media::after { opacity: 1; }
.card__num { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-family: var(--ff-display); font-style: italic; font-size: 1.1rem; color: var(--porcelain); padding: .35rem .8rem; border-radius: 999px; }
.card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; transform: translateZ(30px); }
.card__body p { color: var(--stone); font-size: .96rem; flex: 1; }
.card__link::before { content: ""; position: absolute; inset: 0; z-index: 4; }

/* About teaser / split media */
.stack-media { position: relative; padding: 0 0 12% 10%; }
.stack-media__main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-3); aspect-ratio: 4 / 4.6; }
.stack-media__main img { width: 100%; height: 115%; object-fit: cover; }
.stack-media__frame { position: absolute; top: -6%; left: 2%; width: 70%; height: 80%; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.stack-media__portrait {
  position: absolute; left: 0; bottom: 0; width: clamp(130px, 38%, 200px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--ivory); box-shadow: var(--shadow-3);
}
.section--white .stack-media__portrait { border-color: var(--porcelain); }
.stack-media__portrait img { width: 100%; height: 100%; object-fit: cover; }
.stack-media__badge { position: absolute; right: -4%; top: 10%; padding: 1.1rem 1.3rem; border-radius: 16px; color: var(--ivory); background: rgba(20, 10, 75, .82) !important; max-width: 220px; }
.stack-media__badge strong { display: block; font-family: var(--ff-display); font-size: 1.35rem; font-style: italic; color: var(--gold); line-height: 1.1; margin-bottom: .25rem; }
.stack-media__badge span { font-size: .8rem; color: var(--mist); }
.quote { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; margin: 1.5rem 0 2rem; padding-left: 1.5rem; border-left: 1px solid var(--gold); }
.checklist { display: grid; gap: .85rem; margin: 1.5rem 0; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; }
.checklist .icon { color: var(--bronze); margin-top: .3em; }
.section--dark .checklist .icon, .section--navy .checklist .icon { color: var(--gold); }

/* Journey (horizontal pinned scroll) */
.journey { background: var(--onyx); color: var(--ivory); position: relative; }
.journey__pin { position: relative; }
.journey__sticky { padding-block: var(--section); overflow: hidden; }
.journey__track { display: flex; gap: clamp(1.25rem, 2vw, 2rem); padding-inline: var(--gutter); will-change: transform; }
.journey__rail { position: relative; height: 1px; background: var(--line-light); margin: 0 var(--gutter) 3rem; }
.journey__rail i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }
.journey__key { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 0 0 6px rgba(200, 32, 30, .2), var(--shadow-gold); }
.step { flex: 0 0 clamp(280px, 30vw, 400px); padding: 2.2rem 2rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line-light); transition: border-color .4s, transform .5s var(--ease); }
.step:hover { border-color: var(--line-gold); transform: translateY(-6px); }
.step__num { font-family: var(--ff-display); font-style: italic; font-size: 3.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 1.25rem; }
.step h3 { font-family: var(--ff-display); font-size: 1.6rem; margin-bottom: .6rem; }
.step p { color: var(--mist); font-size: .95rem; margin: 0; }

/* Communities */
.community { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: var(--ivory); box-shadow: var(--shadow-2); isolation: isolate; }
.community img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.community::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 8, 38, .05) 30%, rgba(11, 8, 38, .88)); transition: background .6s; }
.community:hover img { transform: scale(1.07); filter: saturate(1.05); }
.community__body { padding: 1.8rem; width: 100%; transform: translateY(2.2rem); transition: transform .6s var(--ease); }
.community:hover .community__body, .community:focus-within .community__body { transform: none; }
.community__body h3 { font-family: var(--ff-display); font-size: 1.9rem; margin-bottom: .4rem; }
.community__body p { color: var(--mist); font-size: .92rem; margin: 0 0 1rem; opacity: 0; transition: opacity .5s var(--ease); }
.community:hover .community__body p, .community:focus-within .community__body p { opacity: 1; }
.community .link-arrow { color: var(--gold-soft); }
.community__tag { display: inline-block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .6rem; }

/* Reviews */
.reviews-notice { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; padding: .5rem 1rem; border-radius: 999px; border: 1px dashed var(--line-gold); color: var(--mist); margin-top: 1rem; }
.rating-summary { display: flex; align-items: center; gap: 1rem; }
.google-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--porcelain); display: grid; place-items: center; box-shadow: var(--shadow-1); flex: none; }
.google-mark svg { width: 24px; height: 24px; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.tab {
  min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px; font-size: .88rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line-light); color: var(--mist); transition: all .35s var(--ease);
}
.tab:hover { color: var(--ivory); border-color: var(--line-gold); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-gold); }
.section--white .tab, .section--ivory .tab { border-color: var(--line-dark); color: var(--stone); }
.section--white .tab:hover { color: var(--graphite); }
.coverflow { position: relative; height: 420px; perspective: 1600px; }
.coverflow__stage { position: relative; height: 100%; transform-style: preserve-3d; }
.review-card {
  position: absolute; top: 0; left: 50%; width: min(440px, 86vw); margin-left: calc(min(440px, 86vw) / -2); min-height: 340px;
  padding: 2.2rem 2rem; border-radius: var(--radius); color: var(--ivory);
  background: linear-gradient(160deg, rgba(34, 24, 106, .92), rgba(11, 8, 38, .95));
  border: 1px solid var(--line-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px rgba(0, 0, 0, .35), 0 60px 100px rgba(0, 0, 0, .25);
  transition: transform .8s var(--ease), opacity .6s var(--ease), filter .6s; will-change: transform;
  display: flex; flex-direction: column;
}
.review-card[aria-hidden="true"] { pointer-events: none; }
.review-card.is-active { border-color: var(--line-gold); }
.review-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; gap: 1rem; }
.review-card__quote { font-family: var(--ff-display); font-size: 1.18rem; line-height: 1.55; flex: 1; margin-bottom: 1.5rem; }
.review-card__person { display: flex; align-items: center; gap: .85rem; }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--navy-2)); color: #fff; font-weight: 700; }
.review-card__person strong { display: block; font-size: .95rem; }
.review-card__person span { font-size: .78rem; color: var(--mist); }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-gold); color: var(--gold); }
.badge--sample { border-style: dashed; color: var(--mist); border-color: var(--line-light); }
.coverflow__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); color: var(--ivory); transition: all .35s var(--ease); }
.icon-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.coverflow__dots { display: flex; gap: .4rem; }
.coverflow__dots button { width: 28px; height: 28px; display: grid; place-items: center; }
.coverflow__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-light); transition: all .4s var(--ease); }
.coverflow__dots button[aria-current="true"]::before { width: 24px; background: var(--gold); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.reviews-grid .review-card { position: relative; left: auto; margin: 0; width: auto; }

/* Gallery */
.masonry { columns: 3 300px; column-gap: 1.25rem; }
.masonry__item { break-inside: avoid; margin-bottom: 1.25rem; border-radius: var(--radius-sm); overflow: hidden; position: relative; display: block; width: 100%; box-shadow: var(--shadow-1); cursor: zoom-in; }
.masonry__item img { width: 100%; transition: transform 1s var(--ease); }
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item figcaption { position: absolute; inset: auto 0 0; padding: 1.2rem 1rem .9rem; color: var(--ivory); font-size: .85rem; background: linear-gradient(transparent, rgba(11, 8, 38, .8)); transform: translateY(100%); transition: transform .5s var(--ease); text-align: left; }
.masonry__item:hover figcaption, .masonry__item:focus-visible figcaption { transform: none; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.bento__item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-1); }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento__item:hover img { transform: scale(1.07); }
.bento__item--wide { grid-column: span 2; }
.bento__item--tall { grid-row: span 2; }

/* Split CTA (valuation) */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: var(--navy); color: var(--ivory); box-shadow: var(--shadow-3); }
.split-cta__media { position: relative; min-height: 420px; overflow: hidden; }
.split-cta__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.split-cta__body { padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }

/* FAQ */
.faq { display: grid; gap: .9rem; max-width: 900px; margin-inline: auto; }
.faq details { border-radius: var(--radius-sm); background: var(--porcelain); border: 1px solid var(--line-dark); box-shadow: var(--shadow-1); transition: box-shadow .4s, border-color .4s; }
.faq details[open] { border-color: var(--line-gold); box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.35rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 700; font-size: 1.02rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-gold); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--bronze); transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .faq__answer { padding: 0 1.5rem 1.4rem; color: var(--stone); }
.faq .faq__answer p:last-child { margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; color: var(--ivory); text-align: center; padding-block: clamp(100px, 14vw, 180px); background: var(--onyx); }
.cta-band__bg { position: absolute; inset: -15% 0; z-index: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(11, 8, 38, .55), rgba(11, 8, 38, .92) 75%); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band .h2 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.5rem); max-width: 14ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Process list / feature tiles (inner pages) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
@media (min-width: 1024px) { .tiles:has(> :nth-child(6)) { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.aside-card .checklist .icon { color: var(--gold); }
.tile { padding: 2rem 1.75rem; border-radius: var(--radius); background: var(--porcelain); border: 1px solid var(--line-dark); box-shadow: var(--shadow-1); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-2); border-color: var(--line-gold); }
.tile__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.3rem; color: var(--gold); background: var(--onyx); box-shadow: var(--shadow-2); }
.tile__icon .icon { width: 26px; height: 26px; }
.tile h3 { font-family: var(--ff-display); font-size: 1.45rem; line-height: 1.2; margin-bottom: .5rem; }
.tile p { color: var(--stone); font-size: .95rem; margin: 0; }
.section--dark .tile, .section--navy .tile { background: rgba(255, 255, 255, .04); border-color: var(--line-light); box-shadow: none; }
.section--dark .tile p, .section--navy .tile p { color: var(--mist); }
.section--dark .tile__icon, .section--navy .tile__icon { background: rgba(240, 106, 95, .12); }
.timeline { counter-reset: step; display: grid; gap: 0; max-width: 860px; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 2.6rem 5rem; }
.timeline li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.2rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-display); font-style: italic; font-size: 1.2rem; color: var(--gold); border: 1px solid var(--line-gold); background: var(--onyx); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 28px; top: 56px; bottom: 0; width: 1px; background: linear-gradient(var(--line-gold), transparent); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-family: var(--ff-display); font-size: 1.55rem; margin-bottom: .4rem; }
.timeline p { color: var(--stone); margin: 0; }
.section--dark .timeline p, .section--navy .timeline p { color: var(--mist); }
.aside-card { position: sticky; top: calc(var(--header-h) + 2rem); padding: 2.2rem; border-radius: var(--radius); background: var(--onyx); color: var(--ivory); box-shadow: var(--shadow-3); overflow: hidden; }
.aside-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; border: 1px solid var(--line-gold); }
.aside-card h2, .aside-card h3 { font-family: var(--ff-display); font-size: 1.8rem; line-height: 1.15; margin-bottom: .75rem; }
.aside-card p { color: var(--mist); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-card { padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); color: var(--ivory); background: linear-gradient(160deg, var(--navy-2), var(--onyx)); box-shadow: var(--shadow-3); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid var(--line-gold); box-shadow: 0 0 0 40px rgba(240, 106, 95, .04); }
.contact-list { display: grid; gap: 1.2rem; margin: 2rem 0; position: relative; z-index: 1; }
.contact-list a, .contact-list div { display: flex; gap: 1rem; align-items: center; }
.contact-list .ci { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--gold); border: 1px solid var(--line-gold); transition: all .35s var(--ease); }
.contact-list a:hover .ci { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.social-row { display: flex; gap: .6rem; position: relative; z-index: 1; }
.social-row a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: all .35s var(--ease); }
.social-row a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 16 / 7; background: var(--navy); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* 9. FORMS =============================================================== */
.form-card { padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius); background: var(--porcelain); box-shadow: var(--shadow-3); border: 1px solid var(--line-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 58px; padding: 1.45rem 1rem .5rem; border-radius: var(--radius-sm);
  background: var(--ivory); border: 1px solid transparent; color: var(--graphite); font-size: 1rem;
  transition: border-color .3s, box-shadow .3s, background-color .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%237A5C2B' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { min-height: 130px; resize: vertical; }
.field label { position: absolute; left: 1rem; top: 1.05rem; font-size: 1rem; color: var(--stone); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--porcelain); box-shadow: 0 0 0 4px rgba(200, 32, 30, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-.62rem) scale(.76); color: var(--bronze); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { display: block; font-size: .8rem; color: var(--error); margin-top: .35rem; min-height: 0; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .86rem; color: var(--stone); }
.consent input { width: 22px; height: 22px; flex: none; margin-top: .1rem; accent-color: var(--bronze); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-status.is-success { display: block; background: rgba(46, 125, 79, .1); color: var(--success); border: 1px solid rgba(46, 125, 79, .3); }
.form-status.is-error { display: block; background: rgba(180, 35, 24, .08); color: var(--error); border: 1px solid rgba(180, 35, 24, .25); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }

/* 10. FOOTER ============================================================= */
.site-footer { background: var(--onyx); color: var(--mist); padding-top: clamp(70px, 9vw, 120px); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 3.5rem; }
.footer-brand img { width: 240px; height: auto; margin-bottom: 1.6rem; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.site-footer h2 { font-family: var(--ff-body); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.footer-links { display: grid; gap: .35rem; }
.footer-links a { display: inline-flex; min-height: 34px; align-items: center; font-size: .95rem; transition: color .25s, transform .35s var(--ease); }
.footer-links a:hover { color: var(--ivory); transform: translateX(4px); }
.footer-contact { display: grid; gap: .9rem; font-size: .95rem; }
.footer-contact a, .footer-contact div { display: flex; gap: .7rem; align-items: center; }
.footer-contact a:hover { color: var(--ivory); }
.footer-contact .icon { color: var(--gold); }
.compliance { border-top: 1px solid var(--line-light); padding: 1.8rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: .84rem; }
.compliance__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.compliance a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-gold); }
.compliance a:hover { color: var(--gold); }
.eho { display: inline-flex; align-items: center; gap: .6rem; }
.eho svg { width: 28px; height: 28px; color: var(--mist); }
.footer-bottom { border-top: 1px solid var(--line-light); padding: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; }
.footer-bottom a { color: var(--gold); font-weight: 600; }
.footer-bottom a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Mobile sticky action bar */
.mobile-actions { display: none; }

/* Back to top */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: rgba(11, 8, 38, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .45s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: calc(151 - 151 * var(--scroll, 0)); }
.to-top:hover { background: var(--accent); color: #fff; }

/* 11. OVERLAYS =========================================================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--onyx); color: var(--ivory);
  display: flex; flex-direction: column; padding: 1.25rem var(--gutter) 2rem; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden; transition: clip-path .8s var(--ease), visibility .8s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-menu__top img { width: 170px; height: auto; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; font-family: var(--ff-display); font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.15; border-bottom: 1px solid var(--line-light); opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .25s; }
.mobile-menu nav a small { font-family: var(--ff-body); font-size: .75rem; color: var(--gold); letter-spacing: .1em; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + 250ms); }
.mobile-menu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1.25rem; }

.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(6, 4, 22, .94); display: grid; place-items: center; padding: 4rem 1rem; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 80vh; width: auto; max-width: min(1200px, 100%); border-radius: var(--radius-sm); box-shadow: var(--shadow-3); transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__caption { color: var(--mist); text-align: center; margin-top: 1rem; font-size: .9rem; }
.lightbox .icon-btn { position: absolute; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

.popup { position: fixed; inset: 0; z-index: var(--z-popup); display: grid; place-items: center; padding: 1rem; visibility: hidden; }
.popup.is-open { visibility: visible; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(6, 4, 22, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.popup.is-open .popup__backdrop { opacity: 1; }
.popup__dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 2rem); overflow-y: auto; padding: clamp(2rem, 5vw, 3rem); border-radius: 28px; text-align: center; color: var(--ivory);
  background: linear-gradient(160deg, rgba(34, 24, 106, .88), rgba(11, 8, 38, .94));
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(240, 106, 95, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateY(30px) scale(.96) rotateX(8deg); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.popup.is-open .popup__dialog { opacity: 1; transform: none; }
.popup__close { position: absolute; top: .9rem; right: .9rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--mist); transition: all .3s; }
.popup__close:hover { color: #fff; background: var(--accent); transform: rotate(90deg); }
.popup__badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 1.4rem; border: 1px solid var(--gold); box-shadow: 0 0 0 8px rgba(240, 106, 95, .08), 0 0 40px rgba(240, 106, 95, .25); animation: float 6s ease-in-out infinite; }
.popup__badge strong { font-family: var(--ff-display); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.popup__badge span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.popup h2 { font-family: var(--ff-display); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); line-height: 1.1; margin-bottom: 1rem; }
.popup h2 em { color: var(--gold); }
.popup p { color: var(--mist); }
.popup p strong { color: var(--ivory); }
.popup .btn-row { justify-content: center; margin-top: 1.75rem; }
.popup__dismiss { display: inline-block; margin-top: 1rem; font-size: .88rem; color: var(--mist); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.popup__dismiss:hover { color: var(--ivory); }
.popup__protocols { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.25rem 0 0; }
.popup__protocols li { font-size: .74rem; letter-spacing: .08em; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-light); color: var(--ivory); }

/* 12. MOTION ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal="mask"] { transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease), opacity .6s; }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.no-js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
[data-parallax] { will-change: transform; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-card { animation: floatX 8s ease-in-out infinite; }
@keyframes floatX { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal], .fade-up, .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .arch { clip-path: none; }
  .marquee__track { animation: none; }
  .blueprint path, .blueprint line, .blueprint circle { stroke-dashoffset: 0; }
}

/* 13. RESPONSIVE ========================================================= */
@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .hero__inner, .grid-2, .content-grid, .contact-grid, .split-cta { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__visual { width: min(82%, 420px); margin-top: 2rem; margin-bottom: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .journey__track { flex-direction: column; transform: none !important; }
  .journey__rail { display: none; }
  .step { flex: none; }
  .aside-card { position: relative; top: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .split-cta__media { min-height: 300px; }
  .scroll-cue { display: none; }
}
@media (max-width: 767px) {
  :root { --topbar-h: 38px; --header-h: 72px; }
  .topbar__info a span, .topbar__location { display: none; }
  .topbar__info { gap: .35rem; }
  .topbar__info a { width: 32px; justify-content: center; }
  .brand img { width: 158px; }
  .grid-3, .trust, .form-grid { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--line-dark); }
  .chip--1 { left: -6%; } .chip--2 { right: -8%; } .chip--3 { left: -8%; } .chip--4 { display: none; }
  .community { min-height: 340px; }
  .community__body { transform: none; }
  .community__body p { opacity: 1; }
  .community::before { background: linear-gradient(180deg, rgba(11, 8, 38, .15) 10%, rgba(11, 8, 38, .92) 70%); }
  .coverflow { height: 400px; }
  .bento { grid-auto-rows: 160px; }
  .bento__item--wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head--split { align-items: start; }
  .timeline li { padding-left: 4.2rem; }
  .map-embed { aspect-ratio: 4 / 3; }

  .mobile-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; inset: auto 0 0; z-index: var(--z-sticky);
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(11, 8, 38, .82); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--line-gold); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
  }
  .mobile-actions a { min-height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 700; font-size: .95rem; }
  .mobile-actions__call { background: var(--accent); color: #fff; }
  .mobile-actions__wa { background: #167A40; color: #fff; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: .9rem; width: 48px; height: 48px; }
}
@media (hover: none) {
  .card { transform: none !important; }
}
