/* =========================================================
   BN Portfolio — Landing
   Visual language: humanist, nature-inspired, modern-natural.
   Flat white + ink. Color and texture come from real work, not decoration.
   ========================================================= */

/* Header/display face — PP Neue Montreal (self-hosted, licensed).
   Full family: Hairline 100, Light 300, TextBook 350, Regular 400,
   Semibold 600, Extrabold 800 — each with a matching italic. */
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-Hairline.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-HairlineItalic.woff2") format("woff2"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-TextBook.woff2") format("woff2"); font-weight: 350; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-TextBookItalic.woff2") format("woff2"); font-weight: 350; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-SemiboldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-Extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("assets/PPNeueMontreal-ExtraboldItalic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --paper:      #FFFFFF;
  --ink:        #1F1D1B;
  --ink-soft:   #5C564E;
  --ink-faint:  #6C665D;
  --line:       #E7E3DC;
  --terracotta: #C0764D;
  --sky-deep:   #5C84A3;

  --display: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --body:    "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --hand:    "Segoe Script", "Bradley Hand", "Snell Roundhand", "Brush Script MT", cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  padding-top: 4.5rem; /* clearance for the fixed floating nav */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, .footer__links a { cursor: none; }
}

/* =========================================================
   Navigation — floating "liquid glass" pill, centered at top.
   Hides on scroll down, returns on scroll up (see script.js).
   ========================================================= */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
  max-width: calc(100vw - 1.6rem);
  padding: 1.1rem 2.45rem;
  border-radius: 50px;
  /* Near-clear: lean on saturation + a whisper of contrast so the pill
     reads as "shiny glass" over whatever's behind it, light or dark,
     while staying almost fully see-through. */
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: saturate(190%) contrast(105%) blur(14px);
  backdrop-filter: saturate(190%) contrast(105%) blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px -16px rgba(31, 29, 27, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease),
              background 0.45s var(--ease), border-color 0.45s var(--ease);
}

/* scrolled-down state */
.nav--hidden {
  transform: translate(-50%, -170%);
  opacity: 0;
}

.nav__mark {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.45s var(--ease), text-shadow 0.45s var(--ease);
}

/* role label doesn't fit a compact pill */
.nav__title { display: none; }

.nav__links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}

.nav__links a:hover { color: var(--terracotta); }

.nav__links a.is-current {
  color: var(--ink);
  pointer-events: none;
}

/* Case-study side pills — same glass as the nav, flanking it left/right */
.cs-sidenav {
  position: fixed;
  top: 1.5rem;
  z-index: 100;
  padding: 0.85rem 1.4rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: saturate(190%) contrast(105%) blur(14px);
  backdrop-filter: saturate(190%) contrast(105%) blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px -16px rgba(31, 29, 27, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease),
              background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.cs-sidenav--left { left: clamp(1rem, 3vw, 2.5rem); }
.cs-sidenav--right { right: clamp(1rem, 3vw, 2.5rem); }
.cs-sidenav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.cs-sidenav a:hover { color: var(--terracotta); }
.cs-sidenav--hidden { transform: translateY(-180%); opacity: 0; }

/* Not enough room to flank the centre nav — drop the side pills */
@media (max-width: 1080px) {
  .cs-sidenav { display: none; }
}

/* =========================================================
   Hero — editorial, top-anchored, content-dense
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero__title em {
  font-style: normal;
  color: var(--sky-deep);
}

.hero--play {
  grid-template-columns: 1fr;
}

.hero__sub {
  margin-top: 1.4rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: var(--ink-soft);
}

/* Centered intro variant — single column, breathier vertical rhythm */
.hero--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  padding-block: clamp(3.5rem, 10vh, 7rem);
}
.hero--center .hero__intro { max-width: min(90vw, 60rem); }
.hero--center .hero__title { letter-spacing: -0.015em; text-wrap: balance; }

/* Shimmery gloss sweeping across the headline. The gradient tiles (repeat)
   with ink at both ends so there are never transparent gaps in the text —
   only the light band moves across. */
.hero__title--gloss {
  background-image: linear-gradient(
    105deg,
    var(--ink) 0 40%,
    #D8C4B4 50%,
    var(--ink) 60% 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;      /* rest state = solid ink (band off-screen) */
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* single sweep on page entry, then it holds on solid ink */
  animation: hero-gloss 2.6s ease-out 0.2s 1 both;
}
@keyframes hero-gloss {
  0%   { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

/* Small, quiet "currently" line under the intro */
.hero__now {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}
.hero__now::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-deep);
  animation: hero-pulse 2.6s ease-out infinite;
}
@keyframes hero-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(92, 132, 163, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(92, 132, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 132, 163, 0); }
}

.timeline {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.timeline__col--year { width: 3.5rem; }
.timeline__col--org  { width: 42%; }

.timeline td {
  padding: 0.7rem 0.5rem;
  font-size: 0.88rem;
  line-height: 1.4;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.timeline tr:first-child td { padding-top: 0; }

.timeline__year {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.timeline__org {
  font-weight: 400;
  color: var(--ink);
}

.timeline__role {
  color: var(--ink-soft);
  text-align: left;
}

/* =========================================================
   Work — real imagery carries color & texture
   ========================================================= */
.work {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.6rem, 5vw, 4rem);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 600px) {
  .work__grid { grid-template-columns: 1fr; }
}

.project {
  display: block;
  text-decoration: none;
  cursor: none;
}

.project__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.project:hover .project__media {
  transform: scale(1.015);
  filter: saturate(1.08);
}

.project__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__media::after {
  content: "";
  position: absolute;
  inset: -12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.3) 38%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.3) 62%,
    rgba(255, 255, 255, 0) 85%
  );
  background-size: 220% 220%;
  background-position: 140% 140%;
  background-repeat: no-repeat;
  filter: blur(4px);
  opacity: 0;
  transition: background-position 1.3s linear, opacity 0.2s linear;
}

.project:hover .project__media::after {
  opacity: 1;
  background-position: -40% -40%;
}

.project__caption {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

/* Title — now a small muted label above the sentence */
.project__title {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* One-sentence description — the most prominent line: what I did */
.project__desc {
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

/* Tags — dot-separated, quiet, below the sentence */
.project__tags {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* =========================================================
   Play — category bar: hover a word, the page fills with
   that category's work below; selection persists until the
   next hover.
   ========================================================= */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.6rem, 5vw, 4rem) clamp(2.2rem, 5vw, 3.4rem);
  border-bottom: 1px solid var(--line);
}

.category-bar__item {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-weight: 300;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-faint);
  cursor: none;
  transition: color 0.5s var(--ease);
}

.category-bar__item.is-active {
  color: var(--ink);
}

.category-bar__item:hover {
  color: var(--ink);
}

.category-display {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.6rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
}

.category-panel {
  display: none;
}

.category-panel.is-active {
  display: block;
  animation: panel-in 0.6s var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.category-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (max-width: 640px) {
  .category-panel__grid { grid-template-columns: 1fr; }
}

.category-piece {
  display: block;
  cursor: none;
}

.category-panel__empty {
  color: var(--ink-faint);
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.category-panel__note {
  font-size: 0.95rem;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

/* =========================================================
   Design groups — Graphic Design page
   ========================================================= */
.design-group + .design-group {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}

.design-group__label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.design-solo {
  display: block;
  width: 100%;
  max-width: 420px;
  border-radius: 3px;
}

.design-solo--wide {
  max-width: 100%;
}

.category-piece__media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .category-panel.is-active { animation: none; }
}

/* =========================================================
   Gallery — masonry grid for individual Play category pages
   ========================================================= */
.gallery-page {
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.6rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
}

.gallery-page .stub__back { display: block; }
.gallery-page .stub__title { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }

.gallery,
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.video-grid {
  grid-template-columns: repeat(2, 1fr);
}

.gallery__col,
.video-grid__col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.gallery__item {
  display: block;
  width: 100%;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery,
  .video-grid { grid-template-columns: 1fr; }
}

.video-tile {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line);
  cursor: none;
}

.video-tile__video {
  display: block;
  width: 100%;
  height: auto;
}

.video-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.video-tile__title {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  z-index: 3;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* Mute toggle — lower-right corner, above the click overlay */
.video-tile__mute {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(31, 29, 27, 0.5);
  backdrop-filter: blur(4px);
  cursor: none;
  opacity: 0.85;
  transition: background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.video-tile__mute:hover { background: rgba(31, 29, 27, 0.78); opacity: 1; }
.video-tile__mute svg { width: 17px; height: 17px; }

/* icon swap: muted by default, volume-on when unmuted */
.video-tile__icon-on { display: none; }
.video-tile__mute.is-unmuted .video-tile__icon-muted { display: none; }
.video-tile__mute.is-unmuted .video-tile__icon-on { display: block; }
.video-tile__mute.is-unmuted { background: var(--terracotta); opacity: 1; }

/* =========================================================
   Stub — placeholder pages for individual Play categories
   ========================================================= */
.stub {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
}

.stub__back {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-decoration: none;
  margin-bottom: 1.4rem;
  transition: color 0.4s var(--ease);
}

.stub__back:hover { color: var(--terracotta); }

.stub__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--ink);
}

.stub__sub {
  margin-top: 1rem;
  color: var(--ink-faint);
}

/* =========================================================
   Footer — minimal, nothing after work
   ========================================================= */
.footer {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.6rem, 5vw, 4rem) 2.4rem;
  /* Silvery frosted-glass base — very pale, cool, washed white. */
  background: rgba(247, 249, 250, 0.72);
  border-top: 2px solid rgba(206, 218, 220, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  isolation: isolate;
}

/* Orb field — large, spread, pale green + blue orbs, drifting very slowly.
   Heavily blurred here, then frosted again by ::after, so no distinct orb
   is visible — only a faint, shifting colored cast behind the glass. */
.footer::before {
  content: "";
  position: absolute;
  inset: -80%;
  z-index: -2;
  background:
    radial-gradient(32% 46% at 16% 64%, rgba(178, 214, 190, 0.55), transparent 66%),
    radial-gradient(34% 48% at 46% 30%, rgba(186, 208, 228, 0.5), transparent 66%),
    radial-gradient(30% 44% at 74% 72%, rgba(190, 216, 200, 0.5), transparent 66%),
    radial-gradient(34% 46% at 92% 40%, rgba(184, 206, 226, 0.5), transparent 66%);
  background-repeat: no-repeat;
  filter: blur(55px);
  animation: footerDrift 60s ease-in-out infinite alternate;
}

/* Frosted glass — a pale translucent panel that blurs the orbs beneath it,
   so their color diffuses into a soft, glassy wash. */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  backdrop-filter: blur(24px) saturate(115%);
}

@keyframes footerDrift {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1.05) rotate(0deg); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.12) rotate(3deg); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.06) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .footer::before { animation: none; }
}

.footer__credit {
  font-size: 0.8rem;
  font-weight: 350;
  color: rgba(104, 122, 128, 0.72);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.8rem;
  font-weight: 350;
  color: rgba(78, 96, 104, 0.92);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

.footer__links a:hover { color: #6E9AA0; }

/* =========================================================
   Custom cursor — a glassy brown eye that follows the pointer,
   blinks on its own and on click, and (over project work)
   unfolds a "Read more" pill it glances toward.
   ========================================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  margin: -13px 0 0 -16px; /* centre the 32×26 eye on the pointer */
  pointer-events: none;
  z-index: 999;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cursor.is-active { opacity: 1; }

/* The eyeball — glassy translucent sclera that refracts the page */
.cursor__eye {
  position: relative;
  width: 32px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  transform-origin: center;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(2px) saturate(160%) brightness(1.04);
  backdrop-filter: blur(2px) saturate(160%) brightness(1.04);
  /* Warm brown rim + soft ring so the eye reads on a white page */
  border: 1.5px solid rgba(74, 53, 36, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.85),
    inset 0 -3px 6px rgba(120, 100, 84, 0.3),
    0 3px 10px -3px rgba(31, 29, 27, 0.35);
}


/* Brown iris + pupil; glances toward the label on hover */
.cursor__iris {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%,
      #A9743F 0%, #7A5230 45%, #5A3C22 78%, #3E2A18 100%);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease);
}
.cursor__pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6.5px;
  height: 6.5px;
  margin: -3.25px 0 0 -3.25px;
  border-radius: 50%;
  background: #20140B;
}
/* Wet specular glint sitting over the iris */
.cursor__glint {
  position: absolute;
  top: 22%;
  left: 30%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), transparent 70%);
  pointer-events: none;
}

/* Blink — squash the eye shut for a beat */
.cursor__eye.is-blinking { animation: eyeBlink 0.22s var(--ease); }
@keyframes eyeBlink {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.08); }
}

/* "Read more" pill — unfolds from behind the eye to one side */
.cursor__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 7px);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  white-space: nowrap;
  padding: 0.34rem 0.62rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4A3524;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  backdrop-filter: blur(6px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  box-shadow: 0 4px 14px -6px rgba(31, 29, 27, 0.3);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
/* Unfold to the left when the pointer is near the right edge */
.cursor.look-left .cursor__label {
  left: auto;
  right: calc(100% + 7px);
  transform-origin: right center;
}

/* Hover over work: reveal the pill, and glance toward it */
.cursor.is-hovering .cursor__label { opacity: 1; transform: translateY(-50%) scaleX(1); }
.cursor.is-hovering .cursor__iris { transform: translateX(3px); }
.cursor.look-left.is-hovering .cursor__iris { transform: translateX(-3px); }

/* "Treat" state — over a for-fun photo the eye becomes a dark-brown caption bubble */
.cursor.is-treat .cursor__eye { opacity: 0; transform: scale(0.3); }
.cursor.is-treat .cursor__label {
  left: 8px; right: auto;
  opacity: 1; transform: translateY(-50%) scaleX(1); transform-origin: left center;
  background: #3E2A18; color: #FFF6EE; border: 0;
  text-transform: none; letter-spacing: 0.005em; font-weight: 600; font-size: 0.74rem;
  border-radius: 14px; padding: 0.42rem 0.72rem;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 8px 20px -8px rgba(31, 29, 27, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .cursor__eye.is-blinking { animation: none; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* =========================================================
   Glitter — a little sparkle when you click on empty space
   ========================================================= */
.glitter {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  pointer-events: none;
  z-index: 998;
  animation: glitter-fall var(--fall-duration, 0.9s) var(--ease) forwards;
}

@keyframes glitter-fall {
  0% {
    opacity: 1;
    transform: translate(var(--x0, 0px), var(--y0, 0px)) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x1, 0px), var(--y1, 40px)) rotate(var(--spin, 180deg)) scale(0.4);
  }
}

/* =========================================================
   Reveal animation — slow, breathy entrance
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .timeline__role { text-align: left; }
  .nav__title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: 0.3s; transform: none; }
  .hero__title--gloss { animation: none; -webkit-text-fill-color: var(--ink); color: var(--ink); }
  .hero__now::before { animation: none; }
}

/* =========================================================
   About — interactive node map
   ========================================================= */
.amap { max-width: 84rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.amap__header {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}
.amap__header em { font-style: italic; }
/* Letter-by-letter shimmer reveal */
.amap__w { display: inline-block; }
.amap__header--anim .amap__ch {
  display: inline-block;
  opacity: 0;
  --end: var(--ink);
  animation: chShimmer 0.62s var(--ease) both;
  animation-delay: var(--d, 0s);
}
.amap__header--anim .amap__ch--accent { --end: var(--ink-soft); }
@keyframes chShimmer {
  0%   { opacity: 0; transform: translateY(0.14em); filter: blur(5px); color: #A7C6D8; }
  55%  { opacity: 1; filter: blur(0); color: #5C84A3; text-shadow: 0 0 12px rgba(92, 132, 163, 0.55); }
  100% { opacity: 1; transform: none; color: var(--end); text-shadow: none; }
}
/* Gentle reveal of the note + headshot after the headline finishes */
.amap__late { opacity: 0; animation: gentleIn 0.9s var(--ease) both; animation-delay: var(--rd, 0s); }
@keyframes gentleIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .amap__header--anim .amap__ch { animation: none; opacity: 1; color: var(--end); }
  .amap__late { animation: none; opacity: 1; }
}
.amap__arrow { color: var(--terracotta); white-space: nowrap; }
/* Central motif as a handwritten, signed note */
.amap__note {
  padding-left: clamp(0.8rem, 2vw, 1.2rem);
  border-left: 2px solid var(--terracotta);
}
.amap__lead {
  font-family: var(--body);
  font-weight: 300;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}
.amap__sign {
  font-family: var(--display);
  font-weight: 400;
  margin-top: 0.7rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--terracotta);
}
.amap__intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}
.amap__headshot {
  width: clamp(12rem, 28vw, 21rem);
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 40px -26px rgba(31, 29, 27, 0.4);
}
@media (max-width: 640px) {
  .amap__intro { grid-template-columns: 1fr; }
  .amap__headshot { width: clamp(9rem, 44vw, 13rem); order: -1; }
}


/* =========================================================
   CASE STUDY — long-form project pages
   Same visual language as the rest of the site: paper + ink,
   Playfair for display, Mulish for body, hairline dividers,
   terracotta + sky used sparingly as accents.
   ========================================================= */

/* Sticky top bar variant of the shared nav */
/* .nav--sticky is now redundant — the base .nav is a fixed floating pill. */

/* Section rhythm: full-bleed hairline + a constrained reading column */
.cs-section {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4rem);
}

.cs-wrap {
  max-width: 880px;
  margin-inline: auto;
}

/* Text shares the column width with callouts/figures so every left and
   right edge lines up — no paragraph ending short of the block below it. */
.cs-measure { max-width: none; }

.cs-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.cs-h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.cs-body {
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.cs-body + .cs-body { margin-top: 1rem; }

/* ---- 1. Hero ---- */
.cs-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
/* Soft aqua/sage wash echoing Sage's calming brand — sets the tone. */
.cs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 60% at 88% 18%, rgba(120, 180, 172, 0.22), transparent 70%),
    radial-gradient(40% 62% at 72% 90%, rgba(150, 190, 168, 0.2), transparent 72%),
    radial-gradient(34% 54% at 100% 60%, rgba(140, 172, 200, 0.16), transparent 74%);
  pointer-events: none;
}

.cs-hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1.1rem;
}

.cs-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* Quick-facts grid — hairline cells, like a spec sheet */
.cs-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.cs-fact {
  background: var(--paper);
  padding: 1rem 1.1rem;
}
.cs-fact--wide { grid-column: 1 / -1; }

.cs-fact__k {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cs-fact__v {
  margin-top: 0.3rem;
  color: var(--ink);
  font-size: 0.95rem;
}

/* Outline pill button */
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.cs-btn:hover { background: var(--ink); color: var(--paper); }

/* ---- 2. The Tension — pull-out callout ---- */
.cs-callout {
  display: flex;
  gap: 1rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terracotta);
  border-radius: 3px;
  background: #FCFAF7;
}
.cs-callout__icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--terracotta);
}
.cs-callout__icon svg { width: 100%; height: 100%; }
.cs-callout__label {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}
.cs-callout__text {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ---- 3. Methodology ---- */
.cs-phases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.cs-phase {
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease),
              border-color 0.5s var(--ease);
}
.cs-phase:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 132, 163, 0.4);
  box-shadow: 0 18px 40px -28px rgba(31, 29, 27, 0.45);
}
.cs-phase__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sky-deep);
  background: rgba(92, 132, 163, 0.1);
  border-radius: 50px;
  margin-bottom: 0.9rem;
}
.cs-phase__h {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* Technical Edge / code block */
.cs-tech {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cs-tech__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  background: #FBFAF8;
  border-bottom: 1px solid var(--line);
}
.cs-tech__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
}
.cs-tech__label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cs-tech__note {
  padding: 1rem 1.1rem 0;
  color: var(--ink-faint);
  font-size: 0.92rem;
}
.cs-code {
  margin: 1rem 1.1rem 1.2rem;
  background: var(--ink);
  color: #E7E3DC;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 5px;
  overflow-x: auto;
}
.cs-code .tok-com { color: #8C8377; font-style: italic; }
.cs-code .tok-key { color: #C9926B; }
.cs-code .tok-str { color: #8FB0C6; }
.cs-code .tok-fn  { color: #E7D8C4; }
.cs-code .tok-num { color: #C9926B; }

/* ---- 4. Key Insights ---- */
.cs-insights {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 2rem;
}
.cs-insight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.cs-insight:hover {
  box-shadow: 0 18px 40px -26px rgba(31, 29, 27, 0.28);
  transform: translateY(-2px);
}
.cs-insight__h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.cs-quote {
  margin-top: 1.2rem;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid var(--sky-deep);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.cs-quote__cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Elevated visual placeholders (charts, screenshots) */
.cs-figure,
.cs-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #FAF8F5;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 30px -24px rgba(31, 29, 27, 0.4);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.cs-figure {
  aspect-ratio: 4 / 3;
  margin: 0;
}
.cs-figure:hover,
.cs-shot:hover {
  box-shadow: 0 20px 44px -22px rgba(31, 29, 27, 0.45);
  transform: translateY(-3px);
}

/* ---- 5. Applied Outcome ---- */
.cs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2rem;
}
.cs-compare__col { margin: 0; }
.cs-compare__label {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}
.cs-shot {
  aspect-ratio: 16 / 10;
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.cs-metric {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}
.cs-metric__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--terracotta);
}
.cs-metric__label {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- 6. Reflection ---- */
.cs-reflect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 1.5rem;
}
.cs-reflect__h {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

/* ---- Image placeholder (holds an upload note until real art arrives) ---- */
.cs-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(180px, 26vw, 300px);
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  padding: 1.5rem;
  color: #4E7168;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  /* Soft on-brand aqua/sage wash instead of dead beige. */
  background:
    radial-gradient(58% 78% at 26% 22%, rgba(120, 190, 176, 0.22), transparent 70%),
    radial-gradient(60% 80% at 82% 86%, rgba(138, 176, 208, 0.2), transparent 72%),
    radial-gradient(50% 64% at 60% 40%, rgba(168, 204, 180, 0.16), transparent 74%),
    #F4F8F6;
  border: 1.5px dashed rgba(110, 158, 148, 0.5);
  border-radius: 10px;
}
.cs-ph span { max-width: 46ch; }

/* Real artifact image (replaces a placeholder once uploaded) */
.cs-figimg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px -24px rgba(31, 29, 27, 0.4);
}

/* Two artifacts side by side */
.cs-figrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: start;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}
.cs-figrow .cs-figimg { margin-top: 0; }
@media (max-width: 640px) {
  .cs-figrow { grid-template-columns: 1fr; }
}

/* ---- Editorial "to fill later" note for placeholder copy ---- */
.cs-note {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  color: var(--ink-faint);
  background: #FAF8F5;
  border-left: 2px solid var(--sky-deep);
  border-radius: 0 4px 4px 0;
}

/* ---- Single highlighted stat (e.g. a key quantitative finding) ---- */
.cs-stat {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #FAF8F5;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cs-stat__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1;
  color: var(--terracotta);
}
.cs-stat__label {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 40ch;
}

/* ---- Floating section navigator (left rail) ---- */
.cs-toc {
  position: fixed;
  top: 50%;
  left: clamp(0.8rem, 2vw, 1.9rem);
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cs-toc__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.2;
  max-width: 11rem;
  transition: color 0.4s var(--ease);
}
.cs-toc__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  background: transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.4s var(--ease);
}
.cs-toc__link:hover { color: var(--ink); }
.cs-toc__link:hover .cs-toc__dot { border-color: var(--ink); }
.cs-toc__link.is-active { color: var(--ink); font-weight: 600; }
.cs-toc__link.is-active .cs-toc__dot {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: scale(1.2);
}

/* Anchor offset so the fixed pill nav never covers a section heading */
.cs-anchor { scroll-margin-top: 6.5rem; }

/* The rail lives in the left gutter; the narrow reading column stays
   centred in the viewport and clears it on its own. */
@media (max-width: 1199px) {
  .cs-toc { display: none; }
}

/* =========================================================
   Case-study color pass (scoped to .cs pages) — bring Sage's
   blue/green throughout so the long read isn't flat white.
   ========================================================= */
/* Alternating tinted section bands for rhythm */
body.cs .cs-section:nth-of-type(even) {
  background: linear-gradient(180deg, #F3F8F6 0%, #F7FAF9 100%);
}
body.cs .cs-section:nth-of-type(odd) {
  background: linear-gradient(180deg, #FCFBF9 0%, #FFFFFF 100%);
}

/* Section eyebrow ("Phase 1") in a deep, accessible teal */
body.cs .cs-eyebrow { color: #3E6E76; }

/* Subheads get a small colored accent bar */
body.cs .cs-reflect__h {
  padding-left: 0.85rem;
  border-left: 3px solid var(--sky-deep);
  line-height: 1.35;
}

/* Vary the phase-number chips so the cards aren't monochrome */
body.cs .cs-phase:nth-child(3n+2) .cs-phase__num {
  color: #3C8C7E;
  background: rgba(74, 148, 136, 0.12);
}
body.cs .cs-phase:nth-child(3n+3) .cs-phase__num {
  color: var(--terracotta);
  background: rgba(192, 118, 77, 0.12);
}

/* Tint the highlighted stat so the big number sits on brand color */
body.cs .cs-stat {
  background:
    radial-gradient(70% 120% at 12% 30%, rgba(120, 190, 176, 0.18), transparent 70%),
    #F5F9F7;
  border-color: rgba(110, 158, 148, 0.4);
}

/* A touch more presence in the hero wash */
body.cs .cs-hero::before { opacity: 1; }

/* =========================================================
   Long-form case-study components (Sage and future studies)
   ========================================================= */
/* Section deck — the guiding question / revelation under a heading */
.cs-lead {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

/* Small caption chip (e.g. sample-size labels) */
.cs-label {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.32rem 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #F5F8F6;
  border: 1px solid var(--line);
  border-radius: 50px;
}

/* Italic artifact caption */
.cs-caption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-faint);
}

/* Methodological aside / pull-quote */
.cs-aside {
  margin-top: 1.4rem;
  padding: 1.2rem 1.4rem;
  background: #FAF9F7;
  border-left: 3px solid var(--sky-deep);
  border-radius: 0 6px 6px 0;
  color: var(--ink-soft);
}
.cs-aside strong { color: var(--ink); }
.cs-aside p + p { margin-top: 0.8rem; }

/* Finding block — stacked, full width */
.cs-finding {
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  background: #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cs-finding__h {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.cs-finding .cs-body + .cs-body { margin-top: 0.6rem; }
.cs-finding__impl {
  margin-top: 0.7rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Highlighted key insight */
.cs-key {
  margin-top: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    radial-gradient(70% 130% at 10% 20%, rgba(120, 190, 176, 0.16), transparent 70%),
    #F2F8F6;
  border: 1px solid rgba(110, 158, 148, 0.45);
  border-radius: 12px;
}
.cs-key__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #3C8C7E;
  margin-bottom: 0.5rem;
}
.cs-key__h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

/* Big centered stat (e.g. "8 of 14") */
.cs-bigstat {
  text-align: center;
  margin-top: 1.6rem;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background:
    radial-gradient(80% 130% at 50% 0%, rgba(120, 190, 176, 0.15), transparent 72%),
    #F5F9F7;
  border: 1px solid rgba(110, 158, 148, 0.4);
  border-radius: 12px;
}
.cs-bigstat__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--terracotta);
}
.cs-bigstat__text {
  margin-top: 0.9rem;
  font-size: 1.08rem;
  color: var(--ink);
}
.cs-bigstat__sub {
  margin-top: 0.35rem;
  font-style: italic;
  color: var(--ink-faint);
}

/* Comparison table */
.cs-tablewrap { overflow-x: auto; margin-top: 1.4rem; }
.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.cs-table th,
.cs-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cs-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.cs-table tbody td { color: var(--ink-soft); }
.cs-table tbody td:first-child { font-weight: 600; color: var(--ink); }

/* Simple bulleted / numbered lists in the reading column */
.cs-list { margin-top: 0.7rem; padding-left: 1.2rem; color: var(--ink-soft); }
.cs-list li { margin-bottom: 0.4rem; }
.cs-list li::marker { color: var(--sky-deep); }

/* =========================================================
   Readability refactor (scoped to .cs case-study pages):
   contrast, heading weight, measure, density, alignment.
   ========================================================= */
/* 1 — High-contrast reading text */
body.cs .cs-body,
body.cs .cs-list,
body.cs .cs-aside,
body.cs .cs-bigstat__text,
body.cs .cs-table tbody td { color: #1E2022; }
body.cs .cs-finding__impl { color: #33393C; }
body.cs .cs-caption { color: #43484B; }

/* Bold integrates via weight, not an extreme colour jump */
body.cs strong { color: inherit; font-weight: 600; }

/* Eyebrows / labels dark enough for AAA on light backgrounds */
body.cs .cs-eyebrow,
body.cs .cs-label { color: #26302F; }

/* 2 — Give headings real weight so they never render thin/broken */
body.cs .cs-hero__title,
body.cs .cs-h2,
body.cs .cs-lead,
body.cs .cs-key__h { font-weight: 400; color: var(--ink); }
body.cs .cs-h2 { line-height: 1.2; }

/* Sidebar links: readable dark, clear active state */
body.cs .cs-toc__link { color: #43484B; }
body.cs .cs-toc__link.is-active { color: #1E2022; }

/* 3 — Comfortable reading measure (~70ch), consistent left padding */
body.cs .cs-wrap { max-width: 46rem; }

/* Density: trim vertical section padding ~18% */
body.cs .cs-hero,
body.cs .cs-section {
  padding-top: clamp(2.4rem, 5.6vw, 4.4rem);
  padding-bottom: clamp(2.4rem, 5.6vw, 4.4rem);
}

/* Anchor the left rail to the top of the content, not the viewport centre */
.cs-toc { top: 8.5rem; transform: none; }

/* ---- Case study responsive ---- */
@media (max-width: 760px) {
  .cs-summary,
  .cs-phases,
  .cs-insight,
  .cs-compare,
  .cs-reflect { grid-template-columns: 1fr; }
  .cs-metrics { grid-template-columns: 1fr; }
}

/* =========================================================
   ABOUT — bio page (reuses the case-study long-form styles)
   ========================================================= */
.about-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.6rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.about__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0.9rem 0 1.3rem;
}

.about-intro .cs-body + .cs-body { margin-top: 1rem; }

/* Portrait — elevated, rounded, matches the site's media treatment */
.about__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 22px 50px -30px rgba(31, 29, 27, 0.5);
}

.about__portrait--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #FAF8F5;
  border: 1px solid var(--line);
}

/* Approach — three principles */
.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}
.about-principle__h {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* Background — hairline fact rows */
.about-facts {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.about-fact {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.about-fact__k {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.about-fact__v { color: var(--ink); }

@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; }
  .about__portrait { grid-row: 1; max-width: 320px; }
  .about-principles { grid-template-columns: 1fr; }
  .about-fact { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* =========================================================
   5-Whys vertical timeline (Who's Walking Who case study)
   ========================================================= */
.ww-whys {
  margin: 1.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 1.15rem;
}
.ww-why { position: relative; }
.ww-why::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 1px);
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--paper);
}
.ww-why__k {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.ww-why__t {
  margin-top: 0.15rem;
  color: var(--ink-soft);
}

/* Hypothesis reversal cards — Assumption (before) vs. Field Reality (after) */
.ww-reversals { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.ww-reversal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.ww-reversal__side { padding: 1.4rem 1.5rem; }
.ww-reversal__before { background: rgba(31, 29, 27, 0.035); }
.ww-reversal__after {
  background: rgba(192, 118, 77, 0.07);
  border-left: 1px solid var(--line);
}
.ww-reversal__k {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.ww-reversal__before .ww-reversal__k { color: var(--ink-faint); }
.ww-reversal__after .ww-reversal__k { color: var(--terracotta); }
.ww-reversal__t { color: var(--ink-soft); }
.ww-reversal__after .ww-reversal__t { color: var(--ink); }

@media (max-width: 720px) {
  .ww-reversal { grid-template-columns: 1fr; }
  .ww-reversal__after { border-left: 0; border-top: 1px solid var(--line); }
}

/* Finding split — Raw Data & Evidence vs. shaded Researcher Synthesis */
.ww-find {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.2rem;
}
.ww-find__raw,
.ww-find__synth { padding: 1.5rem; }
.ww-find__synth {
  background: rgba(31, 29, 27, 0.04);
  border-left: 1px solid var(--line);
}
.ww-find__k {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}
.ww-find__synth .ww-find__k { color: var(--terracotta); }
.ww-find__take {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.ww-find .cs-quote { margin-top: 0.9rem; }

@media (max-width: 720px) {
  .ww-find { grid-template-columns: 1fr; }
  .ww-find__synth { border-left: 0; border-top: 1px solid var(--line); }
}

/* =========================================================
   Animated process flow (iFind — FIND coaching workflow)
   ========================================================= */
.cs-flow-fig { margin: 1.6rem 0 0; }
.cs-flow {
  --cycle: 5.6s;                 /* full loop length (scales with step count) */
  --accent: var(--terracotta);   /* highlight colour for the active stage */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 1.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(150% 130% at 50% -10%, rgba(92, 132, 163, 0.07), transparent 55%),
    var(--paper);
}
.cs-flow__stage {
  flex: 1 1 130px;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.3rem;
}
.cs-flow__ring {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.6px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  animation: cs-flow-glow var(--cycle) var(--ease) infinite;
  animation-delay: calc(var(--s) * 1.4s);
}
.cs-flow__ring svg { width: 27px; height: 27px; }
.cs-flow__label { font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--ink); line-height: 1.2; }
.cs-flow__sub { font-size: 0.75rem; color: var(--ink-faint); }

.cs-flow__link {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 33px;              /* centre on the 66px ring */
  width: clamp(16px, 3.5vw, 46px);
  height: 2px;
  background: var(--line);
}
.cs-flow__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: cs-flow-dot var(--cycle) linear infinite;
  animation-delay: calc(var(--s) * 1.4s);
}

@keyframes cs-flow-glow {
  0%, 100% { border-color: var(--line); color: var(--ink-soft); box-shadow: none; }
  8%       { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(31, 29, 27, 0.05); }
  20%      { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 0 rgba(31, 29, 27, 0); }
  30%      { border-color: var(--line); color: var(--ink-soft); }
}
@keyframes cs-flow-dot {
  0%, 22%  { left: 0; opacity: 0; }
  27%      { opacity: 1; }
  40%      { left: 100%; opacity: 1; }
  46%, 100% { left: 100%; opacity: 0; }
}

@media (max-width: 640px) {
  .cs-flow { flex-direction: column; align-items: center; }
  .cs-flow__stage { max-width: none; }
  .cs-flow__link { align-self: center; margin-top: 0; width: 2px; height: 22px; }
  .cs-flow__dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-flow__ring { animation: none; }
  .cs-flow__dot { display: none; }
}

/* Before/after comparison of two flows (iFind efficiency) */
.cs-flowc { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.cs-flowc__row {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.4rem 0.6rem 1rem;
  background:
    radial-gradient(150% 130% at 50% -10%, rgba(92, 132, 163, 0.06), transparent 55%),
    var(--paper);
}
.cs-flowc__row .cs-flow { border: none; background: none; padding: 1rem 0.6rem 0; }
.cs-flowc__tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 0.6rem 0;
}
.cs-flowc__row--before { --accent: var(--sky-deep); }
.cs-flowc__row--before .cs-flowc__tag { color: var(--ink-faint); }
.cs-flowc__row--before .cs-flow { --cycle: 5.6s; }        /* 4 steps */
.cs-flowc__row--after { --accent: var(--terracotta); border-color: rgba(192, 118, 77, 0.4); }
.cs-flowc__row--after .cs-flowc__tag { color: var(--terracotta); }
.cs-flowc__row--after .cs-flow { --cycle: 4.2s; }         /* 3 steps — visibly tighter */

/* =========================================================
   Case-study composition helpers (iFind rhythm redesign)
   Layout only — reuses existing tokens, type, and colors.
   ========================================================= */
/* Wide feature that breaks out of the reading column */
.cs-feature { max-width: min(1180px, 94vw); margin: clamp(1.8rem, 4vw, 2.8rem) auto 0; }
.cs-feature__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #EFE9E1;
  box-shadow: 0 34px 66px -44px rgba(31, 29, 27, 0.45);
}
.cs-feature__frame img { display: block; width: 100%; height: auto; }
.cs-feature .cs-caption { text-align: center; margin-top: 0.9rem; }

/* "Interface recreation" chip */
.cs-reclabel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
}
.cs-reclabel::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
.cs-feature__label { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; }

/* Lighter two-column definition list (replaces stacks of equal cards) */
.cs-defs { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2.6rem; }
.cs-defs__item { border-top: 1px solid var(--line); padding-top: 0.85rem; }
.cs-defs__k { font-family: var(--display); font-weight: 600; color: var(--ink); }
.cs-defs__v { margin-top: 0.25rem; color: var(--ink-soft); font-size: 0.96rem; }

/* Vertical numbered timeline (research process) */
.cs-timeline { position: relative; margin: 1.8rem 0 0; padding: 0 0 0 3.4rem; list-style: none; display: grid; gap: 1.7rem; }
.cs-timeline::before { content: ""; position: absolute; left: 1.1rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--line); }
.cs-tl { position: relative; }
.cs-tl__num {
  position: absolute;
  left: -3.4rem;
  top: -0.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.6px solid var(--terracotta);
  background: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--terracotta);
}
.cs-tl__h { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.cs-tl__b { margin-top: 0.3rem; color: var(--ink-soft); }

/* Constrained-but-wider band for asymmetric content */
.cs-wide { max-width: min(1040px, 92vw); margin-inline: auto; }

/* Asymmetric text + response (insights) */
.cs-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.4rem, 3vw, 2.8rem); align-items: center; }
.cs-split + .cs-split { margin-top: clamp(2.2rem, 5vw, 3.6rem); }
.cs-split__num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--line);
  margin-bottom: 0.4rem;
}
.cs-split__h { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
.cs-split__text .cs-body { margin-top: 0.6rem; }
.cs-change {
  background: rgba(92, 132, 163, 0.08);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.cs-change__k {
  font-family: var(--display); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 0.5rem;
}
.cs-change__t { color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.cs-split--flip .cs-split__text { order: 2; }

/* Oversized metric focal moment */
.cs-metric { text-align: center; max-width: 900px; margin: clamp(2rem, 5vw, 3.4rem) auto 0; }
.cs-metric__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cs-metric__num .cs-metric__arrow { color: var(--terracotta); font-weight: 300; }
.cs-metric__text { margin: 0.8rem auto 0; max-width: 34ch; font-size: 1.05rem; color: var(--ink-soft); }

@media (max-width: 760px) {
  .cs-defs { grid-template-columns: 1fr; }
  .cs-split { grid-template-columns: 1fr; }
  .cs-split--flip .cs-split__text { order: 0; }
}

/* Keep wide breakouts clear of the fixed side rails (TOC ≥1200px, pills ≥1081px) */
@media (min-width: 1081px) {
  .cs-feature, .cs-wide { max-width: min(1040px, calc(100vw - 22rem)); }
  .cs-metric { max-width: min(900px, calc(100vw - 22rem)); }
}
@media (min-width: 1200px) {
  .cs-feature, .cs-wide { max-width: min(1040px, calc(100vw - 30rem)); }
  .cs-metric { max-width: min(900px, calc(100vw - 30rem)); }
}

/* =========================================================
   Sage storyline composition — chapter "beats" + principle grid
   ========================================================= */
/* Revelation chapter beat — the narrative backbone */
.cs-beat { text-align: center; padding: clamp(0.5rem, 2vw, 1.4rem) 0 0.4rem; }
.cs-beat__k {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.cs-beat__h {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
  margin: 0.6rem auto 0;
  text-wrap: balance;
}

/* Evidence → Principle → Product response (the researcher→strategist payoff) */
.cs-principle {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.1fr;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.cs-principle:last-child { border-bottom: 1px solid var(--line); }
.cs-principle__lab {
  font-family: var(--display); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 0.45rem;
}
.cs-principle__evidence p { color: var(--ink-soft); font-size: 0.98rem; }
.cs-principle__name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.cs-principle__resp {
  background: rgba(92, 132, 163, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
}
.cs-principle__resp .cs-principle__lab { color: var(--terracotta); }
.cs-principle__resp p { color: var(--ink); font-size: 0.98rem; }
@media (max-width: 760px) {
  .cs-principle { grid-template-columns: 1fr; gap: 0.7rem; padding: 1.2rem 0; }
}

/* =========================================================
   COMPRESSION HELPERS — horizontal composition (Sage pass)
   ========================================================= */

/* Compact horizontal methodology band: labeled columns w/ dividers */
.cs-band {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-band__cell { padding: 1.05rem 1.5rem 1.15rem; border-left: 1px solid var(--line); }
.cs-band__cell:first-child { border-left: 0; padding-left: 0; }
.cs-band__lab {
  font-family: var(--display); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 0.45rem;
}
.cs-band__cell p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.cs-band__cell p + p { margin-top: 0.5rem; }
.cs-band__cell ul { margin: 0; padding-left: 1.05rem; color: var(--ink-soft); font-size: 0.95rem; }
.cs-band__cell li + li { margin-top: 0.2rem; }
@media (max-width: 720px) {
  .cs-band { grid-template-columns: 1fr; }
  .cs-band__cell { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .cs-band__cell:first-child { border-top: 0; }
}

/* Related findings shown side by side rather than stacked */
.cs-duo {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.cs-duo > .cs-finding { margin-top: 0; }

/* Insight paired horizontally with its evidence/artifact */
.cs-evidence {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
}
.cs-evidence__fig { margin: 0; }
.cs-evidence__fig img {
  display: block; width: 100%; height: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px -24px rgba(31, 29, 27, 0.4);
}
.cs-evidence__fig figcaption { margin-top: 0.6rem; }
.cs-evidence--flip .cs-evidence__text { order: 2; }
.cs-evidence .cs-body + .cs-body { margin-top: 0.7rem; }
@media (max-width: 760px) {
  .cs-evidence { grid-template-columns: 1fr; gap: 1.2rem; }
  .cs-evidence--flip .cs-evidence__text { order: 0; }
}

/* Horizontal process flow (compact step row) */
.cs-flow {
  margin-top: 1.6rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  align-items: start;
}
.cs-flow__step { position: relative; text-align: center; padding: 0 0.6rem; }
.cs-flow__step::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.cs-flow__step:first-child::before { display: none; }
.cs-flow__num {
  position: relative;
  z-index: 1;
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.6px solid var(--terracotta);
  background: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--terracotta);
  line-height: 1;
}
.cs-flow__num small { font-size: 0.5em; font-weight: 500; }
.cs-flow__lab { margin-top: 0.7rem; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.35; }
@media (max-width: 680px) {
  .cs-flow { grid-auto-flow: row; grid-auto-columns: auto; gap: 1rem; }
  .cs-flow__step { display: grid; grid-template-columns: 2.7rem 1fr; align-items: center; gap: 0.9rem; text-align: left; padding: 0; }
  .cs-flow__step::before { display: none; }
  .cs-flow__lab { margin-top: 0; }
}

/* Metric focal moment as an intentional contained panel */
.cs-metric--card {
  background:
    radial-gradient(90% 150% at 50% 0%, rgba(192, 118, 77, 0.09), transparent 70%),
    #FCFBF9;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 30px 70px -46px rgba(31, 29, 27, 0.5);
  max-width: min(760px, 92vw) !important;
}

/* Case studies: keep breakout elements aligned to the main text column */
body.cs .cs-feature,
body.cs .cs-wide,
body.cs .cs-evidence,
body.cs .cs-metric { max-width: 46rem; margin-inline: auto; }
body.cs .cs-metric--card { max-width: 46rem; }

/* =========================================================
   LIGHTBOX — click an image to expand over a dimmed backdrop
   ========================================================= */
.is-zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 5vw, 4rem);
  background: rgba(24, 22, 20, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0s linear 0.28s;
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s var(--ease);
}
.lightbox__img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.28s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: clamp(0.8rem, 2.5vw, 1.6rem);
  right: clamp(0.8rem, 2.5vw, 1.6rem);
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
body.lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img { transition: none; }
}

/* =========================================================
   LIMBO — recreated research visuals (light cs theme)
   ========================================================= */
.limbo-viz { margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.limbo-viz__cap {
  font-family: var(--display); font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

/* Chips */
.limbo-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.limbo-chip {
  font-size: 0.86rem; line-height: 1.25;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); background: #fff;
}
.limbo-chip--coral { border-color: rgba(192,118,77,0.5); color: #9C4F2C; background: rgba(192,118,77,0.06); }
.limbo-chip--sky { border-color: rgba(92,132,163,0.5); color: #3E607A; background: rgba(92,132,163,0.07); }
.limbo-chip--gold { border-color: rgba(180,140,40,0.45); color: #806012; background: rgba(214,170,60,0.14); }

/* Grouped chip clusters */
.limbo-clusters { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: 1.6rem; }
.limbo-cluster__lab {
  font-family: var(--display); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.6rem;
}
@media (max-width: 620px) { .limbo-clusters { grid-template-columns: 1fr; } }

/* Favorability ranking bar chart */
.limbo-rank { display: grid; gap: 0.62rem; }
.limbo-row { display: grid; grid-template-columns: 1.5rem 8.5rem 1fr 2.4rem; align-items: center; gap: 0.7rem; }
.limbo-row__n { font-family: var(--display); font-weight: 600; color: var(--ink-faint); font-size: 0.9rem; text-align: right; }
.limbo-row__label { font-size: 0.92rem; color: var(--ink); }
.limbo-row__track { position: relative; height: 0.7rem; border-radius: 999px; background: rgba(31,29,27,0.06); overflow: hidden; }
.limbo-row__fill {
  position: absolute; inset: 0 auto 0 0; width: var(--w, 0%);
  border-radius: 999px; background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.limbo-viz.is-visible .limbo-row__fill { transform: scaleX(1); }
.limbo-row--top .limbo-row__fill { background: linear-gradient(90deg, #C0764D, #D08A5E); }
.limbo-row__val { font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--ink); text-align: right; }
.limbo-row--top .limbo-row__val { color: #9C4F2C; }
@media (max-width: 620px) {
  .limbo-row { grid-template-columns: 1.3rem 1fr 2.2rem; }
  .limbo-row__track { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .limbo-row__fill { transition: none; transform: scaleX(1); }
}

/* Landscape scan — apps grouped by mechanism */
.limbo-scan { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.limbo-scan__col { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: #FCFBF9; }
.limbo-scan__lab {
  font-family: var(--display); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.4rem;
}
.limbo-scan__sub { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0.85rem; }
.limbo-scan__gap {
  margin-top: 1.1rem; padding: 1.2rem 1.4rem; border-radius: 12px;
  border: 1px solid rgba(192,118,77,0.4);
  background: radial-gradient(120% 140% at 0% 0%, rgba(192,118,77,0.1), transparent 60%), #fff;
}
.limbo-scan__gap .cs-finding__h, .limbo-scan__gaplab {
  font-family: var(--display); font-weight: 600; color: var(--ink); margin-bottom: 0.4rem;
}
.limbo-scan__gaplab { color: #9C4F2C; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 620px) { .limbo-scan { grid-template-columns: 1fr; } }

/* 4-stage research pipeline */
.limbo-pipe { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.limbo-pipe__stage { position: relative; padding: 0 0.9rem; }
.limbo-pipe__stage::before {
  content: ""; position: absolute; top: 1.15rem; left: 0; width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); z-index: 0;
}
.limbo-pipe__stage:first-child::before { left: 50%; width: 50%; }
.limbo-pipe__stage:last-child::before { width: 50%; }
.limbo-pipe__num {
  position: relative; z-index: 1; width: 2.3rem; height: 2.3rem; margin: 0 auto 0.7rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-family: var(--display); font-weight: 600; font-size: 0.85rem;
}
.limbo-pipe__h { font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--ink); text-align: center; line-height: 1.25; }
.limbo-pipe__n { display: block; text-align: center; margin-top: 0.35rem; font-size: 0.8rem; color: var(--terracotta); font-weight: 600; }
.limbo-pipe__m { text-align: center; margin-top: 0.3rem; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.35; }
@media (max-width: 680px) {
  .limbo-pipe { grid-auto-flow: row; grid-auto-columns: auto; gap: 1.1rem; }
  .limbo-pipe__stage { display: grid; grid-template-columns: 2.3rem 1fr; align-items: start; gap: 0.9rem; padding: 0; text-align: left; }
  .limbo-pipe__stage::before { display: none; }
  .limbo-pipe__num { margin: 0; }
  .limbo-pipe__h, .limbo-pipe__n, .limbo-pipe__m { text-align: left; }
}

/* Bare feature — image floats directly on the page (no card frame) */
.cs-feature--bare { text-align: center; }
.cs-feature--bare img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 26px 40px rgba(31, 29, 27, 0.16));
}

/* Limbo — full-bleed auto-scrolling brand imagery marquee */
.limbo-marquee {
  position: relative;
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 0;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.limbo-marquee + .limbo-marquee { margin-top: 1rem; }
.limbo-marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: limbo-marq 34s linear infinite;
}
.limbo-marquee--rev .limbo-marquee__track { animation-direction: reverse; }
.limbo-marquee:hover .limbo-marquee__track { animation-play-state: paused; }
.limbo-marquee img {
  height: clamp(11rem, 20vw, 16rem);
  width: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  cursor: zoom-in;
  box-shadow: 0 18px 36px -26px rgba(31, 29, 27, 0.5);
}
@keyframes limbo-marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .limbo-marquee { overflow-x: auto; }
  .limbo-marquee__track { animation: none; }
}

/* Limbo — "The First 30 Prompts" 3-tier pool */
.limbo-lowkey { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1rem; margin-top: 1.5rem; }
.limbo-lowkey__card { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: #FCFBF9; }
.limbo-lowkey__card--win {
  border-color: rgba(192,118,77,0.45);
  background: radial-gradient(120% 140% at 0% 0%, rgba(192,118,77,0.1), transparent 62%), #fff;
}
.limbo-lowkey__lab { font-family: var(--display); font-weight: 600; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.5rem; }
.limbo-lowkey__card--win .limbo-lowkey__lab { color: #9C4F2C; }
.limbo-lowkey__q { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin-bottom: 0.35rem; }
.limbo-lowkey__d { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.limbo-lowkey__arrow { align-self: center; color: var(--terracotta); font-size: 1.4rem; }
@media (max-width: 620px) {
  .limbo-lowkey { grid-template-columns: 1fr; }
  .limbo-lowkey__arrow { transform: rotate(90deg); }
}

.limbo-tier { margin-top: 1.3rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.limbo-tier__head { display: grid; grid-template-columns: 10rem 1fr auto; align-items: center; gap: 1.2rem; padding: 1rem 1.3rem; background: #FCFBF9; cursor: pointer; list-style: none; }
.limbo-tier__head::-webkit-details-marker { display: none; }
.limbo-tier[open] .limbo-tier__head { border-bottom: 1px solid var(--line); }
.limbo-tier__head:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: -2px; }
.limbo-tier__chev { width: 0.72rem; height: 0.72rem; border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.limbo-tier[open] .limbo-tier__chev { transform: rotate(-135deg); }
.limbo-tier__badge { display: flex; flex-direction: column; }
.limbo-tier__n { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.limbo-tier__name { font-family: var(--display); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.3rem; }
.limbo-tier__desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.45; }
.limbo-tier--t1 .limbo-tier__n { color: #C0764D; }
.limbo-tier--t2 .limbo-tier__n { color: #B4892A; }
.limbo-tier--t3 .limbo-tier__n { color: #5C84A3; }
.limbo-tier--t1 .limbo-tier__head { box-shadow: inset 4px 0 0 #C0764D; }
.limbo-tier--t2 .limbo-tier__head { box-shadow: inset 4px 0 0 #D6B33C; }
.limbo-tier--t3 .limbo-tier__head { box-shadow: inset 4px 0 0 #5C84A3; }

.limbo-tier__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.limbo-pcard { padding: 0.95rem 1.1rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.limbo-pcard:nth-child(1) { border-left: 0; }
.limbo-tag { font-family: var(--display); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.4rem; }
.limbo-pcard p:last-child { font-size: 0.9rem; color: var(--ink); line-height: 1.4; }
.limbo-tag--personal { color: #B85B36; }
.limbo-tag--hypothetical { color: #9A7415; }
.limbo-tag--debate { color: #3E607A; }
.limbo-tag--taboo { color: #7E63A8; }
.limbo-tag--targeted { color: #4E8A6B; }
@media (max-width: 720px) {
  .limbo-tier__head { grid-template-columns: 1fr auto; gap: 0.4rem 1rem; }
  .limbo-tier__badge { grid-column: 1; }
  .limbo-tier__chev { grid-column: 2; grid-row: 1; }
  .limbo-tier__desc { grid-column: 1 / -1; }
  .limbo-pcard { border-left: 0; }
}

/* =========================================================
   SAGE — density & rhythm pass
   ========================================================= */

/* Revelation beats as dominant chapter breaks */
.cs-beat {
  position: relative; text-align: center;
  margin-top: clamp(1.4rem, 4vw, 2.6rem);
  padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.4rem, 3.5vw, 2.4rem);
  border-top: 2px solid var(--ink);
}
.cs-beat__k {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--display); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta);
}
.cs-beat__k::before, .cs-beat__k::after { content: ""; width: clamp(1.4rem, 5vw, 3rem); height: 1px; background: var(--terracotta); opacity: 0.55; }
.cs-beat__h {
  margin: 0.9rem auto 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.08; letter-spacing: -0.015em;
  color: var(--ink); max-width: 20ch; text-wrap: balance;
}

/* Compact metric card on Sage */
body.sage .cs-metric--card { padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1.4rem, 4vw, 2.4rem); max-width: 34rem; }
body.sage .cs-metric__num { font-size: clamp(3rem, 8vw, 5rem); line-height: 0.9; }
body.sage .cs-metric__text { font-size: 0.98rem; }

/* Study design: compact flow beside the rationale */
.sage-study { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; margin-top: 1.4rem; }
.sage-study__flow { display: grid; gap: 0.65rem; }
.sage-step { display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: 0.85rem; }
.sage-step__n { width: 2.4rem; height: 2.4rem; border: 1.6px solid var(--terracotta); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 0.82rem; color: var(--terracotta); line-height: 1; }
.sage-step__n small { font-size: 0.5em; font-weight: 500; }
.sage-step__l { font-size: 0.92rem; color: var(--ink-soft); }
.sage-study__aside { padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: 12px; background: #FCFBF9; }
.sage-study__aside .cs-band__lab { margin-bottom: 0.45rem; }
.sage-study__aside p + .cs-band__lab { margin-top: 1rem; }
@media (max-width: 720px) { .sage-study { grid-template-columns: 1fr; } }

/* Intervention findings: 2x2 grid + smaller fifth */
.sage-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.sage-grid2 > .cs-finding, .sage-grid2 > .cs-key { margin-top: 0; height: 100%; }
.sage-fifth { margin-top: 1rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: 10px; background: #FCFBF9; }
.sage-fifth__k { font-family: var(--display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.sage-fifth p:last-child { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 620px) { .sage-grid2 { grid-template-columns: 1fr; } .sage-fifth { grid-template-columns: 1fr; gap: 0.4rem; } }

/* Evaluation: before/after centerpiece with changes beside */
.sage-eval { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.2rem); align-items: start; margin-top: 1.4rem; }
.sage-ba { display: grid; gap: 0.9rem; }
.sage-ba__card { padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: 12px; }
.sage-ba__card--before { background: rgba(31, 29, 27, 0.035); }
.sage-ba__card--after { background: radial-gradient(120% 140% at 0% 0%, rgba(192,118,77,0.1), transparent 62%), #fff; border-color: rgba(192,118,77,0.4); }
.sage-ba__k { font-family: var(--display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.45rem; }
.sage-ba__card--before .sage-ba__k { color: var(--ink-faint); }
.sage-ba__card--after .sage-ba__k { color: var(--terracotta); }
.sage-ba__t { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.sage-ba__card--after .sage-ba__t { color: var(--ink); }
.sage-changes__lab { font-family: var(--display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.3rem; }
.sage-changes__item { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.sage-changes__item:first-of-type { border-top: 0; }
.sage-changes__h { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 0.98rem; margin-bottom: 0.25rem; }
.sage-changes__b { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 820px) { .sage-eval { grid-template-columns: 1fr; } }

/* =========================================================
   ABOUT — editorial image clusters + chips + lightbox
   ========================================================= */
.ab { max-width: 84rem; margin-inline: auto; padding: clamp(1.8rem, 4.5vw, 3rem) clamp(1.4rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.ab__label { font-family: var(--display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: lowercase; color: var(--terracotta); }
.ab__note { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.92rem; }
.ab__text { margin-top: 0.55rem; max-width: 54ch; color: var(--ink-soft); font-weight: 300; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.5; }

/* Cluster: an arranged contact-sheet, bounded in height */
.ab__cluster { margin-top: clamp(1.1rem, 3vw, 1.9rem); display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 0.6rem; scrollbar-width: thin; }
.cl__item {
  position: relative; flex: 0 0 auto; padding: 0; border: 0; background: none;
  height: var(--h, 10rem); aspect-ratio: var(--ratio, 1);
  border-radius: 8px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 10px 22px -18px rgba(31, 29, 27, 0.5);
  transition: transform 0.35s var(--ease);
}
.cl__item--sm { --h: clamp(6.5rem, 12vw, 8.6rem); }
.cl__item--md { --h: clamp(7.6rem, 15vw, 10.4rem); }
.cl__item--lg { --h: clamp(8.8rem, 18vw, 12.4rem); }
.cl__item--xl { --h: clamp(8.6rem, 16vw, 12rem); }

/* About: retire the taupe for an airier blue across the whole page */
body.about main { --ink-soft: #5E88A0; --ink-faint: #90AEC0; }
body.about { --terracotta: #5C84A3; }
/* Leadership row: larger photos, tight even spacing like the line below */
.ab__cluster--captioned { justify-content: flex-start; }
.ab__cluster--captioned .cl__item--sm { --h: clamp(9rem, 15vw, 12.4rem); }
.ab__cluster--captioned .cl__item--md { --h: clamp(10rem, 17vw, 14rem); }
.ab__cluster--captioned .cl__item--xl { --h: clamp(11.5rem, 19vw, 15.5rem); }
.cl__item img, .cl__ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.cl__ph { display: grid; place-items: center; text-align: center; padding: 0.4rem; font-size: 0.7rem; letter-spacing: 0.02em; color: var(--ink-soft); border: 1px solid var(--line); }
.cl__ph--a { background: #F7EDE6; color: #9C5836; }
.cl__ph--b { background: #EDF2F6; color: #446079; }
.cl__ph--c { background: #FAF8F4; color: var(--ink-faint); }
/* Deliberate offsets + slight, non-uniform rotation for an edge condition */
.cl__item:nth-child(2) { align-self: flex-end; }
.cl__item:nth-child(3) { transform: rotate(-1.3deg); }
.cl__item:nth-child(4) { margin-top: 1.1rem; }
.cl__item:nth-child(6) { transform: rotate(1.4deg); align-self: flex-end; }
.cl__item:hover, .cl__item:focus-visible { transform: translateY(-3px); outline: none; z-index: 2; }
.cl__item:focus-visible { box-shadow: 0 0 0 3px var(--sky-deep); }
.cl__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.5rem 0.35rem;
  font-size: 0.66rem; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(20, 18, 16, 0.72));
  opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none;
}
.cl__item:hover .cl__cap, .cl__item:focus-visible .cl__cap { opacity: 1; }

/* Captioned cluster: caption sits below each image, roles align on a shelf */
.ab__cluster--captioned { align-items: flex-end; gap: 0.9rem 0.7rem; }
.cl__fig { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.cl__fig .cl__item { margin: 0; }
.cl__label { font-family: var(--hand); font-size: 0.95rem; line-height: 1.25; font-weight: 400; color: var(--ink); max-width: 15rem; }
.cl__label a { color: var(--ink); text-decoration: none; }
.cl__label a:hover { text-decoration: underline; text-underline-offset: 2px; }
.cl__label--bold { font-size: 1.05rem; color: var(--ink); max-width: 18rem; }
.cl__label--bold a { color: var(--ink); }
.cl__label--bold a:hover { text-decoration: underline; text-underline-offset: 2px; }
/* "+ more…" role link, sitting on the shelf beside the photos */
.cl__more {
  flex: 0 0 auto; align-self: center; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px;
  padding: 0 0.4rem;
}
.cl__more:hover { color: var(--ink); }
.cl__note {
  flex: 0 0 auto; align-self: flex-end;
  display: grid; place-items: center; gap: 0.4rem; text-align: center;
  width: clamp(7rem, 11vw, 8.6rem); min-height: clamp(8rem, 15vw, 10.6rem);
  padding: 0.9rem 0.9rem 1rem; border: 0; border-radius: 18px;
  font-family: var(--display); font-weight: 600; font-size: 0.86rem; line-height: 1.3; color: var(--ink);
  box-shadow: 0 12px 24px -18px rgba(31, 29, 27, 0.5);
  transition: transform 0.3s var(--ease);
}
.cl__note::before { font-size: 1.35rem; line-height: 1; }
.cl__note:hover { transform: translateY(-3px) rotate(-1.2deg); }
.cl__note:nth-of-type(odd)  { background: radial-gradient(120% 120% at 30% 20%, #F7E7DB, #F2E4D8); color: #7A4A2E; }
.cl__note:nth-of-type(odd)::before  { content: "\2600\FE0F"; } /* sun */
.cl__note:nth-of-type(even) { background: radial-gradient(120% 120% at 30% 20%, #E6EFF4, #DFEAF1); color: #3E607A; }
.cl__note:nth-of-type(even)::before { content: "\2728"; }      /* sparkles */
@media (prefers-reduced-motion: reduce) { .cl__note { transition: none; } .cl__note:hover { transform: none; } }

/* "not yet started" — chips beside at most two small images */
.ab__next { margin-top: clamp(1rem, 2.5vw, 1.6rem); display: grid; grid-template-columns: 1fr auto; gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.ab__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.ab__chips { gap: 0.6rem; }
.ab__chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.95rem; font-size: 0.9rem; color: var(--ink);
  background: #fff; cursor: default;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.ab__chip__mark { color: var(--terracotta); font-weight: 600; transition: transform 0.25s var(--ease); }
.ab__chip:hover {
  transform: translateY(-2px);
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: #fff;
}
.ab__chip:hover .ab__chip__mark { color: #fff; transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .ab__chip, .ab__chip__mark { transition: none; }
  .ab__chip:hover { transform: none; }
  .ab__chip:hover .ab__chip__mark { transform: none; }
}
.ab__cluster--mini { margin-top: 0; }
.ab__cluster--mini .cl__item { --h: clamp(6rem, 13vw, 8.2rem); }

/* Mobile: two-column mosaic, no tall single column */
@media (max-width: 640px) {
  .ab__cluster { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .cl__item { height: auto; width: 100%; margin-top: 0 !important; align-self: auto !important; transform: none !important; }
  .cl__cap { opacity: 1; } /* touch: captions visible */
  .ab__next { grid-template-columns: 1fr; }
  .ab__cluster--mini { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Lightbox with arrow navigation */
.ablx { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: clamp(1.2rem, 5vw, 4rem); background: rgba(24, 22, 20, 0.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), visibility 0s linear 0.28s; }
.ablx.is-open { opacity: 1; visibility: visible; transition: opacity 0.28s var(--ease); }
.ablx__stage { max-width: min(1000px, 94vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.ablx__media { max-width: 100%; max-height: 82vh; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7); }
.ablx__media img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; }
.ablx__ph { display: grid; place-items: center; width: min(70vw, 30rem); height: min(60vh, 22rem); color: #fff; font-size: 1rem; }
.ablx__cap { color: #EDE7DE; font-size: 0.85rem; text-align: center; }
.ablx__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.5rem; cursor: pointer; transition: background 0.2s var(--ease); }
.ablx__btn:hover { background: rgba(255,255,255,0.3); }
.ablx__btn--prev { left: clamp(0.6rem, 3vw, 2rem); }
.ablx__btn--next { right: clamp(0.6rem, 3vw, 2rem); }
.ablx__close { position: absolute; top: clamp(0.8rem, 2.5vw, 1.6rem); right: clamp(0.8rem, 2.5vw, 1.6rem); width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.7rem; cursor: pointer; }
.ablx__close:hover { background: rgba(255,255,255,0.3); }
body.ablx-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cl__item, .cl__cap, .ablx, .ablx__media img { transition: none; }
  .ab.reveal { opacity: 1; transform: none; }
}

/* "not yet started" — captioned cutouts in a staggered brick grid.
   Odds sit on row 1 (cols 1,3,5,7,9), evens on row 2 (cols 2,4,6,8,10),
   each row offset by half a cell. 11 tracks so the last even item fits. */
.gaggle { margin-top: clamp(1.2rem, 3vw, 2rem); display: grid; grid-template-columns: repeat(11, 1fr); align-items: end; column-gap: clamp(0.4rem, 1.4vw, 1rem); row-gap: clamp(1rem, 2.5vw, 2rem); }
.gag {
  grid-row: 2; width: clamp(5.5rem, 8vw, 7.6rem); justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0; border: 0; background: none; cursor: none;
}
.gag:nth-child(odd) { grid-row: 1; }
.gag:nth-child(1)  { grid-column: 1 / span 2; }
.gag:nth-child(2)  { grid-column: 2 / span 2; }
.gag:nth-child(3)  { grid-column: 3 / span 2; }
.gag:nth-child(4)  { grid-column: 4 / span 2; }
.gag:nth-child(5)  { grid-column: 5 / span 2; }
.gag:nth-child(6)  { grid-column: 6 / span 2; }
.gag:nth-child(7)  { grid-column: 7 / span 2; }
.gag:nth-child(8)  { grid-column: 8 / span 2; }
.gag:nth-child(9)  { grid-column: 9 / span 2; }
.gag:nth-child(10) { grid-column: 10 / span 2; }
.gag img { display: block; width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.3s var(--ease); }
.gag__ph { display: grid; place-items: center; text-align: center; width: 100%; aspect-ratio: 1; border-radius: 8px; font-size: 0.6rem; padding: 0.3rem; }
.gag__cap { font-family: var(--hand); font-size: clamp(0.8rem, 1vw, 0.95rem); color: var(--ink); line-height: 1.15; text-align: center; }
/* Irregular vertical stagger + slight rotation within each row */
.gag:nth-child(1)  { transform: translateY(-0.9rem) rotate(-1.2deg); }
.gag:nth-child(2)  { transform: translateY(0.8rem)  rotate(1.4deg); }
.gag:nth-child(3)  { transform: translateY(0.4rem)  rotate(-0.8deg); }
.gag:nth-child(4)  { transform: translateY(-0.7rem) rotate(1deg); }
.gag:nth-child(5)  { transform: translateY(-0.3rem) rotate(1.2deg); }
.gag:nth-child(6)  { transform: translateY(1rem)    rotate(-1.4deg); }
.gag:nth-child(7)  { transform: translateY(-1rem)   rotate(0.8deg); }
.gag:nth-child(8)  { transform: translateY(0.3rem)  rotate(-1deg); }
.gag:nth-child(9)  { transform: translateY(0.7rem)  rotate(1.3deg); }
.gag:nth-child(10) { transform: translateY(-0.5rem) rotate(-0.9deg); }
.gag:hover img, .gag:focus-visible img { transform: translateY(-3px); }
.gag:focus-visible { outline: none; }
.gag:focus-visible .gag__cap { text-decoration: underline; text-underline-offset: 2px; }
/* Mobile: drop the brick offset, wrap into a centered cluster */
@media (max-width: 720px) {
  .gaggle { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 0.8rem 1rem; max-width: none; }
  .gag { grid-column: auto; grid-row: auto; width: clamp(5rem, 26vw, 6.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .gag { transform: none; }
  .gag img { transition: none; }
}

/* For fun: a moving, edge-faded line (marquee) confined to the section width */
.ab__cluster--marquee { display: block; overflow: hidden; padding: 0.5rem 0 0.7rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ab__track { display: flex; align-items: center; gap: 0.6rem; width: max-content; animation: ab-marq 72s linear infinite; }
.ab__track .cl__item { margin: 0 !important; align-self: center; flex: 0 0 auto; cursor: none; }
@keyframes ab-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ab__track { animation: none; }
  .ab__cluster--marquee { overflow-x: auto; }
}

/* Heart burst when clicking a "not yet started" cutout */
.heart {
  position: fixed; z-index: 1200; pointer-events: none;
  color: #5C84A3; line-height: 1; will-change: transform, opacity;
  transform: translate(-50%, -50%);
  animation: heartPop var(--dur, 0.9s) var(--ease) forwards;
}
@keyframes heartPop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -70px))) scale(1) rotate(var(--rot, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { .heart { animation-duration: 0.001s; } }

/* Nav glass: light text when a photo sits behind the pill */
.nav--light .nav__mark,
.nav--light .nav__links a,
.nav--light .nav__links a.is-current { color: #FFFFFF; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.nav--light .nav__links a:hover { color: #FFD9C2; }
.nav--light { background: rgba(38, 28, 22, 0.22); border-color: rgba(255, 255, 255, 0.35); }
