@font-face {
  font-family: 'Disc';
  src: url('fonts/Discv0.7-Light.woff2') format('woff2'), url('fonts/Discv0.7-Light.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Disc';
  src: url('fonts/Discv0.7-Regular.woff2') format('woff2'), url('fonts/Discv0.7-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Disc';
  src: url('fonts/Discv0.7-Bold.woff2') format('woff2'), url('fonts/Discv0.7-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #101010;
  --muted: #5c5c5c;
  --line: #ececec;
  --gray: #d8d8d8;
  --pink: #e8175d;
  --pill: #f4f4f4;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }

/* Type */
.eyebrow {
  color: var(--pink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 20px;
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
}
.micro { font-size: 14px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--ink); transform: translateY(-1px); }
.btn-small { padding: 11px 22px; font-size: 15px; }
.btn-big { font-size: 19px; padding: 20px 44px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--pink); }

/* Hero (pinned; services panel wipes over it) */
.hero-stage { height: auto; }
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero .hero-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding-top: 40px;
  will-change: transform, opacity;
}
.hero-row, .hero-bottom, .hero .trust-marquee, .hero .eyebrow {
  will-change: transform, opacity;
}
.wipe-circle { display: none; }
.hero-title {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(72px, 15.5vw, 260px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: auto 0;
}
.hero-title .line-mask { padding-right: 12px; }
.hero-row { display: flex; align-items: center; gap: 2.5vw; }
.hero-row .accent { color: var(--pink); }
.hero-toggle { flex: 0 0 auto; display: inline-flex; }
.toggle-pill {
  width: clamp(140px, 19.5vw, 335px);
  height: clamp(56px, 7.8vw, 130px);
  background: var(--pill);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 7px;
}
.vinyl {
  width: clamp(44px, 6vw, 104px);
  height: clamp(44px, 6vw, 104px);
  will-change: transform;
}
.hero-bottom {
  padding-top: 32px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero-sub {
  max-width: 460px;
  font-size: 19px;
  color: var(--muted);
}
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Trust strip (inside hero) */
.hero .trust-marquee { padding: 22px 0 26px; }
.trust-marquee { overflow: hidden; }
.trust-names {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: trust-scroll 30s linear infinite;
}
.trust-names li { margin-right: 72px; flex: 0 0 auto; }
.trust-marquee:hover .trust-names { animation-play-state: paused; }
@keyframes trust-scroll { to { transform: translateX(-50%); } }
.trust-names img {
  height: 30px;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity .2s, filter .2s;
}
.trust-names li:hover img { filter: none; opacity: 1; }
.trust-names img.logo-tall { height: 44px; }
.trust-text {
  font-family: 'Disc', 'Inter', sans-serif;
  font-size: 19px;
  color: #a3a3a3;
  white-space: nowrap;
}
.trust-gtb {
  font-family: 'Libre Baskerville', Baskerville, serif;
  font-size: 17px;
}

/* Services (inverted) — continues seamlessly from the disc wipe */
.services.inverted {
  background: var(--pink);
}
.services.inverted .eyebrow { color: #fff; opacity: .85; }
.services.inverted .section-title { color: #fff; }
.services.inverted .micro { color: rgba(255,255,255,.85); }
.service-rows { margin-top: 40px; }
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.1fr 48px;
  gap: 32px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.service-go {
  color: #fff;
  justify-self: end;
  align-self: center;
  transition: transform .25s ease;
}
.service-row:hover .service-go { transform: translateX(8px); }
.service-row:first-child { border-top: 1px solid rgba(255,255,255,.3); }
.service-row .num { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); }
.service-row h3 {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  color: #fff;
  transition: color .2s, letter-spacing .3s;
}
.service-row:hover h3 { color: var(--ink); letter-spacing: .01em; }
.service-row p { color: rgba(255,255,255,.88); font-size: 17px; max-width: 520px; }

/* Rows sweep in from the left, staggered */
.js .service-row.reveal { transform: translateX(-56px); }
.js .service-row.reveal.in { transform: none; }
.js .service-rows .service-row:nth-child(2) { transition-delay: .12s; }
.js .service-rows .service-row:nth-child(3) { transition-delay: .24s; }
.js .service-rows .service-row:nth-child(4) { transition-delay: .36s; }

.services.inverted .btn { background: #fff; color: var(--pink); }
.services.inverted .btn:hover { background: var(--ink); color: #fff; }

.section-cta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Why / stats */
.why { background: #fafafa; }
.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}
.stat-num, .stat-num .count, .stat-num .pct {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 1;
  color: var(--pink);
}
.stat p, .proof-stat p { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 320px; }

/* Work */
.work-head { margin-bottom: 48px; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.case-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.case-card:hover { border-color: var(--pink); transform: translateY(-4px); }
.case-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.case-meta { padding: 24px; }
.case-meta h3 {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 26px;
}
.case-meta p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.case-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pink);
}

/* Proof */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.proof-copy p { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 560px; }
.team-photos {
  margin-top: 48px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.team-figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.team-figure img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.team-figure:hover img { transform: scale(1.06); }
.team-figure figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity .25s ease;
}
.team-figure:hover figcaption { opacity: 1; }
.team-figure figcaption strong { font-size: 14px; font-weight: 600; }
.team-figure figcaption span { font-size: 12px; opacity: .85; }

.proof-band {
  margin-top: 56px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.proof-band-stat .count, .proof-band-stat .pct {
  font-family: 'Disc', 'Inter', sans-serif;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  color: var(--pink);
}
.proof-band > p { color: var(--muted); font-size: 17px; max-width: 380px; }

/* Process */
.process { background: #fafafa; }
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step { padding: 8px 0; }
.js .step.reveal {
  opacity: .18;
  filter: blur(10px);
  transform: translateY(28px) scale(.97);
  transition: opacity .8s ease, filter .8s ease, transform .8s ease;
}
.js .step.reveal.in {
  opacity: 1;
  filter: none;
  transform: none;
}
.steps .step:nth-child(2) { transition-delay: .2s; }
.steps .step:nth-child(3) { transition-delay: .4s; }
.js .steps .step.in:nth-child(2) .step-num { animation-delay: .35s; }
.js .steps .step.in:nth-child(3) .step-num { animation-delay: .55s; }
.step-num {
  display: inline-block;
  font-family: 'Disc', 'Inter', sans-serif;
  font-size: 72px;
  line-height: 1;
  color: var(--pink);
}
.js .step.in .step-num { animation: num-pop .55s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes num-pop {
  0% { transform: scale(.4) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.step h3 {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 24px;
  margin: 18px 0 10px;
}
.step p { color: var(--muted); font-size: 16px; }

/* CTA */
.cta { text-align: center; padding: 140px 0; }
.cta h2 {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.cta .btn { margin-top: 44px; }
.cta .micro { margin-top: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 20px; width: auto; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: var(--pink); }
.footer p { font-size: 14px; color: var(--muted); }

/* Reveal on scroll (only when JS is active) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-row { gap: 14px; }
  .proof-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta { padding: 96px 0; }
}

/* Case pages */
.case-hero { padding: 72px 0 40px; }
.case-hero .eyebrow { margin-bottom: 14px; }
.case-hero h1 {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.03;
}
.case-hero .case-intro { margin-top: 24px; max-width: 620px; font-size: 19px; color: var(--muted); }
.case-facts {
  margin-top: 40px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-facts div h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--pink);
}
.case-facts div p { margin-top: 6px; font-size: 16px; }
.case-gallery { padding: 56px 0; display: grid; gap: 24px; }
.case-gallery img { width: 100%; border-radius: var(--radius); }
.case-gallery .two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case-body { max-width: 680px; }
.case-body h2 {
  font-family: 'Disc', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 16px;
}
.case-body p { color: var(--muted); font-size: 18px; margin-bottom: 16px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 15px; }
.back-link:hover { color: var(--pink); }

@media (max-width: 720px) {
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row p { grid-column: 2; }
  .case-gallery .two-up { grid-template-columns: 1fr; }
  .team-photos img { width: 104px; height: 104px; }
}

/* DEPT-style masked line reveals */
.line-mask { display: block; overflow: hidden; }
.line-mask .line-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}
.line-inner.hero-row { display: flex; }

/* hero lines rise on load */
.loaded .hero-title .line-mask:nth-child(1) .line-inner { transform: none; transition-delay: .1s; }
.loaded .hero-title .line-mask:nth-child(2) .line-inner { transform: none; transition-delay: .22s; }

/* hero secondary content fades up after the title */
.js .hero .eyebrow, .js .hero-bottom, .js .hero .trust-marquee {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease .55s, transform .8s ease .55s;
}
.loaded .hero .eyebrow { opacity: 1; transform: none; transition-delay: 0s; }
.loaded .hero-bottom, .loaded .hero .trust-marquee { opacity: 1; transform: none; }

/* section titles rise per line on scroll */
.js .reveal-lines .line-inner { transform: translateY(115%); }
.js .reveal-lines.in .line-mask:nth-child(1) .line-inner { transform: none; transition-delay: .05s; }
.js .reveal-lines.in .line-mask:nth-child(2) .line-inner { transform: none; transition-delay: .17s; }

/* case card images scale in and zoom on hover */
.case-card { overflow: hidden; }
.case-card > img { transform: scale(1.12); transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.case-card.in > img { transform: scale(1); }
.case-card:hover > img { transform: scale(1.05); }

/* giant marquee band */
.text-marquee { overflow: hidden; padding: 72px 0; }
.text-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: trust-scroll 18s linear infinite;
  font-family: 'Disc', 'Inter', sans-serif;
  font-size: clamp(72px, 11vw, 180px);
  line-height: 1;
  color: var(--pink);
}


/* Parallax bridge */
.bridge {
  position: relative;
  padding: 170px 0;
  overflow: clip;
  text-align: center;
}
.bridge-inner { position: relative; z-index: 2; }
.bridge .section-sub { margin: 20px auto 0; }
.bridge .plx {
  position: absolute;
  border-radius: 14px;
  opacity: .9;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  will-change: transform;
  z-index: 1;
}
@media (max-width: 720px) {
  .bridge { padding: 110px 0; }
  .bridge .plx { width: 110px !important; opacity: .5; }
}

/* Ads marquee (service pages) */
.ad-marquee { overflow: clip; }
.ad-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: trust-scroll 38s linear infinite;
}
.ad-marquee:hover .ad-marquee-track { animation-play-state: paused; }
.ad-marquee-track img {
  height: clamp(280px, 36vw, 440px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: auto;
  border-radius: 16px;
}


/* three-up ad grid on case pages */
.case-gallery .three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-gallery .three-up img { width: 100%; border-radius: 14px; }
@media (max-width: 720px) {
  .case-gallery .three-up { grid-template-columns: repeat(2, 1fr); }
}


/* size caps for wide case images */
.case-gallery img.capped { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.case-gallery .two-up img.capped-half { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }


/* animated site previews */
.site-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.site-frame {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.site-frame:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.14); }
.site-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f3f3f3;
  border-bottom: 1px solid var(--line);
}
.site-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #d6d6d6; }
.site-url { margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.site-view { display: block; height: 420px; overflow: hidden; position: relative; }
.site-view img {
  width: 100%;
  display: block;
  animation: site-scroll 16s ease-in-out infinite;
}
.site-frame:nth-child(2) .site-view img { animation-delay: 1.2s; }
.site-frame:nth-child(3) .site-view img { animation-delay: 2.4s; }
@keyframes site-scroll {
  0%, 12% { transform: translateY(0); }
  48%, 60% { transform: translateY(calc(-100% + 420px)); }
  96%, 100% { transform: translateY(0); }
}
@media (max-width: 860px) {
  .site-frames { grid-template-columns: 1fr; }
  .site-view { height: 340px; }
  @keyframes site-scroll {
    0%, 12% { transform: translateY(0); }
    48%, 60% { transform: translateY(calc(-100% + 340px)); }
    96%, 100% { transform: translateY(0); }
  }
}


.case-gallery .three-up.uniform img { aspect-ratio: 4 / 5; object-fit: cover; }


/* ── Testing schedule / cadence board (paid social) ───────────────── */
.cadence { background: #fafafa; padding: 96px 0 104px; }
.cadence .section-sub { max-width: 640px; }

/* week strip */
.cad-week {
  position: relative;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.cad-day {
  position: relative;
  padding: 18px 8px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.cad-day:last-child { border-right: 0; }
.cad-day > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cad-dot {
  width: 8px;
  height: 8px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: var(--gray);
}
.cad-day em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pink);
  opacity: 0;
  line-height: 1.25;
}
.cad-day.has-drop em { opacity: 1; }
.cad-day em .lg, .cad-day em .sm { display: inline; }
.cad-day em .sm { display: none; }
.cad-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--pink);
  opacity: .8;
}

/* board */
.cad-board {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cad-slot { position: relative; }
.cad-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  height: 100%;
}
.cad-col h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cad-col .cad-num {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.cad-stack { margin-top: 14px; display: grid; gap: 8px; }
.cad-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.cad-chip i {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .55;
}
.cad-chip::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  opacity: .45;
}
.cad-drop {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--pink);
}
.cad-col--next {
  position: absolute;
  inset: 0;
  border-style: dashed;
  border-color: var(--pink);
  opacity: 0;
}
.cad-col--next .cad-num { color: var(--pink); }
.cad-col--next p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.cad-legend {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
}
.cad-legend li { font-size: 15px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.cad-legend strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 4px; }

/* ── arrival: ease in on scroll, hold the week at frame 0 until then ── */
.js .cadence .cad-week,
.js .cadence .cad-board,
.js .cadence .cad-legend {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}
.js .cadence.in .cad-week   { opacity: 1; transform: none; transition-delay: .04s; }
.js .cadence.in .cad-board  { opacity: 1; transform: none; transition-delay: .16s; }
.js .cadence.in .cad-legend { opacity: 1; transform: none; transition-delay: .3s; }

.js .cadence:not(.in) .cad-anim *,
.js .cadence:not(.in) .cad-anim *::after { animation-play-state: paused; }

/* ── choreography: one 14s week, on repeat ─────────────────────────── */
.cad-anim .cad-playhead { animation: cad-sweep 14s linear infinite; }
.cad-anim .cad-day.has-drop .cad-dot { animation: cad-pulse 14s linear infinite both; }
.cad-anim .cad-day:nth-child(1) .cad-dot { animation-delay: 1s; }
.cad-anim .cad-day:nth-child(3) .cad-dot { animation-delay: 5s; }
.cad-anim .cad-day:nth-child(5) .cad-dot { animation-delay: 9s; }

.cad-anim .cad-chip { animation: cad-loser 14s cubic-bezier(.33,0,.2,1) infinite both; animation-delay: calc(var(--cd, 0s) + var(--rd, 0s)); }
.cad-anim .cad-chip::after { animation: cad-strike 14s cubic-bezier(.22,1,.36,1) infinite both; animation-delay: calc(var(--cd, 0s) + var(--rd, 0s)); }
.cad-anim .cad-chip.is-win { animation-name: cad-winner; }
.cad-anim .cad-chip.is-win::after { animation: none; }
.cad-anim .cad-drop { animation: cad-dropin 14s cubic-bezier(.22,1,.36,1) infinite both; animation-delay: var(--cd, 0s); }
.cad-anim .cad-col--out { animation: cad-colout 14s cubic-bezier(.33,0,.2,1) infinite both; }
.cad-anim .cad-col--next { animation: cad-colnext 14s cubic-bezier(.22,1,.36,1) infinite both; }

.cad-board .cad-slot:nth-child(1) { --cd: 0s; }
.cad-board .cad-slot:nth-child(2) { --cd: .14s; }
.cad-board .cad-slot:nth-child(3) { --cd: .28s; }
.cad-board .cad-slot:nth-child(4) { --cd: .42s; }
.cad-stack .cad-chip:nth-child(1) { --rd: 0s; }
.cad-stack .cad-chip:nth-child(2) { --rd: .09s; }
.cad-stack .cad-chip:nth-child(3) { --rd: .18s; }
.cad-stack .cad-chip:nth-child(4) { --rd: .27s; }

@keyframes cad-sweep { from { left: 0; } to { left: 100%; } }

@keyframes cad-pulse {
  0%   { transform: scale(1); background: var(--gray); box-shadow: 0 0 0 0 rgba(232,23,93,.45); }
  3%   { transform: scale(1.7); background: var(--pink); box-shadow: 0 0 0 9px rgba(232,23,93,0); }
  9%   { transform: scale(1); background: var(--pink); }
  90%  { background: var(--pink); }
  99%, 100% { background: var(--gray); transform: scale(1); }
}

@keyframes cad-loser {
  0%   { opacity: 0; transform: translateY(12px) scale(.96); background: var(--pill); border-color: var(--line); color: var(--ink); }
  9%   { opacity: 1; transform: none; }
  34%  { opacity: 1; background: var(--pill); border-color: var(--line); color: var(--ink); }
  44%  { opacity: .38; background: #fff; border-color: var(--line); color: var(--muted); }
  92%  { opacity: .38; transform: none; }
  98%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); }
}

@keyframes cad-strike {
  0%, 36% { transform: scaleX(0); }
  46%, 92% { transform: scaleX(1); }
  93%, 100% { transform: scaleX(0); }
}

@keyframes cad-winner {
  0%   { opacity: 0; transform: translateY(12px) scale(.96); background: var(--pill); border-color: var(--line); color: var(--ink); }
  9%   { opacity: 1; transform: none; }
  50%  { background: var(--pill); border-color: var(--line); color: var(--ink); transform: none; }
  62%  { background: var(--pink); border-color: var(--pink); color: #fff; transform: scale(1.05); }
  69%  { transform: scale(1); }
  92%  { opacity: 1; background: var(--pink); border-color: var(--pink); color: #fff; }
  98%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); }
}

@keyframes cad-dropin {
  0%, 59% { opacity: 0; transform: translateY(6px); }
  67%     { opacity: 1; transform: none; }
  92%     { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: translateY(6px); }
}

@keyframes cad-colout {
  0%, 74% { opacity: 1; }
  84%, 94% { opacity: .14; }
  100%    { opacity: 1; }
}

@keyframes cad-colnext {
  0%, 76% { opacity: 0; transform: translateY(10px); }
  86%     { opacity: 1; transform: none; }
  94%     { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 860px) {
  .cad-board { grid-template-columns: repeat(2, 1fr); }
  .cad-legend { grid-template-columns: 1fr; gap: 16px; }
  .cad-day { padding: 14px 4px 16px; }
  .cad-day > span { font-size: 11px; }
  .cad-day em { font-size: 10px; letter-spacing: .02em; line-height: 1.15; }
  .cad-col { padding: 16px 12px 14px; }
  .cad-chip { padding: 9px 10px; font-size: 12px; gap: 6px; white-space: nowrap; }
  .cad-chip i { font-size: 10.5px; }
  .cad-drop { font-size: 11.5px; }
  .cad-day em .lg { display: none; }
  .cad-day em .sm { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .cad-anim .cad-playhead,
  .cad-anim .cad-dot,
  .cad-anim .cad-chip,
  .cad-anim .cad-chip::after,
  .cad-anim .cad-drop,
  .cad-anim .cad-col--out,
  .cad-anim .cad-col--next { animation: none !important; }
  .js .cadence .cad-week,
  .js .cadence .cad-board,
  .js .cadence .cad-legend { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cad-anim .cad-playhead { display: none; }
  .cad-anim .cad-dot { background: var(--pink); }
  .cad-anim .cad-chip.is-win { background: var(--pink); border-color: var(--pink); color: #fff; }
  .cad-anim .cad-col--next { position: static; opacity: 1; margin-top: 12px; }
  .cad-anim .cad-col--out { opacity: .5; }
}
