/* =========================================================
   KAT MARTYN — Brand System
   Palette:
     --stone:   #BFB3A4  (primary brand — warm taupe)
     --stone-2: #D4CBBE  (soft stone)
     --stone-3: #E8E2D7  (pale stone)
     --cream:   #F7F4EE  (off-white)
     --paper:   #FBF9F4  (paper)
     --ink:     #1B1714  (near-black, warm)
     --ink-2:   #3A332C  (secondary text)
     --muted:   #7A7267  (muted text)
   Type:
     Display — 'Cormorant Garamond' (high-contrast didone-adjacent serif to match logo)
     Body    — 'Inter Tight' (clean modern sans)
     Mono    — 'JetBrains Mono' (small utility labels)
   ========================================================= */

:root {
  --stone: #BFB3A4;
  --stone-2: #D4CBBE;
  --stone-3: #E8E2D7;
  --cream: #F7F4EE;
  --paper: #FBF9F4;
  --ink: #1B1714;
  --ink-2: #3A332C;
  --muted: #7A7267;
  --line: rgba(27, 23, 20, 0.12);
  --line-soft: rgba(27, 23, 20, 0.06);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =========================================================
   Typography
   ========================================================= */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; color: var(--ink); }

.display-xl { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7vw, 108px); line-height: 0.93; letter-spacing: -0.03em; }
.display-lg { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.5vw, 84px); line-height: 0.96; letter-spacing: -0.025em; }
.display-md { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 62px); line-height: 1.0; letter-spacing: -0.022em; }
.display-sm { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.018em; }
.display-xs { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }

.italic { font-style: italic; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--stone { color: var(--stone); }

.lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; color: var(--ink-2); font-weight: 400; text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 13px; line-height: 1.55; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--wide { max-width: 1640px; }
.container--narrow { max-width: 960px; }

.section { padding: clamp(56px, 6vw, 96px) 0; }
.section--sm { padding: clamp(40px, 4vw, 64px) 0; }
.section--lg { padding: clamp(72px, 8vw, 128px) 0; }

.divider { height: 1px; background: var(--line); }
.divider-stone { height: 1px; background: rgba(191, 179, 164, 0.6); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.28s cubic-bezier(.4,.2,.2,1);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-stone { background: var(--stone); color: var(--ink); }
.btn-stone:hover { background: var(--ink); color: var(--cream); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-outline-stone { border-color: var(--stone); color: var(--ink); }
.btn-outline-stone:hover { background: var(--stone); }

.btn-ghost { padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { letter-spacing: 0.18em; }

.btn-arrow::after {
  content: "→";
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0;
  transition: transform 0.28s;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: 1640px;
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__logo img {
  height: 44px;
  width: auto;
}
.nav__logo-text {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.nav__logo-subtext {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}

.nav__cta {
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--stone); color: var(--ink); }

.nav__burger { display: none; width: 24px; height: 24px; flex-direction: column; justify-content: center; gap: 5px; }
.nav__burger span { display: block; width: 100%; height: 1px; background: var(--ink); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(72px, 10vw, 140px) 0 40px;
  position: relative;
  overflow: hidden;
}
.footer__monogram {
  position: absolute;
  right: -8%;
  bottom: -40%;
  width: 80%;
  opacity: 0.035;
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer a {
  display: block;
  font-size: 14px;
  color: rgba(247, 244, 238, 0.7);
  padding: 6px 0;
  transition: color 0.2s;
}
.footer a:hover { color: var(--cream); }
.footer .btn { display: inline-flex; padding: 16px 44px; font-size: 13px; color: var(--ink); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 244, 238, 0.12);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.5);
  position: relative;
  z-index: 1;
}

/* =========================================================
   Image placeholder system
   Since we don't have the real photos yet.
   ========================================================= */
.ph {
  position: relative;
  background: var(--stone);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(27, 23, 20, 0.55);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    rgba(27, 23, 20, 0.04) 14px,
    rgba(27, 23, 20, 0.04) 15px
  );
}
.ph--cream { background: var(--stone-3); }
.ph--dark { background: var(--ink-2); color: rgba(247, 244, 238, 0.6); }
.ph--dark::before {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    rgba(247, 244, 238, 0.04) 14px,
    rgba(247, 244, 238, 0.04) 15px
  );
}
.ph__label { position: relative; z-index: 1; max-width: 80%; }

/* Real image wrapper — swap <div class="ph"> for <div class="img"><img></div> when photos arrive */
.img { position: relative; overflow: hidden; background: var(--stone-3); }
.img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero image: never taller than the viewport */
.g-hero .img { max-height: 70vh; }
.g-hero .img img { max-height: inherit; }
.img--grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(27, 23, 20, 0.15) 100%);
  pointer-events: none;
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideRight { from { width: 0; } to { width: 100%; } }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee__track {
  display: inline-flex;
  gap: 64px;
  padding: 28px 0;
  animation: marqueeMove 44s linear infinite;
  align-items: center;
}
@keyframes marqueeMove { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stone);
  flex-shrink: 0;
}

/* =========================================================
   Page transition
   ========================================================= */
.page-container { min-height: 50vh; }
.page-enter { animation: fadeUp 0.5s cubic-bezier(.2,.6,.2,1) both; }

/* =========================================================
   Brand pattern background utility
   ========================================================= */
.bg-pattern {
  background-image: url('assets/brand-pattern.jpg');
  background-size: 600px;
  background-repeat: repeat;
}
.bg-stone { background: var(--stone); }
.bg-stone-2 { background: var(--stone-2); }
.bg-stone-3 { background: var(--stone-3); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink *, .bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--cream); }
.bg-ink .muted, .bg-ink .body { color: rgba(247, 244, 238, 0.68); }
.bg-ink .eyebrow { color: var(--stone); }

/* =========================================================
   Tweaks panel
   ========================================================= */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 20px 60px rgba(27, 23, 20, 0.14);
  font-family: var(--sans);
  display: none;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s;
}
.tweaks.is-open { display: block; animation: fadeUp 0.3s both; }
.tweaks h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-row label {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.tweak-swatches {
  display: flex;
  gap: 8px;
}
.tweak-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tweak-swatch.is-active { border-color: var(--ink); }
.tweak-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-size: 12px;
  font-family: var(--sans);
}

/* =========================================================
   Responsive Grid Utilities
   — Use these classNames in JSX. CSS classes can be overridden
     by media queries; inline styles cannot.
   ========================================================= */
.g2   { display: grid; grid-template-columns: 1fr 1fr; }
.g3   { display: grid; grid-template-columns: repeat(3, 1fr); }
.g4   { display: grid; grid-template-columns: repeat(4, 1fr); }
.g-strip  { display: grid; grid-template-columns: repeat(4, 1fr); }
.g-months { display: grid; grid-template-columns: 100px 1fr 2fr; gap: 32px; align-items: baseline; }
.g-case   { display: grid; grid-template-columns: 1fr 2fr 1.5fr 60px; gap: 32px; align-items: center; }
.g-cards  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.g-cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.g-support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.g-label  { display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
.g-editorial { display: grid; grid-template-columns: clamp(140px, 14vw, 240px) 1fr; }
.g-stats  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Photo row: stays 3-col through tablet, collapses at 640px */
.g3-photos { display: grid; grid-template-columns: repeat(3, 1fr); }

/* =========================================================
   Client story rows (Results page) — portrait video + content
   ========================================================= */
.client-row { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.client-row--reverse { grid-template-columns: 1fr minmax(280px, 420px); }
.client-row--reverse .client-row__media { order: 2; }
.client-row__media { position: relative; aspect-ratio: 9/16; overflow: hidden; background: var(--ink); width: 100%; }

.client-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px; }
.client-stats > div { background: var(--paper); padding: 24px 28px; }
.client-stats--3 { grid-template-columns: repeat(3, 1fr); }

.ig-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: all 0.2s;
  background: var(--paper);
}
.ig-chip:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.ig-chip svg { width: 14px; height: 14px; }

.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(27,23,20,0) 40%, rgba(27,23,20,0.45) 100%);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  width: 100%;
  padding: 0;
}
.play-overlay:hover { background: linear-gradient(180deg, rgba(27,23,20,0.05) 40%, rgba(27,23,20,0.55) 100%); }
.play-overlay__btn {
  width: clamp(64px, 9vw, 88px);
  height: clamp(64px, 9vw, 88px);
  border-radius: 50%;
  background: rgba(247,244,238,0.96);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transition: transform 0.25s cubic-bezier(.4,.2,.2,1);
}
.play-overlay:hover .play-overlay__btn { transform: scale(1.06); }
.play-overlay__btn svg { width: 22px; height: 26px; margin-left: 4px; }
.play-overlay__label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(27,23,20,0.6);
  padding: 6px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Client teaser card — used on home/scaleup/clinic */
.client-teaser {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--paper);
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid var(--line-soft);
}
.client-teaser__media {
  position: relative;
  display: block;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.client-teaser__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s cubic-bezier(.4,.2,.2,1);
}
.client-teaser__media:hover img { transform: scale(1.04); }
.client-teaser__badge {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(27,23,20,0.65);
  padding: 8px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 768px) {
  .client-teaser { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
  .client-teaser__media { max-height: 60vh; }
}

/* =========================================================
   Mobile Nav Menu
   ========================================================= */
.nav__mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 88px var(--gutter) 48px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.4,.2,.2,1);
  overflow-y: auto;
}
.nav__mobile.is-open { transform: translateX(0); }
.nav__mobile-link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.15;
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav__mobile-link.is-active { color: var(--stone); }
.nav__mobile-link:active { color: var(--stone); }
.nav__mobile-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav__burger { cursor: pointer; }

/* Close button — inside the mobile overlay */
.nav__mobile-close {
  position: fixed;
  top: 18px;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 56;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__mobile-close span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
}
.nav__mobile-close span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.nav__mobile-close span:last-child  { transform: rotate(-45deg) translate(4px, -4px); }

/* =========================================================
   TABLET — ≤ 1100px
   ========================================================= */
@media (max-width: 1100px) {
  .g3, .g-cards, .g-support {
    grid-template-columns: 1fr 1fr;
  }
  .g-support { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   MOBILE — ≤ 768px
   ========================================================= */
@media (max-width: 768px) {
  :root { --gutter: 20px; }

  /* All standard multi-col grids collapse */
  .g2, .g3, .g-editorial { grid-template-columns: 1fr !important; }
  .g4       { grid-template-columns: 1fr 1fr !important; }
  .g-strip  { grid-template-columns: 1fr 1fr !important; aspect-ratio: auto !important; }
  .g-cards, .g-support, .g-cards-2 { grid-template-columns: 1fr !important; gap: 1px; }

  /* Month structure: hide description column */
  .g-months { grid-template-columns: 80px 1fr !important; }
  .g-months-copy { display: none !important; }

  /* Case study rows: show only label + headline */
  .g-case { grid-template-columns: 1fr !important; padding: 24px 0 !important; }
  .g-case-summary, .g-case-arrow { display: none !important; }

  /* Hero layout: single col, image below text */
  .g-hero { display: grid !important; grid-template-columns: 1fr !important; }
  .g-hero .hero-img { order: 2; margin-top: 32px; }
  .g-hero .hero-img .img,
  .g-hero .hero-img .ph { aspect-ratio: 4/3 !important; max-height: 340px; }

  /* Typography */
  .display-xl { font-size: clamp(44px, 11vw, 68px) !important; }
  .display-lg { font-size: clamp(36px, 9vw, 56px) !important; }
  .display-md { font-size: clamp(28px, 7.5vw, 44px) !important; }

  /* Sections: reduce vertical padding */
  .section { padding: 44px 0; }
  .section--sm { padding: 28px 0; }
  .section--lg { padding: 56px 0; }

  /* Hide overlay caption on small screens — too small to read */
  .hero-caption { display: none; }

  /* Button rows: stack and stretch on mobile */
  .btn-row { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
  .btn-row .btn { justify-content: center; width: 100%; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .footer__bottom { flex-direction: column !important; gap: 10px !important; text-align: center !important; }

  /* Nav active underline — reduce gap */
  .nav__links { gap: 20px; }

  /* Accordion body: remove wide right padding */
  .accordion-body { padding-right: 16px !important; }

  /* Community photo grids: let them scroll naturally */
  .photo-mosaic { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  .photo-mosaic > * { width: 100% !important; }
  .photo-mosaic .ph, .photo-mosaic .img { aspect-ratio: 4/3 !important; }

  /* Before/after grid on scaleup */
  .before-after { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Label/copy rows collapse, label stays compact on its own line */
  .g-label { grid-template-columns: 1fr !important; gap: 8px !important; }

  /* Event meta pills: 3 short values stay on one row on mobile — narrow gap */
  .g-stats { gap: 10px !important; }

  /* Photo row: 3-col until this breakpoint, then stack */
  .g3-photos { grid-template-columns: 1fr; }

  /* Client rows stack on mobile, video on top regardless of reverse */
  .client-row, .client-row--reverse { grid-template-columns: 1fr !important; gap: 32px !important; }
  .client-row--reverse .client-row__media { order: 0 !important; }
  .client-row__media { max-height: 78vh; }
  .client-stats, .client-stats--3 { grid-template-columns: 1fr 1fr !important; }
}

/* =========================================================
   SMALL MOBILE — ≤ 480px
   ========================================================= */
@media (max-width: 480px) {
  .g4 { grid-template-columns: 1fr 1fr !important; }
  .g-strip { grid-template-columns: 1fr 1fr !important; }
  .display-xl { font-size: clamp(44px, 13vw, 64px) !important; }
  .btn { padding: 16px 20px; font-size: 12px; }
}

/* =========================================================
   VERY SMALL MOBILE — ≤ 400px
   ========================================================= */
@media (max-width: 400px) {
  .footer__grid { grid-template-columns: 1fr !important; }
}

/* =========================================================
   Floating CTA
   ========================================================= */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 49;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(.2,.6,.2,1), transform 0.4s cubic-bezier(.2,.6,.2,1);
}
.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta .btn { box-shadow: 0 8px 32px rgba(27,23,20,0.22); }

@media (max-width: 768px) {
  .floating-cta { display: none; }
}

/* Waitlist form input */
.waitlist-input::placeholder { color: rgba(247, 244, 238, 0.45); }
.waitlist-input:focus { outline: none; border-color: var(--stone) !important; }
