/* Removed content-visibility: auto — its paint containment was clipping
   card/photo shadows. Images are still loading="lazy" decoding="async" so
   below-fold perf stays good. */

/* ========================================================================
   HERO — image expands on load (0.75→1 scale), heading word-drop
   ======================================================================== */
.hero {
  position: relative;
  padding: 140px 0 var(--s-80);
  background: var(--bg-primary);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-64);
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-content { max-width: 520px; }
.hero-content .label-ruled { margin-bottom: var(--s-24); }
.hero-heading {
  font-size: clamp(var(--fs-48), 5.5vw, var(--fs-88));
  line-height: 0.98;
  margin-bottom: var(--s-24);
  letter-spacing: -0.025em;
}
.hero-heading em { color: inherit; font-style: normal; font-weight: inherit; }
.hero-sub {
  font-size: var(--fs-18);
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: var(--s-32);
  max-width: 44ch;
}
.hero-ctas {
  display: flex;
  gap: var(--s-12);
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--elev-3);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform-origin: center;
}
.hero-glass-bottom {
  position: absolute;
  left: var(--s-16);
  right: var(--s-16);
  bottom: var(--s-16);
  z-index: 3;
  padding: var(--s-16) var(--s-20);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  background: rgba(255, 255, 255, 0.14);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  color: var(--text-light);
  display: flex;
  align-items: baseline;
  gap: var(--s-8);
  flex-wrap: wrap;
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 500;
}
.hero-glass-bottom .counter {
  font-family: var(--font-serif);
  font-size: var(--fs-32);
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
  margin-right: 2px;
}
.hero-glass-bottom .sep { opacity: 0.35; margin: 0 var(--s-4); }

@media (max-width: 900px) {
  .hero { padding: 120px 0 var(--s-64); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-40); }
  .hero-image-wrap { aspect-ratio: 16 / 10; max-height: 420px; }
}

/* ========================================================================
   SERVICES — flow header above the sticky card pin
   ======================================================================== */
.services-section-head {
  background: var(--blue-pale, #d4e0e6);
  padding: clamp(32px, 4vh, 56px) 0 0;
}
.services-section-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
}
.services-section-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  max-width: 560px;
  margin: 0 0 var(--s-16);
  color: var(--text-heading);
}
/* OUR PROGRAMS display text — centered, full-width, in flow */
.services-section-head .services-bg-title {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  overflow: visible;
  white-space: normal;
  padding-bottom: 0;
  display: block;
  width: 100%;
}
@media (max-width: 640px) {
  .services-section-head .services-bg-title {
    font-size: clamp(2rem, 13vw, 3.5rem);
  }
}

/* ========================================================================
   SERVICES — pin-stack (cards stack on top of each other as you scroll)
   Outer .services-section is tall (card-count × ~500vh). Inner .services-pin
   is position:sticky so viewport content pins while user scrolls. Each
   .service-card starts offscreen-below with tilt, settles into the stack.
   ======================================================================== */
.services-section {
  position: relative;
  background: var(--blue-pale, #d4e0e6);
  overflow: hidden;
}
.services-pin {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
/* Zone 2 — OUR SERVICES watermark. Own band below head, above cards. */
.services-bg-title {
  position: absolute;
  top: 17vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.5vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.services-bg-title .title-filled  { color: var(--text); opacity: 0.14; }
.services-bg-title .title-outlined {
  color: transparent;
  -webkit-text-stroke: 1px rgba(31, 42, 54, 0.28);
}

/* Head pinned to TOP of pin container — zone 1.
   `top` clears the floating nav pill (top:16 + height ≈72) so the heading
   isn't sliced by the nav while the section is pinned. */
.services-head {
  position: absolute;
  top: var(--s-120);
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--s-32);
  z-index: 4;
}
.services-head h2 {
  max-width: 560px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  margin-top: var(--s-16);
}
.services-head .services-head-meta {
  font-family: var(--font-sans);
  font-size: var(--fs-11);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-muted);
}
.services-head .services-head-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-48);
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--s-4);
}

/* Card stage — absolutely-positioned cards centered within the 100vh pin */
.service-cards {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.service-card {
  position: absolute;
  top: 8vh;
  bottom: 4vh;
  left: 50%;
  width: min(92vw, 1180px);
  height: auto;
  min-height: 380px;
  border-radius: var(--radius-xl, 28px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 16px rgba(31, 42, 54, 0.08), 0 16px 32px rgba(31, 42, 54, 0.07);
  background: var(--bg-hero, #bccdd5);
  will-change: transform, opacity;
  transform-origin: center bottom;
}
/* Shorter, lighter overlay — cream-tinted glass, minimal padding */
.service-card .glass-overlay-bottom {
  /* Compact pill anchored to the BOTTOM-RIGHT corner */
  top: auto;
  bottom: var(--s-20);
  left: auto;
  right: var(--s-20);
  width: auto;
  max-width: min(380px, 60%);
  padding: var(--s-14) var(--s-20);
  border-radius: var(--radius-md);
  /* Bright white frosted glass — works as canvas for dark navy text */
  background: rgba(255, 255, 255, 0.6);
  border: 0.5px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--text);
  text-shadow: none;
}
/* Dark navy text — always legible on the bright frosted glass */
.service-card .glass-overlay-bottom .label {
  color: var(--text-soft, #5a6576);
  font-weight: 700;
  font-size: 10px;
  margin-bottom: 2px;
}
.service-card .glass-overlay-bottom h3 {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  margin-bottom: 2px;
}
.service-card .glass-overlay-bottom p {
  color: var(--text-soft, #5a6576);
  font-size: var(--fs-14);
  line-height: 1.3;
  margin-bottom: 2px;
}
.service-card .glass-overlay-bottom a {
  color: var(--text);
  border-bottom-color: var(--text);
  font-size: var(--fs-14);
  font-weight: 500;
}
.service-card .glass-overlay-bottom .label {
  font-size: 10px;
  margin-bottom: 2px;
  color: var(--text-soft, #5a6576);
}
.service-card .glass-overlay-bottom h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text);
}
.service-card .glass-overlay-bottom p {
  font-size: var(--fs-14);
  color: var(--text-soft, #5a6576);
  margin-bottom: 0;
}

/* Subtle darken at the bottom — aids glass-overlay legibility in that corner */
.service-card::after {
  background: linear-gradient(180deg,
    rgba(31, 42, 54, 0) 55%,
    rgba(31, 42, 54, 0.14) 100%);
}
.service-card:nth-child(1) { z-index: 3; }
.service-card:nth-child(2) { z-index: 4; }
.service-card:nth-child(3) { z-index: 5; }
.service-card:nth-child(4) { z-index: 6; }
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 42, 54, 0) 35%, rgba(31, 42, 54, 0.7) 100%);
  z-index: 1;
}
.service-card .glass-overlay-bottom {
  z-index: 3;
  padding: var(--s-24) var(--s-32);
}
.service-card .glass-overlay-bottom h3 {
  font-size: clamp(var(--fs-32), 3.5vw, var(--fs-48));
  margin-bottom: var(--s-4);
}

/* Fallback: if GSAP doesn't load, .no-gsap makes section a plain vertical stack */
.no-gsap .services-section { height: auto; }
.no-gsap .services-pin { position: static; height: auto; display: block; }
.no-gsap .service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-20);
  max-width: 640px;
  padding-bottom: var(--s-64);
}
.no-gsap .service-card {
  position: static;
  transform: none;
  width: 100%;
  max-height: none;
}

@media (max-width: 768px) {
  .services-section { height: auto; }
  .service-card {
    width: min(92vw, 480px);
    top: 6vh;
    bottom: 4vh;
    height: auto;
  }
  .service-card .glass-overlay-bottom h3 { font-size: var(--fs-32); }
  .services-bg-title { font-size: clamp(4rem, 18vw, 8rem); }
}

/* ========================================================================
   WHY NEW ERA — plain 2-col grid with 2x2 photo mosaic (no sticky/pin)
   ======================================================================== */
.why-section {
  background: var(--bg-primary);
  padding: var(--s-120) 0;
  position: relative;
}
.why-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-64);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  align-items: center;
}
.why-left { max-width: 480px; }
.why-left .label-ruled { margin-bottom: var(--s-20); }
.why-left h2 { margin-bottom: var(--s-24); }
.why-left p { font-size: var(--fs-18); line-height: 1.55; margin-bottom: var(--s-32); }
.badges {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  padding: var(--s-12) var(--s-20);
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  color: var(--text-heading);
  font-size: var(--fs-14);
  font-weight: 400;
  width: fit-content;
  max-width: 100%;
}
.badge svg { color: var(--gold); width: 16px; height: 16px; flex: 0 0 auto; }

.why-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
}
/* Photo item — slide from alternating sides (odd = left, even = right) */
.photo-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(31, 42, 54, 0.08), 0 14px 28px rgba(31, 42, 54, 0.06);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}
.photo-item:nth-child(odd)  { transform: translate3d(-70px, 0, 0); }
.photo-item:nth-child(even) { transform: translate3d(70px, 0, 0); }
.photo-item.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.photo-item:nth-child(1) { transition-delay: 0s; }
.photo-item:nth-child(2) { transition-delay: 0.1s; }
.photo-item:nth-child(3) { transition-delay: 0.2s; }
.photo-item:nth-child(4) { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .photo-item { opacity: 1; transform: none; transition: none; }
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-item .glass-overlay-top {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  /* Match the service-card glass treatment — strong white frosted + dark
     navy text reads cleanly over any photo. */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
  text-shadow: none;
}
/* Offset alternating tiles for editorial rhythm */
.photo-item:nth-child(1) { margin-top: var(--s-32); }
.photo-item:nth-child(4) { margin-top: var(--s-32); }

@media (max-width: 900px) {
  .why-wrap { grid-template-columns: 1fr; gap: var(--s-40); }
  .why-left { max-width: none; }
  .photo-item:nth-child(1),
  .photo-item:nth-child(4) { margin-top: 0; }
}

/* ========================================================================
   HOW IT WORKS — alternating slide-in
   ======================================================================== */
.how-it-works {
  background: var(--blue-pale, #d4e0e6);
  padding: var(--s-120) 0;
}
.how-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s-80);
  padding: 0 var(--gutter);
}
.how-head .label-ruled { justify-content: center; margin-bottom: var(--s-20); }
.how-head h2 { margin-bottom: var(--s-16); }
.how-head p { font-size: var(--fs-18); color: var(--text-body); }

.how-steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-48);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Double-Bezel: outer shell around inner padded core */
.step-block {
  padding: 6px;
  background: rgba(31, 42, 54, 0.04);
  border: 1px solid rgba(31, 42, 54, 0.06);
  border-radius: calc(var(--radius-lg) + 6px);
  display: grid;
  grid-template-columns: 1fr;
  transition: transform var(--dur-slow) cubic-bezier(0.32, 0.72, 0, 1);
}
.step-block:hover { transform: translateY(-2px); }

/* Step blocks reveal by sliding from alternating sides (odd→left, even→right).
   Overrides the generic .fade-up vertical translation. */
.step-block.fade-up { transform: translate3d(-90px, 0, 0); }
.step-block.fade-up:nth-child(even) { transform: translate3d(90px, 0, 0); }
.step-block.fade-up.in { transform: translate3d(0, 0, 0); }
@media (max-width: 768px) {
  .step-block.fade-up,
  .step-block.fade-up:nth-child(even) { transform: translate3d(0, 28px, 0); }
}
.step-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-40);
  align-items: start;
  padding: var(--s-32);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 0 0 0.5px rgba(31, 42, 54, 0.04);
}
.step-block:nth-child(even) .step-inner { grid-template-columns: 1fr 120px; }
.step-block:nth-child(even) .step-num { grid-column: 2; grid-row: 1; }
.step-block:nth-child(even) .step-body { grid-column: 1; grid-row: 1; text-align: right; }

.step-num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(var(--fs-72), 10vw, 8rem);
  color: var(--text);
  line-height: 0.8;
  letter-spacing: -0.03em;
  grid-column: 1;
}
.step-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(var(--fs-32), 3.5vw, var(--fs-48));
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-8);
}
.step-body .step-kicker {
  font-family: var(--font-sans);
  font-size: var(--fs-11);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-8);
  display: block;
}
.step-body p { font-size: var(--fs-16); max-width: 56ch; }
.step-block:nth-child(even) .step-body p { margin-left: auto; }

@media (max-width: 768px) {
  .step-inner,
  .step-block:nth-child(even) .step-inner { grid-template-columns: 80px 1fr; padding: var(--s-24); gap: var(--s-20); }
  .step-block:nth-child(even) .step-num { grid-column: 1; grid-row: auto; }
  .step-block:nth-child(even) .step-body { grid-column: 2; grid-row: auto; text-align: left; }
  .step-block:nth-child(even) .step-body p { margin-left: 0; }
  .step-num { font-size: var(--fs-72); }
  .step-body h3 { font-size: var(--fs-32); }
}

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */
.testimonials {
  background: var(--bg-primary);
  padding: var(--s-120) 0;
}
.testimonials-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-32);
  max-width: var(--container);
  margin: 0 auto var(--s-64);
  padding: 0 var(--gutter);
}
.testimonials-head h2 { max-width: 620px; margin-top: var(--s-20); }
.testimonials-head .rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-8) var(--s-16);
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-heading);
}
.rating-badge svg { color: var(--gold); width: 14px; height: 14px; }

/* Asymmetric grid — 2 wider cards on top, 3 narrower below. Cards stretch
   to equal heights per row so everything aligns cleanly. */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-24);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.testimonials-grid .testimonial-card:nth-child(1),
.testimonials-grid .testimonial-card:nth-child(2) { grid-column: span 3; }
.testimonials-grid .testimonial-card:nth-child(3),
.testimonials-grid .testimonial-card:nth-child(4),
.testimonials-grid .testimonial-card:nth-child(5) { grid-column: span 2; }

/* Reveal animation — bigger slide than the default .fade-up + per-card
   stagger delays so the row appears in sequence rather than all at once.
   Cards already get .fade-up auto-applied; we just override the values. */
.testimonial-card.fade-up { transform: translate3d(0, 48px, 0); }
.testimonial-card.fade-up.in { transform: translate3d(0, 0, 0); }
.testimonial-card.fade-up { transition-duration: 0.85s; }
.testimonials-grid .testimonial-card.fade-up:nth-child(1) { transition-delay: 0s; }
.testimonials-grid .testimonial-card.fade-up:nth-child(2) { transition-delay: 0.08s; }
.testimonials-grid .testimonial-card.fade-up:nth-child(3) { transition-delay: 0.18s; }
.testimonials-grid .testimonial-card.fade-up:nth-child(4) { transition-delay: 0.28s; }
.testimonials-grid .testimonial-card.fade-up:nth-child(5) { transition-delay: 0.38s; }

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card { grid-column: span 1; }
  .testimonials-grid .testimonial-card:last-child { grid-column: 1 / -1; }
}
/* Carousel dots — base (hidden). Must come BEFORE the breakpoint so the
   media query's display:flex wins in the cascade. */
.tst-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-20);
  padding: 0 var(--gutter);
}
.tst-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong, rgba(31,42,54,.22));
  transition: background .25s, width .25s, border-radius .25s;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.tst-dot.is-active {
  background: var(--text-heading, #1f2a36);
  width: 20px;
  border-radius: 3px;
}

@media (max-width: 560px) {
  .testimonials { padding-bottom: var(--s-48); }
  .testimonials-head { grid-template-columns: 1fr; gap: var(--s-12); }
  .testimonials-head .rating-badge { justify-self: start; }

  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding: var(--s-8) 0;
    margin: 0;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }

  .testimonials-grid .testimonial-card,
  .testimonials-grid .testimonial-card:last-child {
    flex: 0 0 86vw;
    min-width: 0;
    grid-column: unset;
    scroll-snap-align: center;
    margin: 0 5px;
  }
  .testimonials-grid .testimonial-card:first-child { margin-left: 7vw; }
  .testimonials-grid .testimonial-card:last-child  { margin-right: 7vw; }

  .tst-dots { display: flex; }
}
/* Double-Bezel architecture: outer shell hairline + inner core with inset highlight */
.testimonial-card {
  /* Outer shell */
  padding: 6px;
  border-radius: calc(var(--radius-lg) + 6px);
  background: rgba(31, 42, 54, 0.04);
  border: 1px solid rgba(31, 42, 54, 0.06);
  transition: transform var(--dur-slow) cubic-bezier(0.32, 0.72, 0, 1), box-shadow var(--dur-slow) cubic-bezier(0.32, 0.72, 0, 1);
}
.testimonial-card > * { grid-column: 1 / -1; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--elev-2); }
/* Inner core */
.testimonial-card {
  display: grid;
  grid-template-rows: auto;
  gap: 0;
}
.testimonial-card-inner {
  padding: var(--s-32);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 0 0 0.5px rgba(31, 42, 54, 0.04);
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  height: 100%;
}
.testimonial-card .stars { display: flex; gap: 3px; color: var(--gold); font-size: var(--fs-14); }
.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-size: var(--fs-20);
  line-height: 1.35;
  font-style: normal;
  color: var(--text);
  font-weight: 400;
  flex: 1;
}
.testimonial-card .tst-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--s-16);
  border-top: 1px solid var(--border);
}
.testimonial-card .tst-meta .name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-14);
  color: var(--text-heading);
}
.testimonial-card .tst-meta .role {
  font-size: var(--fs-12);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 3 + 2 layout: second row has 2 cards centered */
.testimonials-grid {
  grid-auto-rows: 1fr;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   CTA BANNER — light (blue-pale-3) bg with dark text per styling guide
   ======================================================================== */
.cta-banner {
  /* Plain fallback color — the Unicorn Studio canvas covers this once it
     loads. Solid color shows during lazy-load + as a fallback if WebGL fails. */
  background: var(--blue-pale-3);
  color: var(--text);
  padding: var(--s-120) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  min-height: 540px;
}
/* Unicorn Studio WebGL backdrop — fills the section, sits below textures + content */
.cta-unicorn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Pastel but visible — modest brightness lift, mild desaturation, normal
     contrast so the scene's motion + bands still read clearly. */
  filter: brightness(1.18) saturate(0.65) contrast(1);
}
.cta-unicorn canvas { display: block; width: 100% !important; height: 100% !important; }
/* Light wash so it still feels pastel, not full opacity */
.cta-unicorn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
/* Make sure the content sits on top of the WebGL backdrop */
.cta-banner > .container { position: relative; z-index: 1; }
/* Word-split fallback: if GSAP ScrollTrigger doesn't fire for cta-heading
   (the Unicorn Studio canvas insertion can stale the trigger position),
   the words stay at translateY(105%) and are invisible. Force visible. */
.cta-heading .word-inner { transform: translateY(0) !important; }
.cta-banner .label-ruled {
  justify-content: center;
  color: var(--text);
  margin-bottom: var(--s-20);
}
.cta-banner .label-ruled::before { background: var(--text); }
.cta-heading {
  font-size: clamp(var(--fs-48), 7vw, var(--fs-88));
  color: var(--text);
  max-width: 860px;
  margin: 0 auto var(--s-40);
  letter-spacing: -0.025em;
  line-height: 1;
}
.cta-heading em { color: inherit; font-style: normal; }
.cta-buttons {
  display: flex;
  gap: var(--s-12);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================================
   Generic page hero (other pages)
   ======================================================================== */
.page-hero {
  padding: 160px 0 var(--s-88);
  background: var(--bg-primary);
  text-align: center;
  position: relative;
}
.page-hero .label-ruled { justify-content: center; margin-bottom: var(--s-20); }
.page-hero h1 { max-width: 820px; margin: 0 auto var(--s-20); line-height: 1.05; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: var(--fs-18); }

/* ========================================================================
   Scroll-video intro (sits above the regular hero)
   400vh of scroll height; canvas pinned to viewport while user scrubs.
   ======================================================================== */
#hero-zone {
  position: relative;
  height: 950vh;
  background: #000;
}
@media (max-width: 768px) {
  #hero-zone { height: 450vh; }
}
#hero-pin {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Promote to its own GPU layer so paint isn't blocked by anything else
     scrolling under it. */
  will-change: transform;
  transform: translateZ(0);
}
.hero-zone-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.45) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 25%, transparent 70%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
}
.hero-zone-cue {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.5s ease;
  animation: heroCueBounce 2.4s ease-in-out infinite;
}
.hero-zone-cue svg {
  width: 18px;
  height: 18px;
}
#hero-zone.scrolled .hero-zone-cue {
  opacity: 0;
}
@keyframes heroCueBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  #hero-zone {
    height: 100vh;
    height: 100dvh;
  }
  .hero-zone-cue { animation: none; }
}

/* ----- Liquid-glass copy card (left side, reveals near end of scrub) -----
   IMPORTANT: backdrop-filter is OFF until .revealed. With it always on the
   GPU computes a 540px-wide blur of the canvas behind it on every paint —
   tanks the scrub framerate. Apply it only when actually visible. */
.hero-zone-copy {
  position: absolute;
  left: clamp(20px, 5vw, 80px);
  top: 50%;
  transform: translate3d(-32px, -50%, 0);
  opacity: 0;
  width: min(540px, calc(100vw - 40px));
  padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  color: #f5efe5;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              visibility 0s linear 0.9s;
  z-index: 3;
}
.hero-zone-copy.revealed {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
  pointer-events: auto;
  visibility: visible;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              visibility 0s linear 0s;
}
.hero-zone-copy > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-zone-copy.revealed > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hero-zone-copy.revealed > .hero-label  { transition-delay: 0.05s; }
.hero-zone-copy.revealed > .hero-heading { transition-delay: 0.18s; }
.hero-zone-copy.revealed > .hero-sub     { transition-delay: 0.32s; }
.hero-zone-copy.revealed > .hero-ctas    { transition-delay: 0.46s; }

.hero-zone-copy .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
}
.hero-zone-copy .hero-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}
.hero-zone-copy .hero-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 18px;
}
.hero-zone-copy .hero-heading em {
  font-style: italic;
  color: #f0e6d4;
}
.hero-zone-copy .hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
}
.hero-zone-copy .hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-zone-copy .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.hero-zone-copy .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
}

/* Hide the scroll cue once the copy reveals */
#hero-zone.revealed .hero-zone-cue { opacity: 0; }

/* Mobile: full-width card pinned near the bottom */
@media (max-width: 768px) {
  .hero-zone-copy {
    left: 16px;
    right: 16px;
    width: auto;
    top: auto;
    bottom: calc(14vh + env(safe-area-inset-bottom, 0px));
    transform: translate3d(0, 24px, 0);
  }
  .hero-zone-copy.revealed {
    transform: translate3d(0, 0, 0);
  }
}

/* ----- Nav hides during hero-zone, fades in past it -----
   Note: .nav uses `transform: translateX(-50%)` for centering, so any override
   must preserve that translateX or the pill jumps off-center.
   IMPORTANT: backdrop-filter is OFF while hidden — browsers compute the blur
   regardless of opacity, so a hidden full-width pill running blur(18px) on
   every paint tanks the scroll-video framerate. */
body.has-hero-zone .nav {
  opacity: 0;
  transform: translateX(-50%) translateY(-16px);
  pointer-events: none;
  visibility: hidden;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
  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),
              visibility 0s linear 0.7s;
}
body.has-hero-zone .nav.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
  background: rgba(245, 240, 232, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: rgba(31, 42, 54, 0.1);
  box-shadow: var(--elev-1);
  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),
              visibility 0s linear 0s;
}
