/* =========================================================================
   Case Study — Tamedia. Page-specific layouts.
   Inherits tokens, typography, .nav, .footer, and surface system from
   ../../styles.css. Component prefix: .cs-
   ========================================================================= */

/* ============================================================
   Section grid overlay — same chrome pattern as ab-* and home.
   ============================================================ */
.s__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    repeating-linear-gradient(to right,
      var(--grid-line-drench) 0 1px,
      transparent 1px calc(100% / 12));
}
.s[data-surface="light"] .s__grid,
.s[data-surface="white"] .s__grid {
  background-image:
    repeating-linear-gradient(to right,
      var(--grid-line-light) 0 1px,
      transparent 1px calc(100% / 12));
}
.s[data-surface="ink"] .s__grid {
  background-image:
    repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px calc(100% / 12));
}

/* ============================================================
   HERO — Drench. 12 titles. Two languages. Three weeks.
   ============================================================ */
.cs-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--section-y) + 60px);
}
.cs-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Always stack — side-by-side hero is incompatible with the long
     editorial headlines at any reasonable display font size, on any
     normal viewport. Tested across 375 → 1920 px. */
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.cs-hero__text {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-content: end;
}

.cs-hero__ticker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0.85;
  margin: 0;
}
.cs-hero__dot {
  width: 8px;
  height: 8px;
  background: var(--white);
  display: inline-block;
  animation: cs-pulse 2.4s var(--ease-out-quart) infinite;
}
.cs-hero__sep { opacity: 0.5; }

.cs-hero__display {
  /* Sized so every Mopo / Tamedia line fits on one line down to 560px;
     verified across 375 → 1920 px viewports. */
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  max-width: 18ch;
}
.cs-hero__lede {
  max-width: 52ch;
  font-size: clamp(1.125rem, 1.55vw, 1.5rem);
  line-height: 1.45;
  opacity: 0.92;
}

.cs-hero__chips {
  list-style: none;
  margin: clamp(12px, 2.5vw, 24px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs-hero__chips li {
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 9px 14px;
}

/* BRANDS PANEL — single Customer cell (Tamedia T) anchored on the right
   of the headline. The T has more breathing room now, so the frame can
   carry a bigger mark. */
/* Brands panel — now a left-aligned editorial sign-off below the chips,
   sized in proportion to the supporting role (the headline owns the page). */
.cs-hero__brands {
  --cs-mark-h: clamp(96px, 11vw, 168px);
  display: grid;
  justify-items: start;
  align-items: start;
  margin-top: clamp(8px, 1.5vw, 16px);
}
.cs-hero__brand {
  display: grid;
  gap: clamp(10px, 1.5vw, 16px);
  justify-items: start;
  padding: 0;
}
.cs-hero__brand-label {
  opacity: 0.7;
  justify-self: start;
}
.cs-hero__brand-frame {
  width: auto;
  height: var(--cs-mark-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.cs-hero__logo {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  /* Mopo's logo ships with its own brand colors (red plate + white text).
     We don't strip them like we do for monochrome glyphs. */
  filter: none;
  opacity: 1;
}

@media (max-width: 560px) {
  .cs-hero__brands { --cs-mark-h: clamp(72px, 18vw, 110px); }
}
.cs-eq__bar {
  transform-origin: center;
  transform-box: fill-box;
  animation: cs-eq-pulse 1.6s var(--ease-out-quart) infinite;
  animation-delay: calc(var(--eq, 0) * 110ms);
}
@keyframes cs-eq-pulse {
  0%, 100% { transform: scaleY(1); }
  35%      { transform: scaleY(0.32); }
  60%      { transform: scaleY(1); }
}

@keyframes cs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   AT-A-GLANCE — Light. Four numbers.
   ============================================================ */
.cs-glance__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
.cs-glance__head { display: grid; gap: 12px; max-width: 28ch; }
.cs-glance__eyebrow { color: var(--rocket-blue); margin: 0; }
.cs-glance__title {
  color: var(--ink);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.0;
}

.cs-glance__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(10, 10, 10, 0.14);
  border: 1px solid rgba(10, 10, 10, 0.14);
}
@media (max-width: 900px) {
  .cs-glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cs-glance__grid { grid-template-columns: 1fr; }
}
.cs-glance__cell {
  background: var(--white-smoke);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 10px;
  align-content: end;
  min-height: 180px;
}
.cs-glance__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--rocket-blue);
  font-variant-numeric: tabular-nums;
}
.cs-glance__lbl {
  color: var(--graphite);
  max-width: 24ch;
}

/* ============================================================
   CONTEXT — Light. Two-column editorial.
   ============================================================ */
.cs-context__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 880px) {
  .cs-context__inner { grid-template-columns: 1fr; }
}
.cs-context__eyebrow {
  display: block;
  color: var(--rocket-blue);
  margin: 0 0 18px;
}
.cs-context__statement {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 18px;
}
.cs-context__statement em {
  font-style: italic;
  font-weight: 900;
  color: var(--rocket-blue);
}
.cs-context__caption {
  margin: 0;
  opacity: 0.65;
}
.cs-context__caption a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.cs-context__caption a:hover { opacity: 0.7; }

.cs-context__right { display: grid; gap: clamp(16px, 2vw, 24px); }
.cs-context__right .body {
  color: var(--graphite);
  font-size: clamp(1rem, 1.2vw, 1.1875rem);
  line-height: 1.6;
  max-width: 56ch;
}

.cs-context__facts {
  margin: clamp(12px, 2vw, 20px) 0 0;
  padding: clamp(18px, 2vw, 24px) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  border-top: 1px solid rgba(10, 10, 10, 0.18);
}
.cs-context__facts > div { display: grid; gap: 4px; }
.cs-context__facts dt { color: var(--rocket-blue); opacity: 0.85; }
.cs-context__facts dd {
  color: var(--ink);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   PAINS — Drench. Three fronts. Coral signal foil.
   ============================================================ */
.cs-pains__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}
.cs-pains__head { display: grid; gap: 14px; max-width: 30ch; }
.cs-pains__head .mono { opacity: 0.7; }
.cs-pains__head .headline {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.0;
}

.cs-pains__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
@media (max-width: 980px) {
  .cs-pains__list { grid-template-columns: 1fr; }
}
.cs-pains__item {
  position: relative;
  background: var(--rocket-blue);
  padding: clamp(28px, 3.2vw, 44px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.cs-pains__sig {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 4px;
  background: var(--signal-coral);
}
.cs-pains__no {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 6px;
}
.cs-pains__head-row {
  font-weight: 900;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  letter-spacing: -0.005em;
  line-height: 1.15;
  max-width: 22ch;
}
.cs-pains__body {
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.55;
  opacity: 0.92;
  max-width: 36ch;
}

/* ============================================================
   VERDICT — Ink. Funeral surface. Once per page.
   ============================================================ */
.cs-verdict {
  min-height: 56vh;
  display: flex;
  align-items: center;
}
.cs-verdict__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  max-width: 24ch;
}
.cs-verdict__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
}
.cs-verdict__line strong {
  font-weight: 900;
  background-image: linear-gradient(transparent 64%, var(--signal-coral) 64%, var(--signal-coral) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-position: 0 0.05em;
  padding: 0 2px;
}

/* ============================================================
   GAINS — Drench. Three triplets, embedded white card.
   ============================================================ */
.cs-gains__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
.cs-gains__head { display: grid; gap: 14px; max-width: 30ch; }
.cs-gains__head .mono { opacity: 0.7; }
.cs-gains__head .headline {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.0;
}

.cs-gains__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
}
@media (max-width: 1000px) {
  .cs-gains__list { grid-template-columns: 1fr; }
}
.cs-gains__item {
  background: var(--white);
  color: var(--ink);
  padding: clamp(28px, 3vw, 44px);
  display: grid;
  gap: 12px;
  align-content: start;
}
.cs-gains__no { color: var(--rocket-blue); }
.cs-gains__head-row {
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1.125rem, 1.6vw, 1.4375rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 22ch;
  margin: 4px 0 0;
}
.cs-gains__quip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--rocket-blue);
  margin: 0;
}
.cs-gains__body {
  color: var(--graphite);
  font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
  line-height: 1.55;
  max-width: 38ch;
  margin: 0;
}
.cs-gains__metrics {
  list-style: none;
  margin: 8px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(10, 10, 10, 0.14);
  display: grid;
  gap: 6px;
  color: var(--ink);
}
.cs-gains__metrics li::before {
  content: "→ ";
  color: var(--rocket-blue);
  margin-right: 4px;
}

/* ============================================================
   QUOTE — Light. Signature ditto-mark card.
   ============================================================ */
.cs-quote__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.cs-quote__eyebrow { color: var(--rocket-blue); margin: 0; }

.cs-quote__card {
  position: relative;
  background: var(--white);
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 64px);
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(10, 10, 10, 0.06);
  overflow: hidden;
}
.cs-quote__ditto {
  position: absolute;
  top: -0.18em;
  left: clamp(8px, 1.5vw, 24px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(12rem, 22vw, 22rem);
  line-height: 1;
  color: var(--rocket-blue);
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
}
.cs-quote__body {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 32ch;
}
.cs-quote__foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}
.cs-quote__avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--rocket-blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  overflow: hidden;
}
.cs-quote__avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.cs-quote__attr { display: grid; gap: 2px; }
.cs-quote__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cs-quote__role { color: var(--graphite); }
.cs-quote__logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  opacity: 0.7;
}

/* ============================================================
   ROLLOUT — Light. Four-step rail.
   ============================================================ */
.cs-roll {
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}
.cs-roll__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(36px, 5vw, 64px);
}
.cs-roll__head { display: grid; gap: 14px; max-width: 26ch; }
.cs-roll__eyebrow { color: var(--rocket-blue); margin: 0; }
.cs-roll__title {
  color: var(--ink);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.0;
}

.cs-roll__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(10, 10, 10, 0.18);
}
@media (max-width: 960px) {
  .cs-roll__rail { grid-template-columns: 1fr; }
}
.cs-roll__step {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px) clamp(20px, 3vw, 32px) 0;
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
}
.cs-roll__step + .cs-roll__step {
  border-left: 1px solid rgba(10, 10, 10, 0.18);
  padding-left: clamp(20px, 2.5vw, 28px);
}
@media (max-width: 960px) {
  .cs-roll__step + .cs-roll__step {
    border-left: none;
    border-top: 1px solid rgba(10, 10, 10, 0.18);
    padding-left: 0;
    padding-top: clamp(20px, 3vw, 28px);
  }
}
.cs-roll__step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--rocket-blue);
}
.cs-roll__step + .cs-roll__step::before { left: clamp(20px, 2.5vw, 28px); }
@media (max-width: 960px) {
  .cs-roll__step + .cs-roll__step::before { left: 0; }
}
.cs-roll__no { color: var(--rocket-blue); }

/* Rollout step glyphs — one custom 28×28 SVG per step. */
.cs-roll__icon {
  width: 28px;
  height: 28px;
  color: var(--rocket-blue);
  display: block;
  margin-bottom: 4px;
}
.cs-roll__icon-tag {
  fill: var(--rocket-blue);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 5.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 280ms var(--ease-out-quart);
}

/* Step 1 — Equalizer bars rising. Each rect's height ramps 0 → data-h. */
.cs-roll__icon--eq rect {
  transform-origin: center;
  transform-box: fill-box;
  transform: scaleY(1);
}
html.has-js .cs-roll__icon--eq rect {
  transform: scaleY(0);
  transition: transform 540ms var(--ease-out-quart);
}
.cs-roll__icon--eq rect:nth-child(1) { transition-delay: 80ms; }
.cs-roll__icon--eq rect:nth-child(2) { transition-delay: 180ms; }
.cs-roll__icon--eq rect:nth-child(3) { transition-delay: 280ms; }
.cs-roll__icon--eq rect:nth-child(4) { transition-delay: 380ms; }
/* Final heights — the rects sit at y=14 (centre); CSS animates scaleY,
   then JS swaps data-h → height on intersection so the bars hold. */
.cs-roll__step.is-in .cs-roll__icon--eq rect { transform: scaleY(1); }

/* Step 2 — Two boxes; a line draws between them. */
.cs-roll__icon--connect .cs-roll__icon-line { stroke-dashoffset: 0; }
html.has-js .cs-roll__icon--connect .cs-roll__icon-line {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  transition: stroke-dashoffset 540ms var(--ease-out-quart);
  transition-delay: 220ms;
}
.cs-roll__step.is-in .cs-roll__icon--connect .cs-roll__icon-line {
  stroke-dashoffset: 0;
}

/* Step 3 — Trunk draws, then forks into DE/FR branches. */
.cs-roll__icon--fork path { stroke-dasharray: 22; stroke-dashoffset: 0; }
html.has-js .cs-roll__icon--fork path {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 480ms var(--ease-out-quart);
}
.cs-roll__icon--fork .cs-roll__icon-trunk { transition-delay: 80ms; }
.cs-roll__icon--fork .cs-roll__icon-up    { transition-delay: 380ms; }
.cs-roll__icon--fork .cs-roll__icon-down  { transition-delay: 380ms; }
.cs-roll__step.is-in .cs-roll__icon--fork path { stroke-dashoffset: 0; }
.cs-roll__step.is-in .cs-roll__icon--fork .cs-roll__icon-tag {
  opacity: 1;
  transition-delay: 800ms;
}

/* Step 4 — Lock with play inside. Shackle lifts slightly on entrance. */
.cs-roll__icon--lock .cs-roll__icon-shackle {
  transform: translateY(2px);
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 520ms var(--ease-out-quart);
  transition-delay: 200ms;
}
.cs-roll__icon--lock .cs-roll__icon-body { stroke-dashoffset: 0; }
html.has-js .cs-roll__icon--lock .cs-roll__icon-body {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 540ms var(--ease-out-quart);
}
.cs-roll__icon--lock .cs-roll__icon-play {
  transform: scale(1);
  transform-origin: center;
  transform-box: fill-box;
}
html.has-js .cs-roll__icon--lock .cs-roll__icon-play {
  transform: scale(0);
  transition: transform 360ms var(--ease-out-expo);
  transition-delay: 620ms;
}
.cs-roll__step.is-in .cs-roll__icon--lock .cs-roll__icon-shackle { transform: translateY(0); }
.cs-roll__step.is-in .cs-roll__icon--lock .cs-roll__icon-body    { stroke-dashoffset: 0; }
.cs-roll__step.is-in .cs-roll__icon--lock .cs-roll__icon-play    { transform: scale(1); }

.cs-roll__step-title {
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  letter-spacing: -0.005em;
  line-height: 1.15;
  max-width: 18ch;
}
.cs-roll__step-body {
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 30ch;
  margin: 0;
}

/* ============================================================
   PROOF STRIP — Light chip row.
   ============================================================ */
.cs-proof {
  padding-top: clamp(40px, 5vh, 64px);
  padding-bottom: clamp(40px, 5vh, 64px);
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}
.cs-proof__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cs-proof__chip {
  border: 1px solid rgba(10, 10, 10, 0.32);
  padding: 9px 14px;
  color: var(--ink);
}

/* ============================================================
   CTA — Drench. Talk to Andrey.
   ============================================================ */
.cs-cta {
  min-height: 76vh;
  display: flex;
  align-items: center;
}
.cs-cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(18px, 2.5vw, 32px);
  max-width: 30ch;
}
.cs-cta__eyebrow { opacity: 0.7; margin: 0; }
.cs-cta__display {
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.cs-cta__lede { max-width: 36ch; }

.cs-cta__actions {
  margin-top: clamp(8px, 2vw, 24px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cs-cta__btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 180ms var(--ease-out-quart),
              color 180ms var(--ease-out-quart),
              transform 240ms var(--ease-out-quart);
}
.cs-cta__btn--primary {
  background: var(--white);
  color: var(--rocket-blue);
  border: 1px solid var(--white);
}
.cs-cta__btn--primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-1px);
}
.cs-cta__btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.cs-cta__btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   FUNNEL — Ink. Combined verdict + ad-revenue funnel on funeral
   surface. The funnel IS the verdict: 278K readers → 10% listeners
   → 75% accept the ad → $6-30 CPM at 40-60% fill.
   ============================================================ */
.cs-funnel { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.cs-funnel__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(40px, 5vw, 72px);
}

.cs-funnel__head {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  max-width: 64ch;
}
.cs-funnel__eyebrow { opacity: 0.75; color: var(--white); margin: 0; }

/* Verdict line — same coral-underline treatment as the Tamedia map. */
.cs-funnel__verdict {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  max-width: 26ch;
}
.cs-funnel__verdict strong {
  font-weight: 900;
  background-image: linear-gradient(transparent 64%, var(--signal-coral) 64%, var(--signal-coral) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-position: 0 0.05em;
  padding: 0 2px;
}
.cs-funnel__lede {
  max-width: 52ch;
  opacity: 0.78;
  margin: 0;
  color: var(--white-smoke);
}

/* The conversion flow: four stages + three connector links. */
.cs-funnel__flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .cs-funnel__flow {
    grid-template-columns: 1fr;
  }
  .cs-funnel__link {
    transform: rotate(90deg);
    justify-self: center;
    padding: clamp(8px, 1.5vw, 16px) 0;
  }
}

/* Stage cells — drench-light insets on the ink surface. */
.cs-funnel__stage {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
  align-content: start;
  padding: clamp(20px, 2.4vw, 32px) clamp(18px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 280ms var(--ease-out-quart),
              border-color 280ms var(--ease-out-quart);
}
.cs-funnel__stage:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}
/* The revenue cell — coral-foiled because that's the payoff. */
.cs-funnel__stage--revenue {
  border-color: var(--signal-coral);
  background: rgba(232, 78, 54, 0.10);
}
.cs-funnel__stage--revenue:hover {
  background: rgba(232, 78, 54, 0.16);
  border-color: var(--signal-coral);
}

.cs-funnel__stage-no { color: var(--white); opacity: 0.55; }
.cs-funnel__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  display: block;
  /* tabular-nums + min-width prevents digit jitter during the ramp */
  min-width: 4ch;
}
.cs-funnel__num--range { color: var(--signal-coral); }
.cs-funnel__stage-lbl { color: var(--white); margin-top: 4px; }
.cs-funnel__caption {
  color: var(--white-smoke);
  opacity: 0.7;
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-top: 12px;
  max-width: 30ch;
  align-self: end;
}

/* Connector arrows + multiplier label between stages. */
.cs-funnel__link {
  display: grid;
  justify-items: center;
  gap: 6px;
  align-self: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 clamp(10px, 1.5vw, 20px);
  position: relative;
}
.cs-funnel__link svg {
  width: clamp(50px, 4vw, 72px);
  height: 18px;
  display: block;
}
.cs-funnel__link .mono { font-size: 0.7rem; }

/* Arrow draws via stroke-dashoffset once the section is in view. */
.cs-funnel__link svg path { stroke-dasharray: 80; stroke-dashoffset: 0; }
html.has-js .cs-funnel__link svg path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 620ms var(--ease-out-quart);
}
.cs-funnel__link svg path { transition-delay: calc(var(--link, 0) * 280ms + 380ms); }
.cs-funnel.is-in .cs-funnel__link svg path { stroke-dashoffset: 0; }

/* ============================================================
   ENTRANCE CHOREOGRAPHY
   Per-element reveal pattern. Elements start hidden + slightly down;
   an IntersectionObserver flips .is-in on first viewport entry.
   Stagger via inline style="--i: N" (N is 0-indexed).
   ============================================================ */
/* Reveal pattern.
   DEFAULT: visible. The hidden start state ONLY kicks in when JS has
   marked <html class="has-js"> (set by an inline script in <head> that
   runs pre-paint). Without JS, content is visible immediately — meets
   the "reveals enhance an already-visible default" rule. */
.reveal { opacity: 1; transform: none; }
html.has-js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 720ms var(--ease-out-quint),
    transform 720ms var(--ease-out-quint);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
html.has-js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}/* The coral signal bar on pain cards extends from 0 → 32px once the card lands. */
.cs-pains__item .cs-pains__sig { width: 32px; }
html.has-js .cs-pains__item .cs-pains__sig {
  width: 0;
  transition: width 540ms var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 80ms + 320ms);
}
html.has-js .cs-pains__item.is-in .cs-pains__sig { width: 32px; }

/* Numbers in the glance grid ramp from "0" to their final value via JS.
   tabular-nums avoids digit jitter during the ramp. */
.cs-glance__num {
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
  display: inline-block;
}

/* ============================================================
   Reduced motion — everything freezes at the final, legible state.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cs-hero__dot { animation: none; }
  .cs-cta__btn { transition: none; }
  .cs-funnel__link svg path { transition: none; stroke-dashoffset: 0; }

  .reveal { opacity: 1; transform: none; transition: none; }
  .cs-pains__item .cs-pains__sig { width: 32px; transition: none; }

}


/* ============================================================
   AUDIT — accessibility patches (P1)
   ============================================================ */

/* Visible focus rings on all key interactive elements. The white ring
   reads against rocket-blue; the ink ring reads against white-smoke.
   Outline-offset gives the ring breathing room from the element. */
.cs-cta__btn:focus-visible,
.cs-cta__actions a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* On the funnel-link buttons etc., focus rings should remain visible
   against ink backgrounds; reuse the same treatment. */
.cs-map__filter-btn:focus-visible,
.cs-funnel__link svg:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Touch-target bumps — chips were 9×14 padding (~34px height) which
   misses the 44×44 minimum recommended by WCAG 2.5.5 / Apple HIG.
   12×18 brings them to ~42-44px depending on font size. */
.cs-hero__chips li,
.cs-proof__chip {
  padding: 12px 18px;
}
