/* ============================================================
   DailyBloom IBS — Case Study page
   Extends style.css (shares :root, reset, nav, footer, grain,
   cursor, reveal helpers, reduced-motion).
   ============================================================ */

.case { background: var(--hero-bg); }
.case main { padding-top: 0; }

/* compat with V3.0 style.css: case hero uses its own line-reveal markup,
   and the V3 nav uses mix-blend — neutralise it on this dark page */
.case .nav { mix-blend-mode: normal; }
.chero .hero__line { display: block; overflow: hidden; }
.chero .hero__line > span { display: inline-block; will-change: transform; }
.hero__line--indent { padding-left: clamp(2rem, 12vw, 14rem); }
.hero__dot { font-style: normal; color: var(--accent); }

/* ---------- Reading progress ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 8500;
  background: transparent;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Case hero ---------- */
.chero {
  padding: calc(var(--pad) + 6rem) var(--pad) clamp(3rem, 7vh, 5rem);
  max-width: 1500px;
  margin: 0 auto;
}
.chero__eyebrow {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1rem, 3vh, 1.8rem);
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.chero__title {
  font-family: var(--font-bebas);
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 12rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;   /* match home hero + card titles (brightest tier) */
  font-feature-settings: "salt" 1;
}
/* long narrative headline (multi-line) */
.chero__title--long {
  font-size: clamp(2.4rem, 7vw, 6.6rem);
  line-height: 0.92;
}
.chero__title em { font-style: normal; color: var(--accent); }
.chero__lede {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  max-width: 34em;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.chero__lede strong { color: var(--ink); font-weight: 600; }

.chero__media {
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.chero__media img { width: 100%; height: auto; display: block; }

/* ---------- Meta grid ---------- */
.meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(2rem, 5vh, 3rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.meta__item {
  background: var(--bg);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.meta__item span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.meta__item strong { font-weight: 500; font-size: 0.98rem; }

/* ---------- Section scaffold ---------- */
.csection {
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  max-width: 1500px;
  margin: 0 auto;
}
.csection--alt { background: var(--bg-2); max-width: none; }
.csection--alt > * { max-width: 1500px; margin-left: auto; margin-right: auto; }

.clabel {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.clabel__n {
  font-family: var(--font-mono); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; color: var(--accent);
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.clabel h2 {
  font-family: var(--font-bebas);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.5rem);   /* home display scale (.shead__title family) */
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-feature-settings: "salt" 1;
}

.lead {
  font-family: var(--font-parkin);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  line-height: 1.34;
  max-width: none;   /* fill the section's content width */
}
.js .lead .w { opacity: 0.16; }

.micro {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.micro--mt { margin-top: clamp(2.5rem, 6vh, 4rem); }

.prose {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 38em;
}
.prose--center { margin: 0 auto; text-align: center; }
/* breathing room when supporting prose follows a lead statement */
.lead + .prose { margin-top: 2rem; }
.prose em, .lead em, .hmw em, .insight em { color: var(--ink); font-style: normal; }
.nda {
  margin-top: 1rem;
  font-family: var(--font-sign);
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.8;
}

.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.twocol--mt { margin-top: clamp(2rem, 5vh, 3rem); }
/* breathing room when a lead paragraph sits directly above a two-column row */
.lead + .twocol { margin-top: clamp(2.5rem, 6vh, 4rem); }

.goals { display: flex; flex-direction: column; gap: 0.9rem; }
.goals li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
  line-height: 1.5;
}
.goals li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.goals span { display: block; color: var(--ink); font-weight: 600; font-size: 1.02rem; }

/* ---------- Problem cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.pcard {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.csection:not(.csection--alt) .pcard { background: var(--bg-2); }
.pcard:hover { border-color: rgba(208,255,75,0.35); transform: translateY(-3px); }
.pcard__n {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 600; color: var(--accent);
}
.pcard h4 { font-size: 1.2rem; font-weight: 600; margin: 0.6rem 0 0.5rem; }
.pcard p { color: var(--muted); line-height: 1.55; }

/* ---------- HMW ---------- */
.hmw {
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(208,255,75,0.3);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(208,255,75,0.06), transparent 60%);
}
.hmw__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.9rem;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.hmw p {
  font-family: var(--font-parkin);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.35;
}

/* ---------- Constraints ---------- */
.constraints { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem 2rem; }
.constraints li {
  padding-left: 1.6rem; position: relative; color: var(--ink-2); line-height: 1.55;
}
.constraints li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ---------- Insight ---------- */
.insight {
  align-self: start;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.csection--alt .insight { background: var(--bg); }
.insight__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.insight p {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.45;
  font-family: var(--font-parkin);
  font-weight: 500;
}
.insight__then { margin-top: 1.1rem; font-size: 1rem !important; line-height: 1.6 !important; color: var(--muted); font-family: var(--font-body) !important; }

/* ---------- Phases ---------- */
.phases {
  list-style: none;   /* drop the default <ol> 1·2·3·4 markers (styled 01–04 stays) */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}
.phase {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  position: relative;
}
.csection--alt .phase { background: var(--bg); }
.phase__n {
  font-family: var(--font-bebas); font-weight: 400;
  font-size: 1.8rem; color: var(--accent);
  font-feature-settings: "salt" 1;
}
.phase h4 { font-size: 1.2rem; font-weight: 600; margin: 0.5rem 0; }
.phase p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Solution groups ---------- */
.group { margin-top: clamp(3rem, 8vh, 5.5rem); }
.group__head { max-width: 46em; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.group__fix {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-ink); background: var(--accent);
  padding: 0.45em 1em; border-radius: 8px; margin-bottom: 1rem;
}
.group__head h3 {
  font-family: var(--font-bebas); font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1; margin-bottom: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-feature-settings: "salt" 1;
}
.group__head p { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.65; }

/* ---------- Screen shots ---------- */
.shots { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.shots--4 { grid-template-columns: repeat(4, 1fr); }
.shots--3 { grid-template-columns: repeat(3, 1fr); }
.shot {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  aspect-ratio: 9 / 19;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), border-color 0.35s ease;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.shot:hover { transform: translateY(-6px); border-color: rgba(208,255,75,0.4); }
/* landscape shot spanning the full grid row */
.shot--wide { grid-column: 1 / -1; aspect-ratio: 1336 / 800; cursor: default; }
.shot--wide img { object-position: center; }

/* ---------- Edge cases ---------- */
.edge {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.edge--4 { grid-template-columns: repeat(4, 1fr); }
.ecard {
  padding: clamp(1.3rem, 2.5vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.ecard h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.ecard h4::before { content: "◆ "; color: var(--accent); }
.ecard p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- Outcomes ---------- */
.outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ostat { background: var(--bg-2); padding: clamp(1.6rem, 3vw, 2.5rem); }
.ostat__num {
  display: block;
  font-family: var(--font-bebas); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .9;
  color: var(--ink); font-variant-numeric: tabular-nums;   /* 30% — content */
  font-feature-settings: "salt" 1;
}
.ostat__num i { color: var(--accent); font-style: normal; } /* 10% — unit pops */
.ostat__word { font-size: clamp(1.6rem, 3vw, 2.4rem) !important; color: var(--ink); }
.ostat p { color: var(--muted); font-size: 0.92rem; margin-top: 0.7rem; line-height: 1.45; }

/* ---------- Problem viz (inline SVG chart) ---------- */
.pviz { margin-top: clamp(2.5rem, 6vh, 4rem); }
.pviz svg { width: 100%; height: auto; overflow: visible; }
.pviz__base { fill: none; stroke: var(--line-2); stroke-width: 1; }
.pviz__value,
.pviz__motiv { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.pviz__value { stroke: var(--accent); }
.pviz__motiv { stroke: var(--lav); stroke-dasharray: 7 6; }
.pviz__dotv { fill: var(--accent); }
.pviz__dotm { fill: var(--lav); }
.pviz__lbl {
  fill: var(--lav);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em;
}
.pviz__lbl--v { fill: var(--accent); }
.pviz__lbl--t { fill: var(--muted); }
.pviz figcaption {
  margin-top: clamp(1rem, 2.5vh, 1.5rem);
  font-family: var(--font-parkin);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.5; color: var(--muted); max-width: 48ch;
}

/* ---------- Missing-pieces row ---------- */
.missing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}
.miss {
  padding: clamp(1.4rem, 2.8vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.miss:hover { border-color: rgba(208, 245, 79, 0.35); transform: translateY(-3px); }
.miss__n {
  display: block;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.miss p {
  font-family: var(--font-parkin); font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.35;
}

/* ---------- Role chips ---------- */
.rolechips { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.prose--lg {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 30em;
}

/* ---------- Solution feature (copy + screens) ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(3rem, 8vh, 5.5rem);
}
.feature__n {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45em 1em; border-radius: 8px; margin-bottom: 1rem;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.feature__text h3 {
  font-family: var(--font-bebas); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1;   /* home card-title scale */
  text-transform: uppercase; letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.9rem;
  font-feature-settings: "salt" 1;
}
.feature__text > p {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  max-width: 38em;
}
.feature__why {
  margin-top: clamp(1.3rem, 3vh, 1.9rem);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(200, 245, 79, 0.045);
}
.feature__why > span {
  display: block;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.feature__why p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }

/* phone screens sit two-up beside the copy; .shot carries the 9/19 ratio,
   so this grid is what keeps it from stretching to the full column width */
.feature__shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.feature__shots--wide { grid-template-columns: 1fr; }

/* ---------- Outcome callout cell ---------- */
.ostat--hero {
  background: linear-gradient(150deg, rgba(200, 245, 79, 0.1), transparent 62%), var(--bg-2);
  display: flex; flex-direction: column; justify-content: center;
}
.ostat__tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.ostat--hero p {
  color: var(--ink); font-family: var(--font-parkin); font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.4; margin-top: 0;
}

/* ---------- Closing screens marquee (full-bleed, all app screens) ---------- */
.screens {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  /* break out of the section's side padding (edge-to-edge, no 100vw scrollbar overflow) */
  margin-inline: calc(-1 * var(--pad));
  overflow: hidden;
  /* fade screens in/out at the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.screens__track {
  display: flex; width: max-content;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  padding-inline: clamp(0.4rem, 1.6vw, 0.7rem);
  animation: screens-scroll 80s linear infinite;
  will-change: transform;
}
.screens:hover .screens__track { animation-play-state: paused; }  /* pause to look */
.screens__item {
  flex: 0 0 auto; margin: 0;
  width: clamp(150px, 17vw, 196px); aspect-ratio: 9 / 19;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
}
.screens__item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
/* two identical sets sit end-to-end; shifting one full set loops seamlessly */
@keyframes screens-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .screens__track { animation: none; }
  .screens { overflow-x: auto; }   /* let reduced-motion users scroll it by hand */
}

/* ---------- Hero KPI strip (metrics up front) ---------- */
.kpibar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.25rem, 5vh, 3.25rem);
  padding-top: clamp(1.6rem, 4vh, 2.4rem);
  border-top: 1px solid var(--line);
}
.kpibar > div { display: flex; flex-direction: column; gap: 0.4rem; }
.kpibar strong {
  font-family: var(--font-bebas); font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 0.85;
  color: var(--ink); font-variant-numeric: tabular-nums;
  font-feature-settings: "salt" 1;
}
.kpibar strong i { color: var(--accent); font-style: normal; }
.kpibar span {
  font-family: var(--font-parkin); color: var(--muted);
  font-size: clamp(0.85rem, 1.2vw, 0.98rem); line-height: 1.4; max-width: 22ch;
}

/* alternate which side the screens sit on (desktop only) */
.feature--rev .feature__text { order: 2; }
.feature--rev .feature__shots { order: 1; }
.feature--tight { margin-top: clamp(2rem, 5vh, 3rem); }

/* single phone screen sitting beside a block of copy */
.shot--solo { max-width: 300px; width: 100%; margin-inline: auto; align-self: start; }
.note-gap { margin-top: clamp(2rem, 5vh, 3rem); max-width: 46em; }

/* ---------- Strategic-bet lead-in ("the tension") ---------- */
.feature__text .feature__tension {
  color: var(--ink); font-family: var(--font-parkin); font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.5;
  max-width: 40em; margin-bottom: 1.1rem;
}
.feature__tension > span {
  display: inline-block; margin-right: 0.6rem; transform: translateY(-0.12em);
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); vertical-align: middle;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}

/* ---------- Reflection pull-quote (EB Garamond) ---------- */
.reflect {
  margin: 0 auto;
  max-width: 30em;
  font-family: var(--font-sign);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  font-feature-settings: "salt" 1;
}
.reflect em { color: var(--accent); font-style: inherit; }

/* centered closing note under a grid/list */
.note-center {
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  max-width: 34em;
  text-align: center;
  font-family: var(--font-parkin);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
}
.note-center em { color: var(--accent); font-style: normal; }

/* ---------- Next / CTA ---------- */
.cnext {
  text-align: center;
  padding: clamp(5rem, 13vh, 9rem) var(--pad);
  position: relative;
  overflow: hidden;
}
.cnext::before {
  content: ""; position: absolute; left: 50%; top: 55%;
  transform: translate(-50%,-50%);
  width: min(70vw, 720px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(208,255,75,0.07), transparent 65%);
  pointer-events: none;
}
.cnext__eyebrow {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.5rem;
  font-feature-settings: "ss01" 1, "ss02" 1, "ss04" 1, "ss08" 1;
}
.cnext__title a {
  display: inline-block;
  font-family: var(--font-bebas); font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 6rem); line-height: .95;
  letter-spacing: 0.01em; text-transform: uppercase;
  font-feature-settings: "salt" 1;
  transition: color 0.3s ease;
}
.cnext__title a:hover { color: var(--accent); }
.cnext__links {
  margin-top: clamp(2rem, 5vh, 3rem);
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  color: var(--muted);
}
.cnext__links a { transition: color 0.3s ease; border-bottom: 1px solid var(--line); padding-bottom: 0.15rem; }
.cnext__links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 9600;
  background: rgba(8,8,9,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 5vh, 4rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.lightbox--open { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
.lightbox img {
  max-width: min(94vw, 460px); max-height: 90vh;
  width: auto; height: auto;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.lightbox__close {
  position: absolute; top: clamp(1rem, 3vh, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--ink); font-size: 1.1rem;
}
.lightbox__close:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  /* four columns of metric/meta text get too narrow to read before 820px */
  .meta { grid-template-columns: repeat(2, 1fr); }
  .outcomes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .shots--4 { grid-template-columns: repeat(3, 1fr); }
  .edge--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: clamp(1.75rem, 4vh, 2.5rem); }
  .feature__shots { max-width: 520px; }
  .feature__shots--wide { max-width: none; }
  /* keep copy first when stacked, regardless of desktop reversal */
  .feature--rev .feature__text { order: 0; }
  .feature--rev .feature__shots { order: 0; }
  .twocol .shot--solo { max-width: 260px; }
}
@media (max-width: 820px) {
  .twocol { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .constraints { grid-template-columns: 1fr; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .shots--3, .shots--4 { grid-template-columns: repeat(2, 1fr); }
  .edge { grid-template-columns: 1fr; }
  .missing { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpibar { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
}
@media (max-width: 560px) {
  .meta { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .kpibar { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .phases { grid-template-columns: 1fr; }
}
