/* ==========================================================================
   KILELE PROPERTIES LTD — Design 1 "Kilele"
   Editorial luxury real-estate design · Nairobi, Kenya
   --------------------------------------------------------------------------
   Palette   : charcoal #0F1418 · panel #161C23 · gold #C9A22C
               champagne #EAD9A0 · cream #F8F5EF · ink #1C2228 · muted #6F7680
   Type      : Playfair Display (display) · Inter (text, kickers)
   Contents  :
     01. Custom properties & reset
     02. Base typography & utilities
     03. Buttons & chips
     04. Site header & navigation
     05. Hero slider
     06. Editorial intro & counters
     07. Listing cards & grids
     08. Dark band — The Kilele Standard
     09. Spotlight split
     10. Testimonials carousel
     11. Journal cards
     12. CTA band
     13. Footer
     14. Page banners & breadcrumbs
     15. Filter toolbar & results meta
     16. Empty state
     17. Property detail (gallery, keyfacts, features, specs, agent, aside)
     18. Forms & validation
     19. About page (story, values, timeline, team, CSR, quote)
     20. Contact page (cards, offices, map, FAQ)
     21. Lightbox gallery
     22. Toast & floating buttons
     23. Reveal-on-scroll & keyframes
     24. Media queries (640 / 768 / 1024)
     25. Accessibility & reduced motion
   ========================================================================== */

/* ==========================================================================
   01. CUSTOM PROPERTIES & RESET
   ========================================================================== */
:root {
  /* palette */
  --charcoal:   #0F1418;
  --panel:      #161C23;
  --panel-2:    #1C242E;
  --gold:       #C9A22C;
  --gold-deep:  #A8861F;
  --champagne:  #EAD9A0;
  --cream:      #F8F5EF;
  --ink:        #1C2228;
  --muted:      #6F7680;
  --white:      #FFFFFF;
  --line:       rgba(15, 20, 24, 0.12);
  --line-gold:  rgba(201, 162, 44, 0.35);
  --line-dark:  rgba(234, 217, 160, 0.16);
  --wa-green:   #25D366;

  /* type */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* layout */
  --container:  1240px;
  --gutter:     24px;
  --header-h:   78px;
  --radius:     4px;

  /* shadows */
  --shadow-1:   0 10px 30px rgba(15, 20, 24, 0.08);
  --shadow-2:   0 28px 70px rgba(15, 20, 24, 0.18);
  --shadow-gold: 0 12px 34px rgba(201, 162, 44, 0.32);

  /* motion */
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 767px) {
  :root { --header-h: 66px; --gutter: 18px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip; /* hard guard against horizontal overflow at 360px */
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

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

/* ==========================================================================
   02. BASE TYPOGRAPHY & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9vw, 120px); }

.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.section--white {
  background: var(--white);
  border-block: 1px solid var(--line);
}

/* small uppercase letter-spaced kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.kicker--bare::before { display: none; }

.kicker--light { color: var(--champagne); }
.kicker--light::before { background: var(--champagne); }

/* section headers — hairline rule above the title */
.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 22px;
}

.section-head--center {
  text-align: center;
}

.section-head--center::before { margin-inline: auto; }

.section-head--light h2,
.section-head--light .section-sub { color: var(--white); }

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-sub {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.section-head--center .section-sub { margin-inline: auto; }

.section-head--light .section-sub { color: rgba(255, 255, 255, 0.66); }

.section-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-gold);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
  white-space: nowrap;
}

.text-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); gap: 16px; }

/* ==========================================================================
   03. BUTTONS & CHIPS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 34px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  will-change: transform;
}

.btn i { font-size: 13px; }

.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn--gold:hover {
  background: var(--champagne);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
}

.btn--outline-light:hover {
  border-color: var(--champagne);
  color: var(--champagne);
  background: rgba(234, 217, 160, 0.08);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn--dark:hover { background: var(--panel-2); transform: translateY(-2px); box-shadow: var(--shadow-2); }

.btn--outline-dark {
  border-color: var(--line-gold);
  color: var(--charcoal);
}

.btn--outline-dark:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 44, 0.08);
  transform: translateY(-2px);
}

.btn--wa { background: var(--wa-green); color: #06301a; }
.btn--wa:hover { background: #1fbe59; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35); }

.btn--block { width: 100%; }

.btn--sm { padding: 12px 22px; font-size: 11px; }

/* status chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 162, 44, 0.08);
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   04. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}

.site-header.is-scrolled,
body.page-inner .site-header {
  background: var(--charcoal);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-header.is-scrolled { box-shadow: 0 14px 40px rgba(15, 20, 24, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.brand:hover .brand__mark { background: var(--gold); color: var(--charcoal); }

.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.3em;
  line-height: 1;
}

.brand__text small {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.52em;
  color: var(--champagne);
  margin-top: 6px;
}

/* primary nav */
.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a:not(.btn) {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 0;
  transition: color 0.3s var(--ease);
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.main-nav a:not(.btn):hover,
.main-nav a.is-active { color: var(--champagne); }

.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta { flex: none; }

/* desktop shows the standalone header CTA only; the nav copy is for the mobile panel */
.main-nav .nav-cta-item { display: none; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* mobile slide-down panel */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    background: var(--charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 50px rgba(15, 20, 24, 0.45);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.5s var(--ease), visibility 0.5s;
  }

  .main-nav.is-open {
    max-height: 420px;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter) 26px;
  }

  .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .main-nav li:last-child { border-bottom: 0; padding-top: 16px; }

  .main-nav a:not(.btn) {
    display: block;
    padding: 16px 2px;
    font-size: 13px;
    color: var(--white);
  }

  .main-nav a:not(.btn)::after { display: none; }

  .main-nav .nav-cta-item { display: block; }
  .main-nav .nav-cta-item .btn { width: 100%; }
}

/* ==========================================================================
   05. HERO SLIDER
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  background: var(--charcoal);
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 1.4s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero__slide.is-active .hero__img {
  animation: kenBurns 8s var(--ease) forwards;
  transform-origin: 62% 38%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 24, 0.62) 0%, rgba(15, 20, 24, 0.28) 42%, rgba(15, 20, 24, 0.72) 100%),
    linear-gradient(100deg, rgba(15, 20, 24, 0.66) 8%, rgba(15, 20, 24, 0.12) 70%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 70px;
  color: var(--white);
}

.hero__content > * {
  opacity: 0;
  transform: translateY(30px);
}

.hero__slide.is-active .hero__content > * {
  animation: fadeUp 1s var(--ease) forwards;
}

.hero__slide.is-active .hero__content > *:nth-child(1) { animation-delay: 0.35s; }
.hero__slide.is-active .hero__content > *:nth-child(2) { animation-delay: 0.5s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { animation-delay: 0.65s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { animation-delay: 0.8s; }

.hero__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--champagne);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero__kicker::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 600;
  color: var(--white);
  margin: 22px 0 20px;
  max-width: 13ch;
}

.hero__title em {
  font-style: italic;
  color: var(--champagne);
}

.hero__sub {
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 38px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* arrows + dots */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 15px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.hero-arrow:hover { border-color: var(--gold); color: var(--gold); background: rgba(15, 20, 24, 0.4); }
.hero-arrow--prev { left: clamp(14px, 3vw, 44px); }
.hero-arrow--next { right: clamp(14px, 3vw, 44px); }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}

.hero__dot {
  width: 34px;
  height: 2px;
  padding: 12px 0; /* generous hit area, visual bar stays thin */
  background: none;
  position: relative;
}

.hero__dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s var(--ease);
}

.hero__dot.is-active::after { background: var(--gold); }

.hero__scroll {
  position: absolute;
  right: clamp(16px, 4vw, 52px);
  bottom: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}

/* ==========================================================================
   06. EDITORIAL INTRO & COUNTERS
   ========================================================================== */
.intro { background: var(--cream); }

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.intro__statement {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--charcoal);
}

.intro__statement em {
  font-style: italic;
  color: var(--gold);
}

.intro__body p + p { margin-top: 18px; }

.intro__body p {
  color: var(--muted);
  font-size: 16px;
}

.intro__sig {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.intro__sig-rule { width: 56px; height: 1px; background: var(--gold); }

.intro__sig span {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal);
}

/* counters */
.stats {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.stat__num b { color: var(--gold); font-weight: 600; }

.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   07. LISTING CARDS & GRIDS
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel);
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.6s var(--ease);
}

.card:hover .card__img { transform: scale(1.07); }

.card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  background: rgba(15, 20, 24, 0.82);
  color: var(--champagne);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid rgba(234, 217, 160, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card__type {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(15, 20, 24, 0.8);
}

.card__body { padding: 26px 26px 24px; }

.card__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__location i { color: var(--gold); font-size: 11px; }

.card__title {
  font-size: 23px;
  margin: 10px 0 6px;
}

.card__title a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
  padding-bottom: 3px;
}

.card:hover .card__title a {
  background-size: 100% 1px;
  color: var(--gold-deep);
}

.card__price {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card__specs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.card__specs i { color: var(--gold); font-size: 12px; width: 15px; text-align: center; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.card__link i { color: var(--gold); transition: transform 0.3s var(--ease); }

.card:hover .card__link { color: var(--gold-deep); gap: 15px; }

/* enter animation for JS-rendered grids */
.card--enter { animation: cardIn 0.6s var(--ease) both; }

/* ==========================================================================
   08. DARK BAND — THE KILELE STANDARD
   ========================================================================== */
.band {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 44, 0.09), transparent 60%),
    var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
}

.band .section-head { margin-bottom: clamp(44px, 6vw, 70px); }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.pillar {
  padding: 36px 30px 34px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  background: var(--panel-2);
}

.pillar__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 22px;
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--champagne);
  font-size: 19px;
  margin-bottom: 24px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.pillar:hover .pillar__icon { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

.pillar__title {
  font-size: 21px;
  color: var(--white);
  margin-bottom: 12px;
}

.pillar__text {
  font-size: 14px;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.66);
}

/* ==========================================================================
   09. SPOTLIGHT SPLIT
   ========================================================================== */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  background: var(--charcoal);
}

.spotlight__media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.spotlight__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s var(--ease);
}

.spotlight:hover .spotlight__media img { transform: scale(1.06); }

.spotlight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(15, 20, 24, 0.55) 100%);
}

.spotlight__content {
  padding: clamp(48px, 6vw, 88px) clamp(28px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight__content .section-title { color: var(--white); margin-bottom: 18px; }

.spotlight__content > p {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 300;
  margin-bottom: 30px;
}

.spotlight__specs {
  margin-bottom: 36px;
  counter-reset: spec;
  border-top: 1px solid var(--line-dark);
}

.spotlight__specs li {
  counter-increment: spec;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.spotlight__specs li::before {
  content: counter(spec, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold);
}

.spotlight__specs li strong {
  color: var(--champagne);
  font-weight: 500;
  margin-left: auto;
  font-family: var(--font-serif);
  font-size: 17px;
  text-align: right;
}

/* ==========================================================================
   10. TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonials { background: var(--cream); }

.tst-carousel {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: 0 clamp(8px, 6vw, 90px);
}

.tst-stage { position: relative; }

.tst-slide {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0.8s;
  text-align: center;
  padding-top: 6px;
}

.tst-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  visibility: visible;
}

.tst-slide.is-leaving { position: absolute; }

.tst-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-size: 19px;
  margin-bottom: 28px;
}

.tst-quote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 32px;
}

.tst-quote::before { content: "\201C"; color: var(--gold); }
.tst-quote::after { content: "\201D"; color: var(--gold); }

.tst-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.tst-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
  box-shadow: var(--shadow-gold);
}

.tst-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.tst-role {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* testimonial controls */
.tst-arrow {
  position: absolute;
  top: 42%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--charcoal);
  background: var(--white);
  font-size: 13px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tst-arrow:hover { border-color: var(--gold); color: var(--gold-deep); box-shadow: var(--shadow-1); }
.tst-arrow--prev { left: 0; }
.tst-arrow--next { right: 0; }

.tst-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.tst-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 20, 24, 0.18);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.tst-dot.is-active { background: var(--gold); transform: scale(1.25); }

/* ==========================================================================
   11. JOURNAL CARDS
   ========================================================================== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
}

.j-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.j-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }

.j-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--panel);
}

.j-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.j-card:hover .j-card__media img { transform: scale(1.07); }

.j-card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }

.j-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.j-meta i { font-size: 11px; }

.j-title { font-size: 22px; margin: 14px 0 12px; line-height: 1.35; }

.j-card:hover .j-title { color: var(--gold-deep); }

.j-excerpt {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.j-more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.j-more i { color: var(--gold); transition: transform 0.3s var(--ease); }

.j-card:hover .j-more i { transform: translateX(5px); }

/* ==========================================================================
   12. CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  padding-block: clamp(88px, 11vw, 150px);
  background: var(--charcoal);
  overflow: hidden;
  text-align: center;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 24, 0.82), rgba(15, 20, 24, 0.68) 50%, rgba(15, 20, 24, 0.9));
}

.cta-band__inner { position: relative; z-index: 2; }

.cta-band .kicker { justify-content: center; }

.cta-band__title {
  color: var(--white);
  font-size: clamp(34px, 5vw, 60px);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band__title em { font-style: italic; color: var(--champagne); }

.cta-band__text {
  max-width: 560px;
  margin: 20px auto 40px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.cta-band__phone i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  color: var(--gold);
}

.cta-band__phone b {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-band__phone small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2.4fr) minmax(0, 3fr) minmax(0, 3.2fr);
  gap: clamp(36px, 4vw, 56px);
  padding-block: clamp(60px, 7vw, 90px) clamp(44px, 5vw, 64px);
}

.brand--footer { margin-bottom: 22px; }

.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--champagne);
  margin-bottom: 16px;
}

.footer-blurb {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--charcoal);
  background: var(--gold);
  transform: translateY(-3px);
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.footer-links li + li { margin-top: 12px; }

.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.66);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.footer-links a::before {
  content: "\2014";
  color: var(--gold);
  font-size: 11px;
}

.footer-links a:hover { color: var(--champagne); gap: 15px; }

.footer-contact li {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
}

.footer-contact li + li { margin-top: 16px; }

.footer-contact i {
  color: var(--gold);
  font-size: 13px;
  margin-top: 5px;
  width: 16px;
  flex: none;
  text-align: center;
}

.footer-contact b {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}

.footer-contact a:hover { color: var(--champagne); }

.newsletter-text { font-size: 13.5px; font-weight: 300; margin-bottom: 20px; }

.newsletter-form {
  display: flex;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.3s var(--ease);
}

.newsletter-form:focus-within { border-color: var(--gold); }

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 15px 18px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.38); }

.newsletter-form button {
  flex: none;
  padding: 0 20px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 15px;
  transition: background 0.3s var(--ease);
}

.newsletter-form button:hover { background: var(--champagne); }

.newsletter-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-error {
  margin-top: 10px;
  font-size: 12px;
  color: #ff9d9d;
  display: none;
}

.newsletter-error.is-visible { display: block; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.footer-earb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-earb i { color: var(--gold); }

.footer-legal { letter-spacing: 0.06em; }

/* ==========================================================================
   14. PAGE BANNERS & BREADCRUMBS
   ========================================================================== */
.page-banner {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 96px)) clamp(52px, 7vw, 84px);
  background: var(--charcoal);
  overflow: hidden;
}

.page-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 24, 0.72) 0%, rgba(15, 20, 24, 0.35) 60%, rgba(15, 20, 24, 0.85) 100%);
}

.page-banner__content { position: relative; z-index: 2; color: var(--white); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
}

.breadcrumb a { color: rgba(255, 255, 255, 0.75); transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--champagne); }
.breadcrumb i { color: var(--gold); font-size: 9px; }
.breadcrumb [aria-current="page"] { color: var(--champagne); }

.page-banner__title {
  color: var(--white);
  font-size: clamp(36px, 5.4vw, 64px);
  max-width: 22ch;
}

.page-banner__title em { font-style: italic; color: var(--champagne); }

.page-banner__sub {
  margin-top: 18px;
  max-width: 560px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
}

/* extra bottom room so the overlapping contact cards never collide with text */
.page-banner--overlap { padding-bottom: clamp(104px, 13vw, 156px); }

/* ==========================================================================
   15. FILTER TOOLBAR & RESULTS META
   ========================================================================== */
.listings-section { padding-top: clamp(44px, 6vw, 72px); }

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
  padding-block: 16px;
}

.filter-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1.25fr));
  gap: 12px;
}

.filter-field {
  position: relative;
}

.filter-field > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 13px;
  pointer-events: none;
}

.filter-input,
.filter-select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.filter-input { padding-left: 42px; }

.filter-input:focus,
.filter-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 44, 0.15);
}

.filter-select {
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23C9A22C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  text-overflow: ellipsis;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 30px;
}

.results-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.results-count b { color: var(--charcoal); }

.results-rule { flex: 1; height: 1px; background: var(--line); min-width: 40px; }

/* ==========================================================================
   16. EMPTY STATE
   ========================================================================== */
.empty-state {
  display: none;
  text-align: center;
  padding: clamp(60px, 9vw, 110px) 24px;
  background: var(--white);
  border: 1px dashed var(--line-gold);
  border-radius: var(--radius);
}

.empty-state.is-visible { display: block; animation: cardIn 0.6s var(--ease) both; }

.empty-state__icon {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-size: 26px;
  margin-bottom: 26px;
}

.empty-state__title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 12px;
}

.empty-state__text {
  max-width: 440px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   17. PROPERTY DETAIL
   ========================================================================== */
.pd-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
}

.pd-header__main .status-chip { margin-bottom: 18px; }

.pd-title { font-size: clamp(32px, 4.6vw, 54px); }

.pd-location {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-location i { color: var(--gold); }

.pd-price {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1.1;
}

.pd-price small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* gallery */
.gallery { margin-top: clamp(28px, 4vw, 44px); }

.gallery__main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--panel);
  box-shadow: var(--shadow-1);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 5s var(--ease);
}

.gallery__main img.is-swapping { opacity: 0; }

.gallery__main:hover img { transform: scale(1.04); }

.gallery__zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(15, 20, 24, 0.78);
  border: 1px solid rgba(234, 217, 160, 0.35);
  border-radius: 999px;
  color: var(--champagne);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.gallery__counter {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 6px 14px;
  background: rgba(15, 20, 24, 0.7);
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.18em;
  backdrop-filter: blur(6px);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gallery__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--panel);
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.75;
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumb:hover { opacity: 1; }

.gallery__thumb.is-active { border-color: var(--gold); opacity: 1; }

/* key facts strip */
.keyfacts {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.keyfact {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}

.keyfact:first-child { border-left: 0; }

.keyfact i {
  color: var(--gold);
  font-size: 20px;
  flex: none;
  width: 24px;
  text-align: center;
}

.keyfact__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.keyfact__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 3px;
  white-space: nowrap;
}

/* detail layout */
.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(36px, 5vw, 64px);
  margin-top: clamp(44px, 6vw, 72px);
  align-items: start;
}

.pd-section { margin-bottom: clamp(44px, 6vw, 64px); }

.pd-section__title {
  font-size: clamp(24px, 3vw, 32px);
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.pd-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 1px;
  background: var(--gold);
}

.pd-section p { color: var(--muted); font-size: 15.5px; }
.pd-section p + p { margin-top: 16px; }

/* features checklist */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature-item:hover { border-color: var(--line-gold); transform: translateX(4px); }

.feature-item i { color: var(--gold); font-size: 14px; flex: none; }

/* specification table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table tr + tr { border-top: 1px solid var(--line); }

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 16px 22px;
  font-size: 14px;
}

.spec-table th {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  width: 42%;
  background: var(--cream);
  border-right: 1px solid var(--line);
}

.spec-table td { color: var(--ink); }

/* neighbourhood */
.hood-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.hood-list li:first-child { border-top: 1px solid var(--line); }

.hood-list i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  color: var(--gold);
  font-size: 14px;
  flex: none;
}

.hood-list b { font-weight: 600; color: var(--charcoal); }

.hood-list span {
  margin-left: auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-deep);
  white-space: nowrap;
}

/* agent card + aside */
.pd-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }

.agent-card {
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 30px 28px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-dark);
}

.agent-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-dark);
}

.agent-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  flex: none;
}

.agent-name { font-size: 21px; color: var(--white); }

.agent-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-top: 5px;
}

.agent-card__note {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 22px;
}

.agent-card__note i { color: var(--gold); margin-right: 7px; }

.agent-actions { display: grid; gap: 12px; }

.agent-actions .btn { width: 100%; }

/* enquiry form card in aside */
.aside-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-1);
}

.aside-form-card h3 { font-size: 23px; margin-bottom: 6px; }

.aside-form-card > p { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

/* mortgage note */
.mortgage-note {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(201, 162, 44, 0.07);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.mortgage-note i { color: var(--gold); font-size: 17px; margin-top: 3px; flex: none; }

.mortgage-note b { font-weight: 600; }

/* ==========================================================================
   18. FORMS & VALIDATION
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; }

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 9px;
}

.form-field label span { color: var(--gold-deep); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.form-select {
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23C9A22C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #A9AEB4; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 44, 0.15);
}

.form-field.has-error .form-input,
.form-field.has-error .form-select,
.form-field.has-error .form-textarea {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.field-error {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #C0392B;
}

.field-error.is-visible { display: block; animation: cardIn 0.35s var(--ease) both; }

.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.form-note i { color: var(--gold); margin-right: 7px; }

/* ==========================================================================
   19. ABOUT PAGE
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.story-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.story-media img { width: 100%; height: 100%; object-fit: cover; }

.story-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(234, 217, 160, 0.45);
  border-radius: 2px;
  pointer-events: none;
}

.story-badge {
  position: absolute;
  left: 30px;
  bottom: 30px;
  z-index: 2;
  background: var(--charcoal);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--champagne);
}

.story-badge b {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--white);
  line-height: 1;
}

.story-badge span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.story-copy p { color: var(--muted); font-size: 15.5px; }
.story-copy p + p { margin-top: 16px; }

/* values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }

.value-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
  font-size: 18px;
  margin-bottom: 22px;
}

.value-card__title { font-size: 22px; margin-bottom: 12px; }

.value-card__text { font-size: 13.5px; color: var(--muted); }

/* timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }

.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 162, 44, 0.25) 100%);
}

.milestone { position: relative; padding-top: 34px; }

.milestone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--cream);
  transition: background 0.3s var(--ease);
}

.milestone:hover::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(201, 162, 44, 0.18); }

.milestone__year {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
}

.milestone__text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.team-card {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

.team-card:hover { transform: translateY(-6px); border-color: var(--line-gold); }

.team-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.team-name { font-size: 20px; color: var(--white); }

.team-role {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne);
}

.team-line {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

/* CSR strip */
.csr-strip {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  background: linear-gradient(120deg, rgba(201, 162, 44, 0.14), rgba(201, 162, 44, 0.03) 55%);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px);
}

.csr-num {
  font-family: var(--font-serif);
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-deep);
  white-space: nowrap;
}

.csr-num small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

.csr-body h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }

.csr-body h3 em { font-style: italic; color: var(--gold-deep); }

.csr-body p { color: var(--muted); font-size: 15px; max-width: 60ch; }

.csr-body p + p { margin-top: 12px; }

/* quote strip (about page) */
.quote-strip {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.quote-strip .tst-quote { font-size: clamp(21px, 2.8vw, 30px); }

/* ==========================================================================
   20. CONTACT PAGE
   ========================================================================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(-72px, -8vw, -96px);
  position: relative;
  z-index: 5;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }

.contact-card__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
  font-size: 19px;
  margin-bottom: 20px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.contact-card:hover .contact-card__icon { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

.contact-card__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--charcoal);
  margin-bottom: 10px;
}

.contact-card__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}

.contact-card__value small {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}

/* long values (email address) keep their natural break points */
.contact-card__value--sm { font-size: 16px; word-break: normal; overflow-wrap: anywhere; }

.contact-card a.contact-card__value:hover { color: var(--gold-deep); }

.contact-card__hint {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.office-card {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.office-card + .office-card { margin-top: 22px; }

.office-card h3 { color: var(--white); font-size: 22px; margin-bottom: 6px; }

.office-card__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--champagne);
}

.office-card address {
  font-style: normal;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  margin: 16px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.office-hours {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.office-hours i { color: var(--gold); }

.office-hours b { color: var(--white); font-weight: 600; }

.map-frame {
  position: relative;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--white);
  box-shadow: var(--shadow-1);
}

.map-frame__inner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  background: var(--panel);
}

/* styled underlay: visible until the map tiles paint, and a graceful
   fallback if embeds are blocked — the loaded iframe simply covers it */
.map-frame__inner::before {
  content: "\f3c5"; /* fa-location-dot */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 44px;
  color: var(--gold);
  opacity: 0.85;
  z-index: 0;
}

.map-frame__inner::after {
  content: "Westlands, Nairobi";
  position: absolute;
  left: 50%;
  top: calc(50% + 40px);
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--champagne);
  z-index: 0;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  z-index: 1; /* always covers the styled underlay once tiles paint */
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.9) contrast(1.02);
  transition: filter 0.6s var(--ease);
}

.map-frame:hover iframe { filter: grayscale(0.1); }

.map-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.map-caption i { color: var(--gold); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--charcoal);
  transition: color 0.3s var(--ease);
}

.faq-q:hover { color: var(--gold-deep); }

.faq-q .faq-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
  font-size: 13px;
  transition: transform 0.45s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.faq-item.is-open .faq-q { color: var(--gold-deep); }

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

.faq-a {
  display: none;
  padding: 0 4px 28px;
  max-width: 75ch;
}

.faq-a p { color: var(--muted); font-size: 15px; }
.faq-a p + p { margin-top: 12px; }
.faq-a b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   21. LIGHTBOX GALLERY
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 16, 0.94);
  backdrop-filter: blur(6px);
  padding: clamp(16px, 4vw, 60px);
}

.lightbox.is-open { display: flex; animation: fadeIn 0.35s var(--ease) both; }

.lightbox__stage {
  margin: 0;
  max-width: min(1100px, 92vw);
  width: 100%;
}

.lightbox__stage img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(234, 217, 160, 0.25);
  border-radius: var(--radius);
  animation: cardIn 0.45s var(--ease) both;
}

.lightbox__caption {
  text-align: center;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--champagne);
  letter-spacing: 0.04em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(234, 217, 160, 0.35);
  color: var(--champagne);
  font-size: 16px;
  background: rgba(15, 20, 24, 0.5);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

.lightbox__close { top: clamp(16px, 3vw, 36px); right: clamp(16px, 3vw, 36px); }
.lightbox__nav--prev { left: clamp(10px, 2.4vw, 30px); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(10px, 2.4vw, 30px); top: 50%; transform: translateY(-50%); }

body.lightbox-open { overflow: hidden; }

/* ==========================================================================
   22. TOAST & FLOATING BUTTONS
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(480px, calc(100vw - 32px));
  padding: 17px 26px;
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast i { color: var(--gold); font-size: 17px; flex: none; }

.toast--error { border-left-color: #C0392B; }
.toast--error i { color: #ff9d9d; }

.float-stack {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-whatsapp,
.back-to-top {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: var(--shadow-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease);
}

.float-whatsapp {
  position: relative;
  background: var(--wa-green);
  color: #fff;
}

.float-whatsapp:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 40px rgba(37, 211, 102, 0.45); }

.float-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--wa-green);
  animation: waPulse 2.4s var(--ease) infinite;
}

.back-to-top {
  background: var(--charcoal);
  color: var(--gold);
  border: 1px solid var(--line-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  font-size: 15px;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-4px); }

/* ==========================================================================
   23. REVEAL-ON-SCROLL & KEYFRAMES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal[data-delay="5"] { transition-delay: 0.6s; }

@keyframes kenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  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; }
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ==========================================================================
   24. MEDIA QUERIES
   ========================================================================== */

/* ----- large tablets / small laptops ≤ 1100px ----- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid, .team-grid, .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .timeline::before { display: none; }
  .filter-bar__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- tablets ≤ 1024px ----- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro__grid { grid-template-columns: 1fr; gap: 44px; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media { min-height: 340px; }
  .spotlight__media::after { background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 24, 0.55) 100%); }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-aside { position: static; }
  .story-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .keyfact { border-top: 1px solid var(--line); }
  .keyfact:nth-child(-n+3) { border-top: 0; }
  .keyfact:nth-child(odd) { border-left: 0; }
}

/* ----- large phones ≤ 768px ----- */
@media (max-width: 768px) {
  .hero { min-height: 560px; }
  .hero__content { padding-bottom: 90px; }
  .hero__scroll { display: none; }
  .cards-grid, .journal-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .stat__label { margin-top: 0; text-align: right; }
  .stat__num { font-size: clamp(40px, 10vw, 56px); }
  .csr-strip { grid-template-columns: 1fr; text-align: center; }
  .csr-body p { margin-inline: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- phones ≤ 640px ----- */
@media (max-width: 640px) {
  .filter-bar { position: static; }
  .filter-bar__inner { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyfact { border-left: 0; }
  .keyfact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .keyfact__value { white-space: normal; }
  .contact-cards { grid-template-columns: 1fr; }
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .brand__text { font-size: 18px; }
  .brand__mark { width: 36px; height: 36px; font-size: 19px; }
  .main-nav ul { padding-bottom: 20px; }
  .hero-arrow { display: none; }
  .hero__dots { bottom: 26px; }
  .cta-band__phone { flex-direction: column; text-align: center; margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-header { flex-direction: column; align-items: flex-start; }
  .gallery__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tst-arrow { display: none; }
  .section-head__row { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ==========================================================================
   25. ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.3s var(--ease);
}

.skip-link:focus { top: 14px; }

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

  .reveal { opacity: 1; transform: none; }
}
