/* =========================================================================
   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;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@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);
}

/* ============================================================
   MAP — Ink. Combined verdict + Switzerland map on funeral surface.
   The map IS the verdict: 24 titles, one country, three weeks.
   ============================================================ */
.cs-map { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.cs-map__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .cs-map__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(28px, 4vw, 48px);
  }
}

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

/* Verdict line takes the funeral-surface treatment from §C of DESIGN.md */
.cs-map__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: 24ch;
}
.cs-map__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-map__lede {
  max-width: 52ch;
  opacity: 0.78;
  margin: 0;
  color: var(--white-smoke);
}

.cs-map__legend-key {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 4px;
}
.cs-map__key { display: inline-flex; align-items: center; gap: 8px; }
.cs-map__key-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.cs-map__key-dot[data-lang="de"] { background: var(--white); }
.cs-map__key-dot[data-lang="fr"] { background: var(--signal-coral); }

.cs-map__filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  width: max-content;
}
.cs-map__filter-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 160ms var(--ease-out-quart),
              color 160ms var(--ease-out-quart);
}
.cs-map__filter-btn + .cs-map__filter-btn { border-left: 1px solid rgba(255, 255, 255, 0.32); }
.cs-map__filter-btn:hover { background: rgba(255, 255, 255, 0.10); }
.cs-map__filter-btn.is-active { background: var(--white); color: var(--rocket-blue); }
.cs-map__filter-count {
  opacity: 0.7;
  font-size: 0.7rem;
}
.cs-map__filter-btn.is-active .cs-map__filter-count { opacity: 0.85; }

/* Map figure: tooltip positions against this; aspect locked to the SVG. */
.cs-map__figure {
  background: transparent;
  padding: 0;
  margin: 0;
  aspect-ratio: 1248.75 / 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}
.cs-map__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* The country glows on ink: a soft white-smoke fill with a hairline
   stroke. No drop shadow — depth on ink comes from contrast, not shadow. */
.cs-map__country {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Dots — drawn to glow on the ink surface */
.cs-map__dot {
  cursor: pointer;
  outline: none;
  transition: transform 200ms var(--ease-out-quart);
}
.cs-map__dot-core {
  fill: var(--rocket-blue-soft);
  stroke: var(--white);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: r 200ms var(--ease-out-quart), fill 200ms var(--ease-out-quart);
  filter: drop-shadow(0 0 14px rgba(77, 77, 255, 0.55));
}
.cs-map__dot[data-lang="fr"] .cs-map__dot-core {
  fill: var(--signal-coral);
  filter: drop-shadow(0 0 14px rgba(232, 78, 54, 0.55));
}

.cs-map__dot-ring {
  fill: rgba(77, 77, 255, 0.18);
  transition: r 240ms var(--ease-out-quart), fill 200ms var(--ease-out-quart);
}
.cs-map__dot[data-lang="fr"] .cs-map__dot-ring { fill: rgba(232, 78, 54, 0.22); }

.cs-map__dot-num {
  fill: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  text-anchor: middle;
  pointer-events: none;
}

.cs-map__dot:hover .cs-map__dot-core,
.cs-map__dot:focus .cs-map__dot-core,
.cs-map__dot.is-active .cs-map__dot-core { r: 26; }
.cs-map__dot.is-cluster:hover .cs-map__dot-core,
.cs-map__dot.is-cluster:focus .cs-map__dot-core,
.cs-map__dot.is-cluster.is-active .cs-map__dot-core { r: 28; }
.cs-map__dot:hover .cs-map__dot-ring,
.cs-map__dot:focus .cs-map__dot-ring,
.cs-map__dot.is-active .cs-map__dot-ring { r: 44; }

.cs-map__dot.is-dim { opacity: 0.18; pointer-events: none; }
.cs-map__dot.is-dim .cs-map__dot-core {
  filter: none;
  fill: rgba(255, 255, 255, 0.22);
}

/* City labels */
.cs-map__label {
  fill: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

/* --- Tooltip --- */
.cs-map__tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  background: var(--ink);
  color: var(--white);
  padding: 12px 14px;
  min-width: 180px;
  max-width: 280px;
  pointer-events: none;
  transform: translate(0, 0);
  transition: opacity 140ms var(--ease-out-quart);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cs-map__tip[hidden] { opacity: 0; visibility: hidden; }
.cs-map__tip-city {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}
.cs-map__tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.3;
}

/* ============================================================
   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 verdict line lands with a longer, heavier ease — it's the gut punch. */
.cs-map__verdict.reveal {
  transition-duration: 900ms;
  transform: translateY(28px);
}

/* 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;
}

/* ============================================================
   THE MAP CHOREOGRAPHY
   On .cs-map.is-in: country contour draws, then dots pop in
   west → east, then cluster rings ambient-pulse forever.
   ============================================================ */

/* Country: draws via stroke-dashoffset. pathLength="100" on the <path>
   normalises the dash math regardless of the path's true length. */
.cs-map__country { stroke-dasharray: 100; stroke-dashoffset: 0; }
html.has-js .cs-map__country {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1800ms var(--ease-out-quart);
  transition-delay: 280ms;
}
html.has-js .cs-map.is-in .cs-map__country {
  stroke-dashoffset: 0;
}

/* Dots: hidden initially. Cores scale up from 0; sequence via data-seq.
   The sequence is geographic — Geneva first, Winterthur last. */
.cs-map__dot { opacity: 1; }
html.has-js .cs-map__dot { opacity: 0; }
.cs-map__dot .cs-map__dot-core {
  transform: scale(1);
  transform-origin: center;
  transform-box: fill-box;
}
html.has-js .cs-map__dot .cs-map__dot-core {
  transform: scale(0);
  transition:
    transform 520ms var(--ease-out-expo),
    r 200ms var(--ease-out-quart),
    fill 200ms var(--ease-out-quart);
  transition-delay: calc(var(--seq, 0) * 110ms + 1500ms);
}
.cs-map__dot .cs-map__dot-ring {
  transform: scale(1);
  transform-origin: center;
  transform-box: fill-box;
}
html.has-js .cs-map__dot .cs-map__dot-ring {
  transform: scale(0);
  transition:
    transform 600ms var(--ease-out-expo),
    r 240ms var(--ease-out-quart),
    fill 200ms var(--ease-out-quart);
  transition-delay: calc(var(--seq, 0) * 110ms + 1620ms);
}
.cs-map__dot .cs-map__dot-num { opacity: 1; }
html.has-js .cs-map__dot .cs-map__dot-num {
  opacity: 0;
  transition: opacity 280ms var(--ease-out-quart);
  transition-delay: calc(var(--seq, 0) * 110ms + 1820ms);
}

.cs-map.is-in .cs-map__dot { opacity: 1; transition: opacity 280ms var(--ease-out-quart); }
.cs-map.is-in .cs-map__dot .cs-map__dot-core,
.cs-map.is-in .cs-map__dot .cs-map__dot-ring { transform: scale(1); }
.cs-map.is-in .cs-map__dot .cs-map__dot-num { opacity: 1; }

/* Ambient cluster pulse: the 3+ brand cities breathe gently after
   they've finished popping in. Single pulse, infinite, slow. */
@keyframes cs-cluster-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.55; }
}
.cs-map.is-in .cs-map__dot.is-cluster .cs-map__dot-ring {
  animation: cs-cluster-pulse 3.4s var(--ease-out-quart) infinite;
  animation-delay: calc(var(--seq, 0) * 110ms + 2400ms);
}

/* Hover overrides the entrance/ambient transforms cleanly. */
.cs-map.is-in .cs-map__dot:hover .cs-map__dot-ring,
.cs-map.is-in .cs-map__dot:focus .cs-map__dot-ring,
.cs-map.is-in .cs-map__dot.is-active .cs-map__dot-ring {
  animation: none;
  transform: scale(1.25);
}

/* ============================================================
   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-map__filter-btn,
  .cs-map__tip { transition: none; }

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

  /* Hero equalizer: freeze at rest pose — still spells out the brand mark. */
  .cs-eq__bar { animation: none; transform: none; }

  /* Rollout step icons: final state, no entrance. */
  .cs-roll__icon * {
    transform: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .cs-map__country { stroke-dashoffset: 0; transition: none; }
  .cs-map__dot,
  .cs-map__dot .cs-map__dot-core,
  .cs-map__dot .cs-map__dot-ring,
  .cs-map__dot .cs-map__dot-num {
    opacity: 1;
    transform: none;
    transition: none;
    animation: 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;
}
