/* The Nobel Rooms — Home v2 */

@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/Fredoka-var.woff2") format("woff2-variations"),
       url("../assets/fonts/Fredoka-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-var.woff2") format("woff2-variations"),
       url("../assets/fonts/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --cream: #F6F3EB;
  --cream-2: #ECE6D8;
  --cream-3: #E2DAC8;
  --ink: #25231F;
  --ink-2: #1C1B18;
  --ink-3: #322F2A;
  --gray: #8C8880;
  --muted: #5D5951;          /* secondary text on cream (≈6:1) */
  --muted-dark: #B9B3A8;     /* secondary text on ink (≈8:1) */
  --red: #C9362F;
  --coral: #FF975C;
  --coral-mid: #EC6244;
  --grad: linear-gradient(115deg, var(--coral-mid) 0%, var(--coral) 100%);
  --grad-sig: linear-gradient(45deg, var(--red), var(--coral));
  --line: rgba(37, 35, 31, .14);
  --line-dark: rgba(246, 243, 235, .14);

  --display: "Fredoka", "Plus Jakarta Sans", ui-rounded, system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 152px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-lg: 0 30px 60px -24px rgba(37, 35, 31, .35), 0 8px 18px -8px rgba(37, 35, 31, .18);
  --shadow-md: 0 14px 30px -16px rgba(37, 35, 31, .35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

::selection { background: var(--coral); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral-mid); outline-offset: 3px; border-radius: 10px; }
html { scrollbar-color: var(--ink) var(--cream-2); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; border: 3px solid var(--cream-2); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--ink { background: var(--ink); color: var(--cream); }
.section--cream2 { background: var(--cream-2); }
.section--ink .lead { color: var(--muted-dark); }

.h2 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.6rem); }
.h4 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.accent { color: var(--red); }
.section--ink .accent { color: var(--coral); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 46ch; line-height: 1.55; }
.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--grad-sig); flex: none; }

.head { margin-bottom: clamp(40px, 6vw, 72px); display: grid; gap: 18px; }
.head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
  .head--split .lead { justify-self: end; }
}
.head--center { text-align: center; justify-items: center; }
.head--center .h2 { max-width: 16ch; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, color .3s;
  position: relative; isolation: isolate;
}
.btn__icon { width: 20px; height: 20px; transition: transform .45s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--grad); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(37, 35, 31, .45); }
.btn--primary:hover { box-shadow: 0 18px 32px -14px rgba(37, 35, 31, .5); }
.btn__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: transform .45s var(--ease-out); }
.btn--primary:hover .btn__dot { transform: scale(1.5); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--ghost:hover .btn__icon { transform: translateY(3px); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { box-shadow: var(--shadow-md); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 1rem; gap: 10px; }
.btn--sm .btn__dot { width: 8px; height: 8px; }
.btn--lg { --h: 58px; padding: 0 28px; }
.btn--xl { --h: 68px; padding: 0 36px; font-size: 1.3rem; }
.btn--block { width: 100%; }

.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(246, 243, 235, .92); color: var(--ink);
  transition: transform .3s var(--ease-out), background-color .2s;
}
.iconbtn:hover { transform: scale(1.06); background: var(--cream); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .ico-play, .iconbtn .ico-sound { display: none; }
.iconbtn.is-paused .ico-pause { display: none; }
.iconbtn.is-paused .ico-play { display: block; }
.iconbtn.is-sound .ico-mute { display: none; }
.iconbtn.is-sound .ico-sound { display: block; }

/* Bracket corner marks borrowed from the logo */
.frame-marks { position: relative; }
.frame-marks::before, .frame-marks::after {
  content: ""; position: absolute; width: clamp(26px, 4vw, 46px); height: clamp(26px, 4vw, 46px);
  border: 4px solid var(--cream); pointer-events: none; z-index: 4; opacity: .95;
}
.frame-marks::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.frame-marks::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(246, 243, 235, .97); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: flex-start; gap: 4px; text-decoration: none; flex: none; }
.brand__the { font-family: var(--display); font-weight: 600; font-size: .82rem; line-height: 1; margin-top: 1px; color: var(--ink); letter-spacing: .01em; }
.brand__mark { height: 34px; width: auto; }
.brand--light .brand__the { color: var(--cream); }
.nav__links { display: none; gap: 6px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; }
.nav__links a:hover { background: var(--cream-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__menu { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream-2); display: grid; place-items: center; cursor: pointer; }
.nav__menu svg { width: 22px; height: 22px; }
.nav__sheet { display: grid; padding: 8px var(--gutter) 20px; background: var(--cream); box-shadow: 0 1px 0 var(--line); }
.nav__sheet[hidden] { display: none; }
.nav__sheet a { font-family: var(--display); font-weight: 600; font-size: 1.6rem; text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 820px) {
  .nav__links { display: flex; }
  .nav__actions { margin-left: 12px; }
  .nav__menu, .nav__sheet { display: none !important; }
  .brand__mark { height: 38px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 104px; padding-bottom: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); align-items: center; }
.hero__title { font-size: clamp(3rem, 1.6rem + 6vw, 6rem); line-height: .96; letter-spacing: -.03em; font-weight: 600; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.line--accent > span { color: var(--red); }
.hero__sub { margin-top: 26px; font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); max-width: 34ch; color: var(--muted); line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: .95rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-sig); flex: none; }

.hero__stage { position: relative; }
.stage {
  display: flex; flex-direction: column; gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stage__col { overflow: hidden; }
.stage__col--c { display: none; }
.track { display: flex; width: max-content; animation: scrollX 46s linear infinite; }
.track:not(.is-looped) { animation: none; }
.track--down { animation-direction: reverse; animation-duration: 54s; }
.tile {
  position: relative; flex: none; height: 158px; margin-right: 12px; border-radius: var(--r-md); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease-out);
}
.tile video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.tile--wide { aspect-ratio: 16 / 9; }
.tile--tall { aspect-ratio: 9 / 16; }
.tile--four { aspect-ratio: 4 / 5; }
.tile::after { /* small bracket mark, like the logo */
  content: ""; position: absolute; top: 10px; left: 10px; width: 18px; height: 18px;
  border: 3px solid rgba(246, 243, 235, .9); border-right: 0; border-bottom: 0; border-top-left-radius: 8px; pointer-events: none;
}
.tile:hover { transform: translateY(-4px) scale(1.02); }
@keyframes scrollX { to { transform: translateX(-50%); } }
@keyframes scrollY { to { transform: translateY(-50%); } }

.tag {
  position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 9px 12px; border-radius: 999px; background: var(--cream); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-md);
  animation: bob 6s ease-in-out infinite;
}
.tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-sig); }
.tag--1 { top: -18px; left: 4%; }
.tag--2 { bottom: -16px; left: 36%; animation-delay: -2s; }
.tag--3 { top: 46%; right: 2%; animation-delay: -4s; display: none; }
@keyframes bob { 50% { transform: translateY(-7px); } }

.stage__pause {
  position: absolute; z-index: 7; right: 0; bottom: -18px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.stage__pause svg { width: 16px; height: 16px; }
.stage__pause .ico-play { display: none; }
.stage__pause[aria-pressed="true"] .ico-pause { display: none; }
.stage__pause[aria-pressed="true"] .ico-play { display: block; }
.is-stage-paused .track, .is-stage-paused .tag { animation-play-state: paused; }

@media (min-width: 1000px) {
  .hero { padding-top: 112px; min-height: min(100svh, 940px); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .stage {
    flex-direction: row; gap: 14px; height: min(78svh, 720px); margin-inline: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  }
  .stage__col { flex: 1 1 0; min-width: 0; }
  .stage__col--b { flex: 1.7 1 0; }
  .stage__col--c { display: block; }
  .track { flex-direction: column; width: 100%; animation-name: scrollY; }
  .track--slow { animation-duration: 62s; }
  .tile { height: auto; width: 100%; margin: 0 0 14px; }
  .tag--1 { top: 16%; left: -24px; }
  .tag--2 { bottom: 14%; left: 22%; }
  .tag--3 { display: inline-flex; top: 50%; right: -14px; }
  .stage__pause { right: 6px; bottom: 6px; }
}

/* ---------- Logo bar ---------- */
.logos { padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); }
.logos__title { font-family: var(--body); font-weight: 600; font-size: .98rem; letter-spacing: 0; color: var(--muted); text-align: center; margin-bottom: 26px; }
.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: scrollX 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; flex: none; }
.wm { padding: 0 clamp(28px, 4vw, 56px); white-space: nowrap; color: var(--ink); display: flex; align-items: center; gap: 0; position: relative; }
.wm::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--cream-3); }
.wm--sabrina { font-family: var(--display); font-weight: 500; font-size: 1.9rem; letter-spacing: -.01em; }
.wm--diy { font-family: var(--body); font-weight: 800; font-size: 1.75rem; letter-spacing: -.04em; }
.wm--diy b { font-weight: 400; color: var(--red); }
.wm--wonder { font-family: var(--body); font-weight: 300; font-size: 1.6rem; letter-spacing: .14em; text-transform: uppercase; }
.wm--copy { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em; font-style: italic; }

/* ---------- Testimonials ---------- */
.quotes__grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .quotes__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.quote {
  background: var(--cream); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 28px; min-height: 260px; position: relative;
}
.quote__mark { width: 44px; height: 33px; color: var(--coral-mid); }
.quote__text { font-family: var(--display); font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); font-weight: 500; line-height: 1.2; flex: 1; }
.quote__who { display: flex; flex-direction: column; font-size: .95rem; }
.quote__who span:first-child { font-weight: 700; }
.quote__who span:last-child { color: var(--muted); }
.quote.is-placeholder { background: transparent; border: 2px dashed rgba(37, 35, 31, .22); }
.quote.is-placeholder .quote__mark { color: var(--cream-3); }
.quote.is-placeholder .quote__text { color: var(--muted); }

/* ---------- Pain → fix ---------- */
.pains__filter { display: flex; flex-wrap: wrap; gap: 8px; margin: calc(clamp(40px, 6vw, 72px) * -0.45) 0 28px; }
.pains__filter button {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--cream-2); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  transition: background-color .25s, color .25s, transform .35s var(--ease-out);
}
.pains__filter button span { font-family: var(--body); font-size: .78rem; font-weight: 800; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: rgba(37, 35, 31, .1); font-variant-numeric: tabular-nums; }
.pains__filter button:hover { transform: translateY(-2px); }
.pains__filter button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.pains__filter button[aria-checked="true"] span { background: var(--grad-sig); color: var(--ink); }

.pains__grid { columns: 1; column-gap: 18px; }
@media (min-width: 680px) { .pains__grid { columns: 2; } }
@media (min-width: 1040px) { .pains__grid { columns: 3; column-gap: 22px; } }
.pain {
  break-inside: avoid; margin-bottom: 18px; padding: clamp(22px, 2.4vw, 28px); border-radius: var(--r-lg);
  background: #fff; box-shadow: 0 1px 0 rgba(37, 35, 31, .06), 0 18px 34px -28px rgba(37, 35, 31, .45);
  display: grid; gap: 14px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
@media (min-width: 1040px) { .pain { margin-bottom: 22px; } }
.pain[hidden] { display: none; }
.pain:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(37, 35, 31, .06), 0 26px 40px -26px rgba(37, 35, 31, .5); }
.pain:nth-child(6n+2), .pain:nth-child(6n+5) { background: var(--ink); color: var(--cream); }
.pain__q { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.pain__fix { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.pain:nth-child(6n+2) .pain__fix, .pain:nth-child(6n+5) .pain__fix { color: var(--muted-dark); }
.pain__lbl { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-family: var(--body); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.pain:nth-child(6n+2) .pain__lbl, .pain:nth-child(6n+5) .pain__lbl { color: var(--coral); }
.pain__lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-sig); }
.pains__more { display: flex; justify-content: center; margin-top: 12px; }
.pains__more .btn[hidden] { display: none; }

/* pain icons: drawn SVG, animated once on reveal and again on hover */
.pi { width: 48px; height: 48px; overflow: visible; }
.pi * { transform-box: fill-box; transform-origin: center; }
.pi-o { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pi-s { fill: none; stroke: var(--coral-mid); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pi-a { fill: var(--coral-mid); }
.pi-faint { opacity: .3; }
.pi-draw { stroke-dasharray: 120; }
.pain.is-play .pi-dot { animation: piBounce .9s var(--ease-out) both; }
.pain.is-play .pi-dot:nth-of-type(2) { animation-delay: .12s; }
.pain.is-play .pi-dot:nth-of-type(3) { animation-delay: .24s; }
.pain.is-play .pi-draw { animation: piDraw 1.2s var(--ease-out) both; }
.pain.is-play .pi-grow { transform-origin: left center; animation: piGrow 1.1s var(--ease-out) both; }
.pain.is-play .pi-head { animation: piHead 1.1s var(--ease-out) both; }
.pain.is-play .pi-spin { transform-origin: 50% 100%; animation: piSpin 1.2s var(--ease-out) both; }
.pain.is-play .pi-spin2 { transform-origin: 0 0; animation: piSpin 1.2s var(--ease-out) both reverse; }
.pain.is-play .pi-pulse { animation: piPulse 1s var(--ease-out) both; }
.pain.is-play .pi-blink { animation: blink .7s ease-in-out 2; }
.pain.is-play .pi-turn { animation: piTurn 1.1s var(--ease-out) both; }
.pain.is-play .pi-pop { animation: piPop .8s cubic-bezier(.34, 1.8, .5, 1) both .2s; }
.pain.is-play .pi-cells rect { animation: piPop .5s cubic-bezier(.34, 1.8, .5, 1) both; }
.pain.is-play .pi-cells rect:nth-child(2) { animation-delay: .08s; } .pain.is-play .pi-cells rect:nth-child(3) { animation-delay: .16s; }
.pain.is-play .pi-cells rect:nth-child(4) { animation-delay: .24s; } .pain.is-play .pi-cells rect:nth-child(5) { animation-delay: .32s; }
.pain.is-play .pi-cells rect:nth-child(6) { animation-delay: .4s; }
.pain.is-play .pi-wedge { transform-origin: 0 100%; animation: piWedge 1.2s var(--ease-out) both; }
.pain.is-play .pi-w1 { animation: piPop .45s cubic-bezier(.34, 1.8, .5, 1) both; }
.pain.is-play .pi-w2 { animation: piPop .45s cubic-bezier(.34, 1.8, .5, 1) both .22s; }
.pain.is-play .pi-w3 { animation: piPop .45s cubic-bezier(.34, 1.8, .5, 1) both .44s; }
.pain.is-play .pi-morph { animation: piFade 1s var(--ease-out) both; }
.pain.is-play .pi-tall { animation: piTall 1s var(--ease-out) both; }
.pain.is-play .pi-arc { animation: piArc 1s ease-out 2; }
.pain.is-play .pi-fly { animation: piFly .9s cubic-bezier(.34, 1.4, .5, 1) both; }
.pain.is-play .pi-bars rect { animation: piBar .5s ease-in-out 2 alternate; }
.pain.is-play .pi-bars rect:nth-child(2n) { animation-delay: .12s; }
.pain.is-play .pi-bars rect:nth-child(3n) { animation-delay: .22s; }
.pain.is-play .pi-star { animation: piStar 1s cubic-bezier(.34, 1.6, .5, 1) both; }
.pain.is-play .pi-l1 { animation: piSlide .7s var(--ease-out) both .2s; }
.pain.is-play .pi-l2 { animation: piSlide .7s var(--ease-out) both .1s; }
.pain.is-play .pi-l3 { animation: piSlide .7s var(--ease-out) both; }
@keyframes piBounce { 0% { transform: translateY(0); opacity: .2; } 40% { transform: translateY(-5px); opacity: 1; } 100% { transform: none; } }
@keyframes piDraw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes piGrow { from { transform: scaleX(.4); } 60% { transform: scaleX(1.25); } to { transform: none; } }
@keyframes piHead { from { transform: translateX(-10px); } 60% { transform: translateX(4px); } to { transform: none; } }
@keyframes piSpin { from { transform: rotate(-360deg); } }
@keyframes piPulse { 0% { transform: scale(1.18); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes piTurn { from { transform: rotate(-200deg); } }
@keyframes piPop { from { transform: scale(0); } }
@keyframes piWedge { from { transform: rotate(-120deg); opacity: 0; } }
@keyframes piFade { 0%, 30% { opacity: 1; } 100% { opacity: .3; } }
@keyframes piTall { 0% { transform: scale(2.6, .55); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; } }
@keyframes piArc { 0% { opacity: 0; transform: scale(.7); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes piFly { from { transform: translate(16px, -16px); opacity: 0; } }
@keyframes piBar { to { transform: scaleY(.35); } }
@keyframes piStar { from { transform: rotate(-90deg) scale(.2); } }
@keyframes piSlide { from { transform: translateY(-8px); opacity: 0; } }

/* ---------- Pain chain (round 4) ----------
   Mobile: swipe cards with dots. Desktop (>=1000px): stage on the left (visual of the active link),
   the chain on the right with a line that draws between links. JS adds .is-pinned when the body is pinned. */
.chain__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.chain__toggle { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--cream-2); max-width: 100%; }
.chain__togglelabel { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--muted); padding: 0 6px 0 12px; white-space: nowrap; }
.chain__toggle button {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.chain__toggle svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chain__toggle button:hover { background: var(--cream-3); }
.chain__toggle button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.chain__toggle button[aria-checked="true"] svg { color: var(--coral); }
.chain__hint { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.chain__hint svg { width: 18px; height: 18px; color: var(--red); }
.chain__hintdesk { display: none; }

/* cards (mobile first) */
.chain__list {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px; scrollbar-width: none;
}
.chain__list::-webkit-scrollbar { display: none; }
.link {
  position: relative; flex: 0 0 calc(100% - 40px); max-width: 460px; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-rows: auto 1fr; padding: 10px; border-radius: var(--r-lg);
  background: #fff; box-shadow: 0 1px 0 rgba(37, 35, 31, .06), 0 18px 34px -26px rgba(37, 35, 31, .5);
}
.link__vis { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 14px 12px 10px; border-radius: 20px; background: var(--ink); }
.link__vis svg { width: 100%; height: auto; max-height: 100%; overflow: visible; }
.link__vis::after { /* "leads to" connector between cards */
  content: ""; position: absolute; z-index: 3; top: 50%; right: -31px; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325231F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5.5-5.5L19 12l-5.5 5.5'/%3E%3C/svg%3E") center / 15px no-repeat, var(--grad);
  box-shadow: 0 0 0 4px var(--cream), 0 6px 12px -4px rgba(37, 35, 31, .4);
}
.link--end .link__vis::after { display: none; }
.link__txt { display: grid; gap: 10px; align-content: start; padding: 18px 10px 8px; }
.link__n {
  position: absolute; z-index: 2; top: 20px; left: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums;
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.link__n svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.link__q {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; text-align: left; cursor: default; color: inherit;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance;
  transition: color .35s;
}
.link__fix p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.link__fix b { color: var(--red); font-weight: 800; }
.link--end { background: var(--ink); color: var(--cream); }
.link--end .link__vis { background: var(--ink-3); }
.link--end .link__n { background: var(--grad); }
.link__endtitle { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.05; }
.link__fix--end p { color: var(--muted-dark); }
.link__fix--end .btn { margin-top: 16px; }

.chain__nav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.chain__arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--ink); color: var(--cream); transition: opacity .25s, transform .3s var(--ease-out); }
.chain__arrow svg { width: 20px; height: 20px; }
.chain__arrow[data-chain-prev] svg { transform: rotate(180deg); }
.chain__arrow:disabled { opacity: .25; cursor: default; }
.chain__arrow:not(:disabled):active { transform: scale(.94); }
.chain__dots { display: flex; align-items: center; }
.chain__dots button { width: 22px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.chain__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--cream-3); transition: width .35s var(--ease-out), background-color .3s; }
.chain__dots button[aria-current="step"]::before { width: 20px; background: var(--coral-mid); }
.chain__dots button:last-child::before { background: var(--ink); opacity: .35; }
.chain__dots button:last-child[aria-current="step"]::before { opacity: 1; background: var(--ink); }

@media (min-width: 1000px) {
  .chain__nav, .chain__hintmob { display: none; }
  .chain.is-pinned .chain__hintdesk { display: inline; }
  .chain:not(.is-pinned) .chain__hint { display: none; }
  .chain__hint svg { transform: rotate(90deg); }
  .chain__body { padding-top: 8px; }
  .chain__list {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px); align-items: start;
    overflow: visible; margin: 0; padding: 0; scroll-snap-type: none;
  }
  .chain__list::before { content: ""; grid-column: 1; grid-row: 1 / span 7; border-radius: var(--r-lg); background: var(--ink); box-shadow: var(--shadow-lg); align-self: stretch; }
  .link { display: contents; }
  .link__vis {
    grid-column: 1; grid-row: 1 / span 7; align-self: stretch; z-index: 1; aspect-ratio: auto; padding: 64px clamp(24px, 3vw, 44px) 40px;
    background: none; opacity: 0; transform: scale(.96); filter: blur(8px); pointer-events: none;
    transition: opacity .45s var(--ease-out), transform .8s var(--ease-out), filter .45s var(--ease-out);
  }
  .link--end .link__vis { background: none; }
  .link__vis::after { display: none; }
  .link__vis::before { /* "Link 2 of 6" label, text set by JS */
    content: attr(data-label); position: absolute; top: 26px; left: 30px; font-family: var(--body); font-weight: 700; font-size: .9rem; color: var(--muted-dark);
  }
  .link--end .link__vis::before { color: var(--coral); }
  .link.is-active .link__vis { opacity: 1; transform: none; filter: none; }
  .link__vis svg { width: 100%; max-width: 620px; }
  .link__txt { grid-column: 2; position: relative; gap: 0; padding: 13px 0 13px 66px; }
  .link:nth-child(1) .link__txt { grid-row: 1; } .link:nth-child(2) .link__txt { grid-row: 2; } .link:nth-child(3) .link__txt { grid-row: 3; }
  .link:nth-child(4) .link__txt { grid-row: 4; } .link:nth-child(5) .link__txt { grid-row: 5; } .link:nth-child(6) .link__txt { grid-row: 6; }
  .link:nth-child(7) .link__txt { grid-row: 7; }
  .link__n { top: 10px; left: 0; width: 42px; height: 42px; background: var(--cream-2); color: var(--muted); }
  .link.is-past .link__n { background: var(--grad); color: var(--ink); }
  .link.is-active .link__n { background: var(--ink); color: var(--cream); box-shadow: 0 0 0 6px rgba(236, 98, 68, .2); }
  .link--end .link__n { background: var(--cream-2); color: var(--red); }
  .link--end.is-active .link__n { background: var(--grad); color: var(--ink); }
  /* the line that draws between links: --fill (0..1) is set from scroll progress */
  .link:not(.link--end) .link__txt::before {
    content: ""; position: absolute; left: 19.5px; top: 54px; bottom: -11px; width: 3px; border-radius: 3px;
    background: linear-gradient(var(--coral-mid), var(--coral)) top / 100% calc(var(--fill, 0) * 100%) no-repeat, var(--cream-3);
  }
  .chain:not(.is-pinned) .link:not(.link--end) .link__txt::before { transition: background-size .6s var(--ease-out); }
  .link__q { cursor: pointer; color: var(--muted); font-size: clamp(1.2rem, .95rem + .55vw, 1.5rem); padding: 6px 0; }
  .link__q:hover { color: var(--ink); }
  .link.is-active .link__q { color: var(--ink); }
  .link__fix { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease-out), opacity .4s; }
  .link__fix > * { min-height: 0; overflow: hidden; }
  .link.is-active .link__fix { grid-template-rows: 1fr; opacity: 1; }
  .link__fix p { padding-top: 4px; font-size: 1.05rem; max-width: 40ch; }
  .link--end { background: none; color: inherit; }
  .link__endtitle { font-size: clamp(1.35rem, 1rem + .8vw, 1.85rem); padding: 6px 0; color: var(--muted); transition: color .35s; cursor: pointer; }
  .link--end.is-active .link__endtitle { color: var(--ink); }
  .link__fix--end p { color: var(--muted); }
  .link__fix--end > div { padding-bottom: 6px; }
  /* chain broken: every problem gets struck through */
  .chain__list.is-end .link:not(.link--end) .link__q { text-decoration: line-through; text-decoration-color: var(--coral-mid); text-decoration-thickness: 2px; }
}

/* chain visuals: ink panels, cream + coral (same family as the best-practice diagrams) */
.link__vis * { transform-box: fill-box; transform-origin: center; }
.cv-o { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cv-o--thin { stroke-width: 2.4; }
.cv-line { fill: none; stroke: rgba(246, 243, 235, .3); stroke-width: 2; stroke-linecap: round; }
.cv-line--a { stroke: var(--coral); }
.cv-dash { fill: none; stroke: rgba(246, 243, 235, .4); stroke-width: 1.6; stroke-dasharray: 4 4; }
.cv-dash--a { stroke: var(--coral); stroke-width: 2.4; stroke-dasharray: 5 5; }
.cv-f, .cv-f rect { fill: rgba(246, 243, 235, .16); }
.cv-c { fill: var(--cream); }
.cv-k { fill: var(--ink); }
.cv-a { fill: var(--coral); }
.cv-as { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.cv-o8 { opacity: .75; } .cv-o6 { opacity: .55; } .cv-o4 { opacity: .38; }
.cv-t { font-family: var(--body); font-weight: 700; font-size: 12px; fill: var(--cream); }
.cv-t--k { fill: var(--ink); } .cv-t--a { fill: var(--coral); } .cv-t--m { fill: var(--muted-dark); } .cv-t--s { font-size: 10px; letter-spacing: .02em; }
.cv-frame { fill: #3B3832; stroke: rgba(246, 243, 235, .3); stroke-width: 1.5; }
.cv-card { fill: #3B3832; stroke: rgba(246, 243, 235, .22); stroke-width: 1.5; }
.cv-phone { fill: #3B3832; stroke: rgba(246, 243, 235, .5); stroke-width: 2.5; }
.cv-ruled { fill: none; stroke: rgba(37, 35, 31, .14); stroke-width: 2; stroke-linecap: round; }
.cv-yours { fill: rgba(255, 151, 92, .16); stroke: var(--coral); stroke-width: 2; }
.cv-slots rect { fill: none; stroke: rgba(246, 243, 235, .35); stroke-width: 1.6; stroke-dasharray: 4 4; }
.cv-cursor { fill: var(--cream); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.cv-ghost { fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-dasharray: 5 5; }
.cv-link { fill: none; stroke: var(--cream); stroke-width: 7; }
.cv-link--dim { stroke: rgba(246, 243, 235, .32); }
.cv-link--cut { stroke: var(--coral); transform: translateX(-4px) rotate(-8deg); }
.cv-scis { fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-draw { stroke-dasharray: 100; stroke-dashoffset: 0; }
.cv-hand-m, .cv-hand-h { transform-box: view-box; transform-origin: 70px 72px; }
.link--end .cv-scis { transform-origin: 50% 50%; }

/* motion runs only on the active link while the section is on screen; the resting frame is the composed one */
.chain.is-live .link.is-active .cv-blink { animation: cvBlink 1.2s steps(2, jump-none) infinite; }
.chain.is-live .link.is-active .cv-bub { transform-origin: 0 100%; animation: cvBub 3.4s var(--ease-out) infinite; }
.chain.is-live .link.is-active .cv-draw { animation: cvDraw 4s cubic-bezier(.65, 0, .35, 1) infinite; }
.chain.is-live .link.is-active .cv-head { animation: cvAfter 4s linear infinite; }
.chain.is-live .link.is-active .cv-pop { animation: cvPop 4s cubic-bezier(.34, 1.8, .5, 1) infinite; }
.chain.is-live .link.is-active .cv-z { animation: cvZ 2.4s ease-out infinite; }
.chain.is-live .link.is-active .cv-z:nth-child(2) { animation-delay: .5s; }
.chain.is-live .link.is-active .cv-z:nth-child(3) { animation-delay: 1s; }
.chain.is-live .link.is-active .cv-crawl { transform-origin: 0 50%; animation: cvCrawl 7s linear infinite; }
.chain.is-live .link.is-active .cv-bars rect { transform-origin: 50% 100%; animation: cvBar 4s var(--ease-out) infinite; }
.chain.is-live .link.is-active .cv-bars rect:nth-child(2) { animation-delay: .12s; }
.chain.is-live .link.is-active .cv-bars rect:nth-child(3) { animation-delay: .24s; }
.chain.is-live .link.is-active .cv-bars rect:nth-child(4) { animation-delay: .36s; }
.chain.is-live .link.is-active .cv-bars rect:nth-child(5) { animation-delay: .48s; }
.chain.is-live .link.is-active .cv-grow { transform-origin: 0 50%; animation: cvGrow 4.5s var(--ease-out) infinite; }
.chain.is-live .link.is-active .cv-row { animation: cvRow 4.5s var(--ease-out) infinite; }
.chain.is-live .link.is-active .cv-row:nth-child(2) { animation-delay: .25s; }
.chain.is-live .link.is-active .cv-row:nth-child(4) { animation-delay: .7s; }
.chain.is-live .link.is-active .cv-ghost { animation: cvMarch 1.2s linear infinite; }
.chain.is-live .link.is-active .cv-caret { animation: cvBlink 1s steps(2, jump-none) infinite; }
.chain.is-live .link.is-active .cv-scroll { animation: cvScroll 2.4s linear infinite; }
.chain.is-live .link.is-active .cv-eyes { animation: cvRead 2.4s ease-in-out infinite; }
.chain.is-live .link.is-active .cv-feed { animation: cvFeed 3.2s cubic-bezier(.5, 0, .1, 1) infinite; }
.chain.is-live .link.is-active .cv-swipe { animation: cvSwipe 3.2s var(--ease-out) infinite; }
.chain.is-live .link.is-active .cv-cursor { animation: cvCursor 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
.chain.is-live .link.is-active .cv-hand-m { animation: cvSpin 1.1s linear infinite; }
.chain.is-live .link.is-active .cv-hand-h { animation: cvSpin 13s linear infinite; }
.chain.is-live .link.is-active .cv-note { animation: cvNote 3.8s var(--ease-out) infinite; }
.chain.is-live .link.is-active .cv-link--cut { animation: cvCut 3.6s var(--ease-out) infinite; }
.chain.is-live .link.is-active .cv-scis { animation: cvSnip 3.6s var(--ease-out) infinite; }
@keyframes cvBlink { 50% { opacity: .15; } }
@keyframes cvBub { 0% { transform: scale(.3); opacity: 0; } 14%, 86% { transform: none; opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
@keyframes cvDraw { 0% { stroke-dashoffset: 100; } 40%, 100% { stroke-dashoffset: 0; } }
@keyframes cvAfter { 0%, 38% { opacity: 0; } 42%, 100% { opacity: 1; } }
@keyframes cvPop { 0%, 14% { transform: scale(0); } 26%, 100% { transform: none; } }
@keyframes cvZ { 0% { transform: translate(-4px, 8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(6px, -10px); opacity: 0; } }
@keyframes cvCrawl { from { transform: scaleX(.12); } to { transform: none; } }
@keyframes cvBar { 0% { transform: scaleY(0); } 22%, 100% { transform: none; } }
@keyframes cvGrow { 0% { transform: scaleX(.08); } 50%, 100% { transform: none; } }
@keyframes cvRow { 0% { transform: translateY(-10px); opacity: 0; } 16%, 100% { transform: none; opacity: 1; } }
@keyframes cvMarch { to { stroke-dashoffset: -20; } }
@keyframes cvScroll { to { transform: translateY(-28px); } }
@keyframes cvRead { 0% { transform: translateX(-5px); } 80% { transform: translateX(5px); } 100% { transform: translateX(-5px); } }
@keyframes cvFeed { 0% { transform: translateY(0); opacity: 1; } 34% { transform: translateY(-92px); } 80% { transform: translateY(-92px); opacity: 1; } 92% { opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes cvSwipe { 0% { transform: translateY(14px); opacity: 0; } 12% { opacity: 1; } 34% { transform: translateY(-12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes cvCursor { 0% { transform: translate(0, 0); } 40% { transform: translate(-30px, -42px); } 55% { transform: translate(-30px, -42px); } 100% { transform: translate(0, 0); } }
@keyframes cvSpin { to { transform: rotate(360deg); } }
@keyframes cvNote { 0%, 18% { transform: translateX(-104px) rotate(-5deg); } 52%, 100% { transform: none; } }
@keyframes cvCut { 0%, 28% { transform: translateX(10px); } 46%, 100% { transform: translateX(-4px) rotate(-8deg); } }
@keyframes cvSnip { 0%, 18% { transform: scale(1); } 28% { transform: scale(.78) rotate(-8deg); } 38%, 100% { transform: none; } }

/* ---------- Hero teaser: "try it on your face" (round 4) ---------- */
.teaser {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin-top: 22px; padding: 8px 18px 8px 8px; border-radius: 22px;
  background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 0 rgba(37, 35, 31, .06), 0 16px 30px -20px rgba(37, 35, 31, .5);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.teaser:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(37, 35, 31, .06), 0 22px 36px -20px rgba(37, 35, 31, .55); }
.teaser__vis { flex: none; width: 40px; }
.teaser__vis svg { width: 100%; height: auto; }
.tz-bg { fill: var(--ink); }
.tz-face { fill: rgba(246, 243, 235, .82); }
.tz-w1 { fill: var(--coral); } .tz-w2 { fill: var(--cream); }
.tz-mark { fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; }
.teaser__vis * { transform-box: fill-box; transform-origin: center; }
.tz-w { animation: tzWord 2.6s cubic-bezier(.34, 1.8, .5, 1) infinite; }
.tz-w2 { animation-delay: .28s; }
@keyframes tzWord { 0% { transform: scale(0); } 14%, 82% { transform: none; } 92%, 100% { transform: scale(0); } }
.teaser__txt { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.teaser__txt strong { font-weight: 800; }
.teaser__new {
  display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 99px; vertical-align: 1px;
  background: var(--grad); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.teaser__arrow { width: 20px; height: 20px; flex: none; color: var(--red); transition: transform .45s var(--ease-out); }
.teaser:hover .teaser__arrow { transform: translateX(3px); }

/* ---------- Mobile menu: "Try it" first ---------- */
.nav__sheet .nav__try { display: flex; align-items: center; gap: 12px; border-top: 0; }
.nav__tryico { width: 24px; height: 32px; flex: none; color: var(--ink); }
.nav__try b { margin-left: auto; padding: 5px 10px; border-radius: 99px; background: var(--grad); font: 800 .72rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Mobile floating "Try it" pill ---------- */
.trypill {
  position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px 0 12px; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  box-shadow: 0 18px 36px -14px rgba(20, 18, 15, .6), 0 4px 10px -4px rgba(20, 18, 15, .35), inset 0 0 0 1px rgba(246, 243, 235, .08);
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .55s var(--ease-out), opacity .3s, visibility 0s .55s;
}
.trypill.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; visibility: visible; transition: transform .55s var(--ease-out), opacity .3s, visibility 0s; }
.trypill__ico { width: 26px; height: 34px; flex: none; color: var(--coral); --face-ink: var(--ink); --cap1: var(--ink); --cap2: var(--cream); }
.trypill:active { transform: translate(-50%, 0) scale(.97); }
@media (min-width: 980px) { .trypill { display: none; } }
@media (prefers-reduced-motion: reduce) { .tz-w { animation: none; } }

/* ---------- Work player ---------- */
.tabs { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--ink-3); margin-bottom: 24px; }
.tabs__btn { position: relative; z-index: 1; border: 0; background: none; color: var(--muted-dark); font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.tabs__btn[aria-selected="true"] { color: var(--ink); }
.tabs__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--cream); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }

.player { display: grid; gap: 18px; }
@media (min-width: 980px) { .player { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 22px; align-items: start; } }
.player__screen { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); aspect-ratio: 16 / 9; }
.player__screen[data-mode="shorts"] { aspect-ratio: auto; height: min(78svh, 680px); }
.player__backdrop { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) saturate(1.2) brightness(.55); opacity: 0; transition: opacity .5s; }
[data-mode="shorts"] .player__backdrop { opacity: 1; }
.player__frame { position: absolute; inset: 0; overflow: hidden; }
[data-mode="shorts"] .player__frame { left: 50%; right: auto; width: auto; height: 100%; aspect-ratio: 9 / 16; transform: translateX(-50%); border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.player__video, .player__still { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.player__still { position: absolute; inset: 0; }
.player__badge { position: absolute; z-index: 5; left: 50%; bottom: 76px; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--cream); font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.player__badge[hidden] { display: none; }
.player__bar {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 44px 18px 18px; background: linear-gradient(180deg, transparent, rgba(20, 19, 17, .82));
}
.player__meta { display: flex; flex-direction: column; min-width: 0; margin-left: 6px; line-height: 1.3; }
.player__meta strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta span { font-size: .85rem; color: var(--muted-dark); }
.player__progress { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(246, 243, 235, .2); overflow: hidden; }
.player__progress i { display: block; height: 100%; width: 0; background: var(--grad-sig); }

.player__list { display: grid; gap: 8px; counter-reset: clip; }
@media (max-width: 979px) {
  .player__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.clip {
  width: 100%; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; text-align: left;
  padding: 8px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--cream); cursor: pointer;
  transition: background-color .25s;
}
.clip:hover { background: var(--ink-3); }
.clip[aria-current="true"] { background: var(--ink-3); box-shadow: inset 0 0 0 2px var(--coral-mid); }
.clip__thumb { position: relative; width: 112px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink-2); }
.clip__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.is-shorts .clip { grid-template-columns: 58px 1fr; }
.is-shorts .clip__thumb { width: 58px; aspect-ratio: 9 / 16; }
.clip__title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; display: block; }
.clip__note { font-size: .85rem; color: var(--muted-dark); display: block; margin-top: 4px; }
.clip__eq { position: absolute; right: 6px; bottom: 6px; display: none; gap: 2px; align-items: flex-end; height: 12px; }
.clip__eq i { width: 3px; background: var(--coral); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.clip__eq i:nth-child(2) { animation-delay: -.3s; }
.clip__eq i:nth-child(3) { animation-delay: -.6s; }
.clip[aria-current="true"] .clip__eq { display: flex; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }
@media (max-width: 560px) {
  .player__list { grid-template-columns: 1fr; }
  .clip { grid-template-columns: 96px 1fr; }
  .clip__thumb { width: 96px; }
  .player__screen[data-mode="shorts"] { height: 70svh; max-height: 620px; }
  .player__bar { padding: 36px 12px 14px; }
  .player__meta strong { font-size: .95rem; }
}

/* ---------- Before / After ---------- */
.compare {
  position: relative; max-width: 1040px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y;
}
.compare__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); z-index: 2; }
.compare__video--before { filter: grayscale(1) contrast(.78) brightness(1.06) blur(.4px); }
.compare__before::after { content: ""; position: absolute; inset: 0; background: rgba(140, 136, 128, .18); }
.compare__label {
  position: absolute; z-index: 5; top: 18px; padding: 7px 14px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .95rem; pointer-events: none;
}
.compare__label--l { left: 64px; background: rgba(246, 243, 235, .92); color: var(--ink); }
.compare__label--r { right: 64px; background: var(--grad); color: var(--ink); }
.compare__handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--split); width: 3px; margin-left: -1.5px; background: var(--cream); pointer-events: none; }
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--cream); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease-out);
}
.compare__handle svg { width: 26px; height: 26px; }
.compare:hover .compare__handle span { transform: scale(1.08); }
.compare__range { position: absolute; z-index: 6; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare__range:focus-visible ~ .compare__handle span { outline: 3px solid var(--coral-mid); outline-offset: 3px; }
.compare:has(.compare__range:focus-visible) .compare__handle span { outline: 3px solid var(--coral-mid); outline-offset: 3px; }
.iconbtn--float { position: absolute; z-index: 7; right: 16px; bottom: 16px; }
.compare__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .92rem; color: var(--muted); }

.changes { display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 640px) { .changes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .changes { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.change { display: grid; gap: 12px; align-content: start; }
.change__chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 600; font-size: 1.02rem;
}
.change__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-sig); }
.change p { color: var(--muted); max-width: 30ch; }

/* ---------- Caption styles ---------- */
.caps__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .caps__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); } }
.caps__copy .lead { margin-top: 18px; }
.caps__styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
@media (min-width: 560px) { .caps__styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.capbtn {
  display: grid; gap: 10px; justify-items: start; text-align: left; padding: 14px; border-radius: var(--r-sm); border: 0; cursor: pointer;
  background: var(--ink-3); color: var(--cream); transition: background-color .25s, transform .35s var(--ease-out), box-shadow .25s;
}
.capbtn:hover { transform: translateY(-2px); background: #3B3832; }
.capbtn[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--coral); background: #3B3832; }
.capbtn__name { font-size: .85rem; font-weight: 600; color: var(--muted-dark); }
.capbtn[aria-checked="true"] .capbtn__name { color: var(--cream); }
.capbtn__demo { height: 30px; display: inline-flex; align-items: center; font-size: 1.1rem; line-height: 1; }
.capbtn__demo--pop { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.capbtn__demo--box { font-family: var(--display); font-weight: 600; }
.capbtn__demo--box em { font-style: normal; background: var(--coral-mid); color: var(--ink); padding: 3px 5px; border-radius: 6px; margin-right: 1px; }
.capbtn__demo--bold { font-family: var(--body); font-weight: 800; font-size: 1.2rem; color: #FFD84A; letter-spacing: -.02em; }
.capbtn__demo--karaoke { font-family: var(--display); font-weight: 600; color: rgba(246, 243, 235, .45); }
.capbtn__demo--karaoke em { font-style: normal; color: var(--coral); }
.capbtn__demo--minimal { font-family: var(--body); font-weight: 600; font-size: .9rem; background: rgba(0,0,0,.45); padding: 5px 10px; border-radius: 6px; }
.capbtn__demo--punch { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.caps__more { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted-dark); font-size: .98rem; }

.caps__screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.caps__screen video { width: 100%; height: 100%; object-fit: cover; }
.caps__live { position: absolute; z-index: 5; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(20,19,17,.72); color: var(--cream); font-size: .8rem; font-weight: 600; }
.caps__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Caption overlay */
.cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 12%; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .12em .28em; padding: 0 8%; text-align: center; pointer-events: none; font-size: clamp(1.1rem, 3.4vw, 2.5rem); }
.cap .w { display: inline-block; color: #fff; }
/* pop */
.cap--pop { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; -webkit-text-stroke: .14em #111; paint-order: stroke fill; }
.cap--pop .w { opacity: 0; transform: scale(.4) translateY(.2em); transition: opacity .12s, transform .32s cubic-bezier(.34, 1.8, .5, 1); }
.cap--pop .w.on { opacity: 1; transform: none; }
.cap--pop .w.now { color: var(--coral); }
/* box */
.cap--box { font-family: var(--display); font-weight: 600; -webkit-text-stroke: .1em #111; paint-order: stroke fill; }
.cap--box .w { padding: .04em .2em; border-radius: .25em; transition: background-color .15s, color .15s, -webkit-text-stroke-color .15s; }
.cap--box .w.now { background: var(--coral-mid); color: var(--ink); -webkit-text-stroke-color: transparent; }
/* bold */
.cap--bold { font-family: var(--body); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(1.3rem, 4.2vw, 3.1rem); -webkit-text-stroke: .16em #000; paint-order: stroke fill; bottom: 18%; }
.cap--bold .w { transition: transform .18s cubic-bezier(.34, 1.8, .5, 1), color .1s; }
.cap--bold .w.now { color: #FFD84A; transform: scale(1.16) rotate(-2deg); }
/* karaoke */
.cap--karaoke { font-family: var(--display); font-weight: 600; -webkit-text-stroke: .1em rgba(0,0,0,.85); paint-order: stroke fill; }
.cap--karaoke .w { color: rgba(255,255,255,.7); transition: color .25s; }
.cap--karaoke .w.on { color: var(--coral); }
/* minimal */
.cap--minimal { font-family: var(--body); font-weight: 600; font-size: clamp(.85rem, 1.9vw, 1.3rem); justify-content: flex-start; padding: 0; left: 6%; right: auto; bottom: 9%; max-width: 70%; }
.cap--minimal .line { display: inline-block; background: rgba(15, 14, 12, .72); color: #fff; padding: .45em .8em; border-radius: .5em; text-align: left; }
.cap--minimal .line::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--coral); margin-right: .55em; vertical-align: .08em; }
/* punch */
.cap--punch { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.8rem, 6vw, 4.4rem); bottom: 16%; -webkit-text-stroke: .1em #111; paint-order: stroke fill; }
.cap--punch .w { animation: punch .34s cubic-bezier(.34, 1.8, .5, 1); }
@keyframes punch { from { transform: scale(1.6); opacity: 0; } }

/* ---------- Retention ---------- */
.ret { display: grid; gap: 22px; }
@media (min-width: 1040px) {
  .ret { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "picker picker" "chart explain"; gap: 28px 40px; }
  .ret__picker { grid-area: picker; }
  .ret__chart { grid-area: chart; }
  .ret__explain { grid-area: explain; }
}
.ret__picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .ret__picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ret__btn {
  border: 0; cursor: pointer; text-align: left; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--cream-2); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.2;
  display: grid; gap: 2px; transition: background-color .25s, color .25s, transform .35s var(--ease-out);
}
.ret__btn small { font-family: var(--body); font-weight: 500; font-size: .82rem; color: var(--muted); }
.ret__btn:hover { transform: translateY(-2px); background: var(--cream-3); }
.ret__btn[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.ret__btn[aria-selected="true"] small { color: var(--muted-dark); }
.ret__chart { background: #fff; border-radius: var(--r-lg); padding: clamp(14px, 2.4vw, 28px); box-shadow: var(--shadow-md); }
.ret__svg { width: 100%; height: auto; overflow: visible; }
.ret__grid line { stroke: rgba(37, 35, 31, .08); stroke-width: 1.5; stroke-dasharray: 4 6; }
.ret__grid .ret__axis { stroke: rgba(37, 35, 31, .3); stroke-dasharray: none; }
.ret__zone { fill: rgba(201, 54, 47, .08); stroke: rgba(201, 54, 47, .45); stroke-width: 1.5; stroke-dasharray: 5 5; }
.ret__zonelabel { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--red); }
.ret__area { fill: url(#retFill); }
.ret__line { fill: none; stroke: url(#retLine); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ret__dot { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.ret__tick { font-family: var(--body); font-size: 14px; font-weight: 600; fill: var(--muted); }
@media (max-width: 640px) { .ret__tick { font-size: 26px; } .ret__zonelabel { font-size: 26px; } .ret__line { stroke-width: 7; } }
.ret__caption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.ret__explain { display: grid; gap: 14px; align-content: start; }
.ret__block { padding: 22px 24px; border-radius: var(--r-md); background: var(--cream-2); }
.ret__block .h4 { margin-bottom: 6px; }
.ret__block--fix { background: var(--ink); color: var(--cream); }
.ret__block--fix .h4 { color: var(--coral); }
.ret__block p { font-size: 1.02rem; }
.ret__explain .btn { justify-self: start; margin-top: 6px; }

/* ---------- Best practices ---------- */
.tabs--light { background: var(--cream-3); margin-bottom: 32px; }
.tabs--light .tabs__btn { color: var(--muted); }
.tabs--light .tabs__btn[aria-selected="true"] { color: var(--cream); }
.tabs--light .tabs__pill { background: var(--ink); }
.bp-panel:focus-visible { outline-offset: 8px; }
.bp-grid { display: grid; gap: clamp(28px, 3vw, 40px) clamp(18px, 2.4vw, 32px); counter-reset: bp; }
@media (min-width: 640px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bp { display: grid; gap: 10px; align-content: start; }
.bp__vis { border-radius: var(--r-md); background: var(--ink); color: var(--cream); padding: 6% 4%; margin-bottom: 8px; overflow: hidden; }
.bp__vis svg { width: 100%; height: auto; overflow: visible; }
.bp__h { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.1; }
.bp__p { color: var(--muted); max-width: 40ch; }
@media (max-width: 639px) {
  .bp { grid-template-columns: 128px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; }
  .bp__vis { grid-row: span 2; margin: 0; padding: 8px 4px; border-radius: var(--r-sm); align-self: start; }
  .bp__h { font-size: 1.15rem; }
  .bp__p { font-size: .95rem; line-height: 1.5; }
}

/* best-practice diagrams */
.bv-track { fill: rgba(246, 243, 235, .16); }
.bv-track-s { fill: none; stroke: rgba(246, 243, 235, .16); stroke-width: 5; }
.bv-acc { fill: var(--coral); }
.bv-acc-s { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bv-ink { fill: var(--cream); }
.bv-o { opacity: .5; }
.bv-line { stroke: var(--cream); stroke-width: 2.5; stroke-linecap: round; }
.bv-faint { fill: none; stroke: rgba(246, 243, 235, .22); stroke-width: 2.5; stroke-linecap: round; }
.bv-dash { fill: none; stroke: rgba(246, 243, 235, .45); stroke-width: 1.6; stroke-dasharray: 4 4; }
.bv-card { fill: #3B3832; stroke: rgba(246, 243, 235, .22); stroke-width: 1.5; }
.bv-pill { fill: rgba(246, 243, 235, .2); }
.bv-frame { fill: none; stroke: rgba(246, 243, 235, .3); stroke-width: 2; }
.bv-phone { fill: #3B3832; stroke: rgba(246, 243, 235, .5); stroke-width: 2.5; }
.bv-hatch { fill: rgba(255, 151, 92, .5); }
.bv-safe { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-dasharray: 6 4; }
.bv-gap { fill: rgba(246, 243, 235, .25); }
.bv-cursor { fill: var(--cream); stroke: var(--ink); stroke-width: 1.2; }
.bv-t { font-family: var(--body); font-weight: 700; font-size: 11px; }
.bv-muted { fill: var(--muted-dark); }
.bv-acc-t { fill: var(--coral); font-size: 13px; }
.bv-ink-t { fill: var(--cream); font-size: 13px; }
.bp__vis * { transform-box: fill-box; transform-origin: center; }

/* loops only run while the panel is on screen (JS adds .is-live) */
.bp__vis .bv-hook, .bp__vis .bv-head, .bp__vis .bv-pulse, .bp__vis .bv-ticks circle, .bp__vis .bv-chap, .bp__vis .bv-arc, .bp__vis .bv-close,
.bp__vis .bv-broll, .bp__vis .bv-noun, .bp__vis .bv-end2, .bp__vis .bv-cursor, .bp__vis .bv-tri, .bp__vis .bv-flash, .bp__vis .bv-flash2, .bp__vis .bv-ring,
.bp__vis .bv-safe, .bp__vis .bv-capw rect, .bp__vis .bv-pulls, .bp__vis .bv-gap, .bp__vis .bv-wave .w3, .bp__vis .bv-wave .w4, .bp__vis .bv-wave .w5, .bp__vis .bv-wave .w6, .bp__vis .bv-wave .w7, .bp__vis .bv-loop { animation-play-state: paused; }
.is-live .bp__vis * { animation-play-state: running !important; }
.bv-hook { transform-origin: left center; animation: bvHook 4s var(--ease-out) infinite; }
.bv-head { transform-origin: left center; animation: bvHead 4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes bvHook { 0% { transform: scaleX(.15); } 30%, 100% { transform: none; } }
@keyframes bvHead { 0% { transform: translateX(0); } 30%, 70% { transform: translateX(30px); } 100% { transform: translateX(168px); } }
.bv-pulse { stroke-dasharray: 100; animation: bvDraw 4.5s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes bvDraw { 0% { stroke-dashoffset: 100; } 55%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
.bv-ticks circle { animation: bvPop 4.5s cubic-bezier(.34, 1.8, .5, 1) infinite; opacity: 0; }
.bv-ticks circle:nth-child(1) { --d: .4s; } .bv-ticks circle:nth-child(2) { --d: 1.15s; } .bv-ticks circle:nth-child(3) { --d: 1.9s; }
@keyframes bvPop { 0% { transform: scale(0); opacity: 1; } 12%, 60% { transform: none; opacity: 1; } 75%, 100% { transform: scale(0); opacity: 0; } }
.bv-chap { animation: bvCard 4.5s var(--ease-out) infinite; opacity: 0; }
.bv-c2 { --d: .5s; } .bv-c3 { --d: 1s; }
@keyframes bvCard { 0% { transform: translateY(14px) scale(.9); opacity: 0; } 12%, 70% { transform: none; opacity: 1; } 85%, 100% { transform: translateY(-6px); opacity: 0; } }
.bv-arc { stroke-dasharray: 100; animation: bvDraw 4s cubic-bezier(.65, 0, .35, 1) infinite; }
.bv-close { --d: 1.9s; animation: bvPop 4s cubic-bezier(.34, 1.8, .5, 1) infinite; opacity: 0; }
.bv-broll { --d: .3s; animation: bvCard 3.6s var(--ease-out) infinite; opacity: 0; transform-origin: 50% 100%; }
.bv-noun { animation: bvNoun 3.6s ease-in-out infinite; }
@keyframes bvNoun { 0%, 8% { fill: rgba(246, 243, 235, .2); } 14%, 75% { fill: var(--coral); } 90%, 100% { fill: rgba(246, 243, 235, .2); } }
.bv-cursor { transform-origin: 0 0; animation: bvCursor 4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes bvCursor { 0% { transform: translate(14px, 10px); opacity: 0; } 15% { opacity: 1; } 45%, 70% { transform: translate(-12px, -30px); } 50% { transform: translate(-12px, -30px) scale(.85); } 85% { opacity: 1; } 100% { transform: translate(-12px, -30px); opacity: 0; } }
.bv-end2 { animation: bvEnd 4s ease infinite; }
@keyframes bvEnd { 0%, 45% { fill: #3B3832; } 50%, 85% { fill: var(--coral); } 100% { fill: #3B3832; } }
.bv-tri { animation: bvTri 4s ease infinite; }
@keyframes bvTri { 0%, 45% { fill: var(--cream); } 50%, 85% { fill: var(--ink); } 100% { fill: var(--cream); } }
.bv-flash { animation: bvFlash 3s cubic-bezier(.34, 1.8, .5, 1) infinite; }
.bv-flash2 { --d: .12s; animation: bvFlash 3s cubic-bezier(.34, 1.8, .5, 1) infinite; }
@keyframes bvFlash { 0% { transform: scale(0); } 10%, 80% { transform: none; } 92%, 100% { transform: scale(0); } }
.bv-ring { stroke-dasharray: 100; transform: rotate(-90deg); animation: bvRing 3s linear infinite; }
@keyframes bvRing { 0% { stroke-dashoffset: 100; } 33%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.bv-safe { animation: bvSafe 2.8s ease-in-out infinite; }
@keyframes bvSafe { 50% { transform: scale(1.06); } }
.bv-capw rect { animation: bvFlash 3s cubic-bezier(.34, 1.8, .5, 1) infinite; }
.bv-capw rect:nth-child(2) { --d: .2s; } .bv-capw rect:nth-child(3) { --d: .4s; }
.bv-gap { animation: bvGap 3.4s var(--ease-out) infinite; transform-origin: center; }
@keyframes bvGap { 0%, 25% { transform: none; opacity: 1; } 45%, 85% { transform: scaleX(0); opacity: 0; } 100% { transform: none; opacity: 1; } }
.bv-wave .w3, .bv-wave .w4 { animation: bvShift1 3.4s var(--ease-out) infinite; }
.bv-wave .w5, .bv-wave .w6, .bv-wave .w7 { animation: bvShift2 3.4s var(--ease-out) infinite; }
@keyframes bvShift1 { 0%, 25% { transform: none; } 45%, 85% { transform: translateX(-24px); } 100% { transform: none; } }
@keyframes bvShift2 { 0%, 25% { transform: none; } 45%, 85% { transform: translateX(-52px); } 100% { transform: none; } }
.bv-mark { fill: none; stroke: var(--coral); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bv-mark--ink { stroke: var(--cream); stroke-width: 2.2; }
.bv-pull { fill: none; stroke: rgba(246, 243, 235, .75); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 4; }
.bv-pulls { animation: bvPull 3.4s var(--ease-out) infinite; }
@keyframes bvPull { 0%, 22% { opacity: 1; transform: none; } 42%, 82% { opacity: 1; transform: translateX(-12px); } 90% { opacity: 0; transform: translateX(-12px); } 100% { opacity: 1; transform: none; } }
.bv-loop { transform-origin: 100px 60px; transform-box: view-box; animation: bvSpin 5s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes bvSpin { 0% { transform: rotate(0); } 60%, 100% { transform: rotate(180deg); } }
/* start each loop on a fully composed frame (also what shows before it plays) */
#bp-long { --phase: 2.6s; }
#bp-shorts { --phase: 1.8s; }
.bp__vis svg * { animation-delay: calc(var(--d, 0s) - var(--phase, 2s)); }

/* ---------- Playbooks (beyond the edit) ---------- */
.books { overflow: clip; }
.books__lead { display: grid; gap: 16px; justify-items: start; }
@media (min-width: 900px) { .books__lead { justify-self: end; } }
.books__tiers { color: var(--muted-dark); font-size: .98rem; line-height: 2.1; }
.books__tiers > span { display: block; }
.tierchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; margin-right: 4px; border-radius: 999px; line-height: 1.5;
  background: var(--ink-3); color: var(--cream); font-family: var(--display); font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.tierchip--all::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-sig); }
.tierchip--sm { font-size: .8rem; padding: 2px 9px; }

.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); align-items: start; }
@media (max-width: 899px) {
  .shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin-inline: calc(var(--gutter) * -1); padding: 24px var(--gutter) 12px; scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .pb { flex: 0 0 min(66vw, 280px); scroll-snap-align: center; }
}
.pb { --tilt: -3deg; display: grid; gap: 22px; }
.pb:nth-child(2) { --tilt: 2.5deg; }
.pb:nth-child(3) { --tilt: -1.5deg; }
.pb:nth-child(4) { --tilt: 3deg; }
.pb:nth-child(5) { --tilt: -2deg; }
.pb__copy h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); }
.pb__copy p { color: var(--muted-dark); margin-top: 8px; font-size: .98rem; line-height: 1.5; }
.pb__copy .pb__tier { margin-top: 12px; line-height: 2; }

.book {
  --bg: var(--cream); --fg: var(--ink); --art: var(--ink);
  position: relative; aspect-ratio: 3 / 4; padding: 14% 12% 12% 16%;
  display: grid; grid-template-rows: auto 1fr auto; border-radius: 5px 14px 14px 5px;
  background: var(--bg); color: var(--fg);
  transform: rotate(var(--tilt)); transform-origin: 50% 90%;
  /* page edges, then the soft drop shadow */
  box-shadow: 3px 3px 0 0 #E9E2D2, 5px 5px 0 0 #CFC6B3, 7px 7px 0 0 #E9E2D2, 9px 9px 0 0 #CFC6B3,
              0 34px 44px -22px rgba(0, 0, 0, .8), 0 6px 14px -6px rgba(0, 0, 0, .5);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.book::before { /* spine */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 11%; border-radius: 5px 0 0 5px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.06) 70%, rgba(255,255,255,.18));
}
.book__vol { font-family: var(--body); font-weight: 700; font-size: clamp(.62rem, .5rem + .25vw, .75rem); letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.book__art { width: 72%; height: auto; align-self: center; justify-self: center; color: var(--art); overflow: visible; }
.book__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, .9rem + 1.1vw, 1.75rem); line-height: .98; letter-spacing: -.02em; }
.book__title--serif { font-family: "NR Lora", Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: -.01em; }
.book__mark { position: absolute; top: -4px; right: 16%; width: 9%; height: 20%; background: var(--mark, var(--red)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }

.pb--hook .book { --bg: var(--grad); --fg: var(--ink); --art: var(--ink); --mark: var(--ink); }
.pb--idea .book { --bg: var(--cream); --art: var(--ink); }
.pb--idea .book__grid rect { fill: rgba(37, 35, 31, .14); transition: fill .3s; }
.pb--idea .book__grid rect.on { fill: var(--coral-mid); }
.pb--script .book { --bg: #EFE7D6; --art: var(--ink); --mark: var(--coral-mid); }
.pb--coach .book { --bg: var(--red); --fg: var(--cream); --art: var(--cream); --mark: var(--ink); }
.pb--ret .book { --bg: #3B3832; --fg: var(--cream); --art: var(--coral); --mark: var(--coral); }
.pb--ret .book__art circle { stroke: var(--cream); }

.book__vf { transform-box: fill-box; transform-origin: center; transition: transform .9s var(--ease-out); }
.book__spin { transform-box: view-box; transform-origin: 60px 60px; transition: transform .9s var(--ease-out); }
.book__ink, .book__curve { stroke-dasharray: 400; stroke-dashoffset: 0; }
@media (hover: hover) {
  .pb:hover .book { transform: translateY(-16px) rotate(0deg) scale(1.03); box-shadow: 3px 3px 0 0 #E9E2D2, 5px 5px 0 0 #CFC6B3, 7px 7px 0 0 #E9E2D2, 9px 9px 0 0 #CFC6B3, 0 54px 60px -26px rgba(0, 0, 0, .85), 0 10px 20px -10px rgba(0, 0, 0, .5); }
  .pb:hover .book__spin { transform: rotate(150deg); }
  .pb:hover .book__vf { transform: scale(.9); }
  .pb:hover .book__ink, .pb:hover .book__curve { animation: drawIn 1.1s var(--ease-out); }
  .pb:hover .book__grid rect:not(.on) { fill: rgba(236, 98, 68, .45); }
}
.book__rec { animation: blink 1.4s ease-in-out infinite; }
@keyframes drawIn { from { stroke-dashoffset: 400; } }

/* ---------- Pricing ---------- */
.rooms { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 980px) { .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.room {
  --pad: clamp(22px, 2.6vw, 30px);
  position: relative; display: flex; flex-direction: column; gap: 20px; padding: var(--pad); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-md); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.room:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.room__name { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); }
.room__pitch { margin-top: 6px; color: var(--muted); font-size: 1.05rem; }
.room__prices { display: grid; gap: 0; border-top: 1px solid var(--line); }
.room__prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.room__prices dt { font-size: .95rem; color: var(--muted); }
.room__prices dd { font-family: var(--display); font-weight: 600; font-size: 1.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.room__custom { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1.1; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room__custom span { color: var(--muted); font-weight: 500; font-size: 1.15rem; }
.room__formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.room__formats li { padding: 4px 12px; border-radius: 999px; background: var(--cream-2); font-size: .85rem; font-weight: 700; }
.room__quote {
  display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem); line-height: 1.2;
}
.room__quote svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.room__list { display: grid; gap: 12px; flex: 1; align-content: start; }
.room__list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; font-size: 1rem; line-height: 1.35; }
.room__ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); color: var(--red); }
.room__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.room__fine { font-size: .88rem; color: var(--muted); }
.room--royal { background: linear-gradient(160deg, #FF9C62 0%, #F47A4E 55%, #EC6244 100%); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(201, 54, 47, .55); }
.room--royal .room__pitch, .room--royal .room__custom span { color: rgba(37, 35, 31, .78); }
.room--royal .room__custom, .room--royal .room__quote { border-color: rgba(37, 35, 31, .2); }
.room--royal .room__quote svg { stroke: var(--ink); }
.room--royal .room__ico { background: rgba(255, 255, 255, .32); color: var(--ink); }
.room__head { position: relative; }
.room__flag { position: absolute; z-index: 2; top: 4px; right: 0; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 600; font-size: .85rem; }
@media (min-width: 980px) { .room--royal { transform: translateY(-14px); } .room--royal:hover { transform: translateY(-18px); } }
.pricing__note { text-align: center; color: var(--muted); margin-top: 32px; font-size: .95rem; }

/* "what's in the room" illustrations: ink panels, cream + coral, like the best-practice diagrams */
.room__art { border-radius: 18px; background: var(--ink); overflow: hidden; }
.room__art svg { width: 100%; height: auto; }
.room__art text { font: 700 9px var(--body); letter-spacing: .08em; fill: var(--muted-dark); }
.ra-track { fill: rgba(246, 243, 235, .09); }
.ra-clip { fill: rgba(246, 243, 235, .8); }
.ra-clip--b { fill: rgba(246, 243, 235, .45); }
.ra-acc { fill: var(--coral); }
.ra-wave { fill: none; stroke: rgba(246, 243, 235, .55); stroke-width: 2.4; stroke-linecap: round; }
.ra-headline { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; }
.ra-paper { fill: var(--cream); }
.ra-ruled { fill: none; stroke: rgba(37, 35, 31, .22); stroke-width: 3.5; stroke-linecap: round; }
.ra-mark { fill: var(--coral); opacity: .6; }
.ra-inkline { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.ra-penbody { fill: #3B3832; stroke: var(--cream); stroke-width: 2; stroke-linejoin: round; }
.ra-pentip { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; }
.ra-bubblebody { fill: #3B3832; stroke: rgba(246, 243, 235, .3); stroke-width: 1.5; }
.ra-bubbletext { fill: none; stroke: var(--cream); stroke-width: 3.5; stroke-linecap: round; }
.ra-card { fill: #3B3832; stroke: rgba(246, 243, 235, .22); stroke-width: 1.5; }
.ra-calhead { stroke: rgba(246, 243, 235, .22); stroke-width: 1.5; }
.ra-cell { fill: rgba(246, 243, 235, .16); }
.ra-axis { fill: none; stroke: rgba(246, 243, 235, .35); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ra-line { fill: none; stroke: var(--coral); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.ra-dotend { fill: var(--cream); }
.ra-face { fill: var(--ink); opacity: .85; }
.ra-inkfill { fill: var(--ink); }
.room__art * { transform-box: fill-box; transform-origin: center; }
.ra-head { animation: raHead 7s linear infinite; }
.ra-head--short { animation-name: raHeadS; }
.ra-head--wide { animation-name: raHeadW; }
@keyframes raHead { 0% { transform: translateX(-60px); } 100% { transform: translateX(176px); } }
@keyframes raHeadS { 0% { transform: translateX(-40px); } 100% { transform: translateX(100px); } }
@keyframes raHeadW { 0% { transform: translateX(-70px); } 100% { transform: translateX(206px); } }
.ra-pop rect { animation: raPop 3.5s var(--ease-out) infinite; }
.ra-pop rect:nth-child(2) { animation-delay: .5s; } .ra-pop rect:nth-child(3) { animation-delay: 1s; }
@keyframes raPop { 0%, 100% { transform: none; } 8% { transform: scale(1.12); } 16% { transform: none; } }
.ra-mark { transform-origin: left center; animation: raMark 4s var(--ease-out) infinite; }
@keyframes raMark { 0% { transform: scaleX(0); } 25%, 85% { transform: none; } 100% { transform: none; opacity: 0; } }
.ra-pen { animation: raPen 4s ease-in-out infinite; }
@keyframes raPen { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(26px, -4px); } 50% { transform: translate(8px, 2px); } }
.ra-cells .ra-acc { animation: raCell 4s cubic-bezier(.34, 1.8, .5, 1) infinite; }
.ra-cells .ra-acc:nth-child(3) { animation-delay: .25s; } .ra-cells .ra-acc:nth-child(6) { animation-delay: .5s; } .ra-cells .ra-acc:nth-child(8) { animation-delay: .75s; }
.ra-cells .ra-acc:nth-child(9) { animation-delay: 1s; } .ra-cells .ra-acc:nth-child(11) { animation-delay: 1.25s; }
@keyframes raCell { 0% { transform: scale(0); } 12%, 90% { transform: none; } 100% { transform: scale(0); } }
.ra-line { animation: raLine 4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes raLine { 0% { stroke-dashoffset: 100; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ra-dotend { animation: raCell 4s cubic-bezier(.34, 1.8, .5, 1) 1.6s infinite; }
.room__art:not(.is-live) * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .room__art * { animation: none !important; } }

/* ---------- Process ---------- */
.steps { display: grid; gap: 14px; position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step { background: var(--cream); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); display: grid; gap: 12px; align-content: start; position: relative; }
.step__n {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1.7rem; background: var(--ink); color: var(--cream);
}
.step:first-child .step__n { background: var(--grad); color: var(--ink); }
.step h3 { font-size: clamp(1.6rem, 1.3rem + .9vw, 2.1rem); }
.step p { color: var(--muted); }

/* ---------- Nobel ---------- */
.nobel__grid { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .nobel__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); } }
.nobel__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1075 / 1280; max-width: 520px; width: 100%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.nobel__photo img { width: 100%; height: 100%; object-fit: cover; }
.nobel__copy { display: grid; gap: 18px; justify-items: start; }
.nobel__copy p { font-size: 1.1rem; color: var(--muted-dark); max-width: 42ch; }
.nobel__copy .nobel__big { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.2; color: var(--cream); }
.nobel__sign { font-family: var(--display); font-weight: 600; font-size: 1.6rem !important; color: var(--cream) !important; margin-top: 6px; }
.nobel__sign span { font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--muted-dark); }
.nobel__copy .btn { margin-top: 10px; }

/* ---------- Scorecard banner ---------- */
.score { padding-block: clamp(56px, 7vw, 96px) 0; }
.score__card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 22px; align-items: center;
  padding: clamp(26px, 4vw, 48px); border-radius: var(--r-lg); background: var(--cream-2);
}
@media (min-width: 860px) { .score__card { grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 3vw, 44px); } }
.score__gauge { width: clamp(88px, 10vw, 120px); height: auto; overflow: visible; }
.score__gauge .g-track { fill: none; stroke: var(--cream-3); stroke-width: 12; stroke-linecap: round; }
.score__gauge .g-val { fill: none; stroke: url(#scoreGrad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 38; transition: stroke-dashoffset 1.4s var(--ease-out); }
.score__gauge .g-needle { transform-origin: 60px 64px; transform: rotate(40deg); transition: transform 1.4s var(--ease-out); }
.score__card:not(.is-in) .g-val { stroke-dashoffset: 100; }
.score__card:not(.is-in) .g-needle { transform: rotate(-90deg); }
.score__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.score__sub { color: var(--muted); margin-top: 8px; max-width: 52ch; }
.score__card .btn { justify-self: start; }
.nav__links .nav__score { display: inline-flex; align-items: center; gap: 8px; }
.nav__score::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-sig); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 960px) { .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .faq__head { position: sticky; top: 120px; } }
.faq__head .lead { margin-top: 18px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 36px; height: 36px; padding: 8px; flex: none; border-radius: 50%; background: var(--cream-2); transition: transform .45s var(--ease-out), background-color .25s, color .25s; }
.qa summary:hover svg { background: var(--cream-3); }
.qa[open] summary svg { transform: rotate(45deg); background: var(--ink); color: var(--cream); }
.qa__a { padding: 0 56px 26px 0; }
.qa__a p { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* ---------- Final CTA ---------- */
.final { background: linear-gradient(135deg, #EC6244 0%, #F47A4E 45%, #FF975C 100%); color: var(--ink); padding-block: clamp(96px, 13vw, 180px); position: relative; overflow: hidden; }
.final::before, .final::after { content: ""; position: absolute; width: clamp(80px, 12vw, 170px); height: clamp(80px, 12vw, 170px); border: clamp(10px, 1.4vw, 18px) solid var(--ink); pointer-events: none; }
.final::before { top: clamp(24px, 4vw, 56px); left: clamp(16px, 4vw, 56px); border-right: 0; border-bottom: 0; border-top-left-radius: clamp(28px, 3vw, 44px); }
.final::after { bottom: clamp(24px, 4vw, 56px); right: clamp(16px, 4vw, 56px); border-left: 0; border-top: 0; border-bottom-right-radius: clamp(28px, 3vw, 44px); }
.final__inner { display: grid; justify-items: center; text-align: center; gap: 26px; position: relative; z-index: 1; }
.final__title { font-size: clamp(2.8rem, 1.4rem + 6vw, 6rem); line-height: .98; letter-spacing: -.03em; max-width: 12ch; }
.final__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 44ch; color: rgba(37, 35, 31, .86); }
.final .btn { margin-top: 8px; }
.final__alt { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; margin-top: -6px; padding: 6px 4px; }
.final__alt:hover { text-decoration-thickness: 3px; }
.final .btn:hover { box-shadow: 0 22px 40px -16px rgba(37, 35, 31, .6); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 56px 0 40px; }
.footer__inner { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand tag links" "copy copy copy"; } .footer .brand { grid-area: brand; } .footer__tag { grid-area: tag; } .footer__links { grid-area: links; } .footer__copy { grid-area: copy; } }
.footer__tag { color: var(--muted-dark); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--coral); }
.footer__copy { color: var(--muted-dark); font-size: .88rem; padding-top: 22px; border-top: 1px solid var(--line-dark); }

/* ---------- Reveal (JS adds .reveal-ready; content stays visible without JS) ---------- */
.hover-lift { transition: transform .5s var(--ease-out); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .track, .marquee__track, .tag { animation: none !important; transform: none !important; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .bp__vis * { animation: none !important; }
  .bv-chap, .bv-ticks circle, .bv-close, .bv-broll { opacity: 1 !important; }
}

/* ---------- Playbook covers as buttons + "peek inside" ---------- */
button.book { appearance: none; border: 0; width: 100%; font: inherit; text-align: left; cursor: pointer; }
button.book:focus-visible { outline: 3px solid var(--coral); outline-offset: 6px; }
.pb__peek {
  appearance: none; border: 0; background: none; cursor: pointer; margin-top: 10px; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 8px; font: 700 .95rem/1 var(--body); color: var(--coral);
}
.pb__peek .btn__icon { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.pb__peek:hover .btn__icon { transform: translateX(4px); }

html.peek-open { overflow: hidden; }
.peek {
  padding: 0; border: 0; background: transparent; width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; color: var(--ink); overflow: visible;
}
.peek::backdrop { background: rgba(20, 18, 15, .72); backdrop-filter: blur(6px); }
.peek[open] .peek__inner { animation: peekIn .55s var(--ease-out) both; }
@keyframes peekIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.peek__inner {
  position: relative; display: grid; gap: 0; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  background: var(--cream); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
@media (min-width: 820px) { .peek__inner { grid-template-columns: 300px 1fr; } }
.peek__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); font: 600 1.6rem/1 var(--body);
}
.peek__cover {
  --bg: var(--cream); --fg: var(--ink); --art: var(--ink);
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 34px 30px 30px 40px; min-height: 220px;
  background: var(--bg); color: var(--fg); border-radius: 22px 22px 0 0;
}
@media (min-width: 820px) { .peek__cover { border-radius: 22px 0 0 22px; position: sticky; top: 0; height: 100%; max-height: calc(100dvh - 24px); } }
@media (max-width: 819px) { .peek__cover { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 24px 70px 24px 28px; min-height: 0; }
  .peek__cover .book__art { grid-row: 1 / 3; grid-column: 2; width: 84px; }
  .peek__cover .book__title { align-self: end; } }
.peek__cover.pb--hook { --bg: var(--grad); --mark: var(--ink); }
.peek__cover.pb--script { --bg: #EFE7D6; --mark: var(--coral-mid); }
.peek__cover.pb--coach { --bg: var(--red); --fg: var(--cream); --art: var(--cream); --mark: var(--ink); }
.peek__cover.pb--ret { --bg: #3B3832; --fg: var(--cream); --art: var(--coral); --mark: var(--coral); }
.peek__cover.pb--ret .book__art circle { stroke: var(--cream); }
.peek__cover.pb--idea .book__grid rect { fill: rgba(37,35,31,.14); }
.peek__cover.pb--idea .book__grid rect.on { fill: var(--coral-mid); }
.peek__cover .book__art { width: min(180px, 70%); }
.peek__cover .book__mark { right: 30px; }

.peek__body { padding: clamp(26px, 4vw, 44px); display: grid; gap: 18px; align-content: start; }
.peek__kicker { font: 700 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-mid); }
.peek__title { font-family: var(--display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; padding-right: 40px; }
.peek__lead { color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.peek__free { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: pk; }
.peek__free li {
  counter-increment: pk; position: relative; padding: 18px 18px 18px 62px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.06));
}
.peek__free li::before {
  content: counter(pk); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: var(--ink); font: 700 .95rem/1 var(--display);
}
.peek__free h3 { font-size: 1.12rem; line-height: 1.25; }
.peek__free p { margin-top: 6px; color: var(--muted); line-height: 1.5; font-size: .97rem; }
.peek__free .peek__ex { color: var(--ink); font-style: italic; padding-left: 12px; border-left: 3px solid var(--coral); }
.peek__locked { position: relative; padding: 18px; border-radius: 16px; background: var(--ink); color: var(--cream); overflow: hidden; }
.peek__lockhead { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--coral); }
.peek__lockhead svg { width: 18px; height: 18px; }
.peek__lockedlist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.peek__lockedlist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); }
.peek__lockedlist li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.peek__lockedlist li:nth-child(n+3) span { filter: blur(4px); user-select: none; }
.peek__cta { display: grid; gap: 12px; justify-items: start; padding-top: 6px; }
.peek__cta > p:first-child { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.peek__tier { color: var(--muted); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .peek[open] .peek__inner { animation: none; } }
