/* =============================================================
   Safari Condo case study — conversion layout on NC tokens
   Loaded after styles.css; consumes the shared short names on
   :root (--ink, --paper, --ff-title, …). Dark blocks are --ink (true black),
   same as every other case study; the olive/orange only show up as
   glow gradients and tinted accents.
   Namespace: .sc-*
   ============================================================= */

/* Accent set for this page, sampled from the service desk itself: the
   olive green of its buttons and its logo, and the orange it marks
   priority and service-waiting tickets with.
     --sc-accent    the olive, for text and icons on paper
     --sc-accent-2  the orange, for tinted fills and glows
   Headings and subtitles stay solid ink/on-dark, never a page accent
   colour. Shadows stay neutral: no colour in a box-shadow. */
:root {
  --sc-accent: #3E4A33;
  --sc-accent-2: #EA580C;
  --ink-70: #3A3C31;
  --ink-60: #4B4D40;
  --ink-45: #6E7062;
  --ink-35: #7C7E70;
  --ink-25: #9A9C8E;
  --border-ink: rgba(10,10,8,0.12);
  --border-ink-strong: rgba(10,10,8,0.22);
  --on-dark: #E2E5DA;
  --on-dark-muted: #B6BCA8;
}

body { color: var(--ink-60); }

/* ---------- Scroll reveal (progressive enhancement, js/reveal.js)
   Only applies once <html> gets .nc-reveal, so with JS off,
   reduced motion, or no IntersectionObserver everything shows. */
html.nc-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.nc-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* =============================================================
   Hero
   ============================================================= */
.sc-hero {
  position: relative; overflow-x: clip;
  overflow-clip-margin: 420px;
  padding: clamp(120px, 14vw, 168px) var(--gutter) clamp(48px, 6vw, 88px);
}
.sc-hero__inner { position: relative; z-index: 1; max-width: var(--container-inner); margin-inline: auto; }

/* Literal copy of home's hero glow recipe (css/styles.css .hero__glow /
   --lime / --violet), per the "Background glow gradient" rule — position,
   size, timing, keyframe percentage steps, hue-drift deltas, alphas and
   stop percentages are all identical to home's; only the two hues (121deg
   / 41deg, from docs/_as/colors.html) and the pastel oklch register
   (L 0.9, C ~0.1-0.12) are page-specific — see css/resources.css for the
   confirmed-working reference. */
.sc-hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  top: -24%; right: -42%; width: 100vw; height: 100vh;
  background: radial-gradient(
    var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
    oklch(0.9 0.12 var(--g-h1, 121deg) / 0.85),
    oklch(0.9 0.1 var(--g-h2, 41deg) / 0.4) 46%,
    transparent 72%
  );
  animation:
    sc-glow-morph 11s ease-in-out infinite,
    sc-glow-float 17s ease-in-out infinite;
}
@keyframes sc-glow-morph {
  0%, 100% { --g-h1: 121deg; --g-h2: 41deg; --g-w: 44%; --g-h: 54%; --g-x: 46%; --g-y: 54%; }
  30%      { --g-h1: 157deg; --g-h2: 63deg; --g-w: 66%; --g-h: 42%; --g-x: 60%; --g-y: 40%; }
  62%      { --g-h1: 95deg; --g-h2: 15deg; --g-w: 42%; --g-h: 64%; --g-x: 40%; --g-y: 60%; }
}
@keyframes sc-glow-float {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0);    filter: hue-rotate(0deg)  saturate(1); }
  50%      { transform: scale(1.22) translate3d(-8%, 6%, 0); filter: hue-rotate(14deg) saturate(1.1); }
}

.sc-hero__glow--b {
  top: auto; right: auto;
  bottom: -20%; left: -22%; width: 60vw; height: 60vh;
  background: radial-gradient(
    var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
    oklch(0.9 0.12 var(--g-h1, 121deg) / 0.4),
    transparent 66%
  );
  animation:
    sc-glow-morph-b 14s ease-in-out -5s infinite,
    sc-glow-float-b 21s ease-in-out -9s infinite;
}
@keyframes sc-glow-morph-b {
  0%, 100% { --g-h1: 121deg; --g-w: 46%; --g-h: 46%; --g-x: 50%; --g-y: 50%; }
  40%      { --g-h1: 153deg; --g-w: 68%; --g-h: 56%; --g-x: 60%; --g-y: 42%; }
  72%      { --g-h1: 99deg; --g-w: 42%; --g-h: 66%; --g-x: 40%; --g-y: 58%; }
}
@keyframes sc-glow-float-b {
  0%, 100% { transform: scale(1.06) translate3d(0, 0, 0);    filter: hue-rotate(0deg)   saturate(1); }
  50%      { transform: scale(0.84) translate3d(9%, -7%, 0); filter: hue-rotate(-12deg) saturate(1.12); }
}

.sc-hero__glow--c {
  top: -26%; left: 52%; right: auto; bottom: auto;
  width: 44vw; height: 44vh;
  background: radial-gradient(
    var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
    oklch(0.9 0.1 var(--g-h1, 41deg) / 0.28),
    transparent 64%
  );
  animation:
    sc-glow-morph-c 18s ease-in-out -7s infinite,
    sc-glow-float-c 26s ease-in-out -13s infinite;
}
@keyframes sc-glow-morph-c {
  0%, 100% { --g-h1: 41deg; --g-w: 48%; --g-h: 48%; --g-x: 50%; --g-y: 50%; }
  38%      { --g-h1: 17deg; --g-w: 70%; --g-h: 42%; --g-x: 40%; --g-y: 58%; }
  70%      { --g-h1: 61deg; --g-w: 42%; --g-h: 60%; --g-x: 60%; --g-y: 44%; }
}
@keyframes sc-glow-float-c {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0);     filter: hue-rotate(0deg)   saturate(1);   opacity: 1; }
  45%      { transform: scale(1.28) translate3d(-9%, 5%, 0);   filter: hue-rotate(-10deg) saturate(1.1); opacity: 0.7; }
}

.sc-hero__glow--corner {
  top: auto; left: auto;
  bottom: -37vw; right: -37vw; width: 74vw; height: 74vw;
  background: radial-gradient(
    var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
    oklch(0.9 0.12 var(--g-h1, 121deg) / 0.15),
    transparent 60%
  );
  animation:
    sc-glow-morph-corner 8s ease-in-out -4s infinite,
    sc-glow-float-corner 11s ease-in-out -8s infinite;
}
@keyframes sc-glow-morph-corner {
  0%, 100% { --g-h1: 121deg; --g-w: 46%; --g-h: 46%; --g-x: 50%; --g-y: 50%; }
  50%      { --g-h1: 143deg; --g-w: 55%; --g-h: 37%; --g-x: 40%; --g-y: 60%; }
}
@keyframes sc-glow-float-corner {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0);    filter: saturate(1); }
  50%      { transform: scale(1.15) translate3d(9%, -6%, 0); filter: saturate(1.05); }
}

@media (max-width: 900px) {
  .sc-hero {
    background:
      radial-gradient(120% 70% at 85% 0%, oklch(0.9 0.12 121 / 0.28), transparent 62%),
      radial-gradient(90% 55% at 10% 35%, oklch(0.9 0.1 41 / 0.19), transparent 58%),
      radial-gradient(80% 50% at 70% 18%, oklch(0.9 0.12 121 / 0.08), transparent 55%),
      var(--color-paper);
  }
  .sc-hero__glow {
    top: -8%; right: -28%; width: 100vh; height: 100vh; opacity: 1;
    background: radial-gradient(
      var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
      oklch(0.9 0.12 var(--g-h1, 121deg) / 0.45),
      oklch(0.9 0.1 var(--g-h2, 41deg) / 0.22) 42%,
      transparent 70%
    );
  }
  .sc-hero__glow--b {
    top: auto; right: auto;
    bottom: 18%; left: -35%; width: 85vh; height: 85vh;
    background: radial-gradient(
      var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
      oklch(0.9 0.12 var(--g-h1, 121deg) / 0.28),
      transparent 68%
    );
  }
  .sc-hero__glow--c {
    top: 4%; left: 42%; width: 65vh; height: 65vh;
    background: radial-gradient(
      var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
      oklch(0.9 0.1 var(--g-h1, 41deg) / 0.16),
      transparent 66%
    );
  }
}


@media (prefers-reduced-motion: reduce) {
  .sc-hero__glow, .sc-hero__glow--b, .sc-hero__glow--c, .sc-hero__glow--corner { animation: none; }
}

/* ---------- Layout primitives ---------- */
.sc-section { padding: clamp(60px, 7.5vw, 116px) var(--gutter); }
.sc-section--tight { padding-top: clamp(20px, 3vw, 40px); }
.sc-section--flush { padding-bottom: clamp(24px, 3vw, 44px); }
/* .sc-section--rule: the line itself lives in styles.css (.nc-rule group) so it
   stays inside the content column instead of spanning the viewport. */
.sc-wrap--narrow { max-width: 900px; margin-inline: auto; }
.sc-prose { max-width: 62ch; }
.sc-prose--centre { margin-inline: auto; text-align: center; }

/* ---------- Shared type ---------- */
.sc-eyebrow { margin: 0 0 18px; }

.sc-h2 {
  font-family: var(--ff-title); font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 0.95; letter-spacing: -0.035em;
  color: var(--ink); margin: 0; text-wrap: balance;
}
.sc-h2--dark { color: #fff; }
.sc-h3 {
  font-family: var(--ff-title); font-weight: 700; font-size: 20px;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 10px;
}
.sc-lead {
  font-family: var(--ff-body); font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6; color: var(--ink-60); margin: 22px 0 0;
}
.sc-body { font-family: var(--ff-body); font-size: 16.5px; line-height: 1.65; color: var(--ink-60); margin: 0; }
.sc-body + .sc-body { margin-top: 16px; }

/* ---------- Buttons ---------- */
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-title); font-size: 19px; font-weight: 600;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.sc-btn__arrow { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sc-btn:hover .sc-btn__arrow { transform: translateX(3px); }

.sc-btn--primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(10, 10, 8, 0.7); }
.sc-btn--primary:hover { background: var(--ink-elevated); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(10, 10, 8, 0.8); }

.sc-btn--ghost { border-color: var(--border-ink-strong); color: var(--ink); }
.sc-btn--ghost:hover { border-color: var(--ink); background: rgba(10, 10, 8, 0.05); transform: translateY(-2px); }

.sc-btn--light { background: #fff; color: var(--ink); }
.sc-btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.6); }

.sc-btn--ghost-dark { border-color: rgba(255, 255, 255, 0.3); color: var(--on-dark); }
.sc-btn--ghost-dark:hover { border-color: rgba(255, 255, 255, 0.72); color: #fff; transform: translateY(-2px); }

/* ---------- Browser frame (the service desk) ---------- */
.sc-browser {
  border-radius: 20px; overflow: hidden;
  background: var(--surface-light);
  box-shadow: 0 40px 70px -40px rgba(10, 10, 8, 0.45);
}
.sc-browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: var(--ink);
}
.sc-browser__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); flex: 0 0 auto; }
.sc-browser__url {
  margin-left: 10px; font-family: var(--ff-mono); font-size: 11.5px;
  letter-spacing: 0.02em; color: var(--on-dark-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-browser__shot { display: block; }
.sc-browser__shot img { display: block; width: 100%; height: auto; }

/* ---------- Screenshot figure with its caption ---------- */
.sc-shot { margin: 0; }
.sc-shot__caption {
  font-family: var(--ff-body); font-size: 14px; line-height: 1.55;
  color: var(--ink-45); margin: 16px 0 0; max-width: 72ch;
}
/* Two shots side by side, each keeping its own proportions. */
.sc-shots {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 34px); margin-top: clamp(34px, 4vw, 52px);
  align-items: start;
}

/* ---------- Hero stat strip ----------
   Grid rather than flex: four engagement facts stay on one row where
   there's room and fold to 2×2 without orphaning a divider. */
.sc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(30px, 4vw, 42px); padding: 22px 26px;
  border: 1px solid var(--border-ink); border-radius: 20px;
}
.sc-stats > div { position: relative; padding-left: clamp(16px, 2vw, 22px); }
.sc-stats > div:first-child { padding-left: 0; }
.sc-stats > div::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px;
  background: rgba(10, 10, 8, 0.12);
}
.sc-stats > div:first-child::before { display: none; }
.sc-stats__label {
  font-family: var(--ff-title); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 10px;
}
.sc-stats__value {
  font-family: var(--ff-title); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); margin: 0;
}
/* 2×2 as soon as four columns get cramped — the hero column is narrow. */
@media (max-width: 1200px) {
  .sc-stats { grid-template-columns: repeat(2, 1fr); row-gap: clamp(18px, 2.4vw, 24px); }
  .sc-stats > div:nth-child(3) { padding-left: 0; }
  .sc-stats > div:nth-child(3)::before { display: none; }
}
@media (max-width: 420px) {
  .sc-stats { grid-template-columns: 1fr; }
  .sc-stats > div { padding-left: 0; padding-top: 16px; }
  /* Stacked, the divider is a horizontal rule above each item, so the one
     hidden for the 2x2 layout has to come back. It needs the same
     specificity as the rule that hid it. */
  .sc-stats > div::before,
  .sc-stats > div:nth-child(3)::before { display: block; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .sc-stats > div:first-child { padding-top: 0; }
  .sc-stats > div:first-child::before { display: none; }
}

/* ---------- Outcome band (dark facts) ---------- */
.sc-band {
  position: relative; overflow: hidden;
  background: var(--ink); border-radius: 32px;
  padding: clamp(30px, 4vw, 52px) clamp(24px, 4vw, 56px);
}
.sc-band::before,
.sc-band::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  pointer-events: none;
}
.sc-band::before { top: -46%; left: -6%; background: radial-gradient(circle, rgba(120, 145, 96, 0.3), transparent 68%); }
.sc-band::after { bottom: -50%; right: -6%; background: radial-gradient(circle, rgba(234, 88, 12, 0.2), transparent 68%); }

.sc-metrics {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.sc-metric { position: relative; padding-left: clamp(20px, 2.4vw, 34px); }
.sc-metric:first-child { padding-left: 0; }
.sc-metric::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.sc-metric:first-child::before { display: none; }
/* Label above, value below: these hold short facts, not numerals, so the
   value is set at heading size rather than at display size. */
.sc-metric__label {
  display: block; margin: 0 0 9px;
  font-family: var(--ff-title); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--on-dark-muted);
}
.sc-metric__value {
  font-family: var(--ff-title); font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -0.022em;
  color: #fff; display: block;
}
.sc-metric__note {
  display: block; margin-top: 7px;
  font-family: var(--ff-body); font-size: 13.5px; line-height: 1.45; color: var(--on-dark-muted);
}

/* ---------- Two-column intro ---------- */
.sc-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.sc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.sc-chip {
  display: inline-flex; align-items: center;
  font-family: var(--ff-title); font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface-light); border: 1px solid var(--border-ink);
  padding: 9px 16px; border-radius: 999px;
}

.sc-quotepanel {
  position: relative; background: var(--surface-light);
  border: 1px solid var(--border-ink); border-radius: 24px;
  padding: clamp(26px, 3vw, 38px);
}
.sc-quotepanel__kicker {
  font-family: var(--ff-title); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); margin: 0;
}
.sc-quotepanel__mark {
  font-family: var(--ff-title); font-size: 56px; font-weight: 800; line-height: 0.7;
  color: var(--sc-accent);
}
.sc-quotepanel__text {
  font-family: var(--ff-title); font-weight: 600;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.4; letter-spacing: -0.02em;
  color: var(--ink); margin: 14px 0 0;
}
.sc-quotepanel__meta {
  font-family: var(--ff-body); font-size: 14px; line-height: 1.5; color: var(--ink-45);
  margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--border-ink);
}

/* ---------- Risk / answer comparison ---------- */
.sc-compare {
  border: 1px solid var(--border-ink); border-radius: 24px; overflow: hidden;
  background: var(--surface-light);
}
.sc-compare__head, .sc-compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.sc-compare__head > div {
  font-family: var(--ff-title); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 16px clamp(18px, 2.2vw, 28px);
}
.sc-compare__head > div:first-child { color: var(--ink-35); }
.sc-compare__head > div:last-child { color: var(--ink); background: rgba(62, 74, 51, 0.1); }
.sc-compare__row > div {
  display: flex; gap: 12px; align-items: flex-start;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 28px);
  border-top: 1px solid var(--border-ink);
  font-family: var(--ff-body); font-size: 15.5px; line-height: 1.5;
}
.sc-compare__row > div:first-child { color: var(--ink-45); }
.sc-compare__row > div:last-child { color: var(--ink); background: rgba(62, 74, 51, 0.1); }
.sc-compare__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.sc-compare__icon--x { color: var(--ink-25); }
.sc-compare__icon--check { color: var(--sc-accent); }

/* ---------- The triage pipeline ----------
   Order comes from the layout and the connecting rules, not from a
   numeral stamped on each card. */
.sc-flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-top: clamp(34px, 4vw, 52px);
}
.sc-flow__step {
  position: relative;
  background: var(--surface-light); border: 1px solid var(--border-ink);
  border-radius: 20px; padding: clamp(20px, 2.2vw, 26px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.sc-flow__step:hover { transform: translateY(-4px); border-color: var(--border-ink-strong); }
.sc-flow__step + .sc-flow__step::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 12px; height: 1px;
  background: var(--border-ink-strong);
}
.sc-flow__icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(62, 74, 51, 0.12); border: 1px solid rgba(62, 74, 51, 0.26);
  color: var(--sc-accent); margin-bottom: 14px;
}
.sc-flow__title {
  font-family: var(--ff-title); font-weight: 700; font-size: 16.5px;
  letter-spacing: -0.015em; color: var(--ink); margin: 0 0 7px;
}
.sc-flow__text { font-family: var(--ff-body); font-size: 14px; line-height: 1.55; color: var(--ink-60); margin: 0; }
.sc-flow__who {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-tag); font-size: var(--fs-tag); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  color: var(--ink-45); background: var(--paper); border: 1px solid var(--border-ink);
}
.sc-flow__who--human { color: var(--sc-accent); border-color: rgba(62, 74, 51, 0.34); }

/* ---------- Grounded answer: two sources, one reply ---------- */
.sc-sources {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: clamp(16px, 2.4vw, 30px);
  margin-top: clamp(34px, 4vw, 50px);
}
.sc-source {
  background: var(--surface-light); border: 1px solid var(--border-ink);
  border-radius: 22px; padding: clamp(22px, 2.4vw, 30px);
}
.sc-source__kicker {
  font-family: var(--font-tag); font-size: var(--fs-tag); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sc-accent); margin: 0 0 10px;
}
.sc-source__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.sc-source__list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--ff-body); font-size: 14.5px; line-height: 1.5; color: var(--ink-60);
}
.sc-source__list li::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 8px;
  border-radius: 50%; background: var(--sc-accent);
}
.sc-sources__join {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sc-accent); color: #fff; flex: 0 0 auto;
  box-shadow: 0 14px 28px -14px rgba(10, 10, 8, 0.6);
}

/* ---------- Timeline ----------
   The nodes are plain markers: the step's position on the line is the
   order, so there is no numeral inside them. */
.sc-timeline { position: relative; margin-top: clamp(36px, 4vw, 56px); padding-left: 0; list-style: none; }
.sc-timeline::before {
  content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, var(--sc-accent), var(--sc-accent) 70%, rgba(234, 88, 12, 0.4));
}
.sc-step { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: clamp(18px, 2.6vw, 34px); }
.sc-step + .sc-step { margin-top: clamp(20px, 2.4vw, 30px); }
.sc-step__node {
  position: relative; z-index: 1; margin-top: 6px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sc-accent); box-shadow: 0 0 0 6px var(--paper);
}
.sc-step__card {
  /* min-width: 0 overrides the grid item's default min-width: auto, which
     otherwise refuses to shrink the 1fr track below its content's
     min-content width (longer French copy triggers it) and widens the
     whole page on narrow viewports. */
  min-width: 0;
  background: var(--surface-light); border: 1px solid var(--border-ink);
  border-radius: 22px; padding: clamp(22px, 2.6vw, 30px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.sc-step__card:hover { transform: translateY(-3px); border-color: var(--border-ink-strong); }
.sc-step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sc-step__when {
  font-family: var(--font-tag); font-size: var(--fs-tag); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-45);
  /* No white-space: nowrap — the French copy is long enough that forcing
     one line pushed the card (and the whole page) wider than the
     viewport. flex-wrap on .sc-step__head already gives it its own row
     when needed; letting it wrap within that row keeps it contained. */
}
.sc-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.sc-list--two { grid-template-columns: 1fr 1fr; column-gap: 26px; }
.sc-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--ff-body); font-size: 15px; line-height: 1.5; color: var(--ink-60);
}
.sc-list li::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 50%; background: var(--sc-accent);
}

/* ---------- Result panel ---------- */
.sc-result { position: relative; overflow: hidden; background: var(--ink); border-radius: 32px; padding: clamp(30px, 4.4vw, 60px); }
.sc-result::before {
  content: ""; position: absolute; top: -34%; right: -8%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 145, 96, 0.34), rgba(234, 88, 12, 0.2) 42%, transparent 70%);
  pointer-events: none;
}
.sc-result__inner { position: relative; z-index: 1; }
.sc-result__statement {
  font-family: var(--ff-title); font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.28; letter-spacing: -0.03em;
  color: #fff; margin: 0; max-width: 34ch; text-wrap: balance;
}
.sc-result__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(30px, 3.6vw, 46px);
  padding-top: clamp(26px, 3vw, 38px); border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.sc-result__label { font-family: var(--ff-title); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 10px; }
.sc-result__text { font-family: var(--ff-body); font-size: 15px; line-height: 1.6; color: var(--on-dark); margin: 0; }

/* ---------- Guardrail / playbook cards ---------- */
.sc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 24px); margin-top: clamp(34px, 4vw, 52px); }
.sc-card {
  background: var(--surface-light); border: 1px solid var(--border-ink); border-radius: 22px;
  padding: clamp(24px, 2.6vw, 32px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.35s;
}
.sc-card:hover { transform: translateY(-4px); border-color: var(--border-ink-strong); box-shadow: 0 22px 40px -26px rgba(10, 10, 8, 0.4); }
.sc-card__icon {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: rgba(62, 74, 51, 0.12); border: 1px solid rgba(62, 74, 51, 0.24); color: var(--sc-accent);
  margin-bottom: 18px;
}

/* ---------- Closing CTA ---------- */
.sc-cta {
  position: relative; overflow: hidden; background: var(--ink);
  border-radius: 36px; padding: clamp(38px, 5.6vw, 84px) clamp(26px, 4vw, 72px);
  text-align: center;
}
.sc-cta::before, .sc-cta::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; pointer-events: none;
}
.sc-cta::before { top: -30%; left: -8%; background: radial-gradient(circle, rgba(120, 145, 96, 0.3), transparent 70%); }
.sc-cta::after { bottom: -34%; right: -6%; background: radial-gradient(circle, rgba(234, 88, 12, 0.2), transparent 70%); }
.sc-cta__inner { position: relative; z-index: 1; }
.sc-cta__lead { font-family: var(--ff-body); font-size: clamp(16.5px, 1.8vw, 19px); line-height: 1.6; color: var(--on-dark-muted); max-width: 58ch; margin: 22px auto 0; }
.sc-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Next case study ---------- */
.sc-next {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--surface-light); border: 1px solid var(--border-ink); border-radius: 24px;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 38px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.sc-next:hover { transform: translateY(-3px); border-color: var(--border-ink-strong); }
.sc-next__label { font-family: var(--ff-title); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 8px; }
.sc-next__title { font-family: var(--ff-title); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -0.03em; color: var(--ink); margin: 0; }
.sc-next__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-title); font-size: var(--fs-card-link); font-weight: 600; color: var(--ink); }
.sc-next:hover .sc-next__go span { transform: translateX(4px); }
.sc-next__go span { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- Sticky mobile CTA ---------- */
.sc-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(10, 10, 8, 0.94); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
  padding: 12px 12px 12px 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(140%); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.sc-sticky.is-in { transform: none; opacity: 1; }
.sc-sticky__text { font-family: var(--ff-title); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.sc-sticky__text span { display: block; font-family: var(--ff-body); font-size: 12.5px; font-weight: 400; color: var(--on-dark-muted); margin-top: 2px; }
.sc-sticky .sc-btn { padding: 12px 20px; font-size: 18px; }

/* ---------- Editorial caveat ---------- */
.sc-note {
  font-family: var(--ff-body); font-size: 14.5px; line-height: 1.6; color: var(--ink-45);
  max-width: 68ch; margin: clamp(30px, 3.4vw, 44px) 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sc-flow { grid-template-columns: repeat(2, 1fr); }
  .sc-flow__step + .sc-flow__step::before { display: none; }
}
@media (max-width: 1040px) {
  .sc-metrics { grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 4vw, 34px); }
  .sc-metric:nth-child(3) { padding-left: 0; }
  .sc-metric:nth-child(3)::before { display: none; }
  .sc-result__grid { grid-template-columns: 1fr; gap: 22px; }
  .sc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sc-split { grid-template-columns: 1fr; }
  .sc-sources { grid-template-columns: 1fr; }
  .sc-sources__join { transform: rotate(90deg); margin-inline: auto; }
  .sc-shots { grid-template-columns: 1fr; }
  .sc-sticky { display: flex; }
}
@media (max-width: 640px) {
  .sc-section { padding-top: var(--space-6); padding-bottom: var(--space-4); }
  .sc-metrics { grid-template-columns: 1fr; }
  .sc-metric { padding-left: 0; padding-top: 18px; }
  /* Stacked, every divider is a horizontal rule above the item, so the
     one hidden for the two-column layout has to come back. */
  .sc-metric::before,
  .sc-metric:nth-child(3)::before { display: block; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .sc-metric:first-child::before { display: none; }
  .sc-flow { grid-template-columns: 1fr; }
  .sc-compare__head { display: none; }
  .sc-compare__row { grid-template-columns: 1fr; }
  .sc-compare__row > div:first-child { padding-bottom: 8px; }
  .sc-compare__row > div:last-child { border-top: 0; }
  .sc-list--two { grid-template-columns: 1fr; }
  .sc-step { grid-template-columns: 26px 1fr; gap: 16px; }
  .sc-step__node { width: 26px; height: 26px; box-shadow: 0 0 0 5px var(--paper); }
  .sc-timeline::before { left: 12px; }
  .sc-btn { width: 100%; }
  .sc-sticky .sc-btn { width: auto; }
  .sc-card { padding: var(--space-3); }
  .sc-quotepanel { padding: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-card, .sc-step__card, .sc-flow__step, .sc-next, .sc-btn, .sc-sticky { transition: none; }
  .sc-card:hover, .sc-step__card:hover, .sc-flow__step:hover, .sc-next:hover, .sc-btn:hover { transform: none; }
}
