/* =========================================================
   Case-study shell + reusable narrative components
   Reuses tokens, fonts and utility type from styles.css.
   Vanilla, class-based — matches the hand-built portfolio.
   ========================================================= */

:root {
  --cs-rail-w: 194px;
  --cs-read: 1080px;
  --cs-gutter: clamp(24px, 5vw, 88px);
}

/* prose scale — four steps, used by every case study
   lede: chapter opener · body: narrative · small: panel + caption copy · fine: chip/meta copy */
:root {
  --cs-lede: clamp(19px, 1.55vw, 24px);
  --cs-body: clamp(16.5px, 1.3vw, 19px);
  --cs-small: clamp(14.5px, 1.05vw, 16px);
  --cs-fine: clamp(13px, 0.95vw, 14.5px);
}

body.case-body {
  background: var(--ink);
  color: var(--ink);
}

body.case-body.is-loading {
  overflow: hidden;
}

/* ---------- outer frame + paper document ---------- */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* smooth scrolling (Lenis, wheel only — see case-study.js) */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.case-doc {
  position: relative;
  min-height: 100svh;
  background: var(--paper);
  border: 8px solid var(--ink);
}

.case-doc::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(circle, var(--ink) 0 1px, transparent 1.2px);
  background-size: 24px 24px;
}

/* ---------- persistent close ---------- */

.cs-close {
  position: fixed;
  top: clamp(18px, 2.4vw, 30px);
  right: clamp(18px, 2.4vw, 30px);
  z-index: 40;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 8px 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgb(255 248 223 / 0.92);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    transform 320ms var(--ease-play),
    box-shadow 320ms var(--ease-play),
    background 220ms ease;
}

.cs-close .cs-close-x {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 19px;
  line-height: 1;
  transition: transform 320ms var(--ease-play);
}

.cs-close:hover,
.cs-close:focus-visible {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px) rotate(1deg);
}

.cs-close:hover .cs-close-x,
.cs-close:focus-visible .cs-close-x {
  background: var(--pink);
  transform: rotate(90deg);
}

/* ---------- top reading progress (all viewports) ---------- */

.cs-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 8px;
  pointer-events: none;
}

.cs-topbar span {
  display: block;
  height: 100%;
  width: var(--cs-progress, 0%);
  background: var(--yellow);
  border-right: 2px solid var(--ink);
  transition: width 120ms linear;
}

/* ---------- left chapter rail (desktop) — subtle navigation ---------- */

.cs-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  width: var(--cs-rail-w);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(16px, 2.4vh, 26px);
  padding: clamp(32px, 4vh, 48px) clamp(14px, 1vw, 18px) clamp(18px, 3vh, 32px);
  border-right: 2.5px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-26px) rotate(-3deg) scale(0.94);
  transition:
    opacity 420ms var(--ease-soft),
    transform 560ms var(--ease-play);
}

body.past-intro .cs-rail {
  opacity: 1;
  transform: none;
}

.cs-rail-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(21px, 1.5vw, 26px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.005em;
}

.cs-rail-brand small {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgb(16 20 23 / 0.42);
  text-transform: uppercase;
}

.cs-rail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-rail-list li { display: flex; opacity: 0; transform: translateX(-16px) rotate(-4deg) scale(0.9); transition: opacity 340ms var(--ease-soft), transform 480ms var(--ease-play); }
body.past-intro .cs-rail-list li { opacity: 1; transform: none; }
body.past-intro .cs-rail-list li:nth-child(1) { transition-delay: 30ms; }
body.past-intro .cs-rail-list li:nth-child(2) { transition-delay: 70ms; }
body.past-intro .cs-rail-list li:nth-child(3) { transition-delay: 110ms; }
body.past-intro .cs-rail-list li:nth-child(4) { transition-delay: 150ms; }
body.past-intro .cs-rail-list li:nth-child(5) { transition-delay: 190ms; }

.cs-chip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 13px 15px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: rgb(255 253 245 / 0.8);
  box-shadow: 2px 3px 0 rgb(16 20 23 / 0.45);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    min-height 420ms var(--ease-play),
    transform 300ms var(--ease-play),
    box-shadow 300ms var(--ease-play),
    background 220ms ease;
}

.cs-chip .cs-chip-n {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  color: rgb(16 20 23 / 0.5);
}

.cs-chip .cs-chip-t {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.08;
}

.cs-chip:hover,
.cs-chip:focus-visible {
  transform: translate(2px, 2px) rotate(-0.5deg);
  box-shadow: 1px 1px 0 rgb(16 20 23 / 0.35);
  background: var(--blue);
}

.cs-chip.is-active {
  min-height: 150px;
  background: var(--blue);
  box-shadow: 3px 4px 0 rgb(16 20 23 / 0.4);
}

.cs-chip.is-active .cs-chip-n {
  color: rgb(16 20 23 / 0.7);
}

.cs-rail-nav {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: clamp(16px, 3vh, 32px);
}

.cs-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 2px 2px 0 rgb(16 20 23 / 0.4);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition:
    flex-grow 360ms var(--ease-play),
    transform 240ms var(--ease-play),
    box-shadow 240ms var(--ease-play),
    background 200ms ease;
}

.cs-arrow .cs-arrow-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  transition:
    max-width 360ms var(--ease-play),
    opacity 240ms ease;
}

.cs-arrow.next { flex-direction: row-reverse; }

.cs-arrow:hover:not(:disabled),
.cs-arrow:focus-visible:not(:disabled) {
  flex-grow: 3;
  background: var(--yellow);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgb(16 20 23 / 0.4);
}

.cs-arrow:hover:not(:disabled) .cs-arrow-label,
.cs-arrow:focus-visible:not(:disabled) .cs-arrow-label {
  max-width: 120px;
  opacity: 1;
}

.cs-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- compact chapter bar (tablet / mobile) ---------- */

.cs-topnav {
  display: none;
}

/* ---------- main reading column ---------- */

.cs-main {
  position: relative;
  z-index: 2;
  width: min(var(--cs-read), calc(100% - (var(--cs-gutter) * 2)));
  margin: 0 auto;
  padding-bottom: clamp(40px, 8svh, 90px);
}

@media (min-width: 821px) {
  .case-doc {
    padding-left: calc(var(--cs-rail-w) + clamp(56px, 6vw, 120px));
  }
  .cs-main {
    margin-left: auto;
    margin-right: auto;
    width: min(var(--cs-read), calc(100% - var(--cs-gutter)));
  }
}

/* ---------- generic reveal ----------
   Quick and slightly playful: a short rise with a hair of scale, so sections
   arrive with life instead of a slow fade. Fast enough that a normal scroll
   never outruns it. */

.r {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
}

.r.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms var(--ease-soft),
    transform 620ms var(--ease-play);
  transition-delay: var(--d, 0ms);
}

/* figures and panels get a touch more travel than body copy */
.r.in:is(figure, .bp-panel, .fc-panel) {
  transition-duration: 460ms, 720ms;
}

/* ---------- staggered group children (cards, personas, timeline rows…) ----------
   Applied via JS to repeating items inside a .r container so they arrive
   one-after-another with a playful pop/wobble rather than a plain fade,
   echoing the cover's stagger but with more character. */

@keyframes stagger-pop {
  0% { opacity: 0; transform: translateY(26px) scale(0.82) rotate(-4deg); }
  55% { opacity: 1; transform: translateY(-6px) scale(1.045) rotate(1.6deg); }
  78% { transform: translateY(2px) scale(0.99) rotate(-0.6deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.stagger-item {
  opacity: 0;
  transform: translateY(26px) scale(0.82) rotate(-4deg);
}

.stagger-item.in {
  animation: stagger-pop 560ms var(--ease-play) both;
  animation-delay: calc(var(--si, 0) * 62ms);
}

/* =========================================================
   COVER
   ========================================================= */

.cs-cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(22px, 3vh, 38px);
  padding: clamp(96px, 13svh, 150px) 0 clamp(60px, 9svh, 110px);
}

@media (min-width: 821px) {
  .cs-cover {
    box-sizing: border-box;
    margin-left: calc(-1 * (var(--cs-rail-w) + clamp(56px, 6vw, 120px)));
    width: calc(100% + (var(--cs-rail-w) + clamp(56px, 6vw, 120px)));
    padding-left: var(--cs-gutter);
    padding-right: var(--cs-gutter);
  }
}

.cs-cover-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgb(16 20 23 / 0.55);
  text-transform: uppercase;
}

.cs-client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  font-weight: 900;
  transform: rotate(-1deg);
}

.cs-client i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
}

/* shared hover lift for small pill/chip elements across the page */
.cs-client,
.cs-label,
.cs-eco-tag,
.cs-insight .cs-insight-tag,
.cs-diagram .cs-panel .cs-panel-tag,
.cs-note,
.cs-briefcard .cs-brief-label,
.cs-recap-h,
.cs-recap-v {
  transition:
    transform 260ms var(--ease-play),
    box-shadow 260ms var(--ease-play),
    background 200ms ease;
}
.cs-client:hover,
.cs-label:hover,
.cs-eco-tag:hover,
.cs-insight .cs-insight-tag:hover,
.cs-diagram .cs-panel .cs-panel-tag:hover,
.cs-briefcard .cs-brief-label:hover,
.cs-recap-h:hover,
.cs-recap-v:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  background: var(--yellow);
}
.cs-note:hover {
  transform: translate(-2px, -2px) rotate(1deg) scale(1.03);
}
.cs-client:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 6px 6px 0 var(--ink); }

.cs-cover-title {
  margin: 0;
  max-width: 15ch;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.cs-qualifier {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  text-transform: lowercase;
  color: rgb(16 20 23 / 0.62);
  transform: rotate(-1.4deg);
}

/* wide product-preview strip = the trailer */
.cs-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(10px, 2vh, 24px);
  padding-bottom: 6px;
}

.cs-strip .cs-ph {
  aspect-ratio: 3 / 4;
  min-height: 200px;
}

.cs-strip .cs-ph:nth-child(2) { transform: rotate(1deg); }
.cs-strip .cs-ph:nth-child(3) { transform: rotate(-1.2deg); }
.cs-strip .cs-ph:nth-child(4) { transform: rotate(0.8deg); }

.cs-cover-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.6);
}

.cs-cover-cue .cs-cue-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  animation: cs-bob 1.8s var(--ease-soft) infinite;
}

@keyframes cs-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* =========================================================
   CHAPTERS + SCENES
   ========================================================= */

.cs-chapter {
  scroll-margin-top: 90px;
}

/* chapter transition — bold seam break with scroll-in reveal */
.cs-transition {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54svh;
  text-align: center;
  overflow: hidden;
}

.cs-transition-inner {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 28px);
}

.cs-transition-rule {
  width: clamp(48px, 11vw, 170px);
  height: 0;
  border-top: 2px dashed rgb(16 20 23 / 0.32);
  transform: scaleX(0);
  transition: transform 900ms var(--ease-play) 160ms;
}
.cs-transition-rule.left { transform-origin: right; }
.cs-transition-rule.right { transform-origin: left; }
.cs-transition.in .cs-transition-rule { transform: scaleX(1); }

.cs-transition-arrow {
  font-size: clamp(18px, 2.6vw, 30px);
  color: rgb(16 20 23 / 0.4);
  opacity: 0;
  transition: opacity 480ms ease 520ms, transform 560ms var(--ease-play) 520ms;
}
.cs-transition-arrow.l { transform: translateX(16px); }
.cs-transition-arrow.r { transform: translateX(-16px); }
.cs-transition.in .cs-transition-arrow { opacity: 1; transform: translateX(0); }

.cs-transition-word {
  display: inline-block;
  padding: clamp(8px, 1.2vw, 14px) clamp(20px, 3vw, 36px);
  border: 3px solid var(--ink);
  border-radius: clamp(14px, 1.6vw, 22px);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(24px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.75) rotate(-5deg);
  transition: opacity 520ms var(--ease-play) 160ms, transform 660ms var(--ease-play) 160ms;
}
.cs-transition.in .cs-transition-word { opacity: 1; transform: scale(1) rotate(-1.4deg); }

@media (prefers-reduced-motion: reduce) {
  .cs-transition-rule,
  .cs-transition-arrow,
  .cs-transition-word { transition: none; transform: none; opacity: 1; }
}

@media (max-width: 640px) {
  .cs-transition-rule { width: clamp(28px, 9vw, 60px); }
  .cs-transition-word { font-size: clamp(20px, 6.6vw, 30px); }
}

/* chapter opener label */
.cs-chapter-head {
  display: grid;
  gap: 14px;
  padding: clamp(30px, 6svh, 70px) 0 clamp(24px, 4svh, 46px);
}

.cs-chapter-head .cs-ch-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.55);
}

.cs-chapter-head .cs-ch-num::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--ink);
}

.cs-chapter-head h2 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(44px, 6.4vw, 108px);
  font-weight: 700;
  line-height: 0.86;
  text-transform: uppercase;
}

/* narrative paragraph */
.cs-para {
  max-width: 66ch;
  margin: clamp(20px, 3.5svh, 40px) 0;
  font-size: var(--cs-body);
  line-height: 1.65;
  color: rgb(16 20 23 / 0.86);
  text-wrap: pretty;
}

.cs-para.cs-lede {
  max-width: 56ch;
  font-size: var(--cs-lede);
  line-height: 1.5;
  color: var(--ink);
}

.cs-para strong {
  font-weight: 800;
}

.cs-para em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 0.05em;
}

/* small caption / mono aside */
.cs-caption {
  margin: 14px 0 0;
  color: rgb(16 20 23 / 0.6);
  text-transform: none;
}

/* large scroll-reveal statement */
.cs-statement {
  margin: clamp(44px, 10svh, 130px) 0;
}

.cs-statement p {
  margin: 0;
  max-width: 20ch;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(38px, 5.6vw, 92px);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

.cs-statement.cs-wide p {
  max-width: 26ch;
}

.cs-statement .w {
  display: inline-block;
  color: rgb(16 20 23 / 0.18);
  transition: color 0.4s var(--ease-soft);
}

.cs-statement .w.lit {
  color: var(--ink);
}

.cs-statement .w.accent.lit {
  color: var(--ink);
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
}

/* dark statement variant (one per case, for the biggest beat) */
.cs-dark {
  position: relative;
  margin: clamp(40px, 9svh, 120px) calc(var(--cs-gutter) * -1);
  padding: clamp(56px, 12svh, 150px) var(--cs-gutter);
  background: var(--ink);
  color: var(--paper);
}

.cs-dark .cs-statement { margin: 0; }
.cs-dark .cs-statement p { color: var(--paper); }
.cs-dark .cs-statement .w { color: rgb(255 248 223 / 0.2); }
.cs-dark .cs-statement .w.lit { color: var(--paper); }
.cs-dark .cs-statement .w.accent.lit {
  color: var(--yellow);
  background: none;
}
.cs-dark .cs-para { color: rgb(255 248 223 / 0.78); }
.cs-dark .cs-caption { color: rgb(255 248 223 / 0.5); }

@media (min-width: 821px) {
  /* --cs-left = this column's distance from the viewport's left edge (set in JS),
     so the bleed anchors to the viewport, not to the off-centre chapter column */
  .cs-dark {
    margin-left: calc(var(--cs-left, 0px) * -1);
    margin-right: calc((100vw - var(--cs-left, 0px) - 100%) * -1);
    width: 100vw;
    padding-left: calc(var(--cs-left, 0px) + var(--cs-gutter));
    padding-right: calc(100vw - var(--cs-left, 0px) - 100% + var(--cs-gutter));
  }
}

/* connect: provided combined feature poster */
.cs-connect-panels {
  display: block;
  margin: clamp(44px, 8svh, 96px) 0;
}
.cs-connect-panel-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: clamp(18px, 2vw, 34px);
}

.cs-stat {
  display: grid;
  gap: 6px;
  margin: clamp(30px, 6svh, 70px) 0;
}

.cs-stat .cs-stat-num {
  position: relative;
  width: fit-content;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(64px, 12vw, 190px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.005em;
}

.cs-stat .cs-stat-num .cs-underline {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.28em;
  z-index: -1;
  background: var(--yellow);
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left center;
  transition: transform 620ms var(--ease-play);
}

.cs-stat.drawn .cs-stat-num .cs-underline {
  transform: scaleX(1) rotate(-1deg);
}

.cs-stat .cs-stat-label {
  max-width: 40ch;
  font-size: var(--cs-small);
  line-height: 1.55;
  color: rgb(16 20 23 / 0.72);
}

.cs-stat .cs-stat-label b {
  color: var(--ink);
}

/* =========================================================
   FIGURE / DIAGRAM PLACEHOLDERS
   ========================================================= */

.cs-ph {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 3px solid var(--ink);
  border-radius: clamp(14px, 1.6vw, 22px);
  background:
    repeating-linear-gradient(-45deg, rgb(16 20 23 / 0.07) 0 16px, transparent 16px 38px),
    rgb(255 253 245 / 0.6);
  overflow: hidden;
  text-align: center;
}

.cs-ph .cs-ph-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: rgb(255 253 245 / 0.92);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.cs-ph .cs-ph-label::before {
  content: "▦";
  font-size: 13px;
  opacity: 0.6;
}

/* full-bleed-ish wide figure */
.cs-figure {
  margin: clamp(30px, 6svh, 70px) 0;
}

.cs-figure .cs-ph {
  min-height: clamp(280px, 46svh, 520px);
}

.cs-figure figcaption,
.cs-figcap {
  margin-top: 14px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgb(16 20 23 / 0.55);
  text-transform: uppercase;
}

/* current vs future two-panel diagram */
.cs-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin: clamp(30px, 6svh, 70px) 0;
}

.cs-diagram .cs-panel {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 34px);
  border: 3px solid var(--ink);
  border-radius: clamp(14px, 1.6vw, 22px);
  min-height: clamp(220px, 30svh, 320px);
  align-content: start;
}

.cs-diagram .cs-panel.now {
  background: rgb(255 253 245 / 0.6);
}

.cs-diagram .cs-panel.next {
  background: var(--yellow);
  transform: rotate(-0.8deg);
}

.cs-diagram .cs-panel .cs-panel-tag {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.6);
}

.cs-diagram .cs-panel h4 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(24px, 2.4vw, 40px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.cs-diagram .cs-panel p {
  margin: 0;
  font-size: var(--cs-small);
  line-height: 1.5;
  color: rgb(16 20 23 / 0.8);
}

.cs-diagram .cs-arrowmid {
  display: grid;
  place-items: center;
  width: clamp(42px, 5vw, 66px);
  height: clamp(42px, 5vw, 66px);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 22px;
  font-weight: 900;
}

/* connect: nav compare — vertical dramatic reveal */
.cs-connect-compare {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(20px, 4svh, 38px);
  margin: clamp(38px, 7svh, 86px) 0 clamp(26px, 5svh, 54px);
}

.cs-connect-compare .cs-panel {
  position: relative;
  width: min(100%, 720px);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
  overflow: visible;
}

.cs-connect-compare .cs-panel.next {
  width: min(100%, 760px);
  background: transparent;
  transform: none;
}

.cs-connect-compare .cs-panel-tag-float {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cs-connect-compare .cs-panel.next .cs-panel-tag-float {
  background: var(--yellow);
}

.cs-connect-compare .cs-connect-nav-img {
  width: 100%;
  aspect-ratio: auto;
}

.cs-connect-nav-asset {
  display: block;
  width: 100%;
  height: auto;
}

.cs-connect-compare .cs-arrowmid {
  width: clamp(54px, 6vw, 86px);
  height: clamp(54px, 6vw, 86px);
  transform: rotate(90deg);
}

.cs-connect-compare.in .cs-panel.now {
  animation: connect-before-in 640ms var(--ease-play) both;
}

.cs-connect-compare.in .cs-arrowmid {
  animation: connect-arrow-pop 560ms var(--ease-play) 520ms both;
}

.cs-connect-compare.in .cs-panel.next {
  animation: connect-after-in 780ms var(--ease-play) 920ms both;
}

@keyframes connect-before-in {
  0% { opacity: 0; transform: translateY(26px) rotate(-1.4deg) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes connect-arrow-pop {
  0% { opacity: 0; transform: rotate(90deg) scale(0.56); }
  62% { opacity: 1; transform: rotate(90deg) scale(1.16); }
  100% { opacity: 1; transform: rotate(90deg) scale(1); }
}

@keyframes connect-after-in {
  0% { opacity: 0; transform: translateY(34px) rotate(1.2deg) scale(0.9); }
  58% { opacity: 1; transform: translateY(-8px) rotate(-0.8deg) scale(1.035); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-connect-compare.in .cs-panel.now,
  .cs-connect-compare.in .cs-arrowmid,
  .cs-connect-compare.in .cs-panel.next {
    animation: none;
  }
}

/* problem cards row */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(30px, 6svh, 70px) 0;
}

.cs-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(20px, 2.2vw, 30px);
  border: 3px solid var(--ink);
  border-radius: clamp(14px, 1.6vw, 22px);
  background: rgb(255 253 245 / 0.62);
  box-shadow: 6px 6px 0 var(--ink);
}

.cs-card:nth-child(2) { background: var(--blue); }
.cs-card:nth-child(3) { background: var(--pink); }
.cs-card:nth-child(4) { background: var(--yellow); }

.cs-card .cs-card-n {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.cs-card h4 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}

.cs-card p {
  margin: 0;
  font-size: var(--cs-small);
  line-height: 1.5;
  color: rgb(16 20 23 / 0.82);
}

/* =========================================================
   QUESTION SCENE
   ========================================================= */

.cs-question {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vh, 30px);
  min-height: 80svh;
  align-content: center;
  text-align: center;
  margin: clamp(30px, 6svh, 80px) 0;
}

.cs-question .cs-q-setup {
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  text-transform: lowercase;
  color: rgb(16 20 23 / 0.55);
  transform: rotate(-1.2deg);
}

.cs-character-photo {
  width: clamp(190px, 26vw, 320px);
  height: auto;
  object-fit: contain;
}

/* character/persona cutout slot — same scale + bottom fade treatment as the photo scenes */
.cs-character-slot {
  position: relative;
  width: clamp(190px, 26vw, 320px);
  height: clamp(190px, 22vw, 300px);
  margin: 6px auto;
}
.cs-character-slot image-slot {
  width: 100%;
  height: 100%;
}
.cs-character-slot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background: linear-gradient(to bottom, rgb(255 248 223 / 0), var(--paper));
  pointer-events: none;
}

@keyframes cs-shrug-unused {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-4deg); }
  75% { transform: translateY(-5px) rotate(4deg); }
}

.cs-question .cs-q-big {
  margin: 0;
  max-width: 18ch;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(40px, 6.4vw, 104px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.cs-question .cs-q-big .cs-qmark {
  color: var(--red);
}

/* =========================================================
   INSIGHT BLOCK
   ========================================================= */

.cs-insight {
  position: relative;
  display: grid;
  gap: 14px;
  margin: clamp(30px, 6svh, 70px) 0;
  padding: clamp(28px, 3.4vw, 48px);
  border: 3px solid var(--ink);
  border-radius: clamp(16px, 2vw, 26px);
  background: var(--paper-warm);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-0.5deg);
}

.cs-insight .cs-insight-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-insight p {
  margin: 0;
  max-width: 40ch;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(24px, 2.6vw, 42px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}

.cs-insight .cs-insight-sub {
  max-width: 52ch;
  font-family: "General Sans", Inter, Helvetica, Arial, sans-serif;
  font-size: var(--cs-small);
  font-weight: 500;
  line-height: 1.55;
  text-transform: none;
  color: rgb(16 20 23 / 0.78);
}

/* =========================================================
   PROCESS TIMELINE
   ========================================================= */

.cs-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: clamp(30px, 6svh, 70px) 0;
  padding-left: 30px;
}

.cs-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background:
    repeating-linear-gradient(var(--ink) 0 8px, transparent 8px 16px);
}

.cs-tl-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: clamp(16px, 2.2vw, 26px) 0;
  border-bottom: 2px dashed rgb(16 20 23 / 0.28);
}

.cs-tl-row:last-child { border-bottom: 0; }

.cs-tl-row::before {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(calc(-30px + 0px));
}

.cs-tl-row {
  position: relative;
}

.cs-tl-phase {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.55);
}

.cs-tl-row h4 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}

.cs-tl-row p {
  margin: 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.5;
  color: rgb(16 20 23 / 0.78);
}

/* =========================================================
   CLOSING REFLECTION
   ========================================================= */

.cs-closing {
  display: grid;
  gap: clamp(20px, 3vh, 32px);
  margin-top: clamp(30px, 6svh, 70px);
  padding: clamp(40px, 7svh, 90px) 0 clamp(30px, 5svh, 60px);
}

.cs-closing .cs-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* =========================================================
   ANNOTATION LAYER (reusable, positioned)
   ========================================================= */

.cs-anno {
  pointer-events: none;
}

/* handwritten note */
.cs-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px 999px 999px 4px;
  background: var(--blue);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px) rotate(-3deg) scale(0.92);
  transition:
    opacity 300ms ease 200ms,
    transform 460ms var(--ease-play) 200ms;
}

.cs-note.pink { background: var(--pink); }
.cs-note.yellow { background: var(--yellow); }

.drawn .cs-note,
.cs-note.drawn {
  opacity: 1;
  transform: translateY(0) rotate(-2deg) scale(1);
}

/* outlined label / objective pill */
.cs-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.cs-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

/* inline handwritten chapter marker (← research →) */
.cs-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  text-transform: lowercase;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {
  .cs-rail {
    display: none;
  }

  .cs-topnav {
    position: sticky;
    top: 0;
    z-index: 28;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 calc(var(--cs-gutter) * -1) clamp(10px, 2vh, 20px);
    padding: 14px var(--cs-gutter);
    background: rgb(255 248 223 / 0.86);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--ink);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 520ms var(--ease-soft),
      transform 620ms var(--ease-play);
  }

  body.past-intro .cs-topnav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .cs-topnav .cs-topnav-brand {
    font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
  }

  .cs-topnav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cs-topnav-scroll::-webkit-scrollbar { display: none; }

  .cs-topnav .cs-chip {
    width: auto;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    min-height: auto;
    height: auto;
    padding: 8px 14px;
    gap: 8px;
  }

  .cs-topnav .cs-chip.is-active {
    min-height: auto;
  }

  .cs-topnav .cs-chip .cs-chip-t {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .case-doc {
    border-width: 6px;
  }

  .cs-close {
    top: 12px;
    right: 12px;
    min-height: 40px;
    padding: 0 6px 0 14px;
    font-size: 11px;
  }

  .cs-close .cs-close-x {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .cs-strip {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr 1fr;
  }

  .cs-strip .cs-ph:nth-child(4) { grid-column: 1 / -1; }

  .cs-diagram {
    grid-template-columns: 1fr;
  }

  .cs-diagram .cs-arrowmid {
    transform: rotate(90deg);
    justify-self: center;
  }

  .cs-dark {
    margin-inline: calc(var(--cs-gutter) * -1);
    padding-inline: var(--cs-gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  .r {
    opacity: 1 !important;
    translate: 0 0 !important;
  }

  .cs-statement .w {
    color: var(--ink) !important;
  }

  .cs-dark .cs-statement .w {
    color: var(--paper) !important;
  }

  .cs-statement .w.accent {
    background: linear-gradient(transparent 60%, var(--yellow) 60%);
  }

  .cs-dark .cs-statement .w.accent {
    color: var(--yellow) !important;
    background: none;
  }

  .cs-stat .cs-underline {
    transform: scaleX(1) rotate(-1deg) !important;
  }

  .cs-note {
    opacity: 1 !important;
    transform: rotate(-2deg) !important;
  }

  .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* cs-character-photo has no animation to disable */

  .cs-cover-cue .cs-cue-icon {
    animation: none !important;
  }
}

/* =========================================================
   RESEARCH-SECTION WIDGETS  (same neo-brutalist system)
   ========================================================= */

/* two-column: sticky display heading (left) + content (right) */
.cs-two {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: start;
  margin: clamp(44px, 9svh, 110px) 0;
}
.cs-two-head {
  position: sticky;
  top: 96px;
}
.cs-two-head h3 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(38px, 4.6vw, 74px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

/* accordion — gamification mechanics (all collapsed by default) */
.cs-accordion {
  display: grid;
  gap: 14px;
}
.cs-acc {
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  transition:
    box-shadow 280ms var(--ease-play),
    transform 280ms var(--ease-play),
    background 280ms ease;
}
.cs-acc:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.cs-acc.open {
  background: var(--paper-warm);
  box-shadow: 3px 3px 0 var(--ink);
  transform: none;
}
.cs-acc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.cs-acc-emoji {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  font-size: 23px;
  line-height: 1;
  transition: transform 320ms var(--ease-play), background 220ms ease;
}
.cs-acc:nth-child(3n+2) .cs-acc-emoji { background: var(--pink); }
.cs-acc:nth-child(3n+3) .cs-acc-emoji { background: var(--yellow); }
.cs-acc:hover .cs-acc-emoji { transform: rotate(-8deg) scale(1.08); }
.cs-acc.open .cs-acc-emoji { transform: rotate(6deg) scale(1.1); }
.cs-acc-title {
  flex: 1 1 auto;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.cs-acc-chev {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 16px;
  transition:
    transform 420ms var(--ease-play),
    background 220ms ease;
}
.cs-acc-head:hover .cs-acc-chev { background: var(--yellow); transform: scale(1.1); }
.cs-acc.open .cs-acc-chev { transform: rotate(225deg); background: var(--ink); color: var(--yellow); }

.cs-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 460ms var(--ease-play);
}
.cs-acc.open .cs-acc-body { grid-template-rows: 1fr; }
.cs-acc-body > .cs-acc-inner {
  overflow: hidden;
}
.cs-acc-body .cs-acc-pad {
  padding: 0 20px clamp(20px, 2.6vh, 28px) 84px;
  display: grid;
  gap: 14px;
}
.cs-acc-body p {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: rgb(16 20 23 / 0.82);
}
.cs-acc-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}

/* ecosystem hub — radial orbit diagram (Naukri hub, 8 products around it) */
.cs-eco-radial {
  --er1: 24%;  /* orbit ring radius (dot position) */
  --er2: 40%;  /* card-center radius */
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 1;
  margin: clamp(30px, 6svh, 70px) auto;
}

.cs-eco-radial svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cs-eco-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(58px, 9%, 78px);
  height: clamp(58px, 9%, 78px);
  transform: translate(-50%, -50%);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--ink);
}
.cs-eco-hub .cs-eco-hublogo {
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  color: #163a80;
}

.cs-eco-node {
  position: absolute;
  z-index: 2;
  width: clamp(128px, 19%, 158px);
  padding: 11px 13px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgb(16 20 23 / 0.5);
  transform: translate(-50%, -50%);
}
.cs-eco-node[data-pos="n"]  { top: calc(50% - var(--er2)); left: 50%; }
.cs-eco-node[data-pos="ne"] { top: calc(50% - var(--er2) * 0.72); left: calc(50% + var(--er2) * 0.72); }
.cs-eco-node[data-pos="e"]  { top: 50%; left: calc(50% + var(--er2)); }
.cs-eco-node[data-pos="se"] { top: calc(50% + var(--er2) * 0.72); left: calc(50% + var(--er2) * 0.72); }
.cs-eco-node[data-pos="s"]  { top: calc(50% + var(--er2)); left: 50%; }
.cs-eco-node[data-pos="sw"] { top: calc(50% + var(--er2) * 0.72); left: calc(50% - var(--er2) * 0.72); }
.cs-eco-node[data-pos="w"]  { top: 50%; left: calc(50% - var(--er2)); }
.cs-eco-node[data-pos="nw"] { top: calc(50% - var(--er2) * 0.72); left: calc(50% - var(--er2) * 0.72); }

.cs-eco-logo {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  line-height: 1;
}
.cs-eco-logo .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-radius: 50%;
  background: var(--eco-c, var(--ink));
}
.cs-eco-logo b { color: var(--eco-c, var(--ink)); }
.cs-eco-logo span { color: rgb(16 20 23 / 0.55); font-weight: 600; }

.cs-eco-node p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgb(16 20 23 / 0.72);
}
.cs-eco-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* simplified stacked fallback for narrow viewports */
.cs-eco-stack { display: none; }

/* ---------- user segmentation (simplified) ---------- */
.cs-seg2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.6vw, 18px);
  margin: clamp(30px, 6svh, 64px) 0 clamp(18px, 3vh, 30px);
}
.cs-seg2-node {
  padding: 16px 26px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
}
.cs-seg2-node.active { background: rgb(47 158 119 / 0.16); color: #1f7d5c; }
.cs-seg2-node.passive { background: rgb(232 115 90 / 0.14); color: #cf5638; }
.cs-seg2-core {
  padding: 16px 26px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.4);
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  color: #163a80;
  text-transform: uppercase;
}
.cs-seg2-arrow {
  font-size: 20px;
  color: rgb(16 20 23 / 0.4);
}

/* engagement bar */
.cs-eng {
  margin: 8px 0 clamp(16px, 3vh, 26px);
}
.cs-eng-label {
  display: block;
  text-align: center;
  margin-bottom: 8px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.55);
}
.cs-eng-track {
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, #2f9e77 0%, #c9a227 52%, #e8735a 100%);
}

/* three personas on the spectrum — compact, single card each */
.cs-personas3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin: 0 0 clamp(30px, 6svh, 70px);
}
.cs-p3 {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: clamp(20px, 2.2vw, 28px) clamp(16px, 1.6vw, 22px);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.4);
}
.cs-p3.informed { background: rgb(47 158 119 / 0.1); }
.cs-p3.clueless { background: rgb(201 162 39 / 0.1); }
.cs-p3.inactive { background: rgb(232 115 90 / 0.1); }

.cs-persona-face {
  position: relative;
  width: clamp(66px, 7vw, 88px);
  height: clamp(66px, 7vw, 88px);
}
.cs-persona-face image-slot {
  width: 100%;
  height: 100%;
}

.cs-p3-name {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}
.cs-p3.informed .cs-p3-name { background: #2f9e77; }
.cs-p3.clueless .cs-p3-name { background: #c9a227; }
.cs-p3.inactive .cs-p3-name { background: #e8735a; }

.cs-p3 p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgb(16 20 23 / 0.8);
}

/* insight / gap cards — white card, colour left border, round icon */
.cs-icards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
  margin: clamp(30px, 6svh, 70px) 0;
}
.cs-icard {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(20px, 2.2vw, 30px);
  border: 3px solid var(--ink);
  border-radius: clamp(14px, 1.6vw, 22px);
  background: rgb(255 253 245 / 0.62);
  box-shadow: 6px 6px 0 var(--ink);
}
.cs-icard:nth-child(2) { background: var(--blue); }
.cs-icard:nth-child(3) { background: var(--pink); }
.cs-icard .cs-icard-ic {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.cs-icard h4 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  line-height: 0.94;
  text-transform: uppercase;
}
.cs-icard p {
  margin: 0;
  font-size: var(--cs-small);
  line-height: 1.55;
  color: rgb(16 20 23 / 0.82);
}

@media (max-width: 900px) {
  .cs-two { grid-template-columns: 1fr; gap: 24px; }
  .cs-two-head { position: static; }
  .cs-eco-radial { display: none; }
  .cs-eco-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: clamp(30px, 6svh, 70px) 0;
  }
  .cs-eco-stack .cs-eco-node {
    position: static;
    width: 100%;
    transform: none;
  }
  .cs-seg2 { flex-direction: column; }
  .cs-personas3 { grid-template-columns: 1fr; }
  .cs-icards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cs-eco-stack { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-acc-body { transition: none; }
  .cs-acc-chev { transition: none; }
  .cs-acc-emoji { transition: none; }
  .cs-acc { transition: none; }
}

/* =========================================================
   REDEFINING-BRIEF WIDGETS
   ========================================================= */

/* scroll-scrubbed brief morph (initial -> redefined), in place, no slide */
.cs-briefscroll {
  position: relative;
  height: 260vh;
  margin: clamp(30px, 6svh, 70px) 0;
}
.cs-briefscroll-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--paper);
  z-index: 1;
}
.cs-briefmorph {
  position: relative;
  display: grid;
  width: min(760px, 100%);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3.4vw, 44px);
  border: 3px solid var(--ink);
  border-radius: clamp(16px, 2vw, 26px);
  background: var(--paper-warm);
  box-shadow: 9px 9px 0 var(--ink);
}
.cs-briefmorph-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-grid;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-briefmorph-label .lbl {
  grid-area: 1 / 1;
}
.cs-briefmorph-label .lbl.redefined { opacity: 0; }
.cs-briefscroll .cs-brief-list.layer {
  grid-area: 1 / 1;
  margin: 6px 0 0;
}
.cs-briefscroll .cs-brief-list.layer.initial li span {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--ink) calc(var(--p, 0) * 260%), transparent);
}
.cs-briefscroll .cs-brief-list.layer.initial {
  opacity: clamp(0, calc(1 - (var(--p, 0) - 0.42) * 6), 1);
}
.cs-briefscroll .cs-brief-list.layer.redefined {
  opacity: clamp(0, calc((var(--p, 0) - 0.5) * 6), 1);
}
.cs-briefmorph-label .lbl.initial {
  opacity: clamp(0, calc(1 - (var(--p, 0) - 0.42) * 6), 1);
}
.cs-briefmorph-label .lbl.redefined {
  opacity: clamp(0, calc((var(--p, 0) - 0.5) * 6), 1);
}
.cs-briefscroll-cue {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.4);
  opacity: clamp(0, calc(1 - var(--p, 0) * 6), 1);
}

/* labelled brief card (initial / redefined) */
.cs-briefcard {
  position: relative;
  margin: clamp(30px, 6svh, 70px) 0;
  padding: clamp(30px, 4vw, 52px) clamp(24px, 3.4vw, 48px) clamp(28px, 3.4vw, 44px);
  border: 3px solid var(--ink);
  border-radius: clamp(18px, 2.2vw, 30px);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--ink);
}
.cs-briefcard.redefined {
  background: var(--paper-warm);
  transform: rotate(-0.4deg);
}
.cs-briefcard .cs-brief-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-briefcard.redefined .cs-brief-label { background: var(--yellow); color: var(--ink); }
.cs-brief-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(16px, 2.4vh, 26px);
}
.cs-brief-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.5;
  color: var(--ink);
}
.cs-brief-list li::before {
  content: "";
  margin-top: 0.55em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
.cs-briefcard.initial .cs-brief-list li { color: rgb(16 20 23 / 0.62); }
.cs-brief-list em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
  padding: 0 0.04em;
}

/* octalysis comparison pair */
.cs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(24px, 4vh, 40px) 0;
}
.cs-compare .cs-cmp {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2vw, 28px);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
}
.cs-compare .cs-cmp .cs-ph { min-height: clamp(180px, 22vw, 240px); }
.cs-compare .cs-cmp h5 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  color: #2a63d6;
}

/* recap journey (snake grid) */
.cs-recap {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin: clamp(30px, 6svh, 64px) 0;
}
.cs-recap-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 20px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: rgb(255 253 245 / 0.7);
  box-shadow: 5px 5px 0 var(--ink);
}
.cs-recap-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(16 20 23 / 0.08);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
}
.cs-recap-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgb(16 20 23 / 0.82);
}
.cs-recap-h, .cs-recap-v {
  display: inline-flex;
  justify-self: center;
  width: fit-content;
  padding: 5px 12px;
  border: 1.5px dashed var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-recap-v { margin: 10px 0; }

@media (max-width: 900px) {
  .cs-recap { grid-template-columns: 1fr; }
  .cs-recap-card, .cs-recap-h, .cs-recap-v {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .cs-recap-h { justify-self: start; margin-left: 20px; }
}

/* 5-whys funnel */
.cs-funnel {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: clamp(30px, 6svh, 64px) auto;
  width: min(560px, 100%);
}
.cs-funnel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 34px;
  left: 50%;
  width: 0;
  border-left: 2.5px dashed rgb(16 20 23 / 0.25);
  z-index: -1;
}
.cs-funnel-row {
  display: grid;
  place-items: center;
  width: var(--w, 100%);
  min-height: 60px;
  padding: 10px 20px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: rgb(255 253 245 / 0.8);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.5);
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
}
.cs-funnel-row.r1 { --w: 100%; }
.cs-funnel-row.r2 { --w: 86%; }
.cs-funnel-row.r3 { --w: 72%; }
.cs-funnel-row.r4 { --w: 58%; }
.cs-funnel-row.r5 { --w: 44%; }
.cs-funnel-row.root {
  --w: 40%;
  background: #2a63d6;
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}

@media (max-width: 720px) {
  .cs-compare { grid-template-columns: 1fr; }
}

/* =========================================================
   DESIGN-SECTION WIDGETS
   ========================================================= */

/* phone-shaped drop slot */
.cs-phone {
  position: relative;
  aspect-ratio: 9 / 19;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border: 3px solid var(--ink);
  border-radius: 34px;
  background:
    repeating-linear-gradient(-45deg, rgb(16 20 23 / 0.06) 0 15px, transparent 15px 34px),
    rgb(255 253 245 / 0.7);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.cs-phone image-slot { width: 100%; height: 100%; }
.cs-phone .cs-ph-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: rgb(255 253 245 / 0.92);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* alternating feature showcase: device + copy */
.cs-feat {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  margin: clamp(40px, 8svh, 100px) 0;
}
.cs-feat.rev .cs-feat-media { order: 2; }
.cs-feat-copy { display: grid; gap: 16px; align-content: center; }
.cs-feat-copy h4 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}
.cs-feat-copy p {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.55;
  color: rgb(16 20 23 / 0.84);
}
.cs-feat .cs-phone { max-width: 270px; }

.cs-index-card {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: clamp(14px, 1.6vw, 22px);
  box-shadow: 8px 8px 0 var(--ink);
  opacity: 0;
  transform: translateY(36px) scale(0.92) rotate(-2deg);
  transition: opacity 620ms var(--ease-soft), transform 680ms var(--ease-play);
}
.cs-feat.in .cs-index-card {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}
@media (prefers-reduced-motion: reduce) {
  .cs-index-card { transition: none; }
}

/* career journal: returning-user fan-out */
.cs-jjfan {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: clamp(28px, 5vh, 48px) 0;
}
.cs-jjfan-card { aspect-ratio: 479 / 656; }
.cs-jjfan-card .cs-phone { width: 100%; height: 100%; }
@media (max-width: 860px) {
  .cs-jjfan { grid-template-columns: repeat(2, 1fr); }
}
.cs-phone-single { max-width: 360px; margin: 20px auto 0; aspect-ratio: 9 / 19.5; }

/* career journal: annotated scroll walkthrough */
.cs-jjwalk { margin: clamp(40px, 8svh, 100px) 0; }
.cs-jjwalk-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.cs-jjwalk-sticky {
  position: sticky;
  top: clamp(80px, 14vh, 140px);
  display: grid;
  grid-template-rows: 1fr;
  transform: translateZ(0);
  will-change: transform;
}
.cs-jjwalk-scroll { width: 100%; max-width: 620px; aspect-ratio: 1113 / 4296; margin: 0 auto; }
.cs-jjwalk-scroll image-slot::part(frame) { background: transparent; }
.cs-jjwalk-note {
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms var(--ease-soft), transform 420ms var(--ease-play);
  pointer-events: none;
  max-width: 46ch;
}
.cs-jjwalk-note.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cs-jjwalk-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-weight: 800;
  font-size: 15px;
}
.cs-jjwalk-note p { margin: 4px 0 0; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; }
@media (max-width: 860px) {
  .cs-jjwalk-grid { grid-template-columns: 1fr; }
  .cs-jjwalk-sticky { position: static; }
}

/* connect: nav comparison images + logo */
.cs-connect-nav-img { width: 100%; aspect-ratio: 1614 / 627; margin-top: 10px; }
.cs-connect-logo {
  width: min(100%, 480px);
  margin: clamp(26px, 5vh, 56px) auto 0;
}
.cs-connect-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* interactive level tabs (career ladder) */
.cs-levels { margin: clamp(28px, 5vh, 48px) 0; }
.cs-levels-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(24px, 4vh, 36px) 0 clamp(20px, 3vh, 28px);
}
.cs-level-tab {
  padding: 11px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 260ms var(--ease-play), box-shadow 260ms var(--ease-play), background 200ms ease;
}
.cs-level-tab:hover { background: var(--blue); }
.cs-level-tab.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.2);
}

.cs-ladder-frame {
  position: relative;
  width: 100%;
  border-radius: clamp(14px, 1.6vw, 22px);
  background: transparent;
  overflow: visible;
}
.cs-ladder-scrollwrap {
  width: 100%;
  height: clamp(380px, 48vw, 460px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cs-ladder-scrollwrap::-webkit-scrollbar { display: none; }
.cs-ladder-track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  width: max-content;
  height: 100%;
  padding: 0 clamp(16px, 3vw, 40px);
}
.cs-ladder-card {
  flex: 0 0 auto;
  width: clamp(140px, 15vw, 210px);
}
.cs-ladder-track { gap: clamp(28px, 4vw, 56px); }
.cs-ladder-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgb(16 20 23 / 0.14));
}
.cs-ladder-card.band-top { transform: translateY(-46px); }
.cs-ladder-card.band-bottom { transform: translateY(46px); }
.cs-ladder-scrub {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  margin-top: clamp(18px, 3vh, 30px);
  padding: 0 clamp(16px, 3vw, 40px);
}
.cs-ladder-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgb(16 20 23 / 0.14);
  outline: none;
  cursor: pointer;
}
.cs-ladder-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: grab;
}
.cs-ladder-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: grab;
}
.cs-ladder-range::-webkit-slider-thumb:active { cursor: grabbing; }

@media (max-width: 720px) {
  .cs-ladder-scrollwrap { height: clamp(320px, 82vw, 380px); }
  .cs-ladder-card { width: clamp(130px, 40vw, 170px); }
  .cs-ladder-card.band-top { transform: translateY(-32px); }
  .cs-ladder-card.band-bottom { transform: translateY(32px); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-ladder-scrollwrap { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-level-panel { transition: none; }
}

/* numbered highlighted step list */
.cs-steps { display: grid; gap: 14px; align-content: center; }
.cs-step {
  display: grid;
  gap: 6px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: 18px;
  transition: background 240ms ease, box-shadow 240ms ease;
}
.cs-step .cs-step-t {
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.42);
  transition: color 240ms ease;
}
.cs-step p { margin: 0; font-size: var(--cs-small); line-height: 1.5; color: rgb(16 20 23 / 0.5); transition: color 240ms ease; }
.cs-step.on {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.cs-step.on .cs-step-t { color: var(--red); }
.cs-step.on p { color: rgb(16 20 23 / 0.82); }

@media (max-width: 860px) {
  .cs-feat { grid-template-columns: 1fr; gap: 24px; }
  .cs-feat.rev .cs-feat-media { order: 0; }
}

/* onboarding: pinned scroll sequence (copy switches + phone gif crossfades) */
.cs-onb { position: relative; height: 320svh; margin: clamp(40px, 8svh, 100px) 0; }
.cs-onb-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
  background: var(--paper);
  overflow: hidden;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}
.cs-onb-copy { display: grid; gap: 16px; align-content: center; max-width: 46ch; }
.cs-onb-media { position: relative; display: grid; place-items: center; }
.cs-onb-phone { position: relative; overflow: hidden; }
.cs-onb-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.92) translateY(18px);
  transition: opacity 460ms var(--ease-soft), transform 560ms var(--ease-play);
}
.cs-onb-gif.is-active { opacity: 1; transform: scale(1) translateY(0); z-index: 2; }

@media (max-width: 860px) {
  .cs-onb { height: 300svh; }
  .cs-onb-pin { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .cs-onb-phone { max-width: 220px; }
}

/* connect: pinned scroll sequence (nav pill switches + screen crossfades) */
.cs-connectpin { height: 280svh; }
.cs-connectpin .cs-onb-copy { max-width: min(560px, 100%); justify-self: start; }
.cs-connectpin .cs-onb-copy h4 { margin: 0; }
.cs-connectpin .cs-onb-phone {
  width: min(100%, 310px);
  max-width: none;
  aspect-ratio: 467 / 1037;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cs-connect-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 460ms var(--ease-soft);
  z-index: 1;
}
.cs-connect-screen.is-active { opacity: 1; z-index: 2; }
.cs-connect-navwrap {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 460px;
  margin-top: clamp(24px, 4vh, 40px);
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgb(0 0 0 / 0.14));
}
.cs-connect-nav {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 360ms var(--ease-soft);
}
.cs-connect-nav.is-active { opacity: 1; }

@media (max-width: 860px) {
  .cs-connectpin { height: 260svh; }
  .cs-connect-navwrap { max-width: 380px; }
}

/* Insider referral reveal */
.cs-insider-flow {
  margin: clamp(44px, 8svh, 96px) 0;
}
.cs-insider-stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1799 / 968;
}
.cs-insider-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}
.cs-insider-card {
  position: absolute;
  display: block;
  width: min(30%, 300px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(30px) scale(0.8) rotate(-6deg);
  transition:
    opacity 460ms var(--ease-soft),
    transform 620ms var(--ease-play);
}
.cs-insider-flow.in-view .cs-insider-card {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}
.cs-insider-card.cs-insider-card-a {
  left: 27%;
  top: 56%;
  transition-delay: 120ms;
}
.cs-insider-flow.in-view .cs-insider-card.cs-insider-card-a { transition-delay: 120ms; }
.cs-insider-card.cs-insider-card-b {
  right: 15%;
  top: 24%;
  transform: translateY(30px) scale(0.8) rotate(6deg);
  transition-delay: 320ms;
}
.cs-insider-flow.in-view .cs-insider-card.cs-insider-card-b { transition-delay: 320ms; }
@media (max-width: 720px) {
  .cs-insider-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-insider-card { transition: none; }
}

/* =========================================================
   DESIGN-SECTION WIDGETS · reveal, orbit, tab toggle
   ========================================================= */

/* product-name reveal beat */
.cs-reveal {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  margin: clamp(64px, 12svh, 150px) 0;
}
.cs-reveal-img {
  width: min(100%, 620px);
  height: auto;
  display: block;
}

/* orbit scene: hub phone + satellite feature cards */
.cs-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  margin: clamp(30px, 6svh, 70px) auto clamp(40px, 7svh, 90px);
}
.cs-orbit-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 100%;
  aspect-ratio: 1958 / 1850;
}
.cs-orbit-hub-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.cs-orbit-screen {
  position: absolute;
  left: 38.9%;
  top: 20.3%;
  width: 23.5%;
  aspect-ratio: 464 / 1050;
  overflow: visible;
  border-radius: 9% / 4.5%;
  z-index: 2;
}
.cs-orbit-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.cs-orbit-card {
  position: absolute;
  z-index: 2;
  width: clamp(180px, 30%, 320px);
  opacity: 0;
  transform: scale(0.72) translateY(30px) rotate(-8deg);
  transition:
    opacity 420ms var(--ease-soft),
    transform 620ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--oi, 0) * 110ms);
}
.cs-orbit-card.in {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(0deg);
}
.cs-orbit-card:not(.in) {
  transition:
    opacity 320ms var(--ease-soft),
    transform 380ms var(--ease-soft);
  transition-delay: 0ms;
}
.cs-orbit-card-img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 16px 28px rgb(16 20 23 / 0.16))
    drop-shadow(0 3px 8px rgb(16 20 23 / 0.10));
}
.cs-orbit-card[data-pos="nw"] { top: 6%; left: 2%; }
.cs-orbit-card[data-pos="ne"] { top: 2%; right: 0%; }
.cs-orbit-card[data-pos="sw"] { bottom: 4%; left: 4%; }
.cs-orbit-card[data-pos="se"] { bottom: 0%; right: 2%; }
.cs-orbit-card.in[data-pos="nw"] { transform: rotate(-3deg); }
.cs-orbit-card.in[data-pos="ne"] { transform: rotate(2.5deg); }
.cs-orbit-card.in[data-pos="sw"] { transform: rotate(2deg); }
.cs-orbit-card.in[data-pos="se"] { transform: rotate(-2.5deg); }

@media (max-width: 640px) {
  .cs-orbit { width: 100%; aspect-ratio: 1 / 1.5; }
  .cs-orbit-card { width: clamp(120px, 40%, 170px); }
}

/* job profile / career journal: scroll-driven crossfade toggle */
.cs-jptogglepin { height: 200svh; }
.cs-jptogglepin .cs-onb-copy { max-width: min(520px, 100%); }
.cs-jpimg-stack {
  position: relative;
  width: 100%;
  max-width: 270px;
  margin-inline: auto;
  aspect-ratio: 640 / 1283;
}
.cs-jpimg-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms var(--ease-soft),
    transform 460ms var(--ease-soft);
}
.cs-jpimg-el.is-active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}
.cs-jptabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.cs-jptab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 260ms var(--ease-play), box-shadow 260ms var(--ease-play), background 200ms ease;
}
.cs-jptab:hover { background: var(--blue); }
.cs-jptab.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.2);
}
.cs-jptab-new {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-jptab.is-active .cs-jptab-new { background: var(--yellow); color: var(--ink); }
.cs-jppanels { position: relative; display: grid; }
.cs-jppanel {
  grid-area: 1 / 1;
  display: grid;
  gap: 10px;
  align-content: start;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 380ms var(--ease-soft),
    transform 420ms var(--ease-soft);
}
.cs-jppanel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 860px) {
  .cs-jptogglepin { height: 180svh; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-jptab, .cs-orbit-card, .cs-jpimg-el, .cs-jppanel, .cs-onb-gif { transition: none; }
}

/* career boosters vs bonus points */
.cs-boost { --cs-green: #2563eb; --cs-violet: #7a5cd6; margin: clamp(24px, 4vh, 40px) 0; }
.cs-boost-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.cs-boost-tab {
  padding: 11px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 260ms var(--ease-play), box-shadow 260ms var(--ease-play), background 200ms ease;
}
.cs-boost-tab:hover { background: var(--blue); }
.cs-boost-tab.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.2);
}
.cs-boost-panels { position: relative; display: grid; }
.cs-boost-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 420ms var(--ease-soft), transform 480ms var(--ease-play);
}
.cs-boost-panel.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cs-boost-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 20px;
}
.cs-boost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cs-boost-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.cs-boost-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 20px 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: rgb(255 253 245 / 0.7);
  box-shadow: 5px 5px 0 rgb(16 20 23 / 0.14);
  transition: transform 260ms var(--ease-play), box-shadow 260ms var(--ease-play);
}
.cs-boost-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgb(16 20 23 / 0.18); }
.cs-boost-q {
  display: inline-block;
  align-self: start;
  padding: 7px 12px;
  margin-bottom: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px 999px 999px 4px;
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.cs-boost-card.no-q { padding-top: 20px; }
.cs-boost-score {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: rgb(16 20 23 / 0.07);
  overflow: hidden;
  margin-bottom: 6px;
}
.cs-boost-score-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(37 99 235 / 0.2), rgb(37 99 235 / 0.3));
  transition: width 600ms var(--ease-play);
}
.cs-boost-score-val {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.cs-boost-score-val b { font-size: 20px; font-weight: 800; color: var(--cs-green); }
.cs-boost-score-val small { font-size: 12px; font-weight: 700; color: rgb(16 20 23 / 0.5); }
.cs-boost-score.bonus {
  flex-direction: column;
  gap: 0;
  height: 60px;
  background: rgb(122 92 214 / 0.1);
}
.cs-boost-score.bonus b { color: var(--cs-violet); font-size: 20px; }
.cs-boost-score.bonus small { color: var(--cs-violet); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.cs-boost-card h5 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
}
.cs-boost-card p { margin: 0; font-size: 14px; color: rgb(16 20 23 / 0.55); }
.cs-boost-link {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cs-green);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 200ms ease;
}
.cs-boost-link:hover { text-decoration-color: var(--cs-green); }
.cs-boost-planned {
  position: absolute;
  top: -12px;
  right: 14px;
  padding: 4px 10px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.55);
}

@media (max-width: 860px) {
  .cs-boost-grid, .cs-boost-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cs-boost-grid, .cs-boost-grid-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-boost-tab, .cs-boost-panel, .cs-boost-card { transition: none; }
}


/* cover trailer: real product screens */
.cs-strip .cs-strip-shot {
  position: relative;
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.cs-strip .cs-strip-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 712 / 1618;
  object-fit: contain;
  border: 2.5px solid var(--ink, #101417);
  border-radius: 18px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--ink, #101417);
}
.cs-strip .cs-strip-shot figcaption {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.cs-strip .cs-strip-shot:nth-child(2) { transform: rotate(1deg); }
.cs-strip .cs-strip-shot:nth-child(3) { transform: rotate(-1.2deg); }
.cs-strip:has(.cs-strip-shot) {
  grid-auto-flow: unset;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  max-width: 860px;
  justify-items: center;
}
.cs-strip .cs-strip-shot { width: min(100%, 240px); }
@media (max-width: 720px) {
  .cs-strip:has(.cs-strip-shot) { grid-template-columns: 1fr; }
}


/* ---------- scroll performance on the long case studies ----------
   Containment is NOT usable here. These chapters host position:fixed and sticky
   scene layers (.vd-track, .vd-stage-wrap, .bp-legend-pin, .bp-chaos-pin), and
   contain:layout/paint makes a chapter the containing block for its fixed children —
   which throws the pinned scenes thousands of px off-screen. content-visibility is
   worse still: it collapses every chapter to its placeholder height, and all the
   scroll math on this page is measured against real heights.
   Left intentionally uncontained; the perf work has to happen in the scroll
   handlers instead. */


/* =========================================================
   ts-call · the designer's margin note: one decision, said plainly
   ========================================================= */
.ts-call {
  position: relative;
  display: grid;
  gap: 12px;
  width: 100%;
  margin: clamp(24px, 3.4vh, 40px) 0;
  padding: clamp(20px, 2.4vw, 28px);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  background: #fffdf5;
  box-shadow: 6px 6px 0 var(--ink);
}
.ts-call-k {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ts-call p {
  margin: 0;
  max-width: 70ch;
  font-size: var(--cs-body);
  line-height: 1.6;
  font-weight: 500;
  text-wrap: pretty;
}
.ts-call p b { padding: 0 4px; border-radius: 3px; background: var(--yellow); font-weight: 800; }
.ts-call p em { font-style: normal; font-weight: 700; }
