/* =========================================
   GLOBAL DESIGN TOKENS + BASE STYLES
   Shared across landing page + case studies
========================================= */

:root {
  /* Layout */
  --max-w:       1560px;
  --shell-pad:   clamp(50px, 6vw, 100px);
  --nav-w:       200px;
  --content-gap: 4rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r:    8px;   /* legacy alias used in case study HTML */

  /* Backgrounds */
  --bg:      #141414;
  --bg-soft: #1c1c1c;
  --bg-card: #1e1e1e;
  --bg-off:  #1a1a1a;
  --bg-warm: #1a1a1a;

  /* Borders */
  --border:     rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-body:      rgba(255, 255, 255, 0.58);
  --text-tertiary:  rgba(255, 255, 255, 0.56);
  /* Legacy aliases used in case-study HTML */
  --text:       #ffffff;
  --text-mid:   rgba(255, 255, 255, 0.65);
  --text-light: rgba(255, 255, 255, 0.50);
  --text-faint: rgba(255, 255, 255, 0.56);

  /* Accent */
  --accent:        #f5c97a;
  --accent-soft:   rgba(245, 201, 122, 0.08);
  --accent-border: rgba(245, 201, 122, 0.18);
  /* Legacy aliases — case studies reference these token names */
  --amber: #f5c97a;
  --blue:  #f5c97a;

  /* Type scale */
  --fs-h1:      clamp(2.25rem, 5vw + 1rem, 4.5rem);
  --fs-h2:      clamp(1.6rem, 3vw + 1rem, 2.6rem);
  --fs-h3:      clamp(1.2rem, 1.6vw + 1rem, 1.8rem);
  --fs-body:    clamp(0.95rem, 0.35vw + 0.9rem, 1.05rem);
  --fs-sm:      clamp(0.8rem, 0.2vw + 0.76rem, 0.9rem);
  --fs-eyebrow: 0.625rem;
  --fs-metric:  clamp(2.2rem, 3vw + 1rem, 2.8rem);

  /* Line heights */
  --lh-tight:   1.12;
  --lh-heading: 1.2;
  --lh-body:    1.8;
  --lh-relaxed: 1.85;

  /* Transitions */
  --ease: 180ms ease;

  /* Index-specific tokens */
  --surface-1:         #181818;
  --surface-2:         #1c1c1c;
  --surface-3:         #212121;
  --heading:           #ffffff;
  --text-hi:           rgba(255, 255, 255, 0.92);
  --text-lo:           rgba(255, 255, 255, 0.68);
  --nav-bg:            rgba(20, 20, 20, 0.92);
  --cursor-color:      #f5c97a;
  --radius-sm:         0.5rem;
  --radius-md:         0.75rem;
  --radius-pill:       999px;
  --border-hi:         rgba(255, 255, 255, 0.16);
  --card-purple-dark:  #3b1d70;
  --card-purple-light: #8b5cf6;
  --card-green-dark:   #166534;
  --card-green-light:  #22c55e;
  --card-blue-dark:    #1e3a8a;
  --card-blue-light:   #60a5fa;
}


/* =========================================
   RESET
========================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  cursor: auto;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
a[href], button, [role="button"] { cursor: pointer; }


/* =========================================
   ACCESSIBILITY
========================================= */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #141414;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
*:focus         { outline: none; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (forced-colors: active) {
  .callout,
  .tp,
  .freeze-callout,
  .inline-stat { border: 1px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html   { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* =========================================
   CASE STUDY — LAYOUT SHELLS
========================================= */

.hero-inner,
.summary-inner,
.case-wrap {
  width: min(var(--max-w), calc(100vw - (var(--shell-pad) * 2)));
  margin-inline: auto;
}

.hero-inner {
  width: min(1800px, calc(100vw - (var(--shell-pad) * 2)));
  max-width: none;
  padding: 5rem 0 4.5rem;
}

.hero-content {
  width: 100%;
  max-width: none;
}

.summary-inner {
  max-width: none;
  padding: 3.5rem 0;
}

.case-wrap {
  max-width: none;
  padding: 5.5rem 0 0;
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  gap: var(--content-gap);
  align-items: start;
}

.content { min-width: 0; padding-bottom: 7rem; }

/* Constrain and center the content column on desktop.
   max-width caps the width; margin-inline: auto centers it within the 1fr grid cell.
   Side nav, hero, bento, and next-project footer are outside .content — unaffected.
   Mobile/tablet: max-width and centering removed, content uses available width. */
@media (min-width: 860px) {
  .content {
    max-width: 960px;
    margin-inline: auto;
  }
}
.page    { padding-top: 52px; }


/* =========================================
   CASE STUDY — NAV
========================================= */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--shell-pad);
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: #fff; }

.side-nav { position: sticky; top: 72px; }
.side-nav ul { list-style: none; }
.side-nav li a {
  display: block;
  font-size: 14px;
  color: var(--text-faint);
  text-decoration: none;
  padding: 8px 0 8px 20px;
  border-left: 1.5px solid var(--border);
  transition: all var(--ease);
  line-height: 1.5;
}
.side-nav li a:hover,
.side-nav li a:focus-visible {
  color: var(--text-secondary);
  border-left-color: var(--border-mid);
}
.side-nav li a.active {
  color: var(--text-primary);
  border-left-color: var(--accent);
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--ease);
  margin-bottom: 2.75rem;
}
.back-link:hover { color: var(--text-mid); }
.back-link svg   { transition: transform 0.18s; }
.back-link:hover svg { transform: translateX(-3px); }


/* =========================================
   CASE STUDY — HERO
========================================= */

.hero {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.hero-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: none;
  margin-bottom: 0.9rem;
}

.hero-hook {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
  max-width: none;
  margin-bottom: 1.5rem;
  line-height: 1.58;
  letter-spacing: -0.01em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  max-width: none;
  width: 100%;
}

.meta-cell {
  flex: 1;
  min-width: 110px;
  padding-right: 2.5rem;
}

.meta-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
  display: block;
}

.meta-val {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.hero-img-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1.75rem;
}
.hero-img-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.img-ph {
  font-size: 12px;
  color: var(--text-faint);
  padding: 3rem 1rem;
  text-align: center;
}


/* =========================================
   CASE STUDY — SUMMARY BENTO
========================================= */

.summary-band {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.bento-summary {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.bento-cell-context {
  grid-column: 1;
  grid-row: 1 / 3;
  background: rgba(245, 201, 122, 0.08);
  border: 1px solid rgba(245, 201, 122, 0.18);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: transform 0.2s;
  cursor: default;
}
.bento-cell-context:hover { transform: translateY(-2px); }

.bento-cell-tension {
  grid-column: 2 / 4;
  grid-row: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  transition: border-color 0.2s;
}
.bento-cell-tension:hover { border-color: var(--border-mid); }

.bento-cell-role {
  grid-column: 2;
  grid-row: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

.bento-cell-outcome {
  grid-column: 3;
  grid-row: 2;
  background: rgba(245, 201, 122, 0.05);
  border: 1px solid rgba(245, 201, 122, 0.12);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

.bento-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.65rem;
  display: block;
}
.bento-cell-context .bento-lbl { color: rgba(245, 201, 122, 0.6); }
.bento-cell-context p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  flex: 1;
  margin-top: 0.5rem;
}
.bento-cell-context .bento-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(245, 201, 122, 0.5);
  margin-top: 1.5rem;
  border-top: 1px solid rgba(245, 201, 122, 0.15);
  padding-top: 1rem;
}

.bento-cell-tension p,
.bento-cell-role p,
.bento-cell-outcome p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.65;
}

.outcome-list {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.outcome-list li {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.outcome-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}


/* =========================================
   CASE STUDY — STRUCTURE
========================================= */

#case-body {
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible  { opacity: 1; transform: none; }
.reveal-delay-1  { transition-delay: 0.08s; }
.reveal-delay-2  { transition-delay: 0.16s; }
.reveal-delay-3  { transition-delay: 0.24s; }

.cs {
  margin-bottom: 5.5rem;
  scroll-margin-top: 72px;
  position: relative;
}
.cs::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  right: 0;
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
  position: relative;
  z-index: 1;
}

.cs > h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: #fff;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  max-width: 42ch;
}

.cs h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 2.25rem 0 1rem;
}

p.bd {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
p.bd strong { font-weight: 500; color: var(--text); }
p.bd em     { font-style: italic; color: var(--text-mid); }

.divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 5.5rem;
}


/* =========================================
   CASE STUDY — COMPONENTS
========================================= */

/* Turning-point block */
.tp {
  margin: 2.25rem 0;
  padding: 2.25rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.tp-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
  display: block;
}
.tp p { font-size: 14px; line-height: 1.85; color: var(--text-body); }
.tp p strong { color: #fff; font-weight: 500; }
.tp p + p    { margin-top: 0.9rem; }

/* Callout base — Guardian overrides with accent left-border; LA County overrides to plain text */
.callout {
  margin: 2.25rem 0;
  padding: 1.6rem 2rem 1.6rem 1.6rem;
  border-left: 2px solid var(--accent);
  background: rgba(245, 201, 122, 0.04);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}
.callout strong { font-weight: 500; color: #fff; }

/* Pull stat */
.pull-stat {
  margin: 2.5rem 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.pull-stat-text {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.55;
  letter-spacing: -0.015em;
  max-width: 640px;
}
.pull-stat-text strong { font-weight: 600; font-style: normal; color: #fff; }

/* Guiding question */
.gq-wrap { margin: 2.5rem 0; }
.gq-block {
  background: rgba(245, 201, 122, 0.05);
  border: 1px solid rgba(245, 201, 122, 0.12);
  padding: 4.5rem var(--shell-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.gq-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(245, 201, 122, 0.1) 0%, transparent 65%);
  animation: glow-pulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow-pulse {
  from { opacity: 0.5; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.05); }
}
.gq-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 201, 122, 0.6);
  margin-bottom: 1.25rem;
  display: block;
  position: relative;
  z-index: 1;
}
.gq-text {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 500;
  font-style: italic;
  color: #fff;
  line-height: 1.38;
  letter-spacing: -0.025em;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Inline stat */
.inline-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1.75rem 0;
  padding: 1.5rem 1.75rem;
  background: rgba(245, 201, 122, 0.06);
  border: 1px solid rgba(245, 201, 122, 0.15);
  border-radius: var(--r-md);
}
.inline-stat-val {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.inline-stat-text {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 520px;
}
.inline-stat-text strong { color: #fff; font-weight: 500; }

/* Findings */
.finding {
  border: none;
  border-left: 2px solid rgba(245, 201, 122, 0.35);
  border-radius: 0;
  overflow: visible;
  margin-bottom: 1.4rem;
  background: none;
  transition: none;
}
.finding:hover { border-color: rgba(245, 201, 122, 0.35); }
.finding-body  { padding: 0 0 0 1rem; background: none; }
.finding-title { font-size: 13.5px; font-weight: 500; color: #fff; margin-bottom: 0.35rem; }
.finding-desc  { font-size: 13px; color: var(--text-body); line-height: 1.72; }
.finding-quote {
  margin-top: 0.45rem;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Research findings — 2-col grid on laptop+ */
@media (min-width: 900px) {
  #research .finding-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2.5rem;
    align-items: stretch;
  }
  #research .finding {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    border: none;
    border-left: 2px solid rgba(245, 201, 122, 0.35);
  }
  #research .finding-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

/* Tension bento — supports tb-parent/tb-athlete (Guardian) and tb-left/tb-right (LA County) */
.tension-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin: 2rem 0;
}
.tb-parent,
.tb-left {
  background: rgba(245, 201, 122, 0.07);
  border: 1px solid rgba(245, 201, 122, 0.18);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  transition: transform 0.2s;
}
.tb-parent:hover,
.tb-left:hover { transform: translateY(-2px); }

.tb-athlete,
.tb-right {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  transition: border-color 0.2s;
}
.tb-athlete:hover,
.tb-right:hover { border-color: var(--border-mid); }

.tb-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.tb-parent .tb-tag, .tb-left .tb-tag   { color: rgba(245, 201, 122, 0.6); }
.tb-athlete .tb-tag, .tb-right .tb-tag { color: var(--text-faint); }

.tb-parent h3, .tb-athlete h3,
.tb-left h3,   .tb-right h3 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin: 0 0 0.75rem !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}
.tb-parent p, .tb-athlete p,
.tb-left p,   .tb-right p { font-size: 13px; color: var(--text-body); line-height: 1.7; }

/* Before/after image pairs */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.75rem 0;
}
.ba-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.18s;
}
.ba-item:hover { border-color: var(--border-mid); }
.ba-lbl {
  padding: 0.6rem 1.1rem;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.ba-lbl.is-after { color: var(--accent); }
.ba-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-card);
  min-height: 120px;
}
.ba-img img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

/* Image block */
.img-block {
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.img-block-inner {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 120px;
}
.img-block-inner img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}
.img-cap {
  padding: 0.75rem 1.1rem;
  font-size: 11px;
  font-style: italic;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* Decision cards */
.decision-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 2.25rem 0;
  border: 1px solid var(--border);
  transition: border-color 0.22s;
}
.decision-card:hover { border-color: var(--border-mid); }
.dc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
}
.dc-header {
  grid-column: 1 / 4;
  grid-row: 1;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.dc-num {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
  padding-top: 4px;
}
.dc-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  flex: 1;
  color: #fff;
}
.dc-cell               { padding: 1.5rem 1.75rem; background: var(--bg-card); }
.dc-cell.dc-cell-mid   { background: var(--bg-off); }
.dc-cell.dc-cell-last  { background: var(--bg-warm); }
.dc-lbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
  color: var(--text-faint);
}
.dc-txt { font-size: 13px; line-height: 1.75; color: var(--text-body); }
.dc-txt strong { color: #fff; font-weight: 500; }
.dc-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.dc-img-item { overflow: hidden; display: flex; flex-direction: column; }
.dc-img-item:first-child { border-right: 1px solid var(--border); }
.dc-img-lbl {
  padding: 0.7rem 1.25rem;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
}
.dc-img-lbl.is-after { color: var(--accent); }
.dc-img-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  flex: 1;
  min-height: 260px;
  background: var(--bg-card);
}
.dc-img-frame img {
  max-width: 100%;
  max-height: 440px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* dc-single-img used only in Guardian; placed globally to avoid a one-liner local file */
.dc-single-img {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  background: var(--bg-card);
}

/* Single decision images should feel focused, not oversized */
.dc-single-img .img-block-inner img {
  max-height: 270px;
}



/* =========================================
   CASE STUDY — METRICS
========================================= */

.metrics-grid-wrap { margin: 2.5rem 0 1rem; }
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 201, 122, 0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
  align-items: stretch;
}
.metric-cell {
  padding: 1.6rem 1.75rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  min-height: 120px;
  min-width: 0;
  height: 100%;
}
.metric-cell:nth-child(1),
.metric-cell:nth-child(2) { background: rgba(245, 201, 122, 0.05); }
.metric-cell:nth-child(3),
.metric-cell:nth-child(4) { background: rgba(245, 201, 122, 0.03); opacity: 0.92; }

.metric-val {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
}
.metric-lbl {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  display: block;
}
.metric-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.4;
  display: block;
  margin-top: 0.15rem;
}

.outcomes-quote {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 2rem;
  margin-top: 1rem;
  background: var(--bg-card);
}
.outcomes-quote p { font-size: 13.5px; color: var(--text-mid); line-height: 1.8; font-style: italic; }
.outcomes-quote p strong { color: rgba(255, 255, 255, 0.88); font-weight: 500; font-style: normal; }
.outcomes-quote cite {
  font-size: 11px;
  color: var(--text-faint);
  font-style: normal;
  display: block;
  margin-top: 0.75rem;
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.ob-val.counting { animation: count-up 0.5s ease both; }


/* =========================================
   CASE STUDY — REFLECTION
========================================= */

.reflect-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 2rem 0;
}
.reflect-item {
  padding: 2rem 2.25rem;
  background: var(--bg-card);
  transition: background 0.18s;
}
.reflect-item:hover { background: var(--bg-warm); }
.reflect-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}
.reflect-item p { font-size: 14px; color: var(--text-body); line-height: 1.85; }


/* =========================================
   CASE STUDY — NEXT PROJECT FOOTER
========================================= */

.next-project { width: 100%; margin: 5rem 0 0; }
.next-project-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  padding: 0 var(--shell-pad);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.next-project-card {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: white;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.next-project-card:hover {
  border-color: var(--border-mid);
  background: var(--bg-soft);
}
.next-project-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg-card);
}
.next-project-card:hover .next-project-bg { transform: none; }
.next-project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: none;
  border-top: 1px solid var(--border-mid);
}
.next-project-content {
  padding: 2rem var(--shell-pad);
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 3;
}
.next-project-text  { display: flex; flex-direction: column; gap: 0.75rem; }
.next-project-meta  { font-size: 11px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.1em; }
.next-project-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 600px;
  letter-spacing: -0.025em;
  transition: transform 0.6s;
}
.next-project-card:hover .next-project-title { transform: translateX(6px); }
.next-project-arrow {
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s, background 0.3s;
  flex-shrink: 0;
}
.next-project-card:hover .next-project-arrow {
  transform: translateX(10px) scale(1.1);
  background: rgba(245, 201, 122, 0.25);
}


/* =========================================
   CASE STUDY — RESPONSIVE
========================================= */

@media (max-width: 980px) {
  .case-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 3.5rem;
  }
  .side-nav { display: none; }

  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-cell  { min-height: 120px; padding: 1.5rem 1.45rem; }
  .metric-val   { font-size: 2.45rem; }
}

@media (max-width: 860px) {
  :root { --nav-w: 0px; }

  .content { padding-bottom: 4.5rem; }
  .cs      { margin-bottom: 3.5rem; }
  .divider { margin-bottom: 3.5rem; }

  .eyebrow,
  .hero-kicker,
  .tp-lbl,
  .dc-num,
  .dc-lbl,
  .gq-lbl,
  .bento-lbl,
  .meta-lbl,
  .ba-lbl {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .cs > h2 {
    font-size: clamp(1.9rem, 6vw, 2.4rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
    max-width: none;
  }

  p.bd,
  .inline-stat-text,
  .dc-txt,
  .finding-desc,
  .tp p,
  .reflect-item p,
  .outcomes-quote p,
  .callout {
    font-size: 15px;
    line-height: 1.78;
  }

  p.bd + p.bd { margin-top: -0.15rem; }

  .bento-summary      { grid-template-columns: 1fr 1fr; }
  .bento-cell-context { grid-column: 1 / 3; grid-row: 1; }
  .bento-cell-tension { grid-column: 1 / 3; grid-row: 2; }
  .bento-cell-role    { grid-column: 1; grid-row: 3; }
  .bento-cell-outcome { grid-column: 2; grid-row: 3; }

  .tension-bento { grid-template-columns: 1fr; }
  .ba            { grid-template-columns: 1fr; }
  .tri           { grid-template-columns: 1fr; }
  .dc-grid       { grid-template-columns: 1fr; }
  .dc-header     { grid-column: 1; flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 1.2rem 1.2rem 1rem; }
  .dc-num        { padding-top: 0; }
  .dc-title      { font-size: 1.18rem; line-height: 1.28; }
  .dc-cell       { grid-column: 1; grid-row: auto; padding: 1.15rem 1.2rem; }
  .dc-txt        { font-size: 14.5px; line-height: 1.75; }
  .dc-images     { grid-template-columns: 1fr; }
  .dc-img-item:first-child { border-right: none; border-bottom: 1px solid var(--border); }

  .metrics-grid { grid-template-columns: 1fr; }
  .metric-cell  { min-height: auto; padding: 1.35rem 1.2rem; }
  .metric-val   { font-size: 2.4rem; margin-bottom: 0.25rem; }
  .metric-lbl   { font-size: 13.5px; line-height: 1.35; }
  .metric-sub   { font-size: 12px; line-height: 1.45; }
  .outcomes-quote { padding: 1.2rem; margin-top: 0.75rem; }

  .inline-stat { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.2rem 1.15rem; margin: 1.5rem 0; }

  .next-project-card { height: 280px; }
  .tp          { padding: 1.5rem 1.25rem; margin: 1.5rem 0; }
  .callout     { padding: 1.2rem 1.15rem; margin: 1.5rem 0; }
  .gq-block    { padding: 3rem var(--shell-pad); }

  .finding       { border: 0; border-left: 2px solid rgba(245, 201, 122, 0.35); border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, 0.02); margin-bottom: 10px; }
  .finding-body  { padding: 1.05rem 1.15rem; }
  .finding-title { font-size: 14px; margin-bottom: 0.3rem; }
  .finding-desc  { font-size: 14px; }
}

@media (max-width: 680px) {
  :root { --shell-pad: clamp(20px, 5vw, 28px); }
}

@media (max-width: 640px) {
  .hero-inner    { padding: 3.5rem 0 3rem; }
  .summary-inner { padding: 2.5rem 0; }
  .case-wrap     { padding: 3rem 0 0; }
  .cs      { margin-bottom: 4rem; }
  .divider { margin-bottom: 4rem; }
  .content { padding-bottom: 5rem; }

  .bento-summary { grid-template-columns: 1fr; }
  .bento-cell-context,
  .bento-cell-tension,
  .bento-cell-role,
  .bento-cell-outcome { grid-column: 1; grid-row: auto; }

  /* gq-block: override --shell-pad-based padding at this breakpoint */
  .gq-block { padding: 3rem 1.5rem; }

  /* next-project footer: tighter padding on narrow screens */
  .next-project-content { padding: 1.5rem 1.5rem; }
  .next-project-label   { padding: 0 1.5rem; }
  .next-project-title   { font-size: 1.25rem; }
  .next-project-card    { height: 240px; }
  .next-project-arrow   { width: 48px; height: 48px; font-size: 1.25rem; }
}

@media (max-width: 520px) {
  .hero h1   { font-size: 1.9rem; line-height: 1.12; }
  .hero-hook { font-size: 1rem;   line-height: 1.6; }
  .meta-row  { gap: 0.9rem 0; }
  .meta-cell { min-width: 45%; padding-right: 1rem; }
  .nav-links { gap: 1.25rem; }

  .cs > h2 { font-size: 1.72rem; }

  p.bd,
  .inline-stat-text,
  .dc-txt,
  .finding-desc,
  .tp p,
  .reflect-item p,
  .outcomes-quote p,
  .callout {
    font-size: 15px;
    line-height: 1.78;
  }

  .metric-val  { font-size: 2.2rem; }
  .metric-cell { min-height: auto; padding: 1.35rem 1.2rem; }

  .next-project-card  { height: 210px; }
  .next-project-title { font-size: 1.1rem; }

  .gq-block { padding: 2.25rem 1rem; }
  .gq-text  { font-size: 1.05rem; line-height: 1.45; }

  .reflect-item   { padding: 1.3rem 1.05rem; }
  .decision-card  { border-radius: var(--r); }

  .dc-single-img {
    padding: 0.9rem 1rem;
  }

  .dc-single-img .img-block-inner img {
    max-height: 300px;
  }
  .dc-img-frame img { max-height: 300px; }
  .ba-img img       { max-height: 360px; }
  .ba-img           { padding: 1rem; }
}



/* =========================================
   MOBILE NAV
   Hamburger replaces text links below 640px.
   Desktop (>640px) is unchanged.
========================================= */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
}

@media (max-width: 640px) {
  /* Hide text links, show hamburger */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--shell-pad) 1.5rem;
    gap: 0;
    z-index: 99;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 15px;
    color: var(--text-secondary);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: #fff;
  }

  /* Hamburger button */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--ease);
    margin-right: -6px; /* optical alignment with shell-pad */
  }

  .nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-hamburger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .nav-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* × state */
  .nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}


/* Improve exploration / iteration image sizing */
.iteration-img {
  min-height: 420px;
  padding: 1rem;
}

.iteration-img img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  transform: scale(1.05);
}


