/* =============================================================
   Gildhart Agency — Homepage
   Section-by-section styles, ported from index.html.
   B1: Hero, Logo Bar
   B2-B5: appended as each stage lands.
   ============================================================= */

/* ── Hero ───────────────────────────────────────────────────── */

/* Hide the nav-spacer on the homepage so the hero gradient extends all the way
 * up under the fixed nav — eliminates the flat-cream horizontal seam where the
 * spacer's body bg met the gradient's mint top-right. The hero's own padding
 * uses --nav-h (set by nav.js) to keep the eyebrow clear of the nav. */
.home .nav-spacer { display: none; }

.hero {
  display: flex;
  align-items: flex-start;
  padding: calc(2.5rem + var(--nav-h, 130px)) 2rem 2rem;
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  background: linear-gradient(135deg, #fef7ed 0%, #fdf4e8 25%, #fef9f3 50%, #f0fdf9 75%, #ecfdf5 100%);
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gildhart-green);
  margin-top: -1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
  opacity: 0;
  transform: translateY(20px);
  animation: eyebrowReveal 0.6s ease-out 0.3s forwards;
}
.hero-eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gildhart-gold);
  opacity: 0.9;
}
@keyframes eyebrowReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: #1a2b3c;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.hero-title .line-1 {
  display: block;
  font-size: 1em;
  margin-bottom: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.8s ease-out 0.2s forwards;
}
.hero-title .line-2 {
  display: block;
  font-size: 1.18em;
  line-height: 1.02;
  margin-bottom: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.8s ease-out 1.3s forwards;
}
.hero-title .line-3 {
  display: block;
  font-size: 1.42em;
  line-height: 0.95;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.8s ease-out 1.8s forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Desktop/mobile headline swap */
.hero-title .desktop-only { display: inline; }
.hero-title .mobile-only  { display: none; }

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.6s ease-out 2.3s forwards;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 0.5s ease-out 2.7s forwards;
}
.hero-cta .btn-primary {
  padding: 1rem 2rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.25);
}
/* Secondary CTA — quiet text link with arrow. Replaces the peer-
 * equal outline button so the primary gold CTA carries the room and
 * the secondary whispers, hierarchy as it should be. */
.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a2b3c;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.hero-cta-link-arrow {
  transition: transform 0.2s ease;
}
.hero-cta-link:hover {
  color: var(--gildhart-gold);
  gap: 0.7rem;
}
.hero-cta-link:hover .hero-cta-link-arrow {
  transform: translateX(2px);
}

/* Trust stats — three standalone cells. Each cell stacks small gold
 * mono-caps label over a large display number. Replaces the pipe-
 * separated marketing-blog line for an editorial, confident finish. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(2rem, 4vw, 3.5rem);
  justify-content: start;
  /* Anchor cells to the bottom of the row so the values create a
   * clean horizontal baseline regardless of how many lines the
   * label above wraps to. Without this, longer multi-line labels
   * push their values up while shorter labels leave their values
   * lower — the row looks ragged. */
  align-items: end;
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 0.4s ease-out 3.0s forwards;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gildhart-gold);
  margin: 0;
  /* Wider cap (22ch up from 14ch) lets longer sentence-style labels
   * like "ONE PHARMACY. NO AD SPEND." wrap to two lines instead of
   * four. Combined with align-items: end on the grid above, the
   * values stay on a clean baseline below regardless of label height. */
  max-width: 22ch;
  line-height: 1.35;
}
.hero-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.875rem, 2.8vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1a2b3c;
  margin: 0;
  line-height: 1;
}

/* Hero visual / image stack */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
.hero-image-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  overflow: visible;
}
.hero-image-stack img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 20px;
  position: relative;
  opacity: 0;
  transform: translateY(40px) scale(0.97) rotate(0deg);
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
  margin: 0 auto;
  display: block;
}
.hero-image-stack img.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-2deg);
}
.hero-image-stack img.active:hover {
  transform: translateY(-6px) scale(1.02) rotate(-1deg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22), 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ── Crest hero variant ──
 * Luxury-brand mark as the hero artifact. The gold crest sits
 * centred at a substantial scale, with a soft warm radial glow
 * blurred behind it for ambient depth — the Patek/Aesop/Hermès
 * convention of letting the brand mark itself be the visual
 * statement. Used as the fallback when no explicit hero_image is
 * uploaded via ACF, so the page always presents a refined visual
 * even with zero media library setup. */
.hero-visual--crest {
  perspective: none;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}
.hero-crest {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: heroCrestIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.hero-crest::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at center,
    rgba(201, 164, 74, 0.22) 0%,
    rgba(201, 164, 74, 0.10) 35%,
    rgba(201, 164, 74, 0) 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-crest img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  /* No filter — the asset is gold-on-transparent and reads naturally on cream. */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-crest:hover img {
  transform: translateY(-4px);
}
@keyframes heroCrestIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo Bar ───────────────────────────────────────────────── */

.logo-bar-eyebrow-band {
  background: #fcf4e9;
  padding: 1.5rem 2rem 0;
  text-align: center;
}
.logo-bar-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gildhart-green);
  margin: 0;
}

.logo-bar {
  width: 100%;
  background: #fcf4e9;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2rem 0;
  overflow: hidden;
  max-width: 100vw;
}
.logo-bar-scroller {
  display: flex;
  gap: 4rem;
  animation: logoScroll 30s linear infinite;
}
.logo-bar-scroller img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.logo-bar-scroller img:hover {
  transform: scale(1.05);
}
@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Logo bar — speed up the scroll on narrower viewports to compensate
 * for the optical-flow drop. The animation runs at identical px/s on
 * every viewport, but mobile shows fewer logos at once (less motion
 * to register) and each logo fills more of the screen (it feels like
 * it's crawling). Trimming the duration restores the perceived energy
 * of the desktop sweep. */
@media (max-width: 768px) {
  .logo-bar-scroller { animation-duration: 20s; }
}
@media (max-width: 480px) {
  .logo-bar-scroller { animation-duration: 16s; }
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual {
    display: flex;
    width: 100%;
    margin: 0 auto;
  }
  .hero-image-stack,
  .hero-image-stack img {
    max-width: 100%;
  }
  /* Crest hero stays at a sensible centred scale on mobile rather
   * than scaling up to 100% width — preserves the editorial feel. */
  .hero-crest { max-width: 320px; }
  .hero-crest img { max-width: 280px; }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(1rem + var(--nav-h, 130px)) 1.5rem 4rem;
    min-height: auto;
    margin-top: 0;
  }
  .hero-inner {
    gap: 2rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
  }
  .hero-stat {
    text-align: center;
    align-items: center;
    min-width: 0;
  }
  .hero-stat-label {
    max-width: none;
    word-break: break-word;
  }
  .hero-stat-value {
    /* Allow long values to scale down at narrow widths so nothing
     * overflows. clamp() floor is set so "6 weeks" or "£500k+" stay
     * legible in a 3-column 360px viewport. */
    font-size: clamp(1.5rem, 6vw, 2.375rem);
  }
  .hero-title .desktop-only { display: none; }
  .hero-title .mobile-only  { display: inline; }
  .hero-content {
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Featured Case Study ─────────────────────────────────────── */

.featured-case-study {
  background: #f5f3f0;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.featured-case-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ── Image ── */
.featured-case-image {
  position: relative;
  opacity: 0;
  transform: translateX(-60px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.featured-case-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}
/* Decorative offset border (green) */
.featured-case-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--gildhart-green);
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.92);
  z-index: -1;
  transition: opacity 0.6s ease 0.3s,
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

/* ── Content ── */
.featured-case-content {
  color: var(--navy);
}

.featured-quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--gildhart-gold);
  opacity: 0;
  margin-bottom: -1rem;
  font-family: Georgia, serif;
  transform: translateY(20px) scale(0.7);
  transition: opacity 0.5s ease 0.25s,
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.featured-quote {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.4s,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.featured-quote strong {
  color: var(--gildhart-green);
  font-weight: 600;
}

.featured-author {
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.65s,
              transform 0.5s ease 0.65s;
}
.featured-author-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.featured-author-title {
  font-size: 1rem;
  color: var(--gray-600);
}

.featured-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}
.featured-stars span {
  color: #fbbf24;
  font-size: 1.125rem;
  opacity: 0;
  transform: scale(0) rotate(-30deg);
  transition: opacity 0.3s ease,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── CTA card ── */
/* Editorial case-study callout — forest green confident block on the
 * cream page. Brand colour as visual real estate (the Stripe-purple /
 * Anthropic-sand / Linear-blue convention). Eyebrow + em-dashes carry
 * the editorial voice; the green ground gives it real presence. */
.featured-cta-card {
  display: block;
  background: var(--gildhart-green);
  border: 1px solid rgba(201, 164, 74, 0.25);
  border-radius: 20px;
  padding: clamp(2rem, 3.5vw, 2.75rem);
  max-width: 480px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(30, 61, 47, 0.18),
              0 6px 18px rgba(30, 61, 47, 0.08);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.9s,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
a.featured-cta-card:hover {
  border-color: rgba(201, 164, 74, 0.5);
  box-shadow: 0 24px 60px rgba(30, 61, 47, 0.28),
              0 8px 22px rgba(30, 61, 47, 0.12);
}

/* Eyebrow — gold mono caps. Bumped to 0.75rem with wider tracking so
 * it actually reads on the green ground. */
.featured-cta-badge {
  display: block;
  background: transparent;
  color: var(--gildhart-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 0;
  border-radius: 0;
  margin-bottom: 1.5rem;
}
.featured-cta-badge::before { content: none; }

/* "Six-month transformation" — small lead-in above the number. */
.featured-cta-text {
  font-size: 0.9375rem;
  color: rgba(240, 230, 200, 0.75);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Dominant number lockup — number owns the line, small caps label
 * sits underneath. clamp() ensures it actually feels massive on
 * desktop while collapsing sensibly on mobile. */
.featured-cta-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.featured-cta-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.featured-cta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gildhart-gold);
}

/* Meta line + supporting line — cream at reduced opacity for the
 * green ground. Sized to read as supporting copy under the massive
 * 300% above, not as footnotes. */
.featured-cta-meta {
  font-size: 1rem;
  color: rgba(240, 230, 200, 0.72);
  margin-bottom: 1rem;
  letter-spacing: 0.005em;
  line-height: 1.55;
}
.featured-cta-how {
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(240, 230, 200, 0.9);
  margin-bottom: 1.75rem;
  line-height: 1.65;
  max-width: 420px;
}

/* "Read the full story" — promoted from quiet text link to real
 * action element. Gold, bigger, with weight. Arrow nudges right on
 * hover; whole card brightens via box-shadow + border. */
.featured-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--gildhart-gold);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.featured-cta-link::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.2s ease;
}
a.featured-cta-card:hover .featured-cta-link {
  color: #e0bd60;
  gap: 0.7rem;
}
a.featured-cta-card:hover .featured-cta-link::after {
  transform: translateX(3px);
}

/* ── Visible state (added by IntersectionObserver in home.js) ── */
.featured-case-study.fcs-visible .featured-case-image {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.featured-case-study.fcs-visible .featured-case-image::before {
  opacity: 0.4;
  transform: scale(1);
}
.featured-case-study.fcs-visible .featured-quote-mark {
  opacity: 0.6;
  transform: translateY(0) scale(1);
}
.featured-case-study.fcs-visible .featured-quote {
  opacity: 1;
  transform: translateY(0);
}
.featured-case-study.fcs-visible .featured-author {
  opacity: 1;
  transform: translateY(0);
}
.featured-case-study.fcs-visible .featured-stars span:nth-child(1) { opacity: 1; transform: scale(1) rotate(0); transition-delay: 0.75s; }
.featured-case-study.fcs-visible .featured-stars span:nth-child(2) { opacity: 1; transform: scale(1) rotate(0); transition-delay: 0.85s; }
.featured-case-study.fcs-visible .featured-stars span:nth-child(3) { opacity: 1; transform: scale(1) rotate(0); transition-delay: 0.95s; }
.featured-case-study.fcs-visible .featured-stars span:nth-child(4) { opacity: 1; transform: scale(1) rotate(0); transition-delay: 1.05s; }
.featured-case-study.fcs-visible .featured-stars span:nth-child(5) { opacity: 1; transform: scale(1) rotate(0); transition-delay: 1.15s; }
.featured-case-study.fcs-visible .featured-cta-card {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle float on idle once visible */
@keyframes fcsFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.featured-case-study.fcs-visible .featured-case-image img {
  animation: fcsFloat 5s ease-in-out 1.2s infinite;
}

/* 300% counter pulse on reveal */
@keyframes fcsPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.featured-case-study.fcs-visible .featured-cta-number {
  animation: fcsPulse 0.6s ease 1.4s 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .featured-case-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .featured-case-image {
    max-width: 350px;
    margin: 0 auto;
  }
  .featured-case-image::before {
    display: none;
  }
  .featured-quote-mark {
    font-size: 4rem;
  }
  .featured-stars {
    justify-content: center;
  }
  .featured-cta-card {
    margin: 0 auto;
  }
}

/* ── Split (Problem / Solution) ─────────────────────────────── */

.split-section {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.split-problem {
  width: 40%;
  background: var(--navy);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-problem-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gildhart-gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-problem-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-problem-text {
  font-size: 1.0625rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-problem-text:last-of-type {
  margin-bottom: 0;
}

.split-solution {
  width: 60%;
  background: linear-gradient(135deg, #fef7ed 0%, #fdf4e8 25%, #fef9f3 50%, #f0fdf9 75%, #ecfdf5 100%);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-solution-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #4d7b6f;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.split-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.split-card:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(30, 61, 47, 0.25) !important;
}

.split-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(77, 123, 111, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #4a7c6f;
  font-size: 1.125rem;
}
.split-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a2b3c;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}
.split-card-text {
  font-size: 1rem;
  font-weight: 450;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Hero treatment — one card per group elevated to the brand's
 * primary ground. Forest green (var(--gildhart-green)) with gold
 * title (var(--gildhart-gold)), cream body for legibility, 1px
 * gold border at moderate opacity to reinforce the boundary
 * without going decorative. Padding / radius / sizing / hover
 * lift are inherited from .split-card so the card sits in the
 * same grid cell with the same dimensions as its peers. */
.split-card--featured {
  background: var(--gildhart-green);
  border-color: rgba(201, 164, 74, 0.45);
}
.split-card--featured .split-card-title {
  color: var(--gildhart-gold);
}
.split-card--featured .split-card-text {
  color: rgba(240, 230, 200, 0.92);
}
/* Hover state on the featured card — keep the gold border bright
 * instead of the navy outline the base hover applies. */
.split-card--featured:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18),
              0 0 0 1px rgba(201, 164, 74, 0.6) !important;
}

/* CTA strip — full-width Gildhart green */
.split-cta {
  background: var(--gildhart-green);
  padding: 1.75rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201, 164, 74, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.split-cta-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
}
.split-cta-btn {
  background: var(--gildhart-gold);
  color: var(--gildhart-black);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.split-cta-btn:hover {
  background: #b8912f;
  transform: translateY(-1px);
}

/* Visible state (added by IntersectionObserver in home.js) */
.split-section.split-visible .split-problem-eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.split-section.split-visible .split-problem-title   { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.split-section.split-visible .split-problem-text:nth-of-type(1) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.split-section.split-visible .split-problem-text:nth-of-type(2) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
.split-section.split-visible .split-problem-text:nth-of-type(3) { opacity: 1; transform: translateY(0); transition-delay: 0.95s; font-size: 1.25rem; font-weight: 700; color: #fff; }
.split-section.split-visible .split-problem-text:nth-of-type(4) { opacity: 1; transform: translateY(0); transition-delay: 1.2s; }
.split-section.split-visible .split-solution-eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.split-section.split-visible .split-card:nth-child(1) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.3s; }
.split-section.split-visible .split-card:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.45s; }
.split-section.split-visible .split-card:nth-child(3) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.6s; }
.split-section.split-visible .split-card:nth-child(4) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.75s; }
.split-cta.split-cta-visible,
.split-section.split-visible ~ .split-cta { opacity: 1; transform: translateY(0); }

@keyframes splitIconGlow {
  0%   { box-shadow: 0 0 0 0 rgba(77, 123, 111, 0); }
  50%  { box-shadow: 0 0 16px 4px rgba(77, 123, 111, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(77, 123, 111, 0); }
}
.split-section.split-visible .split-card-icon {
  animation: splitIconGlow 1.2s ease 0.8s 1;
}

@media (max-width: 900px) {
  .split-section { flex-direction: column; }
  .split-problem,
  .split-solution { width: 100%; padding: 3rem 2rem; }
  .split-cards { grid-template-columns: 1fr; }
  .split-cta {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    padding: 2rem;
  }
}

/* ── The Shift ──────────────────────────────────────────────── */

.shift-section {
  padding: 7rem 2rem;
  background: var(--cream);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.shift-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.shift-header {
  text-align: center;
  margin-bottom: 5rem;
}
.shift-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gildhart-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.shift-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 auto 1.25rem;
  max-width: 820px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.shift-subheadline {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.shift-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: start;
}

.shift-col {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: white;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}
.shift-col-old {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.shift-col-new {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.shift-col-label {
  padding: 0.875rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.shift-col-old .shift-col-label {
  background: var(--gray-100);
  color: var(--gray-600);
}
.shift-col-new .shift-col-label {
  background: rgba(30, 61, 47, 0.07);
  color: #4d7b6f;
}
.shift-col-visual {
  padding: 1.75rem;
}

/* Old: Google search mockup */
.google-mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #f8f9fa;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}
.google-mockup-search-icon {
  color: var(--gray-400);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.google-mockup-query {
  font-size: 0.8rem;
  color: var(--gray-600);
  flex: 1;
}
.google-result {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--gray-100);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.google-result-url {
  height: 8px;
  background: #1a7f37;
  border-radius: 4px;
  width: 45%;
  margin-bottom: 5px;
}
.google-result-title {
  height: 11px;
  background: #1a0dab;
  border-radius: 4px;
  margin-bottom: 5px;
}
.google-result-snippet {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  width: 90%;
}
.google-page-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.google-page-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--gray-600);
}
.google-page-dot.active-page {
  background: #1a0dab;
  color: white;
  border-color: #1a0dab;
}
.google-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 0.625rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* New: AI mockup */
.ai-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.ai-mockup-logo {
  width: 22px;
  height: 22px;
  background: #10a37f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ai-mockup-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}
.ai-user-bubble {
  background: var(--gray-100);
  border-radius: 12px 12px 2px 12px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
  max-width: 85%;
  float: right;
  clear: both;
  opacity: 0;
  transform: translateX(20px) scale(0.95);
  transition: opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-response-intro {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0.875rem;
  clear: both;
  padding-top: 0.25rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ai-recommendation {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--gray-100);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.2s;
}
/* Highlighted recommendation — applied to the row carrying
 * `is_highlight` in PHP (the "Your Practice" entry by design).
 * Subtle gold tint + 3px gold left accent so the eye lands here
 * first; the other two rows stay neutral. Replaces the previous
 * :first-of-type position-based selector so promotion order can
 * shift via ACF without re-styling. */
.ai-recommendation--highlight {
  background: rgba(201, 164, 74, 0.08);
  border-color: rgba(201, 164, 74, 0.35);
  border-left: 3px solid var(--gildhart-gold);
  padding-left: calc(0.75rem - 2px);
}
.ai-rec-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
  margin-top: 1px;
}
.ai-recommendation--highlight .ai-rec-rank {
  background: var(--gildhart-gold);
  color: var(--gildhart-green);
}
.ai-rec-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.ai-rec-detail {
  font-size: 0.775rem;
  color: var(--gray-600);
  line-height: 1.4;
  margin-top: 2px;
}
.ai-shortlist-note {
  font-size: 0.7rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ai-shortlist-note::before {
  content: '⚡';
  font-size: 0.625rem;
}

/* Captions under both columns */
.shift-col-caption {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.shift-col-caption strong {
  color: var(--navy);
  font-weight: 600;
}

/* Proof cards block removed — see section-shift.php. The
 * shift-proof / shift-proof-card / shift-proof-* rule set lived
 * here and is gone with the markup. */

/* Visible state (added by IntersectionObserver in home.js) */
.shift-section.shift-visible .shift-eyebrow      { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.shift-section.shift-visible .shift-headline     { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.shift-section.shift-visible .shift-subheadline  { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.shift-section.shift-visible .shift-col-old      { opacity: 1; transform: translateX(0); transition-delay: 0.55s; }
.shift-section.shift-visible .shift-col-new      { opacity: 1; transform: translateX(0); transition-delay: 0.75s; }

.shift-section.shift-visible .google-result:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }
.shift-section.shift-visible .google-result:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 1.0s; }
.shift-section.shift-visible .google-result:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 1.1s; }
.shift-section.shift-visible .google-result:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 1.2s; }
.shift-section.shift-visible .google-result:nth-child(5) { opacity: 0.45; transform: translateY(0); transition-delay: 1.35s; }
.shift-section.shift-visible .google-result:nth-child(6) { opacity: 0.45; transform: translateY(0); transition-delay: 1.5s; }
.shift-section.shift-visible .google-result:nth-child(7) { opacity: 0.45; transform: translateY(0); transition-delay: 1.65s; }
.shift-section.shift-visible .google-result:nth-child(8) { opacity: 0.45; transform: translateY(0); transition-delay: 1.8s; }
.shift-section.shift-visible .google-page-indicator { opacity: 1; transition-delay: 2.0s; }
.shift-section.shift-visible .google-scroll-hint    { opacity: 1; transition-delay: 2.1s; }

.shift-section.shift-visible .ai-user-bubble        { opacity: 1; transform: translateX(0) scale(1); transition-delay: 1.0s; }
.shift-section.shift-visible .ai-response-intro     { opacity: 1; transform: translateY(0); transition-delay: 1.4s; }
.shift-section.shift-visible .ai-recommendation:nth-of-type(1) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 1.65s; }
.shift-section.shift-visible .ai-recommendation:nth-of-type(2) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 1.9s; }
.shift-section.shift-visible .ai-recommendation:nth-of-type(3) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 2.15s; }
.shift-section.shift-visible .ai-shortlist-note     { opacity: 1; transform: translateY(0); transition-delay: 2.5s; }
.shift-section.shift-visible .shift-col-old .shift-col-caption { opacity: 1; transform: translateY(0); transition-delay: 2.2s; }
.shift-section.shift-visible .shift-col-new .shift-col-caption { opacity: 1; transform: translateY(0); transition-delay: 2.7s; }

@keyframes shiftAiGlow {
  0%   { box-shadow: 0 0 0 0 rgba(201, 164, 74, 0); }
  50%  { box-shadow: 0 0 20px 4px rgba(201, 164, 74, 0.28); }
  100% { box-shadow: 0 0 0 0 rgba(201, 164, 74, 0); }
}
/* Glow targets the highlighted row (data-driven) instead of the
 * first-of-type position so promotion order can be re-arranged
 * via ACF without rewriting the animation selector. */
.shift-section.shift-visible .ai-recommendation--highlight {
  animation: shiftAiGlow 1.2s ease 2.0s 1;
}

@media (max-width: 900px) {
  .shift-comparison { grid-template-columns: 1fr; }
}

/* ── Three-Tier Pricing Cards ───────────────────────────────── */

.two-paths-section {
  background: #FAF8F3;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
}
.two-paths-inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* Section header */
.two-paths-header {
  text-align: center;
  margin-bottom: 4rem;
}
.two-paths-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gildhart-gold);
  margin: 0 0 1rem 0;
}
.two-paths-headline {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 800;
  color: var(--gildhart-green);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.two-paths-subheadline {
  font-size: 1.0625rem;
  color: var(--gray-600);
  font-weight: 400;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

/* Grid — equal-height stretch */
.two-paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* Base card */
.two-paths-card {
  position: relative;
  background: #FFFDF8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 26, 18, 0.04),
              0 12px 32px -16px rgba(13, 26, 18, 0.10);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(30, 61, 47, 0.08);
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hero card — the priority sale. Forest green, gold inner border, lifted. */
.two-paths-card--hero {
  background: var(--gildhart-green);
  border: 0;
  box-shadow:
    inset 0 0 0 2px var(--gildhart-gold),
    0 4px 16px rgba(13, 26, 18, 0.12),
    0 28px 64px -24px rgba(13, 26, 18, 0.30);
  margin-top: -16px;
  margin-bottom: -16px;
  z-index: 2;
}

/* Dark card — always-on agent product. Navy fill, cream type. */
.two-paths-card--dark {
  background: var(--navy);
  border: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(13, 26, 18, 0.04),
    0 16px 36px -18px rgba(13, 26, 18, 0.30);
}

/* Hero image at the very top of every card — flush with top edge, top
 * corners rounded via the card's overflow:hidden + border-radius. */
.two-paths-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(30, 61, 47, 0.06);
}
.two-paths-card-image img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.two-paths-card--hero .two-paths-card-image {
  height: 220px;
  background: rgba(255, 255, 255, 0.04);
}
.two-paths-card--dark .two-paths-card-image {
  background: rgba(255, 255, 255, 0.04);
}

/* Placeholder shown when no image is uploaded. Uses each card's tone so
 * the placeholder reads as part of the card, not a stray empty box. */
.two-paths-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(30, 61, 47, 0.08), rgba(30, 61, 47, 0.04));
}
.two-paths-card-image-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gildhart-gold);
  line-height: 1.6;
}
.two-paths-card--hero .two-paths-card-image-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}
.two-paths-card--dark .two-paths-card-image-placeholder {
  background: linear-gradient(135deg, rgba(201, 164, 74, 0.06), rgba(255, 255, 255, 0.02));
}

/* Quiet banner on outer cards. Sits below the image, square corners. */
.two-paths-banner {
  background: rgba(30, 61, 47, 0.06);
  color: var(--gildhart-green);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 1.25rem;
  border-bottom: 1px solid rgba(30, 61, 47, 0.10);
}
.two-paths-card--dark .two-paths-banner {
  background: rgba(255, 255, 255, 0.04);
  color: var(--gildhart-cream);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Inner content */
.two-paths-card-inner {
  padding: 3rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.two-paths-card--hero .two-paths-card-inner {
  padding: 4rem 2.75rem 3.25rem;
}
.two-paths-card--dark .two-paths-card-inner {
  padding: 3rem 2.5rem 2.5rem;
}

/* Kicker — small italic above title */
.two-paths-kicker {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--gray-600);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.01em;
}
.two-paths-card--hero .two-paths-kicker {
  color: rgba(240, 230, 200, 0.7);
}
.two-paths-card--dark .two-paths-kicker {
  color: rgba(240, 230, 200, 0.7);
}

/* Eyebrow label — gold tracked-out caps */
.two-paths-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gildhart-gold);
  margin: 0 0 1rem 0;
}

/* Title */
.two-paths-card-title {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--gildhart-green);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
}
.two-paths-card--hero .two-paths-card-title {
  font-size: 1.875rem;
  color: #FFFDF8;
  line-height: 1.18;
}
.two-paths-card--dark .two-paths-card-title {
  color: #FFFDF8;
  line-height: 1.25;
}

/* Body — proof statement, italic with gold left border */
.two-paths-card-body {
  font-size: 1rem;
  font-style: italic;
  color: #2c3e36;
  line-height: 1.7;
  margin: 0 0 2rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--gildhart-gold);
}
.two-paths-card--hero .two-paths-card-body {
  color: rgba(240, 230, 200, 0.95);
  border-left-color: var(--gildhart-gold);
  font-size: 1.0625rem;
}
.two-paths-card--dark .two-paths-card-body {
  color: var(--gildhart-cream);
  border-left-color: var(--gildhart-gold);
}

/* Proof anchor — single big number + descriptor */
.two-paths-proof {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(30, 61, 47, 0.10);
  border-bottom: 1px solid rgba(30, 61, 47, 0.10);
}
.two-paths-card--hero .two-paths-proof,
.two-paths-card--dark .two-paths-proof {
  border-top-color: rgba(201, 164, 74, 0.25);
  border-bottom-color: rgba(201, 164, 74, 0.25);
}
.two-paths-proof-number {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gildhart-green);
}
.two-paths-card--hero .two-paths-proof-number {
  color: var(--gildhart-gold);
  font-size: 3.5rem;
}
.two-paths-card--dark .two-paths-proof-number {
  color: var(--gildhart-gold);
}
/* Proof label — restyled from short-caption mono-uppercase to body
 * font sentence case so it reads cleanly for descriptive sentences
 * as well as short labels. The 0.6875rem mono-caps-tight-tracking
 * recipe works for 3-5 word labels (the original intent) but becomes
 * actively hard to read once the content runs to a full sentence,
 * which is what some cards now carry. Body font + sentence case +
 * 0.9375rem + 1.65 line-height handles both registers gracefully. */
.two-paths-proof-label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 450;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--gray-600);
  line-height: 1.65;
}
.two-paths-card--hero .two-paths-proof-label,
.two-paths-card--dark .two-paths-proof-label {
  color: rgba(240, 230, 200, 0.82);
}

/* Bullets — no ticks. Outer cards plain, hero gets gold em-dash. */
.two-paths-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  flex: 1;
}
.two-paths-features li {
  font-size: 0.9375rem;
  color: #2c3e36;
  line-height: 1.65;
  position: relative;
}
/* Label / dash / desc treatment — bullets that use a " — " separator
 * render with hierarchy. Label bolds (navy), em-dash tints gold as a
 * brand-coloured visual divider, description stays regular weight at
 * slightly muted opacity so the eye lands on the label first. Honours
 * the design system's "no tick icons" rule by using the existing
 * punctuation as the accent rather than adding a decorative marker. */
.two-paths-feature-label {
  font-weight: 700;
  color: inherit;
}
.two-paths-feature-dash {
  color: var(--gildhart-gold);
  font-weight: 700;
}
.two-paths-feature-desc {
  font-weight: 400;
  opacity: 0.82;
}
.two-paths-card--hero .two-paths-features li {
  color: rgba(240, 230, 200, 0.92);
  padding-left: 1.5rem;
  font-size: 0.9375rem;
}
.two-paths-card--hero .two-paths-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gildhart-gold);
  font-weight: 700;
}
.two-paths-card--dark .two-paths-features li {
  color: var(--gildhart-cream);
}

/* ── Editorial credentials line ──
 * Small mono gold caps with em-dash separators, centred in the
 * load-bearing gap between bullets and the price block. Honours
 * the rest of the site's eyebrow treatment (font-mono, 0.6875rem,
 * weight 700, wide tracking, uppercase) so it disappears into the
 * page rhythm rather than reading as a badge row. The separator is
 * dimmer than the items so the eye lands on the credentials.
 * Cosmetic only — list-style stripped, no markers. */
.two-paths-credentials {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.two-paths-credentials-item,
.two-paths-credentials-sep {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}
.two-paths-credentials-item {
  color: var(--gildhart-gold);
}
.two-paths-credentials-sep {
  color: rgba(201, 164, 74, 0.4);
  font-weight: 400;
}
/* Featured (green ground) card lifts the credentials a touch so
 * they don't fight the gold border at low opacity. */
.two-paths-card--hero .two-paths-credentials-item {
  color: rgba(201, 164, 74, 0.95);
}
.two-paths-card--hero .two-paths-credentials-sep {
  color: rgba(201, 164, 74, 0.45);
}
/* Dark navy card — credentials stay readable on the dark ground. */
.two-paths-card--dark .two-paths-credentials-item {
  color: rgba(201, 164, 74, 0.9);
}

/* Price block — understated, italic note */
.two-paths-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(30, 61, 47, 0.10);
}
.two-paths-card--hero .two-paths-price-block,
.two-paths-card--dark .two-paths-price-block {
  border-top-color: rgba(201, 164, 74, 0.25);
}
.two-paths-price {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gildhart-green);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.two-paths-card--hero .two-paths-price,
.two-paths-card--dark .two-paths-price {
  color: #FFFDF8;
}
.two-paths-price-note {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.5;
}
.two-paths-card--hero .two-paths-price-note,
.two-paths-card--dark .two-paths-price-note {
  color: rgba(240, 230, 200, 0.7);
}

/* CTA — full width, baseline-aligned via margin-top:auto */
.two-paths-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  margin-top: auto;
  width: 100%;
  border: 0;
}
.two-paths-btn-primary {
  background: var(--gildhart-green);
  color: #FFFDF8;
}
.two-paths-btn-primary:hover {
  background: var(--gildhart-black);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(13, 26, 18, 0.4);
}
/* Hero CTA — reversed: gold bg, forest-green text */
.two-paths-card--hero .two-paths-btn-primary {
  background: var(--gildhart-gold);
  color: var(--gildhart-green);
  font-weight: 700;
}
.two-paths-card--hero .two-paths-btn-primary:hover {
  background: #d4b358;
  box-shadow: 0 10px 24px -8px rgba(201, 164, 74, 0.5);
}

/* Trust line below cards */
.two-paths-trust-line {
  text-align: center;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--gray-600);
  margin: 3rem auto 0;
  max-width: 60ch;
}

/* Scroll entrance — .tp-visible added per-card by home.js */
.two-paths-card.tp-visible {
  animation: tpSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.two-paths-card--hero.tp-visible {
  animation: tpSlideUpHero 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.two-paths-card:nth-child(3).tp-visible {
  animation-delay: 0.3s;
}
@keyframes tpSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tpSlideUpHero {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(-16px); }
}
.two-paths-card.tp-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(13, 26, 18, 0.06),
              0 24px 48px -16px rgba(13, 26, 18, 0.18);
}
.two-paths-card--hero.tp-visible:hover {
  transform: translateY(-20px);
  box-shadow:
    inset 0 0 0 2px var(--gildhart-gold),
    0 8px 24px rgba(13, 26, 18, 0.16),
    0 36px 80px -24px rgba(13, 26, 18, 0.36);
}

/* Mobile — single column. Hero floats to top. */
@media (max-width: 960px) {
  .two-paths-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .two-paths-card--hero {
    order: -1;
    margin-top: 0;
    margin-bottom: 0;
  }
  .two-paths-card--hero.tp-visible {
    animation: tpSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  @keyframes tpSlideUpHero {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .two-paths-card--hero.tp-visible:hover {
    transform: translateY(-4px);
  }
}
@media (max-width: 768px) {
  .two-paths-section { padding: 4rem 1.25rem; }
  .two-paths-header { margin-bottom: 2.75rem; }
  .two-paths-card-image { height: 180px; }
  .two-paths-card--hero .two-paths-card-image { height: 200px; }
  .two-paths-card-inner,
  .two-paths-card--hero .two-paths-card-inner,
  .two-paths-card--dark .two-paths-card-inner {
    padding: 2.5rem 1.75rem 2rem;
  }
  .two-paths-proof-number { font-size: 2.5rem; }
  .two-paths-card--hero .two-paths-proof-number { font-size: 2.75rem; }
  .two-paths-card-title { font-size: 1.5rem; }
  .two-paths-card--hero .two-paths-card-title { font-size: 1.625rem; }
}

/* ── Case Studies Carousel ──────────────────────────────────── */

.case-studies {
  padding: 6rem 0;
  background: var(--cream);
}
.case-studies .section-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.case-studies .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.case-studies .section-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
}

.carousel-container {
  overflow: hidden;
  padding: 0 2rem;
  max-width: 100vw;
}
.carousel-track {
  display: flex;
  gap: 2rem;
  animation: carouselScroll 40s linear infinite;
}
.carousel-track:hover {
  animation-play-state: paused;
}
@keyframes carouselScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.case-card {
  flex: 0 0 400px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.case-card-image {
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}
.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.case-card:hover .case-card-image img {
  transform: scale(1.05);
}
.case-card-content {
  padding: 1.5rem;
}
.case-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gildhart-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.case-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.case-card-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.case-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gildhart-green);
  text-decoration: none;
  padding: 0.625rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}
.case-card-cta:hover {
  border-bottom-color: var(--gildhart-green);
  gap: 0.65rem;
}
.case-card-cta .cta-arrow {
  transition: transform 0.2s;
  font-style: normal;
}
.case-card-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* ── Gildhart logo divider ─────────────────────────────────── */

.gh-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  gap: 1.5rem;
}
.gh-divider::before,
.gh-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 74, 0.35));
}
.gh-divider::after {
  background: linear-gradient(270deg, transparent, rgba(201, 164, 74, 0.35));
}
.gh-divider img {
  width: 220px;
  height: auto;
  opacity: 0.8;
  filter: drop-shadow(0 2px 6px rgba(201, 164, 74, 0.25));
}
@media (max-width: 768px) {
  .gh-divider img { max-width: 160px; }
}

/* ── Founder ────────────────────────────────────────────────── */

.founder-section {
  background: #FAF8F3;
  padding: 5rem 2rem 0;
  overflow: hidden;
}
.founder-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: end;
}
.founder-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.founder-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(250,248,243,0) 0%, rgba(250,248,243,0.6) 40%, #FAF8F3 100%);
  pointer-events: none;
  z-index: 1;
}
.founder-image img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  object-position: bottom;
}

.founder-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2rem 5rem 3rem;
}
.founder-section .founder-copy > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gildhart-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.founder-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.founder-body {
  font-size: 1.125rem;
  font-weight: 400;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 540px;
}
.founder-body:last-of-type {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2.5rem;
}
.founder-body-break {
  display: block;
  margin-top: 1.25rem;
}

.founder-name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.founder-name-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.founder-title-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
}
.founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
  opacity: 0;
  transform: translateY(16px);
}
.founder-linkedin:hover {
  color: #0A66C2;
}
.founder-linkedin svg { flex-shrink: 0; }

/* Reveal states (added by IntersectionObserver in home.js) */
.founder-section.founder-visible .founder-image    { opacity: 1; transform: translateX(0); transition-delay: 0.15s; }
.founder-section.founder-visible .founder-eyebrow  { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.founder-section.founder-visible .founder-headline { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.founder-section.founder-visible .founder-body:nth-of-type(1) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.founder-section.founder-visible .founder-body:nth-of-type(2) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.founder-section.founder-visible .founder-name     { opacity: 1; transform: translateY(0); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s; }
.founder-section.founder-visible .founder-linkedin { opacity: 1; transform: translateY(0); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.85s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.85s, color 0.2s ease; }

@media (max-width: 900px) {
  .founder-section { padding: 0; }
  .founder-inner { grid-template-columns: 1fr; }
  .founder-copy {
    padding: 4rem 2rem 3rem;
    order: -1;
    text-align: left;
  }
  .founder-image { justify-content: center; }
  .founder-image img { max-width: 340px; width: 80%; }
}
@media (max-width: 480px) {
  .founder-copy { padding: 3rem 1.5rem 2rem; }
  .founder-headline { font-size: 1.625rem; }
  .founder-body { font-size: 1rem; }

  /* Hero trust stats — stack vertically on small phones so each
   * stat gets full width, the number can read dominant, and longer
   * labels (e.g. "ONE PHARMACY. NO AD SPEND.") never truncate. */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-content: stretch;
  }
  .hero-stat {
    text-align: center;
    align-items: center;
    padding: 0 0.5rem;
  }
  .hero-stat-value {
    font-size: clamp(2rem, 9vw, 2.625rem);
    line-height: 1;
  }
  .hero-stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    max-width: 22ch;
    margin: 0.4rem auto 0;
  }
}

/* ── Revenue Results ────────────────────────────────────────── */

.revenue-section {
  background: linear-gradient(180deg, #0a0f1c 0%, #0f172a 40%, #111d35 100%);
  padding: 7.5rem 2rem;
  overflow: hidden;
  overflow-x: clip;
  position: relative;
}
.revenue-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 164, 74, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.revenue-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.revenue-header {
  text-align: center;
  margin-bottom: 5rem;
}
.revenue-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(201, 164, 74, 0.85);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.revenue-eyebrow::before,
.revenue-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 74, 0.6));
}
.revenue-eyebrow::after {
  background: linear-gradient(90deg, rgba(201, 164, 74, 0.6), transparent);
}

.revenue-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 auto 1.5rem;
  max-width: 820px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.revenue-headline-accent {
  color: #f0ede6;
  position: relative;
  display: inline;
}
.revenue-headline-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gildhart-gold), #e0bf7a, var(--gildhart-gold));
  border-radius: 2px;
  opacity: 0.7;
}

.revenue-subheadline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  font-weight: 400;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.revenue-subheadline strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.revenue-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 5rem;
}
.revenue-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 3rem 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s ease,
              border-color 0.45s ease,
              background 0.45s ease;
}
.revenue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(201, 164, 74, 0.7) 0%, rgba(201, 164, 74, 0.15) 100%);
  opacity: 0.6;
  transition: opacity 0.35s ease;
}
.revenue-card:hover::before { opacity: 1; }

/* Cards 2 + 4 — elevated featured */
.revenue-card:nth-child(2),
.revenue-card:nth-child(4) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.revenue-card:nth-child(2)::before,
.revenue-card:nth-child(4)::before {
  width: 4px;
  opacity: 0.85;
  background: linear-gradient(180deg, rgba(201, 164, 74, 0.9) 0%, rgba(201, 164, 74, 0.4) 50%, rgba(201, 164, 74, 0.1) 100%);
}
.revenue-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
.revenue-card:nth-child(2):hover,
.revenue-card:nth-child(4):hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.revenue-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
  padding-left: 0.125rem;
}
.revenue-card:nth-child(2) .revenue-card-label,
.revenue-card:nth-child(4) .revenue-card-label {
  color: rgba(255, 255, 255, 0.6);
}
.revenue-card-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #f0ede6;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.revenue-card-descriptor {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.revenue-card-divider {
  width: 40px;
  height: 2px;
  background: var(--gildhart-gold);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  border-radius: 2px;
}
.revenue-card:nth-child(2) .revenue-card-divider,
.revenue-card:nth-child(4) .revenue-card-divider {
  width: 40px;
  background: var(--gildhart-gold);
}
.revenue-card-proof {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.7;
  flex: 1;
}

/* Closing block */
.revenue-close-section {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}
.revenue-close-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: 3.5rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.revenue-close-stat {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--gildhart-gold);
  background: rgba(201, 164, 74, 0.05);
  border-radius: 0 12px 12px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.revenue-close-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.04em;
}
.revenue-close-stat-label {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  max-width: 340px;
}
.revenue-close-stat-label strong {
  color: white;
  font-weight: 600;
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

/* Intro hammer — standalone white statement sitting between the stat
 * block and the body paragraphs. Centred, bolder, slightly larger than
 * body so it lands as the opening beat of the closing sequence. */
.revenue-close-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 680px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.revenue-close-body {
  margin: 0 auto 3rem;
  max-width: 680px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.revenue-close-body p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  text-align: center;
}
.revenue-close-body p:last-child { margin-bottom: 0; }

/* Closing peak — last beat before the CTAs. Bold without italic for
 * authority at large display sizes; no border sandwich (the previous
 * white-at-0.08 top/bottom rules read as a literal box around the
 * moment that should feel open). 3rem margin-top lets the line land
 * cleanly after Block 3. */
.revenue-close-final {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.025em;
  line-height: 1.4;
  margin: 3rem auto 0;
  max-width: 680px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.revenue-close-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revenue-close-btn-primary {
  padding: 1.2rem 2.75rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(201, 164, 74, 0.3);
  border-radius: 12px !important;
  transition: all 0.25s ease;
}
.revenue-close-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(201, 164, 74, 0.45);
  transform: translateY(-2px);
}
.revenue-close-btn-outline {
  padding: 1.2rem 2.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}
.revenue-close-btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Reveal states (added by IntersectionObserver in home.js) */
.revenue-section.rev-visible .revenue-eyebrow      { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.revenue-section.rev-visible .revenue-headline     { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.revenue-section.rev-visible .revenue-subheadline  { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.revenue-section.rev-visible .revenue-card:nth-child(1) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.6s; }
.revenue-section.rev-visible .revenue-card:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.75s; }
.revenue-section.rev-visible .revenue-card:nth-child(3) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.9s; }
.revenue-section.rev-visible .revenue-card:nth-child(4) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 1.05s; }
.revenue-section.rev-visible .revenue-close-headline   { opacity: 1; transform: translateY(0); transition-delay: 1.6s; }
.revenue-section.rev-visible .revenue-close-stat       { opacity: 1; transform: translateY(0); transition-delay: 1.85s; }
.revenue-section.rev-visible .revenue-close-intro      { opacity: 1; transform: translateY(0); transition-delay: 2.0s; }
.revenue-section.rev-visible .revenue-close-body       { opacity: 1; transform: translateY(0); transition-delay: 2.2s; }
.revenue-section.rev-visible .revenue-close-final      { opacity: 1; transform: translateY(0); transition-delay: 2.4s; }
.revenue-section.rev-visible .revenue-close-cta-buttons { opacity: 1; transform: translateY(0); transition-delay: 2.7s; }

@keyframes revNumberPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.revenue-section.rev-visible .revenue-card:nth-child(1) .revenue-card-number { animation: revNumberPulse 0.6s ease 1.0s 1; }
.revenue-section.rev-visible .revenue-card:nth-child(2) .revenue-card-number { animation: revNumberPulse 0.6s ease 1.15s 1; }
.revenue-section.rev-visible .revenue-card:nth-child(3) .revenue-card-number { animation: revNumberPulse 0.6s ease 1.3s 1; }
.revenue-section.rev-visible .revenue-card:nth-child(4) .revenue-card-number { animation: revNumberPulse 0.6s ease 1.45s 1; }

@media (max-width: 1024px) {
  .revenue-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .revenue-card { padding: 2.5rem 2.25rem; }
  .revenue-card-number { font-size: clamp(2.25rem, 3.5vw, 3rem); }
}
@media (max-width: 640px) {
  .revenue-section { padding: 5.5rem 1.25rem; }
  .revenue-header  { margin-bottom: 3.5rem; }
  .revenue-headline { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.15; }
  .revenue-subheadline { font-size: 1.0625rem; }
  .revenue-cards { grid-template-columns: 1fr; gap: 1.25rem; }
  .revenue-card { padding: 2.25rem 2rem; border-radius: 20px; }
  .revenue-card-number { font-size: 2.25rem; }
  .revenue-card-label { margin-bottom: 1.25rem; }
  .revenue-card-descriptor { font-size: 1rem; margin-bottom: 1.5rem; }
  .revenue-close-stat {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
  }
  .revenue-close-stat-num { font-size: clamp(3rem, 12vw, 4rem); }
  .revenue-close-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .revenue-close-btn-primary,
  .revenue-close-btn-outline {
    width: 100%;
    max-width: 340px;
  }
  .revenue-close-body p { font-size: 1rem; }
  .revenue-close-final { font-size: 1.125rem; padding: 2rem 0; }
}
