/* ============================================================================
   Portfolio components — built on the Claude design system tokens.
   Import order:  claude-tokens.css  →  portfolio.css
   Layout/page-flow: Webflow refs (Landon home, danielamuntyan about).
   Visual language: Claude — cream canvas, serif display @400, coral, surface pacing.
   Fonts + tokens come from clay-tokens.css (all Inter). This file is structure.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: var(--body-md);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---- Accessibility: skip link + focus ring -------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: 10px 16px; border-radius: var(--rounded-md);
  font: var(--title-sm); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Type helpers --------------------------------------------------------- */
.display-xl { font: var(--display-xl); letter-spacing: var(--tracking-display-xl); color: var(--ink); margin: 0; text-wrap: balance; }
.display-lg { font: var(--display-lg); letter-spacing: var(--tracking-display-lg); color: var(--ink); margin: 0; text-wrap: balance; }
.display-md { font: var(--display-md); letter-spacing: var(--tracking-display-md); color: var(--ink); margin: 0; text-wrap: balance; }
.display-sm { font: var(--display-sm); letter-spacing: var(--tracking-display-sm); color: var(--ink); margin: 0; }
.lead       { font: var(--title-md); font-weight: 400; color: var(--body-strong); margin: 0; text-wrap: pretty; }
.eyebrow {
  font: var(--caption); font-size: 12px; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--muted); margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.muted { color: var(--muted); }

/* ---- Layout: shell + bands ------------------------------------------------ */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.shell-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.band { padding: var(--space-section) 0; }
.band-sm { padding: 56px 0; }
.band-tight { padding: 0 0 var(--space-section); }
.band--card { background: var(--surface-card); }
.band--flush-top { padding-top: 0; }
.band--flush-bottom { padding-bottom: 0; }
.band--soft { background: var(--surface-soft); }
.band--dark { background: var(--surface-dark); color: var(--on-dark-soft); }
.band--dark .display-xl, .band--dark .display-lg, .band--dark .display-md, .band--dark .display-sm { color: var(--on-dark); }
.hairline { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---- Top banner ----------------------------------------------------------- */
.top-banner {
  display: block; background: var(--surface-cream-strong); color: var(--body-strong);
  text-decoration: none; text-align: center; padding: 10px 24px;
  font: var(--body-sm);
}
.top-banner strong { font-weight: 600; color: var(--ink); }

/* ---- Navigation ----------------------------------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: var(--title-sm); letter-spacing: -.2px; }
.brand svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { text-decoration: none; color: var(--body); font: var(--body-sm); font-weight: 500; padding: 6px 2px; position: relative; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link--arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.nav-link--arrow .arrow { transition: transform .15s ease; }
.nav-link--arrow:hover .arrow { transform: translate(2px,-2px); }
.nav-toggle { display: none; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: var(--body-sm); font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--rounded-md);
  height: 44px; padding: 0 22px; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-lg { height: 52px; padding: 0 28px; font: var(--title-sm); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-active); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 8px; }
.btn--on-dark { background: var(--surface-dark-elevated); color: var(--on-dark); }
.btn--on-dark:hover { background: #2f2c28; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { padding-top: 88px; padding-bottom: 64px; }
/* Cream rounded hero panel (same surface as the cards) */
.hero.hero--panel {
  background: var(--surface-card); border-radius: var(--rounded-xl);
  padding: 72px 56px 92px; margin: 40px 0 8px; box-sizing: border-box;
}
@media (max-width: 767px) { .hero.hero--panel { padding: 40px 24px; } }
@media (max-width: 600px) { .hero.hero--panel { margin-top: 80px; } }
.hero .display-xl { max-width: 22ch; }
.hero-lead { margin-top: 28px; max-width: 48ch; }
.hero-meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; font: var(--body-sm); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal); flex: none; }

/* ---- Home outro (Mairéad-style closing: prose + contact + credentials) ----- */
.home-outro { max-width: 720px; display: flex; flex-direction: column; gap: 30px; }
.outro-prose { display: flex; flex-direction: column; gap: 18px; }
.outro-prose p { font: var(--title-md); font-weight: 400; line-height: 1.45; color: var(--body-strong); margin: 0; text-wrap: pretty; }
.outro-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font: var(--title-md); font-weight: 400; color: var(--ink); margin: 0; }
.outro-contact .outro-arrow { color: var(--accent-teal); font-weight: 500; }
.outro-contact__lead { color: var(--ink); }
.outro-contact a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .15s ease; }
.outro-contact a:hover { color: var(--accent-text); }
.outro-facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.outro-facts li { position: relative; padding-left: 18px; font: var(--body-md); color: var(--muted); }
.outro-facts li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-teal); }

/* ---- Work grid ------------------------------------------------------------ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
.work-card { text-decoration: none; color: inherit; display: block; position: relative; }

/* Hover system — ported 1:1 from CaseStudyCard.jsx (Motion springs).
   The springs are reproduced as linear() easings generated from each spring's
   physics (stiffness/damping), so the motion matches the component exactly.
   .work-card itself carries the scroll-reveal transform, so the 4px lift lives
   on an inner wrapper to avoid fighting that transition. */
.work-card__inner { display: block; transform: translateY(0); transition: transform var(--spring-lift-dur) var(--spring-lift); will-change: transform; }
.work-card:hover .work-card__inner,
.work-card:focus-visible .work-card__inner { transform: translateY(-4px); }

.work-media { position: relative; }
/* Warm shadow layer — opacity-faded (cheaper than animating box-shadow), and
   it sits OUTSIDE the clipped frame so the shadow isn't cropped. */
.work-media__shadow {
  position: absolute; inset: 0; border-radius: var(--rounded-xl); pointer-events: none;
  opacity: 0; transition: opacity var(--spring-lift-dur) var(--spring-lift);
  box-shadow: 0 18px 40px -16px rgba(58,50,30,.18), 0 6px 14px -6px rgba(58,50,30,.10);
}
.work-card:hover .work-media__shadow,
.work-card:focus-visible .work-media__shadow { opacity: 1; }

.work-media__frame {
  position: relative; aspect-ratio: 4/3; border-radius: var(--rounded-xl);
  overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-card);
}
.work-media__frame img,
.work-media__frame .ph { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transform-origin: center; transition: transform var(--spring-zoom-dur) var(--spring-zoom); will-change: transform; }
.work-card:hover .work-media__frame img,
.work-card:hover .work-media__frame .ph,
.work-card:focus-visible .work-media__frame img,
.work-card:focus-visible .work-media__frame .ph { transform: scale(1.04); }
/* Video thumbnails behave like the image covers (fill + hover-zoom) */
.work-media__frame video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transform-origin: center; transition: transform var(--spring-zoom-dur) var(--spring-zoom); will-change: transform; }
.work-card:hover .work-media__frame video,
.work-card:focus-visible .work-media__frame video { transform: scale(1.04); }

.work-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 24px; }
.work-title { font: var(--display-sm); letter-spacing: var(--tracking-display-sm); color: var(--ink); margin: 0; }
.work-tag { font: var(--caption); color: var(--muted); margin: 0; white-space: nowrap; }
.work-card .work-blurb { margin-top: 8px; color: var(--body); max-width: 44ch; }
.work-card--locked .work-media__frame::after {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface-dark) 55%, transparent);
}
.lock-chip {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--canvas); color: var(--ink); border-radius: var(--rounded-pill);
  padding: 6px 12px; font: var(--caption);
}

/* ---- Placeholder media ---------------------------------------------------- */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-color: var(--surface-card);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--muted) 9%, transparent) 11px 12px);
}
.ph span { font: var(--code); font-size: 12px; color: var(--muted); background: var(--canvas); padding: 4px 10px; border-radius: var(--rounded-pill); border: 1px solid var(--hairline); }
.ph--dark { background-color: var(--surface-dark); background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,.05) 11px 12px); }
.ph--dark span { background: var(--surface-dark-elevated); color: var(--on-dark-soft); border-color: #2f2c28; }

/* ---- Meta rows (Experience / Skills / Contact) ---------------------------- */
.meta-row { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--hairline); }
.meta-row:last-child { border-bottom: 1px solid var(--hairline); }
.meta-label { font: var(--caption); font-size: 12px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.meta-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.meta-item h3 { font: var(--title-md); color: var(--ink); margin: 0 0 4px; }
.meta-item p { margin: 0; color: var(--muted); font: var(--body-sm); }
.list-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 4px 0; }
.list-link .ll-key { font: var(--title-md); color: var(--ink); }
.list-link .ll-val { font: var(--body-md); color: var(--muted); margin-left: auto; }
.list-link .arrow { color: var(--muted); transition: transform .15s ease, color .15s; }
.list-link:hover .ll-key { color: var(--accent-text); }
.list-link:hover .arrow { transform: translate(3px,-3px); color: var(--accent-text); }

/* ---- Peach feature card (callout) ----------------------------------------- */
.callout { background: var(--clay-peach); color: var(--surface-dark); border-radius: var(--rounded-xl); padding: 64px; }
/* ---- Dark feature panel (rounded box, mirrors the callout) ----------------- */
.dark-panel { border-radius: var(--rounded-xl); padding: 64px; }
.callout .eyebrow { color: color-mix(in srgb, var(--surface-dark) 70%, var(--clay-peach)); }
.callout .display-md { color: var(--surface-dark); }
.callout p { color: color-mix(in srgb, var(--surface-dark) 86%, var(--clay-peach)); margin: 16px 0 28px; max-width: 46ch; }
.callout .btn--cream { background: var(--surface-dark); color: #fff; }
.callout .btn--cream:hover { background: #12302f; }
.callout .btn--outline-dark { background: transparent; color: var(--surface-dark); border-color: color-mix(in srgb, var(--surface-dark) 35%, transparent); }
.callout .btn--outline-dark:hover { border-color: var(--surface-dark); }

/* ---- Approach / value strips ---------------------------------------------- */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value h3 { font: var(--display-sm); letter-spacing: var(--tracking-display-sm); color: var(--ink); margin: 0 0 10px; }
.band--dark .value h3 { color: var(--on-dark); }
.value p { margin: 0; color: var(--body); }
.band--dark .value p { color: var(--on-dark-soft); }
.value .num { font: var(--code); color: var(--clay-mint); display: block; margin-bottom: 16px; }

/* ============================================================================
   CASE STUDY
   ========================================================================== */
.cs-hero { padding-top: 72px; padding-bottom: 48px; }
.cs-hero .display-xl { max-width: 20ch; }
.cs-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
.cs-intro { color: var(--body-strong); font: var(--title-md); font-weight: 400; }
.cs-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; margin-top: 8px; }
.cs-fact .k { font: var(--caption); font-size: 12px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.cs-fact .v { font: var(--body-md); color: var(--ink); margin: 0; }
.cs-cover { margin: 8px 0 0; border-radius: var(--rounded-xl); overflow: hidden; border: 1px solid var(--hairline); aspect-ratio: 16/9; position: relative; }

/* Product-screen showcase — desktop + mobile screenshots, bottom-aligned,
   each in a black-bordered frame (mobile on the right). */
.cs-screens { display: flex; align-items: flex-end; justify-content: center; gap: 40px; margin: 8px 0 0; flex-wrap: wrap; }
.screen-frame {
  background: #fff; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden;
}
.screen-frame img { display: block; height: clamp(380px, 46vw, 580px); width: auto; object-fit: contain; }
.screen-frame--phone { border-radius: 12px; }
@media (max-width: 760px) {
  .cs-screens { flex-direction: column; align-items: center; gap: 28px; }
  .screen-frame { width: 100%; max-width: 560px; }
  .screen-frame--phone { max-width: 320px; }
  .screen-frame img { height: auto; width: 100%; }
}

/* Phone triptych — three portrait screens in a row (cover + outcome galleries).
   Stays within the shell and centres via flex (like the Atlas hero) — no transform
   breakout, which would fight the data-reveal entrance animation. Reflows on mobile. */
.cs-screens--triptych { gap: 36px; }
.cs-screens--triptych .screen-frame img { height: clamp(380px, 44vw, 560px); }
/* Embedded player (Vimeo) swapped in for a phone screenshot — matches the
   sibling phone frames' footprint exactly via phone aspect ratio + matched height. */
.screen-frame--embed { position: relative; background: #000; box-sizing: content-box; aspect-ratio: 1280 / 2297; height: clamp(380px, 46vw, 580px); }
.cs-screens--triptych .screen-frame--embed { height: clamp(380px, 44vw, 560px); }
.screen-frame--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) {
  .screen-frame--embed { height: auto; width: 100%; }
}
/* Video swapped in for a phone screenshot — match the sibling images' exact
   footprint: same height, phone aspect ratio, fill (crop) any difference. */
.screen-frame--video { background: #000; }
.screen-frame--video video { display: block; height: clamp(380px, 46vw, 580px); aspect-ratio: 1504 / 2668; width: auto; object-fit: cover; }
.cs-screens--triptych .screen-frame--video video { height: clamp(380px, 44vw, 560px); }
@media (max-width: 760px) {
  .screen-frame--video video { height: auto; width: 100%; }
}

/* Video demo — onboarding flow recordings, framed like the other media. */
.cs-video { display: flex; justify-content: center; margin: 44px 0 8px; }
.cs-video__frame { border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #000; max-width: 380px; width: 100%; }
.cs-video__frame video { display: block; width: 100%; height: auto; }
.cs-video + figcaption, figcaption.cs-video-cap { font: var(--body-sm); color: var(--muted); margin-top: 16px; text-align: center; }
.cs-screens-cap { font: var(--body-sm); color: var(--muted); margin-top: 20px; text-align: center; }

/* Process step cards — design-thinking framework overview, breaks out wide. */
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 28px 0 8px;
  width: min(1040px, calc(100vw - 64px)); margin-left: 50%; transform: translateX(-50%);
}
.process-step { background: var(--surface-card); border-radius: var(--rounded-md); padding: 22px 20px; }
.process-step .step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-dark); color: var(--on-dark); font: var(--caption); font-weight: 600; margin-bottom: 14px; }
.process-step h4 { font: var(--title-sm); color: var(--ink); margin: 0 0 6px; }
.process-step p { font-size: 15px !important; line-height: 1.5; color: var(--body); margin: 0; }

/* Design-sprint day cards — Mon–Fri, day tag + corner number badge. Breaks out wide. */
.sprint-grid {
  --sw: min(1136px, calc(100vw - 64px));
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 28px 0 8px;
  width: var(--sw); margin-left: calc(50% - var(--sw) / 2);
}
.sprint-card { position: relative; background: var(--surface-card); border-radius: var(--rounded-md); padding: 24px 20px; }
.sprint-card .sprint-day { font: var(--caption); font-size: 12px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.sprint-card h4 { font: var(--title-md); font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.sprint-card p { font-size: 15px !important; line-height: 1.5; color: var(--body); margin: 0; }
@media (max-width: 760px) {
  .sprint-grid { grid-template-columns: 1fr; width: auto; margin-left: 0; }
}

/* Two framed images side-by-side (sketch pairs), breaks out wide. */
.cs-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 44px 0 8px;
  width: min(1040px, calc(100vw - 64px)); margin-left: 50%; transform: translateX(-50%);
}
.cs-duo .frame { border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; aspect-ratio: 1600 / 2102; }
.cs-duo .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .process-grid { grid-template-columns: 1fr 1fr; width: auto; margin-left: 0; transform: none; }
  .cs-duo { grid-template-columns: 1fr; width: auto; margin-left: 0; transform: none; }
}
/* Outcome gallery — 2-col grid of framed doc screenshots, breaks out wide. */
.cs-gallery {
  --gw: min(1136px, calc(100vw - 64px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 8px;
  width: var(--gw); margin-left: calc(50% - var(--gw) / 2);
}
.cs-gallery .frame { border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; aspect-ratio: 4/3; }
.cs-gallery .frame img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) {
  .cs-gallery { grid-template-columns: 1fr; width: auto; margin-left: 0; }
}
/* Before/After tab figure — framed image inside each tab panel. */
.cs-tab-figure { border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #f4f4f6; }
.cs-tab-figure img { display: block; width: 100%; height: auto; }

/* reading measure */
.cs-prose { max-width: 700px; margin: 0 auto; }
.cs-section { padding: 56px 0; }
.cs-section h2 { font: var(--display-md); letter-spacing: var(--tracking-display-md); color: var(--ink); margin: 0 0 20px; }
.cs-subhead { font: var(--title-lg); font-weight: 600; color: var(--ink); margin: 40px 0 10px; letter-spacing: -0.2px; }
.cs-subhead--minor { font: var(--title-md); font-weight: 600; color: var(--ink); margin: 24px 0 8px; letter-spacing: 0; }
.cs-team { list-style: none; margin: 0; padding: 0; }
.cs-section p { font: var(--body-md); color: var(--body); margin: 0 0 18px; }
.cs-section ul { margin: 0 0 18px; padding-left: 22px; }
.cs-section li { font: var(--body-md); color: var(--body); margin-bottom: 10px; }
.cs-section strong { color: var(--ink); font-weight: 600; }
.cs-section a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cs-section a:hover { color: var(--accent-text); }

/* central-question callout card */
.cs-callout-card {
  background: var(--surface-card); border-radius: var(--rounded-md);
  padding: 28px 32px; margin-top: 28px;
  color: var(--ink); font-weight: 500;
}
.cs-callout-by { display: block; margin-top: 12px; font-weight: 400; font-size: 16px; color: var(--muted); }
/* Grey label above the callout question — matches the hypothesis card .k label */
.cs-section .cs-callout-card__k {
  font: var(--caption); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.cs-section .cs-callout-card p:not(.cs-callout-card__k) { color: var(--ink); margin: 0; }
/* Border-only variant — matches the Problem cards above (Atlas HMW callout) */
.cs-callout-card--border {
  background: none; border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg); padding: 24px 28px;
}
/* Plain variant — no card box, just the label + question as text */
.cs-callout-card--plain {
  background: none; border: 0; border-radius: 0; padding: 0;
}

.cs-figure { margin: 44px 0 8px; }
/* Figures break out to the SAME width as the hero cover (.shell inner box:
   1200px max minus its 32px gutters), centred on the viewport. Collapses on mobile. */
.cs-figure:not(.wide) { width: min(1136px, calc(100vw - 64px)); margin-left: 50%; transform: translateX(-50%); }
.cs-figure .frame { position: relative; border-radius: 12px; overflow: hidden; border: 3px solid var(--ink); aspect-ratio: 16/10; }
.cs-figure .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-figure .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-figure .frame iframe { position: absolute; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border: 0; display: block; }
.cs-figure .frame--bare { border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.cs-figure .frame--bare img { object-fit: contain; }
/* Natural-ratio frame — image sizes to its own aspect (no crop), keeps the card border. */
.cs-figure .frame--natural { aspect-ratio: auto; }
.cs-figure .frame--natural img { position: static; width: 100%; height: auto; object-fit: contain; }
/* Inline-scale figure — stays at the 700px reading measure instead of breaking out wide,
   so diagram text doesn't read larger than the body copy on desktop. */
.cs-figure.cs-figure--inline {
  --iw: min(820px, calc(100vw - 64px));
  width: var(--iw); max-width: var(--iw);
  margin-left: calc(50% - var(--iw) / 2); margin-right: 0; transform: none;
}
@media (max-width: 760px) { .cs-figure.cs-figure--inline { width: auto; margin-left: 0; } }
.cs-figure--inline .frame { aspect-ratio: auto; }
.cs-figure--inline .frame img { position: static; width: 100%; height: auto; }
.cs-figure.wide { max-width: 1040px; margin-left: 50%; transform: translateX(-50%); }
/* Full-bleed natural figure — breaks out wide, image shown uncropped, centred with
   margins only (no transform, which the reveal system strips). */
.cs-figure.cs-figure--wide-natural {
  --fw: min(1136px, calc(100vw - 64px));
  width: var(--fw); max-width: var(--fw);
  margin-left: calc(50% - var(--fw) / 2); transform: none;
}
.cs-figure--wide-natural .frame { aspect-ratio: auto; }
.cs-figure--wide-natural .frame img { position: static; width: 100%; height: auto; object-fit: contain; }
@media (max-width: 760px) { .cs-figure.cs-figure--wide-natural { width: auto; max-width: 100%; margin-left: 0; } }
.cs-figure figcaption { font: var(--body-sm); color: var(--muted); margin-top: 16px; text-align: center; }

.cs-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 28px 0 8px; }
.cs-metrics--three { grid-template-columns: repeat(3, 1fr); }
.cs-metrics--two { grid-template-columns: repeat(2, 1fr); }
.cs-metrics + p { margin-top: 28px; }
.cs-metric { background: var(--surface-card); border-radius: var(--rounded-md); padding: 24px; }
.cs-metric .big { font: var(--display-md); letter-spacing: var(--tracking-display-md); color: var(--ink); margin: 0; }
.cs-metric-unit { font-size: .5em; color: var(--muted); margin-left: 1px; }
.cs-metric .big { color: var(--ink); }
.cs-metric .lbl { font: var(--body-sm); color: var(--muted); margin: 6px 0 0; }

/* Cream card section — wraps a whole section in a cream panel that breaks out
   wider than the prose column. Metrics inside drop their card chrome and sit
   directly on the cream. */
.cs-section--card {
  --cardw: min(1136px, calc(100vw - 64px));
  background: var(--surface-card); border-radius: var(--rounded-xl);
  padding: 48px 56px; margin: 32px 0;
  width: var(--cardw);
  /* Break out wider than the 700px prose, centred via negative margins (not a
     transform — the reveal animation owns transform and would cancel it). */
  margin-left: calc((700px - var(--cardw)) / 2);
  box-sizing: border-box;
}
.cs-section--card .cs-metric { background: none; border-radius: 0; padding: 0; }
/* Reading-width variant — cream extends wide but inner text stays at the 700px
   prose measure (same idea as the About page's Experience card). */
.cs-section--reading { padding: 48px max(28px, calc((var(--cardw) - 700px) / 2)); }
/* Teal variant of the card section — deep-teal fill with on-dark text. */
.cs-section.cs-section--teal { background: var(--surface-dark); }
.cs-section.cs-section--teal h2,
.cs-section.cs-section--teal h3,
.cs-section.cs-section--teal h4,
.cs-section.cs-section--teal .cs-subhead { color: var(--on-dark); }
.cs-section.cs-section--teal p { color: var(--on-dark-soft); }
.cs-section--teal .cs-metric .big { color: var(--on-dark); }
.cs-section--teal .cs-metric .lbl,
.cs-section--teal .cs-metric-unit { color: var(--on-dark-soft); }
.cs-section.cs-section--teal .pullquote p { color: var(--on-dark); }
.cs-section.cs-section--teal .pullquote-by { color: var(--on-dark-soft); }
.cs-section--teal .cs-tablist { background: color-mix(in srgb, var(--on-dark) 10%, transparent); }
.cs-section--teal .cs-tab { color: var(--on-dark-soft); }
.cs-section--teal .cs-tab:hover { color: var(--on-dark); }
.cs-section--teal .cs-tab.is-active { background: var(--surface-dark-elevated); color: var(--clay-mint); box-shadow: none; }
.cs-section--teal .cs-tab-figure { border-color: color-mix(in srgb, var(--on-dark) 22%, transparent); }
/* Centred card content + segmented tabs */
.cs-section--center { text-align: center; }
.cs-section--center .cs-metric { text-align: center; }
/* Emphasised closing line inside a Goal card — larger, left-aligned, constrained measure. */
.cs-section--card .cs-goal-lede {
  margin: 24px 0 0; text-wrap: pretty;
}
.cs-section--card .cs-goal-lede .cs-goal-lede__k {
  font: var(--caption); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.cs-section--card .cs-goal-lede p:not(.cs-goal-lede__k) {
  font: var(--title-md); font-weight: 400; color: var(--ink); margin: 0;
}
.cs-tabs { margin: 24px 0 8px; }
.cs-tablist { display: inline-flex; gap: 4px; background: var(--surface-cream-strong); border-radius: var(--rounded-pill); padding: 4px; margin-bottom: 28px; }
.cs-tab { border: 0; background: none; padding: 9px 20px; border-radius: var(--rounded-pill); font: var(--title-sm); color: var(--muted); cursor: pointer; transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.cs-tab:hover { color: var(--ink); }
.cs-tab.is-active { background: #ffffff; color: var(--ink); box-shadow: 0 1px 2px rgba(10,10,10,.06), 0 2px 10px rgba(10,10,10,.06); }
.cs-tabpanel.is-hidden { display: none; }
/* Before/After screen tabs — centred control over a row of phone screens. */
.cs-screen-tabs { text-align: center; }
.cs-screen-tabs .cs-tabpanel { text-align: initial; }
.cs-screen-tabs .cs-screens {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start;
}
.cs-screen { border-radius: 22px; overflow: hidden; background: var(--surface-cream-strong); border: 3px solid var(--ink); aspect-ratio: 393 / 852; }
.cs-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-screen--ph {
  aspect-ratio: 393 / 840; display: grid; place-items: center;
  border: 1px dashed var(--hairline); box-shadow: none; background: var(--surface-card);
}
.cs-screen--ph .ph { display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; text-align: center; }
.cs-screen--ph .ph span { font: var(--body-sm); color: var(--muted); }
/* Per-tab caption — matches .cs-figure figcaption; needs to beat .cs-section p. */
.cs-section p.cs-screen-cap { font: var(--body-sm); color: var(--muted); margin: 16px 0 0; text-align: center; }
@media (max-width: 760px) { .cs-screen-tabs .cs-screens { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
/* After flow has 3 screens — size each to exactly one Before-row track so the two
   tabs show identically-sized phones at any viewport, and centre the group. */
.cs-screens.cs-screens--three { display: flex; justify-content: center; gap: 20px; align-items: start; }
.cs-screens--three .cs-screen { flex: 0 0 calc((min(1136px, 100vw - 64px) - 60px) / 4); }
/* Paired screens (Clary is / is not) — same phone width as the other rows, centred. */
.cs-screens.cs-screens--pair { display: flex; justify-content: center; gap: 20px; align-items: start; }
.cs-screens.cs-screens--pair .cs-screen, .cs-screens.cs-screens--quad .cs-screen { flex: 0 0 calc((min(1136px, 100vw - 64px) - 60px) / 4); }
.cs-screens.cs-screens--quad { display: flex; justify-content: center; gap: 20px; align-items: start; }
/* Hero row — two phone screens flanking a video placeholder, sized larger than inline figures. */
.cs-screens--hero { display: flex; justify-content: center; gap: 28px; align-items: stretch; }
.cs-screens--hero .cs-screen { flex: 0 0 auto; width: clamp(190px, 23vw, 300px); }
.cs-screen--video-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--surface-cream-strong); border-style: dashed; text-align: center; padding: 24px;
}
.cs-video-ph__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--canvas); padding-left: 3px;
}
.cs-video-ph__label { font: var(--body-sm); color: var(--muted); }
/* Vimeo background embed filling a phone frame in the hero row.
   Container-query "cover" sizing so the video fills the frame with no letterbox bars,
   cropping the overflow instead. Tuned for a portrait (≈9:16) source. */
.cs-screen--video { position: relative; background: #000; container-type: size; }
.cs-screen--video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 0; display: block;
  width: 100cqw; height: 177.78cqw;      /* 9:16 → height = width × 16/9 */
  min-width: 56.25cqh; min-height: 100cqh; /* ensure both axes are covered */
}
.cs-screen--video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border: 0;
}
@media (max-width: 760px) {
  .cs-screens--hero { flex-wrap: wrap; gap: 16px; }
  .cs-screens--hero .cs-screen { width: clamp(150px, 44vw, 300px); }
}
/* Very small screens: drop the third panel so the first two sit side by side without wrapping. */
@media (max-width: 480px) {
  .cs-screens--hero { flex-wrap: nowrap; gap: 12px; }
  .cs-screens--hero .cs-screen:nth-child(3) { display: none; }
  .cs-screens--hero .cs-screen { width: auto; flex: 1 1 0; max-width: 50%; }
}
.cs-screens--pair .cs-screen { flex: 0 0 calc((min(1136px, 100vw - 64px) - 60px) / 4); }
@media (max-width: 760px) {
  .cs-screens.cs-screens--three { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cs-screens--three .cs-screen { flex: initial; }
  .cs-screens.cs-screens--pair { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cs-screens.cs-screens--quad { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cs-screens--quad .cs-screen { flex: initial; }
  .cs-screens--pair .cs-screen { flex: initial; }
}
/* Monetisation case study — turn the phone-flow galleries into peeking
   carousels on mobile (matches the triptych carousels on the other studies),
   overriding the 2-up grids above. The hero showcase keeps its own layout. */
@media (max-width: 760px) {
  .cs-screens.cs-screens--three,
  .cs-screens.cs-screens--pair,
  .cs-screens.cs-screens--quad,
  .cs-screens.cs-screens--hero,
  .cs-screen-tabs .cs-screens {
    display: flex;
    grid-template-columns: none;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 2px 10px;
    scroll-padding-left: 2px;
  }
  .cs-screens.cs-screens--three::-webkit-scrollbar,
  .cs-screens.cs-screens--pair::-webkit-scrollbar,
  .cs-screens.cs-screens--quad::-webkit-scrollbar,
  .cs-screens.cs-screens--hero::-webkit-scrollbar,
  .cs-screen-tabs .cs-screens::-webkit-scrollbar { display: none; }

  .cs-screens.cs-screens--three:focus-visible,
  .cs-screens.cs-screens--pair:focus-visible,
  .cs-screens.cs-screens--quad:focus-visible,
  .cs-screens.cs-screens--hero:focus-visible,
  .cs-screen-tabs .cs-screens:focus-visible {
    outline: 2px solid var(--clay-teal, #1a3a3a);
    outline-offset: 4px;
    border-radius: 12px;
  }

  .cs-screens.cs-screens--three > .cs-screen,
  .cs-screens.cs-screens--pair > .cs-screen,
  .cs-screens.cs-screens--quad > .cs-screen,
  .cs-screen-tabs .cs-screens > .cs-screen {
    flex: 0 0 64%;
    max-width: 64%;
    width: auto;
    scroll-snap-align: center;
  }
  /* Hero showcase (phone · video · phone) — same peeking carousel, slightly
     wider slides; re-show the 3rd screen the old ≤480 layout used to hide. */
  .cs-screens.cs-screens--hero > .cs-screen {
    flex: 0 0 70%;
    max-width: 70%;
    width: auto;
    scroll-snap-align: center;
  }
  .cs-screens.cs-screens--hero > .cs-screen:nth-child(3) { display: block; }
}
/* First pull-quote sits on the section rhythm below the tabs; attribution label. */
.cs-tabs + .pullquote { margin-top: 48px; }
.cs-section .pullquote-by { font: var(--caption); letter-spacing: 0; text-transform: none; color: var(--muted); margin: 10px 0 0; font-style: normal; }
/* Two quote cards side by side */
.pullquote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.pullquote--card { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
@media (max-width: 700px) { .pullquote-row { grid-template-columns: 1fr; } }
/* Reflection — three takeaways as cards in a row */
.reflect-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.reflect-card { background: var(--surface-card); border-radius: var(--rounded-lg); padding: 28px; }
.reflect-card .cs-subhead { margin-top: 0; margin-bottom: 10px; }
.reflect-card p { margin-bottom: 0; }
@media (max-width: 760px) { .reflect-row { grid-template-columns: 1fr; } }
/* Optional wide breakout for a reflect-row — wider than the 700px prose, centred. */
.reflect-row--wide { --rw: min(1136px, calc(100vw - 64px)); width: var(--rw); margin-left: calc(50% - var(--rw) / 2); }
@media (max-width: 760px) { .reflect-row--wide { width: auto; margin-left: 0; } }
/* Stacked variant — vertical list of cards within the prose measure */
.reflect-row--stack { grid-template-columns: 1fr; gap: 16px; }
/* Stacked principle cards — bordered, no cream fill */
.reflect-row--stack .reflect-card { background: transparent; border: 1px solid var(--hairline); }

/* ============================================================================
   MOBILE CAROUSELS  (≤760px)
   On phones the photo triptychs, the process-step cards, and the reflection
   rows become horizontal *peeking* carousels instead of stacking — the next
   card peeks in at the right edge to signal "swipe me". Scroll-snap + momentum,
   hidden scrollbar. A tiny script (mobile-carousels.js) makes each scroller
   keyboard-focusable with an aria-label, but only at mobile width.
   reflect-row--stack is intentionally excluded (it's a vertical list).
   ========================================================================== */
@media (max-width: 760px) {
  .cs-screens--triptych,
  .process-grid,
  .sprint-grid,
  .reflect-row {
    display: flex;
    grid-template-columns: none;           /* drop the grid track definition */
    flex-flow: row nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: auto;
    margin-left: 0;
    transform: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 2px 10px;                 /* room for the focus ring */
    scroll-padding-left: 2px;
  }
  .cs-screens--triptych::-webkit-scrollbar,
  .process-grid::-webkit-scrollbar,
  .sprint-grid::-webkit-scrollbar,
  .reflect-row::-webkit-scrollbar { display: none; }

  /* keyboard focus ring on the scroller (made focusable by JS at mobile width) */
  .cs-screens--triptych:focus-visible,
  .process-grid:focus-visible,
  .sprint-grid:focus-visible,
  .reflect-row:focus-visible {
    outline: 2px solid var(--clay-teal, #1a3a3a);
    outline-offset: 4px;
    border-radius: 10px;
  }

  /* card sizing + snap (the < 100% widths create the peek) */
  .reflect-row > .reflect-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .process-grid > .process-step {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
  .sprint-grid > .sprint-card {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
  .cs-screens--triptych > .screen-frame {
    flex: 0 0 68%;
    max-width: 68%;
    scroll-snap-align: center;
  }
  /* phone media fills the carousel card width (override the stacking rules) */
  .cs-screens--triptych > .screen-frame img,
  .cs-screens--triptych > .screen-frame--video video { height: auto; width: 100%; }
  .cs-screens--triptych > .screen-frame--embed { height: auto; width: 100%; }
}

/* More mobile carousels: design-system before/after tab screens + the outcome
   gallery, same peeking-carousel pattern. (Containers made keyboard-focusable
   by mobile-carousels.js at mobile width.) */
@media (max-width: 760px) {
  .cs-tabpanel .cs-screens,
  .cs-figure--screens .cs-screens:not(.cs-screens--triptych),
  .cs-gallery,
  .cs-duo {
    display: flex;
    flex-flow: row nowrap;
    flex-direction: row;                   /* override .cs-screens column stacking */
    grid-template-columns: none;
    align-items: flex-start;
    justify-content: flex-start;
    width: auto;
    margin-left: 0;
    transform: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 2px 10px;
    scroll-padding-left: 2px;
  }
  .cs-tabpanel .cs-screens::-webkit-scrollbar,
  .cs-figure--screens .cs-screens:not(.cs-screens--triptych)::-webkit-scrollbar,
  .cs-gallery::-webkit-scrollbar,
  .cs-duo::-webkit-scrollbar { display: none; }
  .cs-tabpanel .cs-screens:focus-visible,
  .cs-figure--screens .cs-screens:not(.cs-screens--triptych):focus-visible,
  .cs-gallery:focus-visible,
  .cs-duo:focus-visible {
    outline: 2px solid var(--clay-teal, #1a3a3a);
    outline-offset: 4px;
    border-radius: 12px;
  }
  .cs-tabpanel .cs-screens > .screen-frame,
  .cs-figure--screens .cs-screens:not(.cs-screens--triptych) > .screen-frame {
    flex: 0 0 70%;
    max-width: 70%;
    scroll-snap-align: center;
  }
  .cs-tabpanel .cs-screens > .screen-frame img,
  .cs-figure--screens .cs-screens:not(.cs-screens--triptych) > .screen-frame img { height: auto; width: 100%; }
  .cs-gallery > .frame {
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: center;
  }
  .cs-duo > .frame {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
  }
}

/* ===================== HYPOTHESIS BLOCKS (Clary monetisation case study) ===================== */
/* Numbered eyebrow above a hypothesis heading */
.cs-hyp-num {
  font: var(--caption); font-size: 13px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 12px;
  display: inline-flex; align-items: center; gap: 10px;
}

/* Single-column bet card — one hypothesis statement (Atlas solution blocks) */
.cs-bet--single { grid-template-columns: 1fr; }

/* The "bet" — Problem + Hypothesis side by side in a split cream card */
.cs-bet {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 26px 0 10px; border-radius: var(--rounded-lg); overflow: hidden;
  background: var(--hairline);
}
.cs-bet > div { background: var(--surface-card); padding: 24px 26px; }
.cs-bet .k {
  font: var(--caption); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.cs-bet p { margin: 0; }
/* Single-column bet card — one hypothesis statement (Atlas solution blocks) */
.cs-bet--single { grid-template-columns: 1fr; }
/* Impact card — teal callout closing each Atlas hypothesis block */
.cs-impact-card {
  background: var(--surface-dark); border-radius: var(--rounded-lg);
  padding: 26px 30px; margin: 30px 0 0;
}
.cs-section .cs-impact-card .cs-impact-card__k {
  font: var(--caption); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--on-dark); margin: 0 0 8px;
}
.cs-section .cs-impact-card p { color: var(--on-dark); margin: 0; }
/* Metric grid inside the teal impact card — big number + small label, on-dark */
.cs-impact-card .cs-metrics { margin: 16px 0 0; gap: 20px 24px; }
.cs-impact-card .cs-metric { background: none; border-radius: 0; padding: 0; }
.cs-section .cs-impact-card .cs-metric .big { color: var(--on-dark); margin: 0; }
.cs-section .cs-impact-card .cs-metric .lbl { color: var(--on-dark-soft); margin: 6px 0 0; }
.cs-impact-card .cs-metric-unit { color: var(--on-dark-soft); }
/* Cream variant — same card, cream fill with body text (Clary "What we learned") */
.cs-impact-card--cream { background: var(--surface-card); }
.cs-section .cs-impact-card--cream p { color: var(--body); }
.cs-section .cs-impact-card--cream .cs-impact-card__k { color: var(--muted); }
.cs-section .cs-impact-card--cream .cs-metric .big { color: var(--ink); }
.cs-section .cs-impact-card--cream .cs-metric .lbl { color: var(--muted); }
.cs-impact-card--cream .cs-metric-unit { color: var(--muted); }

/* "What we learned" cream card — header + paragraph on the cream surface,
   matching the cream impact cards that close each hypothesis. */
.cs-learn-card {
  background: var(--surface-card); border-radius: var(--rounded-lg);
  padding: 26px 30px; margin: 30px 0 0;
}
.cs-learn-card .cs-subhead--minor { margin-top: 0; margin-bottom: 8px; }
.cs-section .cs-learn-card p { margin-bottom: 0; }

/* Border-only challenge cards — bold lead-in becomes the card title (Atlas) */
.cs-challenge-grid { display: grid; gap: 16px; margin: 26px 0 10px; }
.cs-challenge-card {
  border: 1px solid var(--hairline); border-radius: var(--rounded-lg);
  padding: 24px 28px;
}
.cs-challenge-card__title { font: var(--title-md); font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.cs-section .cs-challenge-card p { margin: 0; }
/* When a callout immediately follows the card grid, match the inter-card gap (16px) */
.cs-challenge-grid + .cs-callout-card { margin-top: 16px; }
@media (max-width: 600px) { .cs-bet { grid-template-columns: 1fr; } }

/* Inline link-card — references an external doc (e.g. the Toolbox design-system doc) */
.cs-doc-link {
  display: flex; align-items: center; gap: 18px;
  margin: 6px 0 2px; padding: 18px 22px;
  background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg); text-decoration: none; color: var(--ink);
  transition: border-color .18s ease;
}
.cs-doc-link:hover { border-color: var(--ink); }
.cs-doc-link__icon {
  flex: none; width: 48px; height: 48px; border-radius: var(--rounded-md);
  display: grid; place-items: center; font-size: 24px; line-height: 1;
  background: var(--surface-card); border: 1px solid var(--hairline-soft);
}
.cs-doc-link__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cs-doc-link__title { font: var(--title-md); font-weight: 600; color: var(--ink); }
.cs-doc-link__sub { font: var(--body-sm); color: var(--muted); }
.cs-doc-link__arrow { margin-left: auto; flex: none; color: var(--muted); display: inline-flex; transition: transform .18s ease, color .18s ease; }
.cs-doc-link:hover .cs-doc-link__arrow { color: var(--accent-text); transform: translate(3px, -3px); }
/* Beat the global .cs-section a underline — the doc-link is a card, not inline text */
.cs-section a.cs-doc-link, .cs-section a.cs-doc-link:hover { text-decoration: none; }

/* Hover-preview popup — shows a book/reference cover next to the cursor */
.hover-preview {
  position: fixed; top: 0; left: 0; z-index: 240; pointer-events: none;
  width: 168px; padding: 7px; background: var(--surface-card);
  border: 1px solid var(--hairline); border-radius: var(--rounded-md);
  box-shadow: 0 20px 48px -18px rgba(20,20,20,.45);
  opacity: 0; transform: translateY(8px) scale(.94); transform-origin: top left;
  transition: opacity .16s var(--ease-out-soft, ease), transform .16s var(--ease-out-soft, ease);
  will-change: transform, opacity;
}
.hover-preview.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.hover-preview img { display: block; width: 100%; height: auto; border-radius: calc(var(--rounded-md) - 3px); background: var(--canvas); }
@media (prefers-reduced-motion: reduce) { .hover-preview { transition: opacity .12s ease; transform: none; } .hover-preview.is-visible { transform: none; } }
@media (max-width: 767px) {
  .cs-section--card { width: auto; max-width: 100%; margin-left: 0; padding: 32px 24px; }
}
/* Wide breakout (no card chrome) — matches the Results card width. */
.cs-section--wide {
  --cardw: min(1136px, calc(100vw - 64px));
  width: var(--cardw); margin-left: calc((700px - var(--cardw)) / 2); box-sizing: border-box;
}
@media (max-width: 767px) {
  .cs-section--wide { width: auto; max-width: 100%; margin-left: 0; }
}

.pullquote { padding: 4px 0; margin: 24px 0; }
.pullquote p { font: var(--display-sm); font-style: italic; letter-spacing: var(--tracking-display-sm); color: var(--ink); margin: 0; }

/* next project — Clay-style bubble (replaces the old full-bleed dark banner) */
.next-bubble-row { display: flex; justify-content: flex-end; }
.next-bubble {
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--surface-dark); color: var(--on-dark);
  border: 1px solid color-mix(in srgb, var(--on-dark) 12%, transparent);
  border-radius: var(--rounded-pill);
  padding: 12px 14px 12px 26px; text-decoration: none;
  box-shadow: var(--frame-shadow-soft);
  transition: transform var(--spring-lift-dur) var(--spring-lift),
              box-shadow var(--spring-lift-dur) var(--spring-lift);
  will-change: transform;
}
.next-bubble__text { display: flex; flex-direction: column; gap: 2px; }
.next-bubble__label { font: var(--caption); font-size: 11px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--on-dark-soft); font-weight: 600; }
.next-bubble__title { font: 500 22px/1.15 var(--font-display); letter-spacing: var(--tracking-display-sm); color: var(--on-dark); }
.next-bubble__chip {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--on-dark) 14%, transparent); color: var(--on-dark);
  transition: transform var(--spring-arrow-dur) var(--spring-arrow),
              background-color .25s ease;
}
.next-bubble:hover { transform: translateY(-4px); box-shadow: var(--frame-shadow); }
.next-bubble:hover .next-bubble__chip { transform: translateX(4px); background: color-mix(in srgb, var(--on-dark) 22%, transparent); }
@media (max-width: 600px) {
  .next-bubble-row { justify-content: center; }
  .next-bubble { gap: 14px; padding: 10px 12px 10px 22px; }
  .next-bubble__chip { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .next-bubble, .next-bubble__chip { transition: none; }
  .next-bubble:hover { transform: none; }
  .next-bubble:hover .next-bubble__chip { transform: none; }
}

/* ============================================================================
   PASSWORD GATE
   ========================================================================== */
.gate-wrap { min-height: 70vh; display: grid; place-items: center; padding: 64px 24px; }
.gate { width: 100%; max-width: 460px; text-align: center; }
.gate .lock { width: 48px; height: 48px; border-radius: var(--rounded-pill); background: var(--surface-card); display: grid; place-items: center; margin: 0 auto 24px; color: var(--ink); }
.gate h1 { font: var(--display-md); letter-spacing: var(--tracking-display-md); color: var(--ink); margin: 0 0 12px; }
.gate p { color: var(--body); margin: 0 0 28px; }
.gate form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.field-label { font: var(--caption); color: var(--muted); }
.text-input {
  width: 100%; height: 48px; padding: 0 16px; font: var(--body-md);
  background: var(--canvas); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--rounded-md);
}
.text-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring-focus); }
.gate .btn { width: 100%; margin-top: 4px; }
.form-fail { display: none; color: var(--error); font: var(--body-sm); margin-top: 4px; }
.form-fail.is-visible { display: block; }
.gate-note { margin-top: 24px; font: var(--body-sm); color: var(--muted-soft); }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--surface-soft); color: var(--muted); padding: var(--space-section) 0 96px; }
.site-footer .footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-copy { display: none; }
.footer-col h4 { font: var(--title-md); font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: -0.2px; margin: 0 0 20px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font: var(--body-md); padding: 8px 0; }
.footer-col a:hover { color: var(--accent-text); }

/* ----------------------------------------------------------------------------
   COVER-STYLE FOOTER — mirrors the homepage text-block (contact + credentials,
   no body copy). Shared across the case-study pages + about.
   -------------------------------------------------------------------------- */
.cover-footer {
  display: flex; flex-wrap: wrap; gap: 24px 80px;
  align-items: flex-end; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px 72px;
}
.cover-footer__contact {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  font: var(--body-md); color: var(--ink);
}
.cover-footer .contact-link {
  color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent);
  transition: text-decoration-color .15s ease, color .15s ease;
}
.cover-footer .contact-link:hover {
  text-decoration-color: var(--ink); color: var(--accent-text);
}
.cover-footer__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  align-items: baseline; gap: 12px 24px;
  font: var(--body-md); color: var(--ink);
}
@media (max-width: 767px) {
  .cover-footer {
    flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 28px 22px 56px;
  }
  .cover-footer__meta { justify-content: flex-start; gap: 8px 16px; }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  /* On smaller viewports the back pill scrolls with the page (not sticky) so it
     never floats over the hero eyebrow/title while reading. */
  .cs-nav { position: static; margin-top: 18px; }
  .cs-hero { padding-top: 44px; }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-copy { grid-column: 2; justify-self: end; }
  .cs-metrics { grid-template-columns: repeat(2, 1fr); }
  /* Odd third metric in a 3-up row sits alone on the second row — centre it
     (matches all .cs-metrics--three instances across the case studies). */
  .cs-metrics--three > .cs-metric:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 24px) / 2);
  }
}
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .shell, .shell-narrow { padding: 0 22px; }
  .band { padding: 64px 0; }
  /* Align the hero eyebrow's vertical centre with the centre of the theme
     toggle (fixed top:18px, 52px tall → centre at 44px). Accounts for the
     ~6px line-box offset above the eyebrow inside its grid item. */
  .cs-hero { padding-top: 30px; }
  /* Back pill floats at the bottom-left of the screen on phones, thumb-reachable.
     header.cs-nav (specificity 0,1,1) so it beats the base .cs-nav sticky rule,
     which is declared later in the file. */
  header.cs-nav {
    position: fixed; top: auto; left: 0; right: 0;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    margin-top: 0; justify-content: flex-start; z-index: 100;
  }
  header.cs-nav .shell { display: flex; justify-content: flex-start; }
  .brand-logo { top: 18px; left: 18px; font-size: 16px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--canvas); border-bottom: 1px solid var(--hairline);
    padding: 12px 22px 20px; display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .meta-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .meta-list { grid-template-columns: 1fr; gap: 22px; }
  .three-col { grid-template-columns: 1fr; gap: 28px; }
  .callout, .dark-panel { padding: 40px 28px; }
  .cs-figure.wide { max-width: 100%; margin-left: 0; transform: none; }
  .cs-figure:not(.wide) { width: auto; max-width: 100%; margin-left: 0; transform: none; }
  .cs-metrics { grid-template-columns: 1fr 1fr; }
  /* Centre each metric's number + description on mobile so the labels read tidily. */
  .cs-metric { text-align: center; }
  /* Centre the impact-card header (eyebrow + intro) on mobile to match its metrics. */
  .cs-impact-card { text-align: center; }
  /* Centre the title + copy of summary cards (those with a metric grid) on mobile. */
  .cs-section--card:has(.cs-metrics) { text-align: center; }
  /* Next-project bubble: keep the title to one line with an ellipsis on mobile. */
  .next-bubble { max-width: 100%; }
  .next-bubble__text { min-width: 0; }
  .next-bubble__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding-top: 56px; padding-bottom: 40px; }
}
@media (min-width: 1600px) {
  .shell { max-width: 1320px; }
  .cs-figure:not(.wide) { width: min(1256px, calc(100vw - 64px)); }
}

/* ============================================================================
   FLOATING SEGMENTED PILL NAV  (Apple-style, essential)
   Replaces the old wordmark + link bar. Transparent header floats it centered.
   ========================================================================== */
.site-nav {
  position: sticky; top: 18px; z-index: 100;
  display: flex; justify-content: center;
  background: none; border: 0; pointer-events: none;
}

/* Smaller display/header type on mobile (phones) */
@media (max-width: 600px) {
  :root {
    --display-xl: 500 40px/1.05 var(--font-display);
    --display-lg: 500 34px/1.08 var(--font-display);
    --display-md: 500 28px/1.15 var(--font-display);
    --display-sm: 500 23px/1.2  var(--font-display);
    --title-lg:   600 20px/1.3  var(--font-body);
  }
}

/* Mobile only (phones, not tablets): float the pill nav at the bottom of the screen */
@media (max-width: 500px) {
  .site-nav {
    position: fixed; top: auto; bottom: 18px; left: 0; right: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  /* clearance so the floating pill never covers the footer's bottom row */
  .site-footer { padding-bottom: 104px; }
}

/* Brand wordmark — fixed top-left, vertically centered to the nav + toggle */
.brand-logo {
  position: fixed; top: 18px; left: 26px; z-index: 110; height: 52px;
  display: inline-flex; align-items: center; gap: .14em;
  text-decoration: none; color: var(--ink);
  font: var(--title-md); font-weight: 700; letter-spacing: -.02em;
}
.pill-nav {
  pointer-events: auto;
  display: inline-flex; gap: 2px; padding: 5px;
  background: var(--surface-cream-strong);
  border-radius: var(--rounded-pill);
  box-shadow: 0 1px 2px rgba(10,10,10,.05), 0 10px 28px rgba(10,10,10,.07);
}
.pill-link {
  font: var(--title-sm); font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 10px 24px; border-radius: var(--rounded-pill);
  transition: color .2s ease, background .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.pill-link:hover { color: var(--ink); }
.pill-link.is-active {
  background: #ffffff; color: var(--accent-text);
  box-shadow: 0 1px 2px rgba(10,10,10,.06), 0 2px 10px rgba(10,10,10,.06);
}

/* ---- Case-study floating "Back" pill (replaces nav on case studies) ------- */
.cs-nav {
  position: sticky; top: 18px; z-index: 100;
  display: flex; justify-content: flex-start;
  pointer-events: none;             /* let the page scroll through the gutter */
}
.cs-nav .shell { width: 100%; }
.back-pill {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--on-primary);
  font: var(--title-sm); font-weight: 600;
  text-decoration: none; padding: 13px 24px 13px 20px;
  border-radius: var(--rounded-pill);
  box-shadow: 0 1px 2px rgba(10,10,10,.12), 0 12px 30px rgba(10,10,10,.16);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.back-pill .back-arrow {
  display: inline-flex; transition: transform .2s ease;
}
.back-pill:hover {
  background: var(--primary-active);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(10,10,10,.14), 0 16px 38px rgba(10,10,10,.2);
}
.back-pill:hover .back-arrow { transform: translateX(-3px); }
.back-pill:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(10,10,10,.12), 0 8px 20px rgba(10,10,10,.16); }
.back-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================================
   MOTION SYSTEM  (shared tokens — hero + scroll reveals use the same feel)
   ========================================================================== */
:root {
  --ease-out-soft: cubic-bezier(.2,.7,.2,1);
  --reveal-dur: .7s;
  --reveal-rise: 20px;

  /* Interactive accent — peach family (replaces the old hot-pink).
     --accent     : fills, strokes, stars, focus rings (peach reads fine here)
     --accent-text: deepened peach for text/hover on light surfaces (legible on cream) */
  --accent: var(--clay-peach);
  --accent-text: var(--ink);  /* interactive text/hover/active — black (cream in dark) */

  /* Case-study card springs — generated from CaseStudyCard.jsx Motion configs:
     lift  spring(300,26) · zoom spring(120,22) · arrow spring(280,24).
     linear() traces the real spring curve; duration = its settle time. */
  --spring-lift: linear(0,.0176,.0631,.1262,.203,.2846,.3703,.4531,.5342,.6085,.678,.7391,.7944,.8414,.8825,.9163,.9449,.9676,.986,.9999,1.0106,1.018,1.0232,1.0262,1.0276,1.0278,1.027,1.0256,1.0237,1.0215,1.0191,1.0168,1.0145,1.0123,1.0103,1.0084,1.0067,1.0053,1.004,1.003,1.0021,1.0013,1.0007,1.0003,.9999,.9996,.9994,.9993,.9993,1);
  --spring-lift-dur: 545ms;
  --spring-zoom: linear(0,.0261,.0877,.1682,.2564,.3452,.4303,.509,.5802,.6434,.6994,.7474,.7886,.8237,.8534,.8785,.8996,.9171,.9318,.9439,.9541,.9624,.9693,.9749,.9795,.9833,.9864,.9889,.991,.9927,.9941,.9952,.9961,.9968,.9974,.9979,.9983,.9986,.9989,.9991,.9993,.9994,.9995,.9996,.9997,.9998,.9998,.9998,.9999,1);
  --spring-zoom-dur: 1091ms;
  --spring-arrow: linear(0,.0311,.1082,.2124,.3292,.4477,.559,.6618,.7517,.8276,.8894,.9374,.9745,1.0014,1.0197,1.0311,1.0371,1.039,1.0382,1.0354,1.0314,1.0269,1.0223,1.0179,1.0138,1.0102,1.0072,1.0047,1.0027,1.0012,1.0001,.9993,.9988,.9986,.9985,.9985,.9986,.9987,.9989,.9991,.9993,.9994,.9996,.9997,.9998,.9999,.9999,1,1,1);
  --spring-arrow-dur: 769ms;
}

/* ---- HERO MOTION ---------------------------------------------------------- */
/* Reveal-on-load (staggered rise) */
.hero .anim { opacity: 0; transform: translateY(var(--reveal-rise)); transition: opacity var(--reveal-dur) var(--ease-out-soft), transform var(--reveal-dur) var(--ease-out-soft); }
.hero .word { display: inline-block; }
.hero.is-ready .anim { opacity: 1; transform: none; }

/* ---- SCROLL REVEAL (Tier 1: choreographed, on-enter, fires once) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-rise));
  transition: opacity var(--reveal-dur) var(--ease-out-soft),
              transform var(--reveal-dur) var(--ease-out-soft);
  will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* media settles a beat before its label — applied to work-card media */
[data-reveal].reveal-media { transform: translateY(calc(var(--reveal-rise) + 8px)) scale(.992); }
[data-reveal].reveal-media.is-revealed { transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].reveal-media { opacity: 1; transform: none; transition: none; will-change: auto; }
  /* Match the component's reduceMotion branch: hover produces no movement at all. */
  .work-card:hover .work-card__inner,
  .work-card:focus-visible .work-card__inner { transform: none; }
  .work-card:hover .work-media__frame img,
  .work-card:hover .work-media__frame .ph,
  .work-card:focus-visible .work-media__frame img,
  .work-card:focus-visible .work-media__frame .ph { transform: none; }
  .work-media__shadow,
  .work-card:hover .work-media__shadow,
  .work-card:focus-visible .work-media__shadow { opacity: 0; }
}

/* Figma-style pen mark beside "Ken".
   On hover: cursor pointer; the pen travels under "Ken" drawing a wiggly line,
   then returns to its place (driven by hero-motion.js / Web Animations). */
.hero-pen {
  display: inline-flex; vertical-align: -0.02em; margin-left: .16em;
  width: .66em; height: .66em; cursor: pointer; position: relative; z-index: 2;
  filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.28));
}
.hero-pen svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* wiggly underline drawn under "Ken" */
.ken-word { position: relative; }
.ken-ul { position: absolute; left: 0; right: 0; bottom: .02em; height: .5em; pointer-events: none; }
.ken-ul svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; overflow: visible; }
.ken-ul path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* The 0→1 arrow — Clay accent, draws in then gently nudges right */
.zo-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: .64em; height: .58em; margin: 0 .1em; vertical-align: -0.02em;
  color: var(--clay-teal);
}
.zo-arrow svg { width: 100%; height: 100%; overflow: visible; }
.zo-arrow .zo-shaft { stroke-dasharray: none; stroke-dashoffset: 0; }
.zo-arrow .zo-head  { stroke-dasharray: none; stroke-dashoffset: 0; }

/* Scroll cue */
/* Hero "Selected work" — DS secondary button + chevron affordance */
.hero > .btn--secondary { margin-top: 48px; }
.btn .chev {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: currentColor; transition: transform .2s var(--ease-out-soft);
}
.btn:hover .chev { transform: translateY(2px); }

@media (prefers-reduced-motion: reduce) {
  .hero .anim { opacity: 1; transform: none; transition: none; }
  .zo-arrow .zo-shaft, .zo-arrow .zo-head { stroke-dashoffset: 0; }
  .hero.is-ready .zo-arrow svg { animation: none; }
}

/* ============================================================================
   CLAY TYPE TREATMENT
   All-Inter. Display = weight 500 (never bolder) with strong negative tracking;
   the rounded-grotesque warmth carries the headline, not weight. Generous spacing.
   ========================================================================== */
.display-xl { font-weight: 500; }
.display-lg { font-weight: 500; }
.display-md { font-weight: 500; }
.display-sm { font-weight: 500; }
.work-title { font-weight: 500; }
.value h3   { font-weight: 500; letter-spacing: -0.5px; }
.cs-section h2, .next-project h2, .gate h1 { font-weight: 500; }
.lead { line-height: 1.5; font-weight: 400; }

/* Hero scale — big rounded Clay headline */
.hero .display-xl { font-size: clamp(44px, 6vw, 80px); }
/* paragraph-style intro hero — smaller, readable, fits on screen */
.hero .display-xl.hero-intro {
  font-size: 48px;
  line-height: 1.32; max-width: none; font-weight: 500;
}
@media (max-width: 767px) {
  .hero .display-xl.hero-intro { font-size: 30px; line-height: 1.34; }
}
@media (max-width: 400px) {
  .hero .display-xl.hero-intro { font-size: 26px; }
}
.hero .display-xl.hero-intro .zo-arrow { width: .82em; }
.hero { padding-top: 96px; padding-bottom: 64px; }
.cs-hero .display-xl { font-size: clamp(40px, 5vw, 66px); }

/* Reading column = Inter (Clay has no serif). Comfortable measure + size. */
.cs-intro { font-weight: 400; font-size: 22px; line-height: 1.5; color: var(--body-strong); letter-spacing: -0.2px; }
.cs-section p, .cs-section li { font-size: 18px; line-height: 1.65; color: var(--body); }
.cs-section strong { font-weight: 600; }
.pullquote p { font-weight: 500; font-size: 26px; line-height: 1.3; letter-spacing: -0.5px; color: var(--ink); font-style: normal; }

/* Section labels — Clay's small uppercase caption label */
.eyebrow { letter-spacing: var(--tracking-caps); font-weight: 600; }
.hero .eyebrow { margin-bottom: 28px; }

/* ============================================================================
   CUSTOM CURSOR (designer-portfolio style — dot + trailing ring)
   Only active on fine-pointer devices; native cursor restored otherwise.
   ========================================================================== */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor .work-card,
.has-custom-cursor .pill-link,
.has-custom-cursor .theme-toggle,
.has-custom-cursor .btn,
.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor label,
.has-custom-cursor summary { cursor: none; }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  opacity: 0; mix-blend-mode: difference;
  will-change: transform;
}
.cursor-active .cursor-dot, .cursor-active .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 8px; height: 8px; background: #fff;     /* white + difference → inverts */
  transition: opacity .2s ease, width .25s var(--ease-out-soft), height .25s var(--ease-out-soft);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid #fff; background: transparent;
  transition: opacity .25s ease, width .3s var(--ease-out-soft),
              height .3s var(--ease-out-soft), background-color .3s var(--ease-out-soft),
              border-color .3s var(--ease-out-soft);
}

/* hover over interactive elements: ring grows + softly fills, dot disappears */
.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.18);
  border-color: transparent;
}
.cursor-hover .cursor-dot { width: 0; height: 0; }

/* press feedback */
.cursor-down .cursor-ring { width: 30px; height: 30px; }
.cursor-down.cursor-hover .cursor-ring { width: 54px; height: 54px; }

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { transition: opacity .2s ease; }
}
