/* ==========================================================================
   COCOON HOMEPAGE V2 — extends styles.css with app-screen scaling
   ========================================================================== */
@import url('./styles.css');
@import url('./app-styles.css');

/* The candidate-app screens are sized 390×844. Sizing + responsive scale
   lives in the unified block at the bottom of this file. */
.phone-stage {
  position: relative;
  flex-shrink: 0;
}
.phone-stage.scale-90 { --phone-scale: 0.9; }

/* Big editorial section spacing — Apple-style breathing room */
.section-xl  { padding: 160px 0; }
.section-lg  { padding: 120px 0; }
.section-md  { padding: 88px 0; }

@media (max-width: 768px) {
  .section-xl { padding: 96px 0; }
  .section-lg { padding: 72px 0; }
  .section-md { padding: 56px 0; }
}

/* Hero canvas — sleek light editorial */
.hero-v2 {
  position: relative;
  overflow: hidden;
  background: var(--cocoon-bg);
  padding: 64px 0 96px;
}
.hero-v2 .stage {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* LEFT — type-led copy block */
.hero-copy {
  position: relative;
}
.hero-copy .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cocoon-graphite);
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 32px;
}
.hero-copy .eyebrow::before {
  content: ""; width: 28px; height: 1.5px; background: var(--cocoon-ink);
}
.hero-copy h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(56px, 7.6vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.022em;
  color: var(--cocoon-ink);
  margin: 0 0 28px;
}
.hero-copy h1 em { font-style: italic; color: var(--cocoon-graphite); }
.hero-copy h1 .accent { color: var(--cocoon-yellow); }
.hero-copy .sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--cocoon-graphite);
  margin: 0 0 36px;
  max-width: 30em;
}
.hero-copy .row-cta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.hero-copy .trust {
  margin-top: 56px;
  display: flex; align-items: center; gap: 16px;
}
.hero-copy .trust .body {
  font-size: 13px; line-height: 1.4; color: var(--cocoon-graphite);
}
.hero-copy .trust strong { color: var(--cocoon-ink); font-weight: 600; }

/* RIGHT — composed photo card + phone */
.hero-compose {
  position: relative;
  height: 720px;
}
.hero-compose .photo-card {
  position: absolute;
  top: 32px; left: 0;
  width: 380px; height: 540px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(31,36,33,0.25);
  background: var(--cocoon-ink);
}
.hero-compose .photo-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.hero-compose .photo-tag {
  position: absolute;
  left: 24px; bottom: 24px;
  background: rgba(255,255,255,0.96);
  padding: 10px 14px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cocoon-ink);
  display: flex; align-items: center; gap: 8px;
}
.hero-compose .photo-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--cocoon-yellow);
}
.hero-compose .phone-anchor {
  position: absolute;
  right: 0; top: 80px;
  transform: scale(0.78);
  transform-origin: top right;
  z-index: 3;
}

/* When the polaroid is removed, centre the phone in the hero column */
.hero-compose.no-photo { display: flex; justify-content: center; align-items: flex-start; min-height: 720px; }
.hero-compose.no-photo .phone-anchor {
  position: relative;
  right: auto; top: 0;
  transform: scale(0.88);
  transform-origin: top center;
}
.hero-compose.no-photo .chip-match { top: 60px; right: 0; }
.hero-compose.no-photo .chip-coach { bottom: auto; top: 360px; left: auto; right: 0; }

/* ============================================================
   CINEMATIC HERO — scroll-pinned phone + scene-locked copy
   Built like the Apple AirPods page: phone stays fixed centre,
   each scene takes over with a crossfade as you scroll.
   ============================================================ */
.cinema {
  position: relative;
  background: var(--cocoon-bg);
  /* total scroll length = scenes * 100vh + outro */
  /* set inline; default 700vh for 6 scenes + outro */
}
.cinema-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}
.cinema-phone-wrap {
  position: relative;
  width: 390px;
  height: 844px;
  transform: scale(0.78);
  transform-origin: center center;
  pointer-events: auto;
  /* nudge left so right-hand copy column has breathing room */
  margin-right: clamp(0px, 36vw, 520px);
}
.cinema-phone {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 56px;
  overflow: hidden;
  background: var(--cocoon-ink);
  box-shadow:
    0 60px 120px -40px rgba(31, 36, 33, 0.35),
    0 20px 40px  -10px rgba(31, 36, 33, 0.2),
    inset 0 0 0 8px var(--cocoon-ink);
  isolation: isolate;
}
.cinema-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px) scale(1.04);
  filter: blur(14px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
  pointer-events: none;
}
.cinema-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  z-index: 3;
}
.cinema-screen.is-past {
  opacity: 0;
  transform: translateY(-12px) scale(0.985);
  filter: blur(10px);
  z-index: 1;
}

/* Progress arc circling the phone */
.cinema-progress {
  position: absolute;
  inset: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  z-index: 4;
  pointer-events: none;
  transform: rotate(-90deg);
}
.cinema-progress circle {
  fill: none;
  stroke: rgba(31, 36, 33, 0.08);
  stroke-width: 0.6;
}
.cinema-progress-fill {
  stroke: var(--cocoon-yellow) !important;
  stroke-width: 0.8 !important;
  stroke-linecap: round;
  stroke-dasharray: 308; /* 2 * PI * 49 */
  stroke-dashoffset: 308;
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(252, 210, 9, 0.5));
}

/* Halo */
.cinema-glow {
  position: absolute;
  inset: -120px;
  background: radial-gradient(closest-side, rgba(252, 210, 9, 0.28) 0%, rgba(252, 210, 9, 0) 70%);
  z-index: -1;
  pointer-events: none;
  animation: cinemaGlow 8s ease-in-out infinite;
}
@keyframes cinemaGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* SCENE COPY — scrolls past the pinned phone */
.cinema-scenes {
  position: relative;
  z-index: 2;
  pointer-events: none; /* let scroll pass through; we re-enable on copy */
}
.cinema-scene {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(40px, 8vw, 120px);
  max-width: 1440px;
  margin: 0 auto;
}
.cinema-copy {
  width: min(440px, 40vw);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.cinema-scene.is-active .cinema-copy {
  opacity: 1;
  transform: translateY(0);
}
.cinema-eyebrow {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cocoon-graphite);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.cinema-eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--cocoon-yellow);
}
.cinema-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cocoon-ink);
  margin: 0 0 24px;
}
.cinema-title em {
  font-style: italic;
  color: var(--cocoon-graphite);
}
.cinema-body {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--cocoon-graphite);
  max-width: 38ch;
  margin: 0;
}

/* OUTRO — final CTA at end of cinematic stage */
.cinema-outro {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: auto;
}
.cinema-outro .cinema-title {
  max-width: 16ch;
  text-align: center;
  margin-bottom: 40px;
}
.cinema-outro .cinema-eyebrow::before { display: none; }
.cinema-outro .cinema-eyebrow { margin-bottom: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .cinema-phone-wrap { transform: scale(0.62); margin-right: 0; }
  .cinema-scene {
    justify-content: center;
    align-items: flex-end;
    padding-bottom: clamp(40px, 8vh, 80px);
  }
  .cinema-copy {
    width: min(560px, 84vw);
    text-align: center;
    background: linear-gradient(180deg, rgba(250,250,247,0) 0%, rgba(250,250,247,0.92) 35%, var(--cocoon-bg) 100%);
    padding: 32px 20px 24px;
    border-radius: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .cinema-eyebrow { justify-content: center; }
  .cinema-title { font-size: clamp(30px, 5.5vw, 44px); }
  .cinema-body { margin: 0 auto; }
  .cinema-progress { inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  .cinema-phone-wrap { transform: scale(0.52); }
  .cinema-scene { padding: 0 20px; padding-bottom: 60px; }
  .cinema-copy { padding: 24px 16px 16px; width: 100%; max-width: 100%; }
  .cinema-title { font-size: clamp(26px, 7vw, 36px); }
  .cinema-body { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-screen,
  .cinema-screen.is-active,
  .cinema-screen.is-past { transition: opacity 200ms ease; transform: none; filter: none; }
  .cinema-copy { transition: opacity 200ms ease; transform: none; }
  .cinema-glow { animation: none; }
  .cinema-progress-fill { transition: stroke-dashoffset 200ms ease; }
}
.hero-compose .phone-anchor .phone-stage {
  transform: scale(var(--phone-scale)) rotate(-3deg);
  transform-origin: top center;
}

/* Floating chips */
.hero-compose .float-chip {
  position: absolute; z-index: 4;
}
.hero-compose .chip-match {
  top: 36px; right: 10px;
  z-index: 5;
}
.hero-compose .chip-coach {
  bottom: 90px; left: 200px;
}

/* Soft yellow glow */
.hero-compose::before {
  content: "";
  position: absolute;
  right: -60px; top: 120px;
  width: 540px; height: 540px;
  background: radial-gradient(closest-side, rgba(252,210,9,0.4) 0%, rgba(252,210,9,0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Feature section (per iPhone screen) ---------- */
.feature-v2 {
  position: relative;
  overflow: hidden;
}
.feature-v2.dark { background: var(--cocoon-ink); color: var(--cocoon-cream); }
.feature-v2.paper { background: var(--cocoon-paper); }
.feature-v2.cream { background: var(--cocoon-paper); }

.feature-v2 .row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-v2 .row.reverse {
  grid-template-columns: 1fr 1fr;
}
.feature-v2 .row.reverse .copy-wrap { order: 2; }
.feature-v2 .row.reverse .phone-wrap { order: 1; }

.feature-v2 .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cocoon-graphite);
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.feature-v2 .label::before {
  content: ""; width: 28px; height: 1.5px; background: var(--cocoon-yellow);
}
.feature-v2.dark .label { color: var(--cocoon-yellow); }

.feature-v2 h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  color: var(--cocoon-ink);
  text-wrap: balance;
}
.feature-v2.dark h2 { color: var(--cocoon-cream); }
.feature-v2 h2 em { font-style: italic; color: var(--cocoon-graphite); }
.feature-v2.dark h2 em { color: var(--cocoon-yellow); }

.feature-v2 .body {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--cocoon-graphite);
  margin: 0 0 24px;
  max-width: 30em;
}
.feature-v2.dark .body { color: rgba(250,250,247,0.78); }

.feature-v2 ul.pts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-v2 ul.pts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cocoon-ink);
}
.feature-v2.dark ul.pts li { color: var(--cocoon-cream); }
.feature-v2 ul.pts li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cocoon-yellow);
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%231F2421' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-v2 .phone-wrap {
  display: flex;
  justify-content: center;
}

/* Glow behind dark feature phones */
.feature-v2.dark .phone-wrap {
  position: relative;
}
.feature-v2.dark .phone-wrap::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(closest-side, rgba(252,210,9,0.18), transparent 70%);
  z-index: 0;
}

/* Watermark butterfly in dark sections */
.feature-v2.dark .watermark {
  position: absolute;
  right: -120px; top: -80px;
  width: 480px;
  opacity: 0.06;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* ---------- People section ---------- */
.people-v2 {
  padding: 120px 0;
  background: var(--cocoon-paper);
  position: relative;
  overflow: hidden;
}
.people-v2 .wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.people-v2 h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  color: var(--cocoon-ink);
  text-wrap: balance;
  max-width: 16ch;
}
.people-v2 h2 em { font-style: italic; color: var(--cocoon-graphite); }
.people-v2 .head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.people-v2 .head p {
  font-size: 17px; line-height: 1.55;
  color: var(--cocoon-graphite);
  margin: 0; max-width: 36ch;
}

.people-v2 .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.person-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--cocoon-ink);
}
.person-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  filter: contrast(1.04);
}
.person-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(31,36,33,0.85) 100%);
}
.person-card .meta {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  color: #fff;
}
.person-card .meta .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--cocoon-yellow);
  color: var(--cocoon-ink);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-weight: 700;
}
.person-card .meta .n {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 22px; line-height: 1.05;
}
.person-card .meta .r {
  font-size: 12px; opacity: 0.85; margin-top: 4px;
}

/* ---------- Final CTA ---------- */
.cta-v2 {
  background: var(--cocoon-yellow);
  padding: 144px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-v2 .wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}
.cta-v2 .cocoon-mark-bg {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 720px; height: 720px;
  opacity: 0.08;
  pointer-events: none;
}
.cta-v2 h2 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.022em;
  color: var(--cocoon-ink);
  margin: 0 0 28px;
}
.cta-v2 h2 em { font-style: italic; color: var(--cocoon-ink-2); }
.cta-v2 p {
  font-size: 18px; line-height: 1.55;
  color: var(--cocoon-ink); opacity: 0.8;
  margin: 0 auto 36px;
  max-width: 480px;
}

/* ---------- Sticky brand nav ---------- */
.nav-v2 {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--cocoon-border);
}
.nav-v2 .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-v2 .brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-v2 .brand img.mark { height: 36px; width: 36px; }
.nav-v2 .brand img.word { height: 28px; }
.nav-v2 .links {
  display: flex; align-items: center; gap: 32px;
}
.nav-v2 .links a {
  font-size: 14px; font-weight: 500;
  color: var(--cocoon-graphite); text-decoration: none;
  transition: color 150ms ease;
}
.nav-v2 .links a:hover { color: var(--cocoon-ink); }

/* ---------- Footer ---------- */
.footer-v2 {
  padding: 48px 40px;
  background: var(--cocoon-bg);
  border-top: 1px solid var(--cocoon-border);
  color: var(--cocoon-graphite);
}
.footer-v2 .inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-v2 .inner img.word { height: 22px; }
.footer-v2 .links {
  display: flex; gap: 24px; align-items: center;
  font-size: 13px;
}
.footer-v2 .links a {
  color: var(--cocoon-graphite); text-decoration: none;
}
.footer-v2 .links a:hover { color: var(--cocoon-ink); }

/* ============================================================
   NEW LAYOUT PRIMITIVES — break the "phone-copy alternating" rhythm
   ============================================================ */

/* Tilt + lift phones for editorial energy (desktop default — scale=1) */
.phone-stage.lift { transform: translateY(-24px) scale(var(--phone-scale)); }

/* Floating chips/cards beside a phone */
.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--cocoon-border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 24px 60px -16px rgba(31,36,33,0.18);
  font-family: var(--font-sans);
  z-index: 4;
}
.float-chip.dark {
  background: var(--cocoon-ink);
  color: var(--cocoon-cream);
  border-color: var(--cocoon-ink-2);
}
.float-chip.yellow {
  background: var(--cocoon-yellow);
  border-color: var(--cocoon-yellow);
}
.float-chip .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cocoon-graphite);
  margin: 0 0 6px;
  font-weight: 700;
}
.float-chip.dark .label { color: var(--cocoon-yellow); }
.float-chip .v {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  color: var(--cocoon-ink);
  line-height: 1;
}
.float-chip.dark .v { color: var(--cocoon-cream); }
.float-chip .body {
  font-size: 12.5px;
  color: var(--cocoon-graphite);
  margin: 4px 0 0;
  line-height: 1.4;
}
.float-chip.dark .body { color: rgba(250,250,247,0.75); }

/* ---------- Editorial slab — pull-quote between sections ---------- */
.slab {
  background: var(--cocoon-ink);
  color: var(--cocoon-cream);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.slab.cream { background: var(--cocoon-paper); color: var(--cocoon-ink); }
.slab.yellow { background: var(--cocoon-yellow); color: var(--cocoon-ink); }
.slab .wrap {
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
  position: relative;
}
.slab .quote-mark {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 200px; line-height: 0.4; height: 60px;
  color: var(--cocoon-yellow); margin-bottom: 12px;
  opacity: 0.85;
}
.slab.cream .quote-mark { color: var(--cocoon-yellow-hover); }
.slab.yellow .quote-mark { color: var(--cocoon-ink); opacity: 0.3; }
.slab .pull {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.slab .pull em { font-style: italic; color: var(--cocoon-yellow); }
.slab.cream .pull em,
.slab.yellow .pull em { color: var(--cocoon-graphite); }
.slab .credit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- Stat strip — marquee-style banner ---------- */
.stat-strip {
  background: var(--cocoon-paper);
  border-top: 1px solid var(--cocoon-border);
  border-bottom: 1px solid var(--cocoon-border);
  padding: 56px 0;
}
.stat-strip .stats {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}
.stat-strip .stat-item .n {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--cocoon-ink);
  margin: 0;
}
.stat-strip .stat-item .n em { font-style: italic; color: var(--cocoon-yellow-hover); }
.stat-strip .stat-item .l {
  font-size: 13px;
  color: var(--cocoon-graphite);
  margin: 10px 0 0;
  line-height: 1.4;
}

/* ---------- Coach hero — dramatic dark full-bleed with big butterfly ---------- */
.coach-hero {
  background: var(--cocoon-ink);
  color: var(--cocoon-cream);
  padding: 144px 0 96px;
  position: relative;
  overflow: hidden;
}
.coach-hero::before {
  content: "";
  position: absolute;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(252,210,9,0.28) 0%, rgba(252,210,9,0) 60%);
  pointer-events: none;
  z-index: 0;
}
.coach-hero .wrap {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 64px; align-items: center;
}
.coach-hero .label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cocoon-yellow);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.coach-hero .label::before {
  content: ""; width: 28px; height: 1.5px; background: var(--cocoon-yellow);
}
.coach-hero h2 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.022em;
  color: var(--cocoon-cream);
  margin: 0 0 28px;
  text-wrap: balance;
}
.coach-hero h2 em { font-style: italic; color: var(--cocoon-yellow); }
.coach-hero .body {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: rgba(250,250,247,0.78);
  margin: 0 0 32px;
  max-width: 32em;
}
.coach-hero .butterfly-stage {
  position: relative;
  width: 360px; height: 360px;
  display: grid; place-items: center;
  margin: 0 auto;
}
.coach-hero .butterfly-stage img {
  width: 360px; height: 360px; object-fit: contain;
  animation: butterflyBreathe 1.6s var(--ease-in-out) infinite;
  filter: drop-shadow(0 30px 80px rgba(252,210,9,0.5));
  position: relative; z-index: 2;
}
.coach-hero .butterfly-stage .ring {
  position: absolute; inset: 30px;
  border-radius: 50%; border: 2px solid rgba(252,210,9,0.4);
  animation: pulseRing 2.4s var(--ease-in-out) infinite;
}
.coach-hero .butterfly-stage .ring.r2 { inset: 0;  animation-delay: 0.6s; }
.coach-hero .butterfly-stage .ring.r3 { inset: 60px; animation-delay: 1.2s; }
.coach-hero .mini-phone {
  position: absolute;
  right: -40px; bottom: -80px;
  transform: scale(0.5) rotate(-6deg);
  transform-origin: bottom right;
  z-index: 1;
  opacity: 0.95;
}

/* ---------- Photo break — full-bleed editorial ---------- */
.photo-break {
  position: relative;
  background: var(--cocoon-ink);
  overflow: hidden;
  height: 560px;
}
.photo-break img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}
.photo-break .veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31,36,33,0.7) 0%, rgba(31,36,33,0) 60%);
}
.photo-break .wrap {
  position: relative;
  height: 100%;
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center;
}
.photo-break .label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cocoon-yellow);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.photo-break .label::before {
  content: ""; width: 28px; height: 1.5px; background: var(--cocoon-yellow);
}
.photo-break h3 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.photo-break h3 em { font-style: italic; color: var(--cocoon-yellow); }

/* ---------- Phone gallery — horizontal scroll, smaller scale ---------- */
.phone-gallery {
  background: var(--cocoon-paper);
  padding: 96px 0 120px;
  overflow: hidden;
}
.phone-gallery .head {
  max-width: 1280px; margin: 0 auto 32px; padding: 0 40px;
}
.phone-gallery .head .label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cocoon-graphite);
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
}
.phone-gallery .head .label::before {
  content: ""; width: 28px; height: 1.5px; background: var(--cocoon-yellow);
}
.phone-gallery .head h3 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 14ch;
}
.phone-gallery .head h3 em { font-style: italic; color: var(--cocoon-graphite); }
.phone-gallery .rail {
  display: flex; gap: 24px;
  padding: 24px 40px 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 40px;
}
.phone-gallery .rail::-webkit-scrollbar { height: 6px; }
.phone-gallery .rail::-webkit-scrollbar-thumb { background: rgba(31,36,33,0.2); border-radius: 999px; }
.phone-gallery .slide {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  gap: 14px; align-items: center;
}
.phone-gallery .slide .phone-stage {
  transform: scale(0.62);
  transform-origin: top center;
  margin-bottom: -320px;
}
.phone-gallery .slide .caption {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cocoon-graphite);
  display: flex; align-items: center; gap: 10px;
}
.phone-gallery .slide .caption .num {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--cocoon-ink); color: var(--cocoon-yellow);
  font-size: 10px; font-weight: 700; letter-spacing: 0;
}

/* ---------- Metamorphosis strip — caesura before final CTA ---------- */
.meta-strip {
  background: var(--cocoon-ink);
  color: var(--cocoon-cream);
  padding: 88px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.meta-strip .wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center;
}
.meta-strip .copy {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--cocoon-cream);
  margin: 0;
  max-width: 14ch;
}
.meta-strip .copy em { font-style: italic; color: var(--cocoon-yellow); }
.meta-strip .dots {
  display: flex; align-items: center; gap: 28px;
  justify-content: flex-end;
}
.meta-strip .dot {
  flex-shrink: 0; background: var(--cocoon-yellow); border-radius: 50%;
}
.meta-strip .dot.d1 { width: 12px; height: 12px; opacity: 0.4; }
.meta-strip .dot.d2 { width: 22px; height: 22px; opacity: 0.6; }
.meta-strip .dot.d3 { width: 42px; height: 42px; opacity: 0.8; }
.meta-strip .dot.d4 { width: 70px; height: 70px; position: relative; overflow: hidden; }
.meta-strip .dot.d4::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cocoon-ink);
  clip-path: polygon(0 60%, 100% 75%, 100% 100%, 0 100%);
}
.meta-strip .dot.d5 { background: transparent; }
.meta-strip .dot.d5 img {
  width: 100px; height: 100px; object-fit: contain;
  transform: rotate(-6deg);
  filter: drop-shadow(0 8px 24px rgba(252,210,9,0.4));
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pulse-ring { animation: none !important; }
}

/* ---------- FAQ responsive ---------- */
@media (max-width: 980px) {
  .faq-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
}

/* ============================================================
   RESPONSIVE — desktop > tablet > phone > tiny-phone
   Phone mockups use --phone-scale CSS var so the box collapses
   with the transform (no orphan whitespace, no clipping).
   ============================================================ */

:root { --phone-scale: 1; }

.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.phone-stage {
  transform: scale(var(--phone-scale));
  transform-origin: top center;
  width: 390px;
  height: 844px;
  /* collapse layout box to scaled size */
  margin-right: calc((var(--phone-scale) - 1) * 390px / 2);
  margin-left:  calc((var(--phone-scale) - 1) * 390px / 2);
  margin-bottom: calc((var(--phone-scale) - 1) * 844px);
}
.phone-stage.tilt-left  { transform: scale(var(--phone-scale)) rotate(-4deg); }
.phone-stage.tilt-right { transform: scale(var(--phone-scale)) rotate(4deg); }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  :root { --phone-scale: 0.85; }
  .hero-v2 .stage,
  .feature-v2 .row,
  .coach-hero .wrap {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .feature-v2 .row.reverse .copy-wrap { order: 1; }
  .feature-v2 .row.reverse .phone-wrap { order: 2; }
  .people-v2 .head { grid-template-columns: 1fr !important; }
  .people-v2 .grid { grid-template-columns: repeat(2, 1fr) !important; }
  .nav-v2 .links { display: none; }
  .float-chip { display: none; }
  .stat-strip .stats { grid-template-columns: repeat(2, 1fr); }
  .meta-strip .wrap { grid-template-columns: 1fr !important; gap: 24px; }
  .meta-strip .dots { justify-content: flex-start; }
  .coach-hero .mini-phone { display: none; }
  .photo-break { height: 420px; }
  .hero-v2 .stage { padding: 0 32px; }
  /* hero compose stack */
  .hero-compose { height: auto; min-height: auto; padding-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .hero-compose .photo-card { position: relative; width: 100%; max-width: 380px; height: auto; aspect-ratio: 3 / 4; top: 0; left: 0; right: 0; margin: 0 auto; }
  .hero-compose .photo-card img { width: 100%; height: 100%; object-fit: cover; }
  .hero-compose .phone-anchor { position: relative; right: auto; top: auto; left: auto; transform: none; margin: -20px auto 0; display: flex; justify-content: center; }
  .hero-compose .chip-match { right: 12px; top: 16px; transform: scale(0.9); }
  .hero-compose .chip-coach { display: none; }

  /* universal safety */
  html, body { overflow-x: hidden; max-width: 100vw; }
  img, svg, video { max-width: 100%; height: auto; }
  .feature-v2, .hero-v2, .people-v2, .cta-v2, .stat-strip, .meta-strip, .coach-hero, .faq-v2, .slab, .footer-v2, .phone-gallery, .photo-break { overflow-x: hidden; }
}

/* ---------- Phone (≤560) ---------- */
@media (max-width: 560px) {
  :root { --phone-scale: 0.78; }
  /* keep hero demo phone upright on mobile (rotate looks awkward at small size) */
  .hero-compose .phone-anchor .phone-stage { transform: scale(var(--phone-scale)) rotate(0deg) !important; }
  /* push hero-compose down so dots have room */
  .hero-compose.no-photo { min-height: auto; padding-bottom: 100px; }
  .hero-demo-dots { bottom: -22px; }
  .hero-demo-caption { bottom: -64px; }
  .nav-v2 .inner { padding: 14px 20px; }
  .hero-v2 .stage,
  .feature-v2 .row,
  .people-v2 .wrap,
  .cta-v2 .wrap,
  .footer-v2 .inner,
  .stat-strip .wrap,
  .faq-v2 .wrap,
  .meta-strip .wrap,
  .slab .wrap,
  .coach-hero .wrap,
  .phone-gallery .wrap { padding-left: 20px !important; padding-right: 20px !important; }

  .butterfly-stage { max-width: 100%; overflow: hidden; }
  .butterfly-stage .ring,
  .butterfly-stage .ring.r2 { max-width: 92%; }

  .feature-v2 ul.pts { padding-left: 0; }
  .feature-v2 ul.pts li { padding-left: 28px; }

  /* footer stacks tidily */
  .footer-v2 .inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-v2 .links { flex-wrap: wrap; gap: 14px; }
  .footer-v2 .word { height: 22px; }

  /* people grid wraps */
  .people-v2 .grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
}

/* ---------- Small phone (≤420) ---------- */
@media (max-width: 420px) {
  :root { --phone-scale: 0.7; }
  .hero-compose .photo-card { max-width: min(340px, 86vw); }
}

/* ---------- Tiny phone (≤360) ---------- */
@media (max-width: 360px) {
  :root { --phone-scale: 0.62; }
  .nav-v2 .inner,
  .hero-v2 .stage,
  .feature-v2 .row,
  .people-v2 .wrap,
  .cta-v2 .wrap,
  .footer-v2 .inner,
  .stat-strip .wrap,
  .faq-v2 .wrap,
  .meta-strip .wrap,
  .slab .wrap,
  .coach-hero .wrap,
  .phone-gallery .wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .hero-compose .photo-card { max-width: min(300px, 84vw); }
}

/* ============================================================
   ENTRANCE ANIMATIONS — wow-factor reveal on scroll
   ============================================================ */
@keyframes cocoonRise {
  0%   { opacity: 0; transform: translateY(32px) scale(0.985); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes cocoonFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cocoonGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 210, 9, 0); }
  50%      { box-shadow: 0 0 0 12px rgba(252, 210, 9, 0.12); }
}
@keyframes cocoonShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes cocoonFloat {
  0%, 100% { transform: scale(var(--phone-scale)) translateY(0); }
  50%      { transform: scale(var(--phone-scale)) translateY(-8px); }
}
@keyframes cocoonFloatLeft {
  0%, 100% { transform: scale(var(--phone-scale)) rotate(-4deg) translateY(0); }
  50%      { transform: scale(var(--phone-scale)) rotate(-4deg) translateY(-8px); }
}
@keyframes cocoonFloatRight {
  0%, 100% { transform: scale(var(--phone-scale)) rotate(4deg) translateY(0); }
  50%      { transform: scale(var(--phone-scale)) rotate(4deg) translateY(-8px); }
}
@keyframes cocoonPhoneEnter {
  0%   { opacity: 0; transform: scale(calc(var(--phone-scale) * 0.92)) translateY(40px) rotate(0deg); }
  100% { opacity: 1; transform: scale(var(--phone-scale)) translateY(0) rotate(0deg); }
}

/* IntersectionObserver-driven reveal class */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(4px);
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* phone mockups float subtly when in view */
.phone-stage.in-view { animation: cocoonFloat 6s ease-in-out infinite; }
.phone-stage.tilt-left.in-view  { animation: cocoonFloatLeft 6s ease-in-out infinite; }
.phone-stage.tilt-right.in-view { animation: cocoonFloatRight 6s ease-in-out infinite; }
/* hero compose phone keeps its rotate(-3deg) — disable float there */
.hero-compose .phone-anchor .phone-stage.in-view { animation: none; }

/* gentle initial fade on hero (no JS dependency) */
.hero-v2 .hero-copy > * {
  animation: cocoonRise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-v2 .hero-copy > *:nth-child(1) { animation-delay: 60ms; }
.hero-v2 .hero-copy > *:nth-child(2) { animation-delay: 180ms; }
.hero-v2 .hero-copy > *:nth-child(3) { animation-delay: 300ms; }
.hero-v2 .hero-copy > *:nth-child(4) { animation-delay: 420ms; }
.hero-v2 .hero-copy > *:nth-child(5) { animation-delay: 540ms; }
.hero-v2 .hero-compose { animation: cocoonRise 1100ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both; }

/* shimmer the headline gradient briefly */
.hero-v2 h1 em {
  background-image: linear-gradient(90deg, var(--cocoon-graphite) 0%, var(--cocoon-yellow) 35%, var(--cocoon-graphite) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cocoonShimmer 4.5s linear 800ms both;
}

/* CTA button breathing glow */
.row-cta .btn-primary,
.cta-v2 .btn-primary,
.meta-strip .btn-primary {
  animation: cocoonGlow 3.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-v2 .hero-copy > *,
  .hero-v2 .hero-compose { animation: none; opacity: 1; transform: none; }
  .phone-stage.in-view { animation: none; }
  .row-cta .btn-primary, .cta-v2 .btn-primary, .meta-strip .btn-primary { animation: none; }
  .hero-v2 h1 em { animation: none; -webkit-text-fill-color: var(--cocoon-graphite); color: var(--cocoon-graphite); background: none; }
}
