/* ==========================================================================
   Empyrean Estate — Main Stylesheet  (Dark Luxury theme)
   To change the brand: edit the :root block below.
   All colors, fonts, and spacing come from these variables.
   ========================================================================== */

:root {
  /* ---- Colors ---------------------------------------------------------- */
  /* Dark luxury palette: deep navy canvas, gold accent, soft white text.   */
  --bg:           #161B28;   /* page background (deep navy)            */
  --bg-alt:       #1B2130;   /* alternate section background           */
  --surface:      #222A3B;   /* cards, panels                          */
  --surface-2:    #28304280; /* (unused placeholder)                   */
  --surface-hi:   #2A3346;   /* raised surface (stat cards, table)     */
  --border:       rgba(255,255,255,0.09);
  --border-hi:    rgba(201,162,75,0.35);  /* gold-tinted border       */

  --gold:         #C9A24B;   /* primary accent — eyebrows, values, CTAs */
  --gold-bright:  #D9B868;   /* hover / highlight                       */
  --gold-dim:     #8C7536;   /* muted gold                              */

  --blue:         #5574FA;   /* brand blue (logo) — kept as a secondary */

  --text:         #F3F4F7;   /* primary text (soft white)               */
  --text-muted:   #A6AEBF;   /* secondary text                          */
  --text-dim:     #6E768A;   /* tertiary / placeholder                  */

  /* ---- Typography ------------------------------------------------------ */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Spacing --------------------------------------------------------- */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-6: 1.5rem;  --sp-8: 2rem;   --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;   --sp-20: 5rem;  --sp-24: 6rem;

  /* ---- Layout ---------------------------------------------------------- */
  --max-w: 1240px;
  --pad-x: clamp(1rem, 5vw, 2.5rem);

  /* ---- Cards / motion -------------------------------------------------- */
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 10px 40px rgba(0,0,0,0.35);
  --t:      220ms ease;
  --t-slow: 450ms ease;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; border: none; background: none; outline: none; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: var(--bg); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--sp-24); }
.section--surface { background: var(--bg-alt); }
.section--navy { background: var(--bg-alt); color: var(--text); }

.grid-2 { display: grid; gap: var(--sp-8); }
.grid-3 { display: grid; gap: var(--sp-8); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--text);
}
.h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
}
.h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

/* Gold letter-spaced eyebrow — the "PROPERTIES" / "PROPERTY HIGHLIGHTS" label */
.section-label, .hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.section-intro {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.8;
}
.text-center { text-align: center; }
.text-center .section-intro { margin-inline: auto; }

/* Decorative gold diamond ornament (used above section/detail titles) */
.ornament {
  width: 46px; height: 22px;
  margin: 0 auto var(--sp-6);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85em 2em;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: #14161F; }
.btn--primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn--outline {
  border: 1px solid var(--border-hi);
  color: var(--gold);
}
.btn--outline:hover { background: rgba(201,162,75,0.1); color: var(--gold-bright); }
.btn--outline-dark { /* legacy alias — used on dark bg, styled like outline */
  border: 1px solid var(--border-hi);
  color: var(--gold);
}
.btn--outline-dark:hover { background: rgba(201,162,75,0.1); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22,27,40,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 76px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav__logo img { height: 38px; width: auto; }

.nav__links { display: none; gap: var(--sp-8); }
@media (min-width: 768px) { .nav__links { display: flex; align-items: center; } }
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
  position: relative;
  padding-bottom: 4px;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1.5px; background: var(--gold);
}
.nav__cta { display: none; }
@media (min-width: 768px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: var(--sp-2); background: none; border: none;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all var(--t); }

.nav__mobile {
  display: none; position: fixed; inset: 76px 0 0;
  background: var(--bg); padding: var(--sp-8) var(--pad-x);
  border-top: 1px solid var(--border);
  flex-direction: column; gap: var(--sp-2); z-index: 99; overflow-y: auto;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-size: 1.05rem; color: var(--text);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-block: var(--sp-4); border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--bg);
  min-height: calc(92vh - 76px);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.28;
}
/* gradient wash so text stays readable over any photo */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 12%, rgba(22,27,40,0.55) 60%, rgba(22,27,40,0.2) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 720px; padding-block: var(--sp-24); }
.hero h1 { margin-bottom: var(--sp-6); }
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: var(--sp-10);
  max-width: 54ch; line-height: 1.85;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding-block: var(--sp-12);
  color: var(--text);
}
.stats__grid {
  display: grid; gap: var(--sp-8); text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stats__num {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 600; line-height: 1; color: var(--gold);
}
.stats__label {
  font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   Property cards  (elegant: image + price overlay, title + icon stats below)
   -------------------------------------------------------------------------- */
.property-grid {
  display: grid; gap: var(--sp-10);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.property-card { display: flex; flex-direction: column; }
.property-card__image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.property-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.property-card:hover .property-card__image img { transform: scale(1.05); }
/* gradient so the price reads over any photo */
.property-card__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,18,28,0.85) 0%, rgba(15,18,28,0.0) 45%);
  pointer-events: none;
}
.property-card__badge {
  position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 2;
  background: rgba(22,27,40,0.78);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-hi);
  color: var(--gold);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4em 0.9em; border-radius: 3px;
}
.property-card__badge--pending { color: #E0A95E; border-color: rgba(224,169,94,0.4); }
.property-card__badge--sold    { color: var(--text-muted); border-color: var(--border); }
.property-card__price-overlay {
  position: absolute; bottom: var(--sp-5); left: var(--sp-5); z-index: 2;
}
.property-card__price {
  font-family: var(--font-heading);
  font-size: 1.85rem; font-weight: 600; color: #fff; line-height: 1;
}
.property-card__price-sub { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

.property-card__title {
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); text-align: center;
  margin-top: var(--sp-5);
}
.property-card__stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--sp-5); margin-top: var(--sp-3);
  color: var(--text-muted); font-size: 0.82rem;
}
.property-card__stat { display: flex; align-items: center; gap: 0.4em; }
.property-card__stat svg { width: 16px; height: 16px; color: var(--gold-dim); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */
.service-card {
  padding: var(--sp-10) var(--sp-8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t), transform var(--t);
}
.service-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.service-card__icon {
  width: 56px; height: 56px;
  border: 1px solid var(--border-hi); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-6); font-size: 1.5rem; color: var(--gold);
}
.service-card__title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
  color: var(--text); margin-bottom: var(--sp-3);
}
.service-card__text { color: var(--text-muted); line-height: 1.8; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding-block: var(--sp-24);
  text-align: center; color: var(--text);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,75,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner__content { position: relative; }
.cta-banner h2 { margin-bottom: var(--sp-4); }
.cta-banner p {
  color: var(--text-muted); font-size: 1.15rem;
  margin-bottom: var(--sp-8); max-width: 50ch; margin-inline: auto; line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--sp-6); }
.form__row { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, 1fr); } }
.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; font-size: 0.95rem; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field select option { background: var(--bg); color: var(--text); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-20);
  text-align: center; color: var(--text);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,75,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero__content { position: relative; }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 54ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-end;
  margin-bottom: var(--sp-12);
}
.filter-bar .form-field { flex: 1; min-width: 160px; }

/* --------------------------------------------------------------------------
   Listing detail
   -------------------------------------------------------------------------- */
.listing-banner {
  width: 100%; aspect-ratio: 16/7; max-height: 520px;
  background: var(--surface); overflow: hidden;
}
.listing-banner img { width: 100%; height: 100%; object-fit: cover; }

.listing-head { text-align: center; padding-block: var(--sp-16) var(--sp-12); }
.listing-head__title { margin-bottom: var(--sp-4); }
.listing-head__address {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.listing-head__address svg { width: 16px; height: 16px; }
.listing-head__desc {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.5; color: var(--text);
  max-width: 62ch; margin: var(--sp-8) auto 0;
}

/* Row of stat cards */
.listing-statcards {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: var(--sp-16);
}
.statcard {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.statcard svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: var(--sp-4); }
.statcard__value {
  font-family: var(--font-heading); font-size: 1.9rem; font-weight: 600;
  color: var(--text); line-height: 1;
}
.statcard__label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-top: var(--sp-2);
}

/* Highlights table (3-column label/value) */
.highlights-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-8);
}
.highlights-grid {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-12); } }
@media (min-width: 960px) { .highlights-grid { grid-template-columns: repeat(3, 1fr); } }
.highlight-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.highlight-row__label { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.highlight-row__value { color: var(--gold); font-size: 0.9rem; text-align: right; }

/* Inquiry block on the detail page */
.inquiry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-10);
}
.inquiry__title {
  font-family: var(--font-heading); font-size: 1.875rem; font-weight: 600;
  color: var(--text); margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   Team cards
   -------------------------------------------------------------------------- */
.team-card { text-align: center; }
.team-card__photo {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  margin-inline: auto; margin-bottom: var(--sp-4);
  background: var(--surface); border: 1px solid var(--border-hi);
}
.team-card__name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--text); }
.team-card__role {
  font-size: 0.78rem; color: var(--gold); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-block: var(--sp-2) var(--sp-3);
}
.team-card__bio { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #11151F;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding-block: var(--sp-16) var(--sp-8);
}
.footer__grid { display: grid; gap: var(--sp-10); margin-bottom: var(--sp-12); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand .nav__logo { color: var(--text); margin-bottom: var(--sp-4); }
.footer__tagline { font-size: 0.95rem; line-height: 1.7; max-width: 32ch; }
.footer__heading {
  color: var(--text); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--sp-5);
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a { font-size: 0.95rem; transition: color var(--t); }
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: var(--sp-8);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: 0.85rem; color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Mobile overrides
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .section { padding-block: var(--sp-16); }
  .hero__content { padding-block: var(--sp-16); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .filter-bar .form-field { min-width: 100%; }
  .listing-head { padding-block: var(--sp-12) var(--sp-8); }
}

/* ==========================================================================
   Motion & elegant scroll UX  (powered by js/motion.js)
   Content is only hidden once <html> has the "js" class — so with JS off,
   nothing is ever hidden. Reveal state is scoped under html.js for that reason.
   ========================================================================== */

/* ---- Scroll-reveal ---- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="zoom"] { transform: scale(1.04); }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Gentle stagger for items in a card grid that reveal together */
html.js .property-grid > [data-reveal]:nth-child(2),
html.js .grid-3 > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
html.js .property-grid > [data-reveal]:nth-child(3),
html.js .grid-3 > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
html.js .property-grid > [data-reveal]:nth-child(4),
html.js .grid-3 > [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
html.js .grid-3 > [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
html.js .grid-3 > [data-reveal]:nth-child(6) { transition-delay: 0.40s; }

/* ---- Hero motion (slow Ken Burns) ---- */
.hero__bg { animation: kenburns 24s ease-out forwards; transform-origin: center; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* ---- Parallax band (full-bleed image fixed behind scrolling content) ---- */
.parallax-band {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  background-color: #0F1320;          /* shows if the image is missing */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
.parallax-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(15,18,28,0.55), rgba(15,18,28,0.8));
  pointer-events: none;
}
.parallax-band__inner { position: relative; z-index: 1; max-width: 640px; padding: var(--sp-12) var(--pad-x); }
.parallax-band__statement {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600; line-height: 1.2; color: #fff;
  margin-bottom: var(--sp-6);
}
@media (max-width: 768px) { .parallax-band { background-attachment: scroll; min-height: 56vh; } }

/* ---- Overlapping section (pulls up over the band above) ---- */
.section--overlap {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  border-radius: 24px 24px 0 0;
  background: var(--bg);
  box-shadow: 0 -28px 60px rgba(0,0,0,0.45);
}
.section--overlap.section--surface { background: var(--bg-alt); }
@media (max-width: 639px) { .section--overlap { margin-top: -40px; border-radius: 18px 18px 0 0; } }

/* ---- Nav: transparent over hero, solidifies on scroll ---- */
.nav--overlay:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.nav.is-scrolled { background: rgba(22, 27, 40, 0.92); }

/* Refined nav link underline (grows from center on hover) */
.nav__links a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 1.5px; background: var(--gold);
  transition: left 0.28s ease, right 0.28s ease;
}
.nav__links a:hover::after { left: 0; right: 0; }
.nav__links a.active::after { left: 0; right: 0; }

/* ---- Back-to-top button (injected by motion.js) ---- */
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: #14161F;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 90;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(10px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold-bright); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 768px) { .to-top { right: 16px; bottom: 16px; } }

/* ---- Reduced motion: disable everything, show content instantly ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__bg { animation: none !important; }
  .parallax-band { background-attachment: scroll; }
}
