/* ============================================================
   BILL BRIDGE RCM — Main Stylesheet
   Sections: Variables · Reset · Typography · Nav · Hero ·
             Trust Bar · Services · Pain Points · Process ·
             CTA · Footer · Reveal
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --ink: #0E1812;
  --ink-60: rgba(14, 24, 18, 0.6);
  --ink-20: rgba(14, 24, 18, 0.12);
  --cream: #F5F2EC;
  --cream-dark: #EDE9E1;
  --sage: #0A8688;
  --sage-lt: #1A8081;
  --sage-pale: #e6f4f4;
  --gold: #B8923A;
  --gold-lt: #E8C97A;
  --gold-pale: #F7EED8;
  --white: #FFFFFF;
  --charcoal: #0A8688;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --radius: 4px;
}

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
.serif {
  font-family: 'Cormorant Garamond', serif;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  padding: 22px 0;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease);
}

nav.scrolled {
  padding: 14px 0;
  background: rgba(245, 242, 236, 0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--ink-20);
}

.nav-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.3s;
}

.logo-mark:hover {
  opacity: 0.82;
}

.logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 220px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}

nav.dark-hero-nav:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.95 !important;
}

.logo-img-footer {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 44px;
}

nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
  letter-spacing: 0.3px;
  transition: color 0.3s;
  position: relative;
}

nav a:not(.nav-cta):hover {
  color: var(--ink);
}

nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

nav a:not(.nav-cta):hover::after {
  width: 100%;
}

nav a.nav-cta {
  background: var(--charcoal);
  color: var(--cream);
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.2s;
}

nav a.nav-cta:hover {
  background: #087a7c;
  transform: translateY(-1px);
}

nav a.nav-cta::after {
  display: none;
}

/* ── FOCUS VISIBLE ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 148px 0 100px;
  position: relative;
  overflow: hidden;
  background: #0A8688;
}

/* ── HERO ARCHITECTURAL IMAGE LAYER ──
   <img> tag absolutely positioned, styled here.
   Luminosity blend at higher opacity — visible but atmospheric.
   A gradient overlay sibling fades the right side out. */
.hero-img-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-img-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.48;
  mix-blend-mode: normal;
  animation: imgLayerDrift 60s ease-in-out infinite alternate;
  transform-origin: center center;
  transform: scale(1.04);
}

/* Single clean overlay: right-fade dissolves image into KPI panel zone.
   No cream veil — the image's own softness handles the atmosphere. */
.hero-img-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      transparent 0%,
      transparent 38%,
      rgba(245, 242, 236, 0.55) 56%,
      rgba(245, 242, 236, 0.92) 68%,
      var(--cream) 78%);
  pointer-events: none;
}

/* Atmospheric background elements — cinematic orbs, very slow, barely perceptible */
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hbc-1 {
  width: 1100px;
  height: 1100px;
  right: -320px;
  top: -320px;
  background: radial-gradient(circle,
      rgba(10, 134, 136, 0.07) 0%,
      rgba(10, 134, 136, 0.025) 45%,
      transparent 70%);
  animation: orb1Drift 52s ease-in-out infinite alternate;
}

.hbc-2 {
  width: 700px;
  height: 700px;
  left: -180px;
  bottom: -180px;
  background: radial-gradient(circle,
      rgba(184, 146, 58, 0.055) 0%,
      rgba(184, 146, 58, 0.015) 48%,
      transparent 70%);
  animation: orb2Drift 64s ease-in-out infinite alternate;
}

.hbc-3 {
  width: 500px;
  height: 500px;
  left: 38%;
  top: 12%;
  background: radial-gradient(circle,
      rgba(10, 134, 136, 0.04) 0%,
      transparent 68%);
  animation: orb3Drift 78s ease-in-out infinite alternate;
}

/* Light sweep retired — the architectural image contains the real light beam */
.hero-light-sweep {
  display: none;
}

/* ── LEFT HERO CINEMATIC ATMOSPHERE SYSTEM ── */
.hero-left-glow {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

/* PRIMARY: warm ambient fill — reduced since image now provides warmth */
.hlg-gold {
  display: none;
}

.hlg-sage {
  display: none;
}

.hlg-focal {
  display: none;
}

/* WORD ANCHOR: very subtle gold warmth behind the italic "actually" */
.hlg-haze {
  width: 320px;
  height: 200px;
  top: 38%;
  left: 10%;
  background: radial-gradient(ellipse 68% 55% at 50% 50%,
      rgba(184, 146, 58, 0.09) 0%,
      rgba(184, 146, 58, 0.04) 45%,
      transparent 70%);
  filter: blur(24px);
  animation: hazeDrift 28s ease-in-out infinite alternate;
}

/* Grain texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.028'/%3E%3C/svg%3E");
  background-size: 220px;
  pointer-events: none;
  z-index: 1;
  animation: grainShift 14s steps(2) infinite;
}

/* Cinematic vignette only — mesh gradients retired, image provides tonal variation */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 80% at 38% 50%,
      transparent 0%,
      transparent 42%,
      rgba(10, 134, 136, 0.03) 62%,
      rgba(10, 134, 136, 0.07) 80%,
      rgba(10, 134, 136, 0.12) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Hero left */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 9px 20px 9px 9px;
  background: rgba(10, 134, 136, 0.12);
  border: 1px solid rgba(184, 146, 58, 0.2);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-60);
  box-shadow: 0 2px 16px rgba(10, 134, 136, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(184, 146, 58, 0.18), rgba(184, 146, 58, 0.08));
  border: 1px solid rgba(184, 146, 58, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.eyebrow-dot svg {
  width: 10px;
  height: 10px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(60px, 6.8vw, 96px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 36px;
  letter-spacing: -2.5px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero h1 .line-inner {
  display: block;
  animation: lineReveal 1s var(--ease) both;
}

.hero h1 .line:nth-child(2) .line-inner {
  animation-delay: 0.15s;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  animation: fadeUp 1s 0.36s var(--ease) both;
}

.hts-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold-lt);
  flex-shrink: 0;
}

.hts-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.9);
}

.hero-desc {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-60);
  max-width: 460px;
  margin-bottom: 52px;
  font-weight: 300;
  letter-spacing: 0.1px;
  animation: fadeUp 1s 0.4s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1s 0.55s var(--ease) both;
}

/* Buttons */
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 17px 38px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: background 0.5s var(--ease), transform 0.35s var(--ease);
  border: 1.5px solid var(--charcoal);
}

.btn-ink:hover {
  background: #087a7c;
  border-color: var(--sage);
  transform: translateY(-1px);
}

.btn-ink svg {
  width: 15px;
  height: 15px;
  transition: transform 0.4s var(--ease);
}

.btn-ink:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 242, 236, 0.1);
  color: var(--cream);
  padding: 17px 34px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  border: 1.5px solid rgba(245, 242, 236, 0.45);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.35s var(--ease);
}

.btn-ghost:hover {
  border-color: rgba(245, 242, 236, 0.75);
  background: rgba(245, 242, 236, 0.2);
  transform: translateY(-1px);
}

/* Hero Right Side */
.hero-right {
  position: relative;
  animation: fadeUp 1.1s 0.3s var(--ease) both;
}

.hero-panel {
  background: rgba(10, 100, 104, 0.55);
  border: 1px solid rgba(10, 134, 136, 0.3);
  border-radius: 28px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(10, 134, 136, 0.35), 0 0 0 1px rgba(10, 134, 136, 0.15) inset;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle,
      rgba(10, 134, 136, 0.08) 0%,
      rgba(10, 134, 136, 0.03) 50%,
      transparent 70%);
  border-radius: 50%;
  animation: panelGlow 28s ease-in-out infinite alternate;
}

.hero-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(184, 146, 58, 0.055) 0%, transparent 68%);
  border-radius: 50%;
}

.panel-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.95;
}

.panel-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-lt);
}

.hero-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-panel>p {
  font-size: 13.5px;
  color: rgba(245, 242, 236, 0.95);
  line-height: 1.78;
  margin-bottom: 28px;
  font-weight: 400;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 24px;
  background: rgba(10, 134, 136, 0.08);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(10, 134, 136, 0.12);
}

.kpi {
  padding: 20px 16px;
  text-align: center;
  background: rgba(10, 100, 104, 0.5);
  transition: background 0.4s var(--ease);
}

.kpi:hover {
  background: rgba(10, 120, 122, 0.65);
}

.kpi-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.kpi-num span {
  color: var(--gold-lt);
}

.kpi-label {
  font-size: 10px;
  color: rgba(245, 242, 236, 0.75);
  margin-top: 6px;
  line-height: 1.4;
  letter-spacing: 0.4px;
}

.rate-badge {
  background: rgba(10, 100, 104, 0.5);
  border: 1px solid rgba(10, 134, 136, 0.3);
  border-top: 1px solid rgba(184, 146, 58, 0.4);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  transition: background 0.4s, border-color 0.4s;
}

.rate-badge:hover {
  background: rgba(10, 120, 122, 0.65);
  border-top-color: rgba(184, 146, 58, 0.4);
}

.rate-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 500;
  color: var(--gold-lt);
  letter-spacing: -2px;
  line-height: 1;
}

.rate-info {
  flex: 1;
}

.rate-title {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 4px;
}

.rate-sub {
  font-size: 11.5px;
  color: rgba(245, 242, 236, 0.75);
  letter-spacing: 0.3px;
}

/* Floating chips */
.chip {
  position: absolute;
  background: var(--white);
  border-radius: 100px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(10, 134, 136, 0.12), 0 2px 8px rgba(10, 134, 136, 0.08);
  white-space: nowrap;
  z-index: 10;
}

.chip svg {
  width: 14px;
  height: 14px;
}

.chip-top {
  top: -20px;
  right: -20px;
  animation: chipFloat 8s ease-in-out infinite;
}

.chip-bot {
  bottom: -20px;
  left: 24px;
  animation: chipFloat 8s ease-in-out infinite reverse 4s;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-dot.green {
  background: var(--sage);
}

.chip-dot.gold {
  background: var(--gold);
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--charcoal);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}

.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.trust-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--charcoal), transparent);
}

.trust-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--charcoal), transparent);
}

.trust-track {
  display: flex;
  gap: 80px;
  animation: marquee 22s linear infinite;
  width: max-content;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* ── INSURANCE LOGO MARQUEE ── */
.logo-marquee-section {
  padding: 100px 0 60px;
  background: var(--cream);
  text-align: center;
}

.logo-marquee {
  margin-top: 50px;
  overflow: hidden;
  position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: logoSlide 30s linear infinite;
  width: max-content;
}

.logo-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 10px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-marquee-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo-marquee-item img {
  max-height: 40px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-marquee-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes logoSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── INTEGRATIONS (CLEARINGHOUSE & EMR) ── */
.integrations-section {
  padding: 100px 0;
  background: var(--charcoal);
}

.integrations-section .section-eyebrow,
.integrations-section .section-title {
  color: white;
  text-align: center;
}

.integrations-section .section-title em {
  color: var(--gold);
}

.integrations-grid {
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.integration-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.integration-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

.integration-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 191, 143, 0.12);
  border-radius: 12px;
  margin-bottom: 20px;
}

.integration-icon svg {
  width: 24px;
  height: 24px;
  color: var(--sage);
}

.integration-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: white;
  margin-bottom: 12px;
}

.integration-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

.integration-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.integration-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.integration-list li:hover {
  background: rgba(168, 191, 143, 0.12);
  border-color: rgba(168, 191, 143, 0.3);
}

/* ── SERVICES ── */
.services {
  padding: 130px 0;
  background: var(--cream-dark);
}

.section-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-eyebrow {
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--sage);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 70px;
  max-width: 680px;
}

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

/* RCM Feature Card */
.rcm-hero-card {
  background: var(--charcoal);
  border-radius: 28px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(10, 134, 136, 0.14);
}

.rcm-hero-card::before {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 146, 58, 0.12) 0%, transparent 68%);
  border-radius: 50%;
}

.rcm-hero-card::after {
  content: '';
  position: absolute;
  left: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(10, 134, 136, 0.1) 0%, transparent 68%);
  border-radius: 50%;
}

.rcm-left {
  position: relative;
  z-index: 1;
}

.rcm-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rcm-tag svg {
  width: 12px;
  height: 12px;
}

.rcm-hero-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.rcm-hero-card>.rcm-left>p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 36px;
}

.rcm-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rcm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.rcm-check svg {
  width: 15px;
  height: 15px;
  color: var(--gold-lt);
  flex-shrink: 0;
}

.rcm-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.rcm-price-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 44px;
  text-align: center;
  min-width: 220px;
}

.rcm-rate {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 600;
  color: var(--gold-lt);
  letter-spacing: -3px;
  line-height: 0.9;
}

.rcm-rate-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.8);
  margin-top: 14px;
  margin-bottom: 28px;
}

.rcm-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.rcm-payout {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.5px;
}

.rcm-payout-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
}

/* Service Cards Grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.svc-card {
  background: var(--cream);
  border: 1px solid var(--ink-20);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--sage), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.svc-card:hover {
  border-color: rgba(10, 134, 136, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(10, 134, 136, 0.09);
}

.svc-card:hover::before {
  transform: scaleX(1);
}

.svc-icon {
  width: 52px;
  height: 52px;
  background: var(--sage-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  margin-bottom: 24px;
}

.svc-icon svg {
  width: 22px;
  height: 22px;
}

.svc-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.svc-card p {
  font-size: 14.5px;
  color: var(--ink-60);
  line-height: 1.75;
}

.svc-arrow {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sage);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.svc-card:hover .svc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Wide card */
.svc-card.wide {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 36px 44px;
}

.svc-card.wide .svc-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.svc-card.wide h4 {
  margin-bottom: 8px;
}

/* ── PAIN POINTS ── */
.pain {
  padding: 130px 0;
  background: var(--cream);
}

.pain-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.pain-text {
  padding-top: 20px;
}

.pain h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 4.5vw, 60px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

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

.pain-desc {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.85;
  margin-bottom: 52px;
  max-width: 420px;
}

.pain-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-card {
  display: flex;
  gap: 22px;
  padding: 28px;
  background: var(--cream-dark);
  border-radius: 18px;
  border: 1px solid rgba(10, 134, 136, 0.15);
  border-left: 3px solid var(--gold);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pain-card:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 28px rgba(10, 134, 136, 0.08);
}

.pain-card-icon {
  width: 42px;
  height: 42px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.pain-card-icon svg {
  width: 18px;
  height: 18px;
}

.pain-card h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.pain-card p {
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.65;
}

/* Visual side */
.pain-visual {
  position: sticky;
  top: 130px;
}

.pain-img-wrap {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  height: 580px;
  box-shadow: 0 32px 64px rgba(10, 134, 136, 0.14);
}

.pain-img {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(10, 134, 136, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(184, 146, 58, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 55% 40%, rgba(26, 128, 129, 0.12) 0%, transparent 60%),
    linear-gradient(150deg, #0A8688 0%, #0D9496 35%, #087072 70%, #0A8688 100%);
}

.pain-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(10, 134, 136, 0.08) 0%, rgba(10, 134, 136, 0.55) 100%);
  z-index: 1;
}

.pain-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 44px;
  z-index: 2;
}

.solution-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.pain-overlay-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.sol-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sol-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.sol-item svg {
  width: 16px;
  height: 16px;
  color: var(--sage-lt);
  flex-shrink: 0;
}

/* Floating stat card */
.pain-stat-card {
  position: absolute;
  top: 36px;
  right: -36px;
  background: var(--white);
  border-radius: 18px;
  padding: 22px 28px;
  box-shadow: 0 16px 40px rgba(10, 134, 136, 0.13);
  border: 1px solid rgba(10, 134, 136, 0.06);
  z-index: 10;
}

.psc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -2px;
  line-height: 1;
}

.psc-label {
  font-size: 11.5px;
  color: var(--ink-60);
  margin-top: 6px;
  font-weight: 500;
  max-width: 120px;
  line-height: 1.4;
}

/* ── PROCESS ── */
.process {
  padding: 130px 0;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(10, 134, 136, 0.12) 0%, transparent 68%);
  border-radius: 50%;
}

.process-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

.process .section-eyebrow {
  color: var(--gold-lt);
}

.process .section-eyebrow::before {
  background: var(--gold-lt);
}

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

.process .section-title em {
  color: var(--gold-lt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
}

.step-item {
  padding: 48px 36px;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.4s var(--ease);
  position: relative;
}

.step-item:last-child {
  border-right: none;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 24px;
  transition: background 0.3s, border-color 0.3s;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-item:hover .step-icon {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.step-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.step-item p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

/* ── CTA ── */
.cta {
  padding: 150px 0;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px;
}

.cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -2.5px;
  line-height: 1;
  margin-bottom: 20px;
}

.cta h2 em {
  font-style: italic;
  color: var(--sage);
}

.cta p {
  font-size: 17px;
  color: var(--ink-60);
  line-height: 1.8;
  max-width: 460px;
}

.cta-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.cta-actions .btn-ink {
  font-size: 15px;
  padding: 20px 44px;
}

.cta-note {
  font-size: 12px;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-note svg {
  width: 13px;
  height: 13px;
  color: var(--sage);
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 80px 0 0;
}

.footer-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px 60px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 80px;
}

.footer-brand {
  padding-top: 8px;
}

.footer-brand .logo-img-footer {
  height: 44px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 260px;
  margin-top: 20px;
}

.footer-col h6 {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── SCRIPTING FALLBACK ── */
/* Show reveal elements immediately if JavaScript is disabled */
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── NAV DROPDOWN ── */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.nav-dropdown-wrap:hover .nav-chevron,
.nav-dropdown-wrap.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(10, 134, 136, 0.1);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(10, 134, 136, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 300;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
  font-size: 13px;
}

.nav-dropdown a:hover {
  background: rgba(10, 134, 136, 0.05);
  color: var(--ink);
}

.nav-dropdown a::after {
  display: none;
}

.nav-dd-icon {
  width: 36px;
  height: 36px;
  background: var(--sage-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  flex-shrink: 0;
}

.nav-dd-icon svg {
  width: 16px;
  height: 16px;
}

.nav-dd-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dd-text strong {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}

.nav-dd-text span {
  font-size: 11.5px;
  color: var(--ink-60);
  font-weight: 400;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 28, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.28s var(--ease) both;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.95;
  }
}

.modal-box {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 52px 52px 44px;
  max-width: 560px;
  width: 100%;
  position: relative;
  animation: modalSlideUp 0.32s var(--ease) both;
  box-shadow: 0 40px 80px rgba(10, 134, 136, 0.5);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-lt);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.modal-box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}

.modal-box h2 em {
  font-style: italic;
  color: var(--gold-lt);
}

.modal-sub {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 32px;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.calc-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(245, 242, 236, 0.85);
}

.calc-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.calc-input:focus {
  border-color: rgba(184, 146, 58, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.calc-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.calc-results {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 24px;
}

.calc-results[hidden] {
  display: none;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  gap: 12px;
}

.calc-row em {
  font-style: italic;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.calc-row-bad {
  background: rgba(220, 60, 60, 0.08);
}

.calc-row-neutral {
  background: rgba(10, 134, 136, 0.1);
}

.calc-row-savings {
  background: rgba(184, 146, 58, 0.12);
  border: 1px solid rgba(184, 146, 58, 0.2);
  border-radius: 10px;
}

.calc-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.calc-val-bad {
  color: #e07070;
}

.calc-val-savings {
  color: var(--gold-lt);
  font-size: 26px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 400;
  box-shadow: 0 16px 48px rgba(10, 134, 136, 0.4);
  max-width: 600px;
  width: calc(100% - 48px);
  animation: modalFadeIn 0.3s var(--ease) both;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.cookie-banner p a {
  color: var(--gold-lt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 9px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
}

.cookie-accept:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.cookie-learn {
  font-size: 12.5px;
  color: rgba(245, 242, 236, 0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.cookie-learn:hover {
  color: var(--white);
}

/* ── SUBPAGE HERO (interior pages) ── */
.page-hero {
  padding: 160px 0 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 100% 0%,
      rgba(10, 134, 136, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 70% 80% at 10% 50%,
      rgba(10, 134, 136, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 90% 20%,
      rgba(184, 146, 58, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}

.page-hero .page-breadcrumb {
  font-size: 12px;
  color: var(--ink-60);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero .page-breadcrumb a {
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.2s;
}

.page-hero .page-breadcrumb a:hover {
  color: var(--sage);
}

.page-hero .page-breadcrumb span {
  opacity: 0.4;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -2.5px;
  max-width: 800px;
  margin-bottom: 24px;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.page-hero .page-hero-sub {
  font-size: 18px;
  color: var(--ink-60);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
}

.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.page-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-hero-stat strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -1px;
  line-height: 1;
}

.page-hero-stat span {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
}

.page-hero-divider {
  width: 1px;
  height: 36px;
  background: var(--ink-20);
}

/* ── CONTENT SECTIONS (shared across pages) ── */
.content-section {
  padding: 100px 0;
}

.content-section.dark {
  background: var(--charcoal);
}

.content-section.alt {
  background: var(--cream-dark);
}

.content-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse>* {
  direction: ltr;
}

.content-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.content-section.dark .content-body h2 {
  color: var(--white);
}

.content-body h2 em {
  font-style: italic;
  color: var(--sage);
}

.content-section.dark .content-body h2 em {
  color: var(--gold-lt);
}

.content-body p {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.85;
  margin-bottom: 16px;
}

.content-section.dark .content-body p {
  color: rgba(255, 255, 255, 0.55);
}

.content-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.content-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.content-section.dark .content-checklist li {
  color: rgba(255, 255, 255, 0.82);
}

.content-checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
}

.content-section.dark .content-checklist li svg {
  color: var(--gold-lt);
}

/* ── FAQ SECTION ── */
.faq-section {
  padding: 100px 0;
  background: var(--cream-dark);
}

.faq-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--sage);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  font-size: 14.5px;
  color: var(--ink-60);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  padding: 0;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--ink-20);
  border-radius: 28px;
  padding: 52px;
}

.contact-form-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.contact-form-wrap>p {
  font-size: 14.5px;
  color: var(--ink-60);
  margin-bottom: 36px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-60);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--cream);
  border: 1px solid var(--ink-20);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(10, 134, 136, 0.5);
  background: var(--white);
}

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

.contact-info {
  padding-top: 20px;
}

.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.contact-info>p {
  font-size: 15.5px;
  color: var(--ink-60);
  line-height: 1.8;
  margin-bottom: 44px;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--sage-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-detail-body span,
.contact-detail-body a {
  font-size: 14.5px;
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail-body a:hover {
  color: var(--sage);
}

/* ── LEGAL / PRIVACY PAGES ── */
.legal-section {
  padding: 60px 0 120px;
}

.legal-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 60px;
}

.legal-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin: 44px 0 14px;
}

.legal-inner p {
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-inner ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-inner ul li {
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-inner a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-date {
  font-size: 12.5px;
  color: var(--ink-60);
  letter-spacing: 0.5px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-20);
  margin-bottom: 0;
}

/* ── 404 PAGE ── */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px;
  text-align: center;
}

.page-404-inner {
  max-width: 540px;
}

.page-404-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(100px, 18vw, 180px);
  font-weight: 600;
  color: var(--ink);
  line-height: 0.9;
  letter-spacing: -8px;
  opacity: 0.08;
  margin-bottom: -40px;
}

.page-404-inner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.page-404-inner h1 em {
  font-style: italic;
  color: var(--sage);
}

.page-404-inner p {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.75;
  margin-bottom: 40px;
}

/* ── CASE STUDIES ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--ink-20);
  border-radius: 24px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.case-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--sage), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10, 134, 136, 0.1);
}

.case-card:hover::after {
  transform: scaleX(1);
}

.case-tag {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-tag::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--sage);
}

.case-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.case-card p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.75;
  margin-bottom: 28px;
}

.case-stats {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-20);
}

.case-stat strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.case-stat span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

/* ── ABOUT PAGE ── */
.about-mission {
  padding: 100px 0;
}

.about-mission-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.mission-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.mission-text h2 em {
  font-style: italic;
  color: var(--gold);
}

.mission-text p {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.9;
  margin-bottom: 16px;
}

.mission-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mission-value {
  background: var(--cream-dark);
  border-radius: 18px;
  padding: 28px 32px;
  border-left: 3px solid var(--sage);
}

.mission-value h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.mission-value p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.7;
}

/* ── FORM MESSAGES ── */
.form-message {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.form-message-success {
  background: rgba(10, 134, 136, 0.08);
  border: 1px solid rgba(10, 134, 136, 0.25);
  color: #0a8688;
}

.form-message-error {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #dc3545;
}

/* ── TCR 10DLC CONSENT BLOCK ── */
.tcr-consent-block {
  margin: 20px 0 24px;
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--ink-20);
  border-radius: 14px;
}

.tcr-consent-row {
  display: flex;
  align-items: flex-start;
  margin: 0 0 14px;
}

.tcr-consent-row:last-child {
  margin-bottom: 0;
}

.tcr-consent-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.5;
}

.tcr-consent-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0a8688;
  cursor: pointer;
}

.tcr-consent-text {
  font-size: 12.5px;
  color: var(--ink-60);
  line-height: 1.6;
}

.tcr-consent-text a {
  color: #0a8688;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tcr-consent-text a:hover {
  color: #087072;
}

/* ── SPECIALTIES PAGE ── */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.specialty-card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 134, 136, 0.10);
  border-color: var(--sage);
}

.specialty-icon {
  width: 48px;
  height: 48px;
  background: var(--sage-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.specialty-icon svg {
  width: 22px;
  height: 22px;
  color: var(--sage);
}

.specialty-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.specialty-card p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.7;
}

.specialties-cta {
  text-align: center;
  padding: 48px 32px;
  background: var(--cream-dark);
  border-radius: 24px;
  margin-top: 20px;
}

.specialties-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.specialties-cta p {
  font-size: 15px;
  color: var(--ink-60);
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.7;
}