/* ===========================================================
   Mycelium Search · brand foundations (from build brief)
   =========================================================== */
:root {
  /* motion tokens */
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  /* brand core */
  --green-primary: #162924;
  --gold: #b78f68;
  /* background variants */
  --green-alt: #1b322b;
  --green-deep: #10201a;
  --card-dark: #1f3830;
  --card-dark-alt: #223d33;
  /* gold variants */
  --gold-light: #cfaa84;
  --gold-muted: #cdb491;
  --gold-sand: #9a7748;
  /* light sections */
  --sand: #e9e0d0;
  --card-sand: #f2ece1;
  /* text on dark */
  --head-on-dark: #f4f0e9;
  --body-on-dark: #bfcbc2;
  --muted-on-dark: #879a90;
  /* text on light */
  --head-on-light: #192b24;
  --body-on-light: #54625a;
  /* button text on gold */
  --on-gold: #15271f;

  --serif: "Lora", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --border: 1px solid rgba(183, 143, 104, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-on-dark);
  background: var(--green-primary);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- type scale ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--head-on-dark); }
h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.13; }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.22; margin-bottom: 18px; }
h3 { font-size: 24px; line-height: 1.3; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.lede { font-size: 17px; line-height: 1.7; color: var(--head-on-dark); font-weight: 300; }
.section-intro { max-width: 620px; margin-bottom: 40px; }
.caption { font-size: 12px; color: var(--muted-on-dark); }
.centered { text-align: center; }
.centered.section-intro, .section-intro.centered { margin-left: auto; margin-right: auto; }
.centered-col { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }

section { padding: 72px 0; }
.alt-band { background: var(--green-alt); }
.deep-band { background: var(--green-deep); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--head-on-dark); border: 1px solid rgba(244, 240, 233, 0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { padding: 11px 24px; font-size: 12px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }

.text-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(183, 143, 104, 0.45);
  border-radius: 999px;
  padding: 12px 22px;
  transition: all 150ms var(--ease-fast);
}
.text-link:hover { color: var(--gold-light); border-color: var(--gold); transform: translateY(-1px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 41, 36, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.brand img { height: 90px; width: auto; display: block; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: var(--body-on-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--head-on-dark); }
.main-nav a.active { color: var(--gold); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 110px 0 90px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lede { max-width: 540px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.tree-motif {
  color: var(--gold);
  opacity: 0.65;
  width: 240px;
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
}
.portrait-card {
  position: relative;
  width: min(360px, 88%);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card-dark-alt), var(--green-deep));
  border: var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.portrait-card img { display: block; width: 100%; height: auto; }
.guarantee-badge {
  position: absolute;
  top: -14px;
  right: 4%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--green-deep);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.badge-num { font-family: var(--serif); font-size: 21px; color: var(--gold-light); }
.badge-word, .badge-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- brand strip ---------- */
.brand-strip { background: var(--green-deep); padding: 56px 0; }
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4.5vw, 58px);
  flex-wrap: wrap;
  margin: 26px 0 22px;
}
.brand-row img { height: 30px; width: auto; opacity: 0.92; }
.brand-row img[alt="Taco Bell"], .brand-row img[alt="Foodpanda"] { height: 44px; }

/* ---------- brand marquee (home: auto-scrolling logos) ---------- */
.brand-marquee {
  margin: 26px 0 22px;
  overflow: hidden;
  /* fade the edges so logos ease in and out rather than hard-cutting */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: brand-scroll 36s linear infinite;
}
.brand-marquee:hover .marquee-track { animation-play-state: paused; }
/* override the inherited .brand-row layout inside the moving track */
.marquee-group {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
}
/* margin (not gap) keeps spacing identical across the loop seam */
.marquee-group img { margin: 0 clamp(12px, 2.25vw, 29px); }
/* size the tall marks by position so both groups match (alt is blank on the clone) */
.marquee-group img:nth-child(4), /* Taco Bell */
.marquee-group img:nth-child(7) { height: 44px; } /* Foodpanda */
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* exactly one group: seamless wrap */
}

@media (prefers-reduced-motion: reduce) {
  /* fall back to the original static, centred, wrapping row */
  .brand-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; transform: none; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: clamp(24px, 4.5vw, 58px); }
  .marquee-group img { margin: 0; }
}

/* ---------- stats ---------- */
.stats h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
}
.stat { padding: 8px 40px; }
.stat + .stat { border-left: 1px solid rgba(183, 143, 104, 0.22); }
.stat-num { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--gold-muted); margin-bottom: 16px; }
.stat-text { color: var(--body-on-dark); margin-bottom: 14px; }
/* tighter five-up variant for the verified-stats row */
.stats-row.five { grid-template-columns: repeat(5, 1fr); }
.stats-row.five .stat { padding: 6px 22px; }
.stats-row.five .stat-num { font-size: 42px; }
.source-link {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gold-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 143, 104, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-fast), border-color 0.2s var(--ease-fast);
}
.source-link:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

/* refined scroll-entrance for the stats section: heading then 3 blocks 120ms apart.
   Only the pre-reveal (:not(.stats-in)) state hides; adding .stats-in lets each
   element return to its natural state and the transition animates it in. */
.stats-anim .eyebrow,
.stats-anim h2,
.stats-anim .stat {
  transition: opacity 600ms var(--ease-premium), transform 600ms var(--ease-premium);
}
.stats-anim:not(.stats-in) .eyebrow,
.stats-anim:not(.stats-in) h2,
.stats-anim:not(.stats-in) .stat {
  opacity: 0;
  transform: translateY(18px);
}
.stats-anim h2 { transition-delay: 60ms; }
.stats-anim .stat:nth-child(1) { transition-delay: 180ms; }
.stats-anim .stat:nth-child(2) { transition-delay: 300ms; }
.stats-anim .stat:nth-child(3) { transition-delay: 420ms; }
.stats-anim .stat:nth-child(4) { transition-delay: 540ms; }
.stats-anim .stat:nth-child(5) { transition-delay: 660ms; }
@media (prefers-reduced-motion: reduce) {
  .stats-anim:not(.stats-in) .eyebrow,
  .stats-anim:not(.stats-in) h2,
  .stats-anim:not(.stats-in) .stat { opacity: 1; transform: none; }
}

/* ---------- compare ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare-card {
  border-radius: var(--radius);
  padding: 36px;
  background: var(--green-deep);
  border: 1px solid rgba(191, 203, 194, 0.14);
}
.compare-card.with { background: var(--card-dark); border: 1px solid var(--gold); }
.compare-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.compare-head h3 { font-size: 21px; }
.icon-circle {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle svg { width: 16px; height: 16px; }
.icon-circle.outline { border: 1.5px solid var(--gold-muted); color: var(--gold-muted); }
.icon-circle.solid { background: var(--gold); color: var(--on-gold); }
.result-label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-light);
  margin: 18px 0 6px;
  font-size: 15px;
}
.dot-list { list-style: none; }
.dot-list li {
  padding: 11px 0 11px 20px;
  position: relative;
  border-bottom: 1px solid rgba(191, 203, 194, 0.1);
  font-size: 14px;
}
.dot-list li:last-child { border-bottom: none; }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- generic cards ---------- */
.card-grid { display: grid; gap: 24px; margin-bottom: 40px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card-dark);
  border: var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.alt-band .card { background: var(--card-dark-alt); }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 14px; }
.card-icon { display: inline-block; width: 34px; height: 34px; color: var(--gold); margin-bottom: 20px; }
.card-icon svg { width: 100%; height: 100%; }

/* ---------- models ---------- */
.model-card { display: flex; flex-direction: column; gap: 12px; }
.model-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.model-card h3 { margin-bottom: 0; color: var(--gold-light); }
.model-card .caption { margin-top: auto; padding-top: 10px; }
.pill {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 14px;
}
.model-card.flagship { border-color: var(--gold); }

/* ---------- testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* testimonials fade carousel: one quote at a time, crossfading */
.t-carousel { margin-top: 10px; }
.t-viewport { display: flex; align-items: center; gap: 18px; }
.t-window { flex: 1 1 auto; overflow: hidden; }
.t-track {
  position: relative;     /* makes cards' offsetLeft relative to the track */
  display: flex;
  align-items: flex-start;
  gap: 28px;
  transition: transform 650ms var(--ease-premium);  /* smooth slide */
  will-change: transform;
}
.t-track > .t-card {
  flex: 0 0 58%;          /* centred card; the neighbours peek ~half on each side */
  cursor: pointer;
  opacity: 0.32;
  transform: scale(0.96);
  transition: opacity 550ms var(--ease-premium), transform 550ms var(--ease-premium);
}
.t-track > .t-card.active {
  opacity: 1;
  transform: scale(1);
  cursor: default;
}
/* read-more only acts on the centred card; clicking a peek advances to it */
.t-track > .t-card:not(.active) .t-toggle { pointer-events: none; }
.t-arrow:disabled { opacity: 0.28; cursor: default; }
.t-arrow:disabled:hover { background: transparent; color: var(--gold); border-color: rgba(183, 143, 104, 0.5); }
.t-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(183, 143, 104, 0.5);
  background: transparent;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms var(--ease-fast), color 150ms var(--ease-fast), border-color 150ms var(--ease-fast);
}
.t-arrow:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.t-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(191, 203, 194, 0.3);
  cursor: pointer;
  transition: background 150ms var(--ease-fast), transform 150ms var(--ease-fast);
}
.t-dots button.active { background: var(--gold); transform: scale(1.15); }

.t-card {
  background: var(--card-dark);
  border: var(--border);
  border-radius: var(--radius);
  padding: 32px 30px 26px;
  display: flex;
  flex-direction: column;
}
.t-quote { font-family: var(--serif); font-size: 44px; line-height: 0.6; color: var(--gold); display: block; margin-bottom: 16px; }
.t-excerpt { color: var(--head-on-dark); font-size: 15px; }
.t-more { margin-top: 10px; font-size: 14px; color: var(--body-on-dark); }
.t-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-top: 14px;
}
.t-toggle:hover { color: var(--gold-light); }
.t-card hr { border: none; border-top: 1px solid rgba(191, 203, 194, 0.12); margin: 18px 0 14px; }
.t-sector {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.t-role { font-size: 13px; color: var(--body-on-dark); }

/* ---------- founders ---------- */
.founders-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 60px;
  align-items: center;
}
.tree-motif.large { position: static; transform: none; width: 100%; max-width: 300px; justify-self: center; opacity: 0.5; }

/* ---------- CTA ---------- */
.cta { padding: 84px 0; }
.cta-title { font-size: clamp(30px, 4vw, 44px); }
.cta .lede { max-width: 520px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); padding: 70px 0 28px; border-top: var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img { height: 84px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 13px; max-width: 360px; }
.footer-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--body-on-dark); text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(183, 143, 104, 0.25);
  padding-top: 22px;
  font-size: 12px;
  color: var(--muted-on-dark);
}

/* ===========================================================
   Inner pages
   =========================================================== */

/* ---------- page hero ---------- */
.page-hero { background: var(--green-deep); padding: 90px 0 70px; }
.page-hero h1 { max-width: 760px; margin: 14px 0 22px; }
.page-hero .lede { max-width: 640px; }

/* ---------- philosophy two-col ---------- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: start;
}
.split-grid .prose p + p { margin-top: 18px; }
.callout {
  background: var(--card-dark);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 32px;
}
.callout + .callout { margin-top: 24px; }
.callout-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--gold-light);
}
.callout .eyebrow { margin-bottom: 10px; }
.callout p { font-size: 14px; }

/* ---------- numbered cards ---------- */
.num-card .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

/* ---------- tabs (impact matrix + models) ---------- */
.tabs { margin-top: 20px; }
.tab-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--body-on-dark);
  background: transparent;
  border: 1px solid rgba(191, 203, 194, 0.25);
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: var(--head-on-dark); border-color: var(--gold); }
.tab-btn.active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- impact matrix table ---------- */
.table-wrap { overflow-x: auto; }
.impact-table, .evidence-table, .glance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.impact-table th, .impact-table td,
.evidence-table th, .evidence-table td,
.glance-table th, .glance-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(191, 203, 194, 0.12);
  vertical-align: top;
}
.impact-table th, .evidence-table th, .glance-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(183, 143, 104, 0.4);
}
.impact-table td strong, .glance-table td strong { color: var(--head-on-dark); font-weight: 500; }
.evidence-table td strong { color: var(--head-on-dark); font-weight: 500; }
.evidence-table td strong a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 143, 104, 0.4);
  transition: color 0.2s var(--ease-fast), border-color 0.2s var(--ease-fast);
}
.evidence-table td strong a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.cell-main { color: var(--head-on-dark); display: block; }
.cell-sub { font-size: 12px; color: var(--muted-on-dark); display: block; margin-top: 4px; }
.footnote { font-size: 11px; color: var(--muted-on-dark); margin-top: 22px; max-width: 760px; }

/* ---------- venn ---------- */
.venn { display: flex; justify-content: center; margin: 40px 0 18px; }
.venn svg { width: 300px; max-width: 80vw; }

/* ---------- 3E carousel ---------- */
.carousel { position: relative; max-width: 720px; margin: 0 auto; }
.carousel-track { overflow: hidden; }
.carousel-slides { display: flex; transition: transform 0.35s ease; }
.slide { flex: 0 0 100%; min-width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 6px; }
.slide-inner {
  background: var(--card-dark);
  border: var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
  text-align: center;
}
.slide-inner .card-icon { margin: 0 auto 18px; display: block; }
.slide-sub { font-family: var(--serif); font-style: italic; color: var(--gold-light); margin: 6px 0 14px; }
.slide-inner ul { list-style: none; text-align: left; max-width: 420px; margin: 18px auto 0; }
.slide-inner ul li { padding: 9px 0 9px 20px; position: relative; font-size: 14px; border-bottom: 1px solid rgba(191,203,194,0.1); }
.slide-inner ul li:last-child { border-bottom: none; }
.slide-inner ul li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(183, 143, 104, 0.5);
  background: var(--green-deep);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}
.carousel-arrow:hover { background: var(--gold); color: var(--on-gold); }
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(191, 203, 194, 0.3);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--gold); }
.carousel-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--head-on-dark);
  text-align: center;
  max-width: 560px;
  margin: 44px auto 0;
}
.carousel-close strong { color: var(--gold-light); font-weight: 500; }

/* ---------- process stepper ---------- */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 48px; }
.step { position: relative; padding-top: 22px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: -18px;
  height: 1px;
  background: rgba(183, 143, 104, 0.35);
}
.step:last-child::before { right: 0; }
.step-num {
  position: absolute;
  top: -13px; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 17px; margin: 14px 0 8px; }
.step p { font-size: 13px; }

/* ---------- whitepaper ---------- */
.wp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 56px;
  align-items: center;
}
.wp-cover {
  background: linear-gradient(165deg, var(--card-dark-alt), var(--green-deep));
  border: 1px solid var(--gold);
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  max-width: 300px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 26px 50px rgba(0,0,0,0.4);
}
.wp-cover .eyebrow { margin-bottom: 0; }
.wp-cover-title { font-family: var(--serif); font-size: 27px; color: var(--head-on-dark); line-height: 1.25; overflow-wrap: anywhere; }
.wp-cover-sub { font-size: 12px; color: var(--body-on-dark); }

/* ---------- partner blocks ---------- */
.partner-block {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 30px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(183, 143, 104, 0.22);
}
.partner-block:last-of-type { border-bottom: none; }
.partner-block .card-icon { width: 42px; height: 42px; margin: 0; }
.partner-block h3 { margin: 4px 0 14px; }
.partner-block .eyebrow { margin-bottom: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-light);
  border: 1px solid rgba(183, 143, 104, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid rgba(183, 143, 104, 0.3); }
.acc-item { border-bottom: 1px solid rgba(183, 143, 104, 0.3); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 4px;
  text-align: left;
}
.acc-head h3 { font-size: 21px; color: var(--head-on-dark); }
.acc-head .acc-sign {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  flex: none;
}
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-premium);
  padding: 0 4px;
}
.acc-body > * { overflow: hidden; min-height: 0; }
.acc-item.open .acc-body { grid-template-rows: 1fr; padding-bottom: 30px; }
.acc-sign { transition: transform 300ms var(--ease-premium); }
.acc-item.open .acc-sign { transform: rotate(180deg); }
.role-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- engagement model panels ---------- */
.model-panel { background: var(--card-dark); border: var(--border); border-radius: var(--radius); padding: 44px; }
.model-panel .model-title { font-family: var(--serif); font-size: 30px; color: var(--gold-light); margin: 6px 0 8px; }
.model-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
  margin-top: 30px;
}
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 14px;
  border-bottom: 1px solid rgba(191, 203, 194, 0.08);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 8px;
  color: var(--gold);
  font-weight: 700;
}
.check-list li.highlight { color: var(--gold-light); font-weight: 500; }
.col-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.stage-track { display: flex; flex-direction: column; gap: 10px; }
.stage {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(191, 203, 194, 0.14);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted-on-dark);
}
.stage .stage-n {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.stage.on { border-color: var(--gold); color: var(--head-on-dark); background: rgba(183, 143, 104, 0.08); }
.stage.on .stage-n { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.suited {
  margin-top: 30px;
  background: var(--sand);
  border-left: 3px solid var(--gold-sand);
  border-radius: 0 10px 10px 0;
  padding: 22px 26px;
}
.suited .col-head { color: var(--gold-sand); }
.suited p { color: var(--body-on-light); font-size: 14px; }

/* ---------- glance table ---------- */
.glance-table td { color: var(--body-on-dark); }
.glance-table td.yes { color: var(--gold); font-weight: 700; }
.glance-table td.no { color: var(--muted-on-dark); }
.glance-table td.center, .glance-table th.center { text-align: center; }

/* ---------- guarantee band ---------- */
.guarantee-band { background: var(--gold); color: var(--on-gold); padding: 80px 0; }
.guarantee-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.seal {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 2px solid var(--on-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.seal .badge-num { color: var(--on-gold); font-size: 30px; }
.seal .badge-word { color: var(--on-gold); font-size: 11px; }
.guarantee-band h2 { color: var(--on-gold); }
.guarantee-band p { color: rgba(21, 39, 31, 0.85); max-width: 720px; }

/* ---------- founders page ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  background: var(--card-dark);
  border: var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.founder-card + .founder-card { margin-top: 28px; }
.founder-photo {
  background: var(--green-deep);
  border: 1px dashed rgba(183, 143, 104, 0.5);
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-on-dark);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
}
/* when a real portrait is present, drop the dashed placeholder treatment */
.founder-photo:has(img) { border: none; background: none; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.founder-card h3 { margin-bottom: 2px; }
.founder-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.founder-card .prose p + p { margin-top: 14px; }
.founder-card .focus-label {
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.founder-card .focus-text { color: var(--body-on-dark); font-size: 14px; }
.founders-shared {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(183, 143, 104, 0.22);
  text-align: center;
  color: var(--body-on-dark);
  font-size: 14px;
}
.founder-card .text-link { display: inline-block; margin-top: 18px; font-size: 13px; }

/* ---------- contact ---------- */
.partner-router {
  background: var(--card-dark);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.partner-router .eyebrow { margin-bottom: 14px; }
.router-list { list-style: none; display: grid; gap: 10px; }
.router-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--body-on-dark);
}
.router-list .arrow { color: var(--gold); }
.router-list strong { color: var(--head-on-dark); font-weight: 500; }
.router-note { margin-top: 16px; font-size: 14px; color: var(--body-on-dark); }
.router-note a { color: var(--gold-light); text-decoration: none; }
.router-note a:hover { text-decoration: underline; }
.flow-toggle { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--card-dark);
  border: var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-form h3 { margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--green-deep);
  border: 1px solid rgba(191, 203, 194, 0.18);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--head-on-dark);
  font-family: var(--sans);
  font-size: 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { border: none; cursor: pointer; width: 100%; margin-top: 6px; }
.contact-aside .callout + .callout { margin-top: 24px; }
.contact-aside .dot-list li { border-bottom: none; padding: 7px 0 7px 20px; }
.contact-aside .dot-list li::before { top: 15px; }
.contact-aside a { color: var(--gold-light); text-decoration: none; }

/* ---------- quote band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--head-on-dark);
  max-width: 720px;
  margin: 0 auto 18px;
  line-height: 1.4;
}

/* ===========================================================
   Motion & polish (change brief P2/P3/P4)
   =========================================================== */

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-premium), transform 600ms var(--ease-premium); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-child { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-premium), transform 500ms var(--ease-premium); }
.revealed .reveal-child { opacity: 1; transform: translateY(0); }

/* tab panel swap animation */
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-panel.panel-in { animation: panelIn 300ms var(--ease-premium); }

/* sand variant for the tiered impact matrix tabs */
.sand-tabs .tab-btn { border-color: transparent; color: var(--gold-muted); }
.sand-tabs .tab-btn:hover { color: var(--gold-light); }
.sand-tabs .tab-btn.active { background: var(--sand); color: var(--head-on-light); border-color: var(--sand); }

/* card hover lifts */
.card, .t-card, .founder-card, .compare-card, .model-panel {
  transition: transform 150ms var(--ease-fast), border-color 150ms var(--ease-fast), box-shadow 150ms var(--ease-fast);
}
.card:hover, .t-card:hover, .founder-card:hover, .compare-card:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 165, 133, 0.55);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4);
}

/* primary CTA glow */
.btn-gold { transition: transform 150ms var(--ease-fast), background 150ms var(--ease-fast), box-shadow 150ms var(--ease-fast); }
.btn-gold:hover { background: #cda884; box-shadow: 0 0 24px rgba(183, 143, 104, 0.4); }

/* decorative tree sway */
@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}
.tree-motif.sway { transform-origin: bottom center; animation: sway 6s ease-in-out infinite; }
.tree-motif.large.sway { animation: sway 6s ease-in-out infinite; }

/* approach hero decorative tree */
.page-hero .hero-deco-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.45fr);
  gap: 40px;
  align-items: center;
}
.page-hero .tree-motif.hero-deco { position: static; transform: none; width: 100%; max-width: 280px; opacity: 0.18; justify-self: center; }

/* testimonial expand-in-place */
.t-card .t-full { display: none; color: var(--head-on-dark); font-size: 14.5px; }
.t-card.expanded .t-excerpt { display: none; }
.t-card.expanded .t-full { display: block; }

/* geo line under hero */
.geo-line { font-size: 13px; color: var(--muted-on-dark); margin-top: 26px; }

/* FAQ section reuses the accordion */
.faq .acc-head h3 { font-size: 18px; }
.faq .acc-body p { font-size: 14px; max-width: 720px; }

/* respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-child { opacity: 1; transform: none; }
}

/* ===========================================================
   v12: imagery, media splits, cream closers
   =========================================================== */
.media-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.30);
}
.media-figure img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* two-column section: copy + image (body first in source; image-left moves the figure left on desktop) */
.media-split .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.media-split.image-left .media-figure { order: -1; }
.media-split .media-body .section-intro { margin-top: 14px; }
.media-figure.portrait img { aspect-ratio: 4 / 5; }
.aside-italic { margin-top: 22px; font-style: italic; color: var(--muted-on-dark); font-size: 14px; max-width: 520px; }

/* inner-page hero with a foreground image on the right */
.page-hero.has-image .hero-deco-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }
.page-hero .hero-figure { margin: 0; }
.page-hero .hero-figure img { aspect-ratio: 3 / 4; }
.page-hero .hero-figure.landscape img { aspect-ratio: 3 / 2; }
.model-fee { margin-top: 16px; font-size: 13px; color: var(--body-on-dark); }
.model-fee strong { color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }

/* our-roots hero pull-quote (gold left border) */
.page-hero.has-aside .hero-deco-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); align-items: center; }
.pull-quote { border-left: 3px solid var(--gold); padding: 4px 0 4px 26px; }
.pull-quote p { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; color: var(--head-on-dark); }
.pull-quote .attr { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 16px; }

/* who-we-help: image beside the PE partner row */
.partner-block.has-figure .partner-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr); gap: 40px; align-items: center; }
/* section head with an image beside the heading */
.section-head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 48px; align-items: center; margin-bottom: 44px; }
.card .stat-flag { margin: 16px 0 0; font-size: 13px; }

/* compact stacked feature rows (icon + title + line) shown beside an image */
.mini-features { display: grid; gap: 20px; margin-top: 28px; }
.mini-feature { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.mini-feature .card-icon { width: 30px; height: 30px; color: var(--gold); }
.mini-feature h3 { font-family: var(--serif); font-weight: 500; font-size: 17px; margin-bottom: 2px; color: var(--head-on-dark); }
.mini-feature p { font-size: 14px; }

/* full-bleed hero with background image + overlay */
.hero-bleed { position: relative; padding: 132px 0; background: var(--green-deep); overflow: hidden; }
.hero-bleed .hero-bg { position: absolute; inset: 0; }
.hero-bleed .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,26,0.74), rgba(16,32,26,0.88)); }
.hero-bleed .container { position: relative; z-index: 1; text-align: center; }
.hero-bleed h1 { max-width: 820px; margin: 14px auto 20px; }
.hero-bleed .lede { max-width: 640px; margin: 0 auto; }

/* CTA band with a background image */
.cta.has-bg { position: relative; overflow: hidden; }
.cta.has-bg .cta-bg { position: absolute; inset: 0; }
.cta.has-bg .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,26,0.80), rgba(16,32,26,0.90)); }
.cta.has-bg .container { position: relative; z-index: 1; }

/* light / cream mini-CTA closer for inner pages */
.cream { background: var(--sand); color: var(--body-on-light); }
.cream-cta { padding: 60px 0; }
.cream-cta .cta-title, .cream h2 { color: var(--head-on-light); }
.cream .lede, .cream p, .cream .caption { color: var(--body-on-light); }
.cream .eyebrow { color: var(--gold-sand); }

/* contact: two distinct enquiry-flow cards */
.flow-cards { display: grid; gap: 28px; }
.flow-card { border: var(--border); border-radius: var(--radius); padding: 32px 34px 38px; }
.flow-card.accent { border-left: 3px solid var(--gold); }
.flow-card > .eyebrow { margin-bottom: 6px; }
.cream blockquote { color: var(--head-on-light); }

/* highlighted single-stat flag (gold left border) */
.stat-flag { border-left: 3px solid var(--gold); padding: 8px 0 8px 18px; margin: 18px 0 26px; max-width: 640px; font-size: 15px; color: var(--body-on-dark); }
.stat-flag strong { font-family: var(--serif); font-size: 20px; color: var(--gold-light); margin-right: 8px; }
.stat-flag .src { color: var(--gold-muted); font-size: 12px; text-decoration: none; border-bottom: 1px solid rgba(183, 143, 104, 0.35); white-space: nowrap; }
.stat-flag .src:hover { color: var(--gold-light); }

/* footer legal line + links */
.footer-bottom a { color: var(--body-on-dark); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-legal { text-align: right; max-width: 62%; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .media-split .container { grid-template-columns: 1fr; gap: 34px; }
  .media-split.image-left .media-figure { order: 0; }
  .hero-bleed { padding: 92px 0; }
  .footer-legal { text-align: left; max-width: 100%; }
  .partner-block.has-figure .partner-main { grid-template-columns: 1fr; gap: 24px; }
  .section-head-split { grid-template-columns: 1fr; gap: 28px; }
  .page-hero.has-image .hero-deco-grid,
  .page-hero.has-aside .hero-deco-grid { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .hero { padding: 70px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { margin-top: 20px; }
  .card-grid.three, .card-grid.two, .testimonial-grid, .compare-grid { grid-template-columns: 1fr; }
  .t-arrow { display: none; } /* mobile: dots + swipe instead of arrows */
  .t-track { gap: 16px; }
  .t-track > .t-card { flex-basis: 82%; } /* wider centred card, smaller peek on phones */
  .stats-row { grid-template-columns: 1fr; gap: 36px; }
  .stat { padding: 0; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(183, 143, 104, 0.22); padding-top: 36px; }
  .founders-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-deep);
    flex-direction: column;
    padding: 24px 28px;
    gap: 18px;
    border-bottom: var(--border);
  }
  .main-nav.open { display: flex; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--gold); display: block; }
  .header-inner .btn { display: none; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .brand img { height: 60px; } /* scale logo down proportionally on mobile */

  /* inner pages */
  .split-grid, .wp-grid, .model-cols, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero .hero-deco-grid { grid-template-columns: 1fr; }
  .page-hero .tree-motif.hero-deco { display: none; }
  .stepper { grid-template-columns: 1fr; gap: 34px; }
  .step::before { right: 0; }
  .partner-block { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .founder-card { grid-template-columns: 1fr; padding: 28px; }
  .founder-photo { max-width: 240px; }
  .guarantee-grid { grid-template-columns: 1fr; gap: 30px; }
  .model-panel { padding: 28px; }
  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }
  .slide-inner { padding: 34px 26px; }
  .wp-cover { margin: 0 auto; }
}

/* ===========================================================
   Mobile polish pass (additive). Desktop (>=921px) is untouched.
   =========================================================== */

/* ---------- tablet: 2-up grids so it doesn't feel like a stretched phone ---------- */
@media (min-width: 601px) and (max-width: 920px) {
  .card-grid.three, .card-grid.two { grid-template-columns: repeat(2, 1fr); }
  .stats-row, .stats-row.five { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 0; }
  .stat + .stat { border-left: none; border-top: none; padding-top: 0; }
}

/* ---------- tablet / large phone ---------- */
@media (max-width: 768px) {
  /* legible body + no iOS zoom on focus */
  body { font-size: 16px; }
  h1 { font-size: clamp(30px, 7.4vw, 40px); }
  h2 { font-size: clamp(24px, 5.6vw, 30px); }
  .cta-title { font-size: clamp(26px, 6vw, 34px); }

  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { gap: 44px; }

  /* two-column splits: image sits below the text, full width (text is first in source) */
  .media-split .container { gap: 30px; }

  /* contact: forms stack, fields full-width, 16px inputs */
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .field input, .field textarea { font-size: 16px; padding: 14px 16px; }

  /* tap targets >=44px */
  .btn, .text-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .contact-form .btn { width: 100%; }
  .main-nav a { padding: 11px 0; min-height: 44px; display: flex; align-items: center; }
  .acc-head { min-height: 44px; }
  .t-toggle { min-height: 44px; padding: 10px 0; }

  /* testimonials: essentially one quote at a time at phone width */
  .t-track > .t-card { flex-basis: 86%; }

  /* stronger overlay so headlines stay legible on shorter image bands */
  .hero-bleed::after { background: linear-gradient(180deg, rgba(16,32,26,0.82), rgba(16,32,26,0.92)); }
  .cta.has-bg::after { background: linear-gradient(180deg, rgba(16,32,26,0.86), rgba(16,32,26,0.94)); }

  /* comparison table: horizontal scroll with a sticky first column */
  .glance-table { min-width: 640px; }
  .glance-table th:first-child, .glance-table td:first-child {
    position: sticky; left: 0; z-index: 1;
    background: var(--green-alt);
    box-shadow: 1px 0 0 rgba(183, 143, 104, 0.18);
  }
  .table-wrap { -webkit-overflow-scrolling: touch; }

  /* cost-of-mis-hire matrix: stack each row into a card, no horizontal scroll */
  .impact-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .impact-table, .impact-table tbody, .impact-table tr, .impact-table td { display: block; width: 100%; }
  .impact-table tr {
    background: var(--card-dark);
    border: var(--border);
    border-radius: var(--radius);
    padding: 4px 18px 14px;
    margin-bottom: 16px;
  }
  .impact-table td { border-bottom: none; padding: 10px 0 0; }
  .impact-table td:first-child { padding-top: 14px; }
  .impact-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 3px;
  }
}

/* ---------- phone ---------- */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  section { padding: 38px 0; }
  .hero { padding: 40px 0 36px; }
  .hero-grid { gap: 36px; }

  h1 { font-size: clamp(26px, 8.4vw, 34px); }
  h2 { font-size: clamp(22px, 7vw, 27px); }

  /* stats: one column, figures scaled so they never clip or wrap mid-number */
  .stats-row, .stats-row.five { grid-template-columns: 1fr; gap: 28px; }
  .stat-num, .stats-row.five .stat-num { font-size: 40px; }

  /* header: smaller logo/height so the first screen isn't mostly header */
  .brand img { height: 46px; }
  .header-inner { gap: 14px; padding-top: 10px; padding-bottom: 10px; }

  /* guarantee badge stays clear of headline/image when the hero stacks */
  .guarantee-badge { width: 84px; height: 84px; top: -10px; right: 6%; }
  .badge-num { font-size: 17px; }

  .btn { padding: 14px 26px; }
  .btn-row { gap: 12px; }
  .t-track > .t-card { flex-basis: 90%; }
  .footer-bottom { gap: 8px; }
}
