/* BAM Business marketing site. Tokens from the bam-business-design skill (colors_and_type.css). */

@font-face { font-family: "Sportize"; src: url("fonts/sportize-800-licensed.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Stem"; src: url("fonts/bigstem-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Big Stem"; src: url("fonts/bigstem-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bam-charcoal: #1C1C1C;
  --bam-charcoal-deep: #141414;
  --bam-charcoal-raised: #232323;
  --bam-charcoal-line: #2B2B2B;
  --bam-gold: #E2D69F;
  --bam-gold-warm: #C9BC82;

  --bg: var(--bam-charcoal);
  --bg-deep: var(--bam-charcoal-deep);
  --bg-raised: var(--bam-charcoal-raised);
  --fg: #FFFFFF;
  --fg-muted: rgba(255,255,255,0.68);
  --fg-faint: rgba(255,255,255,0.42);
  --fg-ghost: rgba(255,255,255,0.22);
  --accent: var(--bam-gold);
  --accent-warm: var(--bam-gold-warm);
  --accent-soft: rgba(226,214,159,0.14);
  --accent-line: rgba(226,214,159,0.5);
  --line: var(--bam-charcoal-line);
  --line-strong: rgba(255,255,255,0.16);

  --font-display: "Sportize", "Antonio", "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-support: "Big Stem", "Sportize", system-ui, sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --margin-page: clamp(16px, 5vw, 80px);
  --maxw: 1240px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 40px rgba(0,0,0,0.45);
  --shadow-lift: 0 24px 60px rgba(0,0,0,0.55);
  --glow-gold-soft: 0 0 60px rgba(226,214,159,0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.98; }
p { margin: 0; }
.gold { color: var(--accent); }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--margin-page) * 2); margin: 0 auto; padding: 0 var(--margin-page); }
.center { text-align: center; }

/* Textures: one per section */
.tex-grid { position: relative; }
.tex-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.tex-grain { position: relative; }
.tex-grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tex-grid > *, .tex-grain > * { position: relative; z-index: 1; }

/* Type helpers */
.eyebrow {
  font-family: var(--font-support); font-weight: 700; text-transform: uppercase;
  font-size: 14px; letter-spacing: 0.22em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.h2 { font-size: clamp(38px, 5.4vw, 76px); text-wrap: balance; }
.h2 .gold { display: block; }
.h2 .gold.inline { display: inline; }
h3, .final-title { text-wrap: balance; }
.lede { color: var(--fg-muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; margin-top: 18px; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head-center { text-align: center; }
#results .section-head { margin-bottom: 36px; }
.section-head-center .lede { margin-inline: auto; }
.micro { color: var(--fg-faint); font-family: var(--font-support); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  padding: 14px 24px; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
  white-space: nowrap;
}
.btn span[aria-hidden] { transition: transform 220ms var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-gold { background: var(--accent); color: var(--bam-charcoal); }
.btn-gold:hover { background: var(--accent-warm); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.link-gold { color: var(--accent); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 220ms var(--ease); }
.link-gold:hover { background-size: 100% 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background-color 220ms var(--ease), border-color 220ms var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(20,20,20,0.94); border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 400; font-size: 15px; color: var(--fg-muted); transition: color 120ms; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: transform 220ms var(--ease); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 8px var(--margin-page) 24px; display: flex; flex-direction: column; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.mobile-menu .btn { margin-top: 20px; }

/* HERO */
.hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 0; background: radial-gradient(ellipse 80% 60% at 15% 0%, rgba(226,214,159,0.09), transparent 60%), var(--bg); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero-title { font-size: clamp(40px, 7.4vw, 112px); line-height: 0.92; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-sub { color: var(--fg-muted); font-size: clamp(17px, 1.7vw, 21px); max-width: 680px; margin-top: 28px; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

.video-frame { position: relative; margin-top: clamp(48px, 7vw, 88px); aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow-lift), var(--glow-gold-soft); overflow: hidden; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 7%; gap: 14px; border: 0; cursor: pointer; color: var(--fg); background: linear-gradient(to top, rgba(20,20,20,0.75), rgba(20,20,20,0.15) 55%, rgba(20,20,20,0.3)); }
.video-play-icon { width: clamp(52px, 9vw, 104px); aspect-ratio: 1; border-radius: 999px; border: 1px solid var(--accent); background: rgba(20,20,20,0.5); position: relative; transition: background-color 220ms var(--ease), transform 220ms var(--ease); }
.video-play-icon::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-left: 22px solid var(--accent); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video-play:hover .video-play-icon { background: rgba(226,214,159,0.16); }
.video-play-label { font-family: var(--font-support); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: clamp(11px, 1.2vw, 14px); padding: 0 16px; text-align: center; }
.video-frame.playing .video-play { display: none; }


/* Trusted faces row */
.trusted { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.trusted-faces { display: flex; }
.trusted-faces img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--accent-line); filter: saturate(0.85); }
.trusted-faces img + img { margin-left: -12px; }
.trusted p { font-size: 15px; color: var(--fg-muted); }
.trusted strong { color: var(--fg); font-weight: 600; }

/* Client logo band */
.logo-band { margin-top: clamp(48px, 6vw, 72px); padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-band-label { text-align: center; font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.marquee li { padding: 0 clamp(24px, 3vw, 44px); display: flex; align-items: center; }
.marquee img { height: var(--h, 48px); width: auto; object-fit: contain; filter: grayscale(1) brightness(1.15) contrast(1.05); opacity: 0.6; mix-blend-mode: lighten; transition: filter 220ms var(--ease), opacity 220ms var(--ease); }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: clamp(64px, 7vw, 96px) 0; }
.section-deep { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Hero and pain share the charcoal background, so their paddings would stack into dead space */
#pain { padding-top: clamp(64px, 7vw, 96px); }
#process { padding-top: clamp(80px, 8.7vw, 120px); }

/* Pain */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pain-card { background: var(--bg); padding: clamp(28px, 3vw, 40px); transition: background-color 220ms var(--ease); display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.pain-card:hover { background: var(--bg-raised); }
.pain-card .num { font-family: var(--font-body); font-weight: 600; color: var(--accent); letter-spacing: 0.12em; font-size: 14px; }
.pain-card h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 20px 0 12px; }
.pain-card p { color: var(--fg-muted); }
.pain-close { margin-top: 40px; font-size: clamp(18px, 1.8vw, 22px); color: var(--fg-muted); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; transition: border-color 220ms var(--ease); }
.pillar:hover { border-color: var(--line-strong); }
.pillar-img { aspect-ratio: 4 / 3; overflow: hidden; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.pillar-body { padding: 32px 28px 36px; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.pillar-tag { font-family: var(--font-body); font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; }
.pillar h3 { font-size: clamp(28px, 2.6vw, 36px); margin: 14px 0 12px; }
.pillar-body > p:not(.pillar-tag) { color: var(--fg-muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; font-size: 16px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600; }

/* Powered by FullControl strip (under the pillars) */
.powered { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 22px 28px; border: 1px solid var(--line); background: var(--bg); transition: border-color 220ms var(--ease); }
.powered:hover { border-color: var(--accent-line); }
.powered img { width: 44px; height: 44px; flex-shrink: 0; }
.powered-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.powered-label { font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.powered-desc { font-size: 16px; line-height: 1.5; color: var(--fg-muted); }
.powered-link { font-size: 15px; font-weight: 600; color: var(--fg); white-space: nowrap; transition: color 120ms; }
.powered-link span { display: inline-block; transition: transform 220ms var(--ease); }
.powered:hover .powered-link { color: var(--accent); }
.powered:hover .powered-link span { transform: translateX(4px); }

/* Card rows: cards share row tracks (subgrid) so number, headline and body start on the same line in every card */

/* Not alone */
.corner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.corner-card { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-card); display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.corner-card .num { font-family: var(--font-body); font-weight: 600; color: var(--accent); letter-spacing: 0.12em; font-size: 14px; }
.corner-card h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 20px 0 12px; }
.corner-card p { color: var(--fg-muted); }

/* Results */
/* Leading + sign: Sportize draws + as a dot, so set it in the body font */
.sign { font-family: var(--font-body); font-weight: 600; font-size: 0.62em; vertical-align: 0.18em; margin-right: 0.04em; line-height: 0; }

/* Median stat */
.median { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(32px, 4vw, 48px); padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.median-main { display: flex; flex-direction: column; gap: 12px; }
.median-label { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.median-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(84px, 13vw, 200px); line-height: 0.85; color: var(--accent); white-space: nowrap; }
.median-unit { font-size: 0.42em; color: var(--fg); margin-left: 6px; }
.median-note { color: var(--fg-muted); font-size: 17px; max-width: 40ch; text-align: right; padding-bottom: 8px; }

/* Case study switcher */
.cases { border: 3px solid var(--accent); background: var(--bg-raised); box-shadow: var(--glow-gold-soft); }
.cases-tabs { display: flex; border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; }
.cases-tabs::-webkit-scrollbar { display: none; }
.cases-tab { flex: 1 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 20px 24px; color: var(--fg-muted); font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; cursor: pointer; white-space: nowrap; transition: color 220ms var(--ease), border-color 220ms var(--ease), background-color 220ms var(--ease); }
.cases-tab:hover { color: var(--fg); background: rgba(255,255,255,0.02); }
.cases-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.cases-tab:focus-visible { outline-offset: -4px; }
.cases-panels { display: grid; }
.case-panel { grid-area: 1 / 1; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 3.6vw, 48px) clamp(28px, 5vw, 64px); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 420ms var(--ease), transform 420ms var(--ease), visibility 0s linear 420ms; }
.case-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 520ms var(--ease) 80ms, transform 520ms var(--ease) 80ms, visibility 0s; }
.case-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 10vw, 148px); line-height: 0.85; color: var(--accent); white-space: nowrap; }
.case-num-label { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 26px); line-height: 1.05; margin-top: 16px; max-width: 22ch; text-wrap: balance; }
.case-text { color: var(--fg-muted); font-size: 18px; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.who-avatar { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; border: 1px solid var(--accent-line); flex-shrink: 0; filter: saturate(0.85); }
.who strong { display: block; color: var(--fg); font-weight: 600; font-size: 15px; }
.who small { display: block; color: var(--fg-muted); font-size: 14px; line-height: 1.4; }

.quotes { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; padding: 32px 28px 28px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; transition: border-color 220ms var(--ease); }
.quote:hover { border-color: var(--line-strong); }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; position: relative; padding-top: 34px; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -6px; left: -2px; font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--accent); }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote .avatar { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; border: 1px solid var(--accent-line); flex-shrink: 0; filter: saturate(0.85); }
.quote figcaption strong { display: block; color: var(--accent); font-weight: 600; font-size: 15px; }
.quote figcaption small { display: block; color: var(--fg-muted); font-size: 14px; line-height: 1.4; }

.quote-cta { justify-content: center; gap: 16px; border: 1px solid var(--accent-line); background: linear-gradient(135deg, rgba(226,214,159,0.10), rgba(226,214,159,0) 60%), var(--bg-raised); }
.quote-cta:hover { border-color: var(--accent); }
.quote-cta .eyebrow { margin-bottom: 0; }
.quote-cta-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 3vw, 42px); line-height: 0.98; }
.quote-cta-text { color: var(--fg-muted); }
.quote-cta .btn { align-self: flex-start; margin-top: 8px; }
.plus { font-family: var(--font-body); font-weight: 600; color: var(--accent); line-height: 0; font-size: 0.7em; vertical-align: 0.36em; margin-left: 2px; }

.proof-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 40px); border: 1px solid var(--accent-line); background: linear-gradient(135deg, rgba(226,214,159,0.08), rgba(226,214,159,0) 60%), var(--bg-raised); }
.proof-cta-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; }
.proof-cta-text { color: var(--fg-muted); font-size: 17px; margin-top: 8px; }

/* Process */
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.split-head .lede { margin-top: 0; max-width: none; flex-shrink: 0; white-space: nowrap; text-align: right; padding-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 40px); }
.step { position: relative; padding-top: 36px; border-top: 2px solid var(--line-strong); display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 999px; background: var(--bg-deep); border: 2px solid var(--line-strong); }
.step-now { border-top-color: var(--accent); }
.step-now::before { background: var(--accent); border-color: var(--accent); box-shadow: var(--glow-gold); }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 5vw, 76px); line-height: 0.9; color: var(--fg-ghost); display: block; }
.step-now .step-num { color: var(--accent); }
.step h3 { font-size: clamp(24px, 2.1vw, 30px); margin: 16px 0 10px; }
.step p { color: var(--fg-muted); }
/* Timeline fill: steps light up one after another when the row scrolls into view */
.step::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 600ms var(--ease); }
.step::before { transition: background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.step-num { transition: color 400ms var(--ease); }
.steps.is-filling .step.is-lit::after { width: 100%; }
.steps.is-filling .step.is-lit::before { background: var(--accent); border-color: var(--accent); box-shadow: var(--glow-gold); }
.steps.is-filling .step.is-lit .step-num { color: var(--accent); }
.steps.is-filling .step-now { border-top-color: var(--line-strong); }
.step-cta { align-self: start; margin-top: 18px; font-weight: 600; color: var(--accent); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 220ms var(--ease); }
.step-cta:hover { background-size: 100% 1px; }
.step-cta span { display: inline-block; transition: transform 220ms var(--ease); }
.step-cta:hover span { transform: translateX(4px); }

/* Why */
.why { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.why-img { position: relative; min-height: 420px; overflow: hidden; border: 1px solid var(--line); }
.why-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(0.85) contrast(1.05); }
.facts { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.facts li > span { color: var(--fg-muted); }
.why-close { font-size: 19px; margin-bottom: 32px; }

/* FAQ */
.faq-wrap { max-width: calc(880px + var(--margin-page) * 2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 26px); line-height: 1.1; transition: color 120ms; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 300; font-size: 32px; line-height: 1; color: var(--accent); }
.faq details[open]:not(.closing) summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open]:not(.closing) summary { color: var(--accent); }
.faq summary::after { transition: transform 420ms var(--ease); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--fg-muted); padding: 0 0 26px; max-width: 720px; }

/* Final CTA */
.final { padding: clamp(72px, 8vw, 112px) 0; text-align: center; background: radial-gradient(ellipse 70% 70% at 50% 100%, rgba(226,214,159,0.10), transparent 70%), var(--bg); }
.final.final-deep { background: radial-gradient(ellipse 70% 70% at 50% 100%, rgba(226,214,159,0.10), transparent 70%), var(--bg-deep); }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-photo { position: relative; overflow: hidden; background: var(--bg-deep); border-top: 1px solid var(--line); }
.final-photo .final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; filter: grayscale(0.35) saturate(0.8) contrast(1.05); }
.final-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.72) 45%, rgba(20,20,20,0.88) 100%), radial-gradient(ellipse 60% 70% at 50% 60%, rgba(226,214,159,0.10), transparent 70%); }
.final-photo .final-inner { position: relative; z-index: 1; }
.final-title { font-size: clamp(36px, 5.4vw, 80px); line-height: 0.94; margin-bottom: 36px; }
.final-title .line { display: block; }
@media (min-width: 641px) { .final-title .line { white-space: nowrap; } }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 32px 0 28px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-logo { height: 52px; width: auto; }
.footer-right { display: flex; align-items: center; gap: 28px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--fg-muted); transition: color 120ms, border-color 120ms; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent-line); }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--fg-muted); }
.footer-links a:hover { color: var(--fg); }
.copy { font-size: 13px; color: var(--fg-faint); padding-top: 18px; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none; box-shadow: var(--shadow-lift); transform: translateY(140%); transition: transform 420ms var(--ease); }
.sticky-cta.show { transform: none; }

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Above the fold never waits on JS: the hero animates in on load with pure CSS */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 520ms var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: 50ms; }
.hero .reveal:nth-child(3) { animation-delay: 100ms; }
.hero .reveal:nth-child(n+4) { animation-delay: 140ms; }
.hero .video-frame.reveal { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0.001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .step::after, .step::before, .step-num { transition: none; }
  .case-panel, .case-panel.is-active { transition: none; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .marquee ul[aria-hidden] { display: none; }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .pillars { grid-template-columns: 1fr; max-width: 640px; }
  .corner-grid { grid-template-columns: 1fr; max-width: 640px; }
  .quotes { grid-template-columns: 1fr; max-width: 640px; }
  .proof-cta { flex-direction: column; align-items: flex-start; }
  .median { flex-direction: column; align-items: flex-start; }
  .median-note { text-align: left; }
  .powered { max-width: 640px; flex-wrap: wrap; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 860px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .case-panel { grid-template-columns: 1fr; align-items: start; }
  .cases-tab { flex: 0 0 auto; padding: 16px 18px; font-size: 14px; }
  .cases-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .why { grid-template-columns: 1fr; }
  .why-img { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .hero-title { font-size: min(11vw, 56px); }
  body { font-size: 16px; }
  .nav-logo img { height: 42px; }
  .nav-cta .btn { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .split-head .lede { text-align: left; white-space: normal; flex-shrink: 1; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .trusted { flex-direction: column; gap: 10px; }
  .video-play { padding-bottom: 5%; gap: 10px; }
  .video-play-icon::after { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
  .marquee img { height: calc(var(--h, 48px) * 0.78); }
  .facts li { grid-template-columns: 72px 1fr; }
  .facts strong { font-size: 36px; }
  .why-body .btn, .final .btn, .center .btn, .proof-cta .btn { width: 100%; }
  .sticky-cta { display: flex; }
  .footer { padding-bottom: 104px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-right { width: 100%; justify-content: space-between; }
  .footer-links { flex-direction: column; gap: 10px; }
}

/* Booked confirmation pop-up (after the apply flow) */
.booked { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(28px, 5vw, 44px); border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg); text-align: center; box-shadow: var(--shadow-lift); }
.booked::backdrop { background: rgba(10,10,10,0.72); backdrop-filter: blur(4px); }
.booked[open] { animation: booked-in 420ms var(--ease); }
@keyframes booked-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.booked-x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; background: none; border: 0; color: var(--fg-faint); font: 300 28px/1 var(--font-body); cursor: pointer; }
.booked-x:hover { color: var(--fg); }
.booked-tick { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); box-shadow: var(--glow-gold-soft); }
.booked-tick svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 2.2; }
.booked h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(28px, 5vw, 38px); line-height: 1; margin: 0 0 16px; }
.booked-when { display: inline-block; margin: 0 0 14px; padding: 12px 18px; border: 1px solid var(--line-strong); background: var(--bg-deep); font: 600 16px var(--font-body); }
.booked-when:empty { display: none; }
.booked-sub { color: var(--fg-muted); font: 400 15px/1.6 var(--font-body); margin: 0 auto 22px; max-width: 400px; }
.booked-next { list-style: none; text-align: left; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.booked-next li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--fg-muted); font: 400 14px/1.5 var(--font-body); }
.booked-next b { color: var(--accent); font: 600 13px var(--font-body); min-width: 22px; padding-top: 1px; }
.booked-done { margin-top: 20px; min-height: 44px; background: none; border: 0; color: var(--fg-faint); font: 500 14px var(--font-body); cursor: pointer; }
.booked-done:hover { color: var(--accent); }
@media (max-width: 600px) { .booked .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .booked[open] { animation: none; } }

.footer .disclaimer { max-width: 760px; margin: 20px 0 0; color: var(--fg-ghost); font: 400 12px/1.6 var(--font-body); }
.footer .disclaimer strong { color: var(--fg-faint); font-weight: 600; }
