/* ---- case-study-specific ---- */
:root { --bg: #F5F7FA; }
.cs-hero {
  padding: 150px var(--pad) 0;
}
.cs-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}
.cs-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 12vw, 190px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.cs-sub {
  font-size: clamp(18px, 1.9vw, 24px);
  color: var(--ink-2);
  max-width: 640px;
  margin-top: 20px;
  text-wrap: pretty;
}
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(64px, 10vh, 112px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cs-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.cs-meta dd { font-size: 14.5px; font-weight: 500; }
.cs-hero-media {
  margin-top: 120px;
  background: var(--accent-soft);
  border-radius: 4px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 80px) clamp(28px, 7vw, 120px) 0;
}
.cs-hero-media .mock { border-radius: 10px 10px 0 0; }

.cs-body {
  max-width: 1100px;
  margin: 0 auto;
}
.cs-section { padding: clamp(72px, 11vh, 140px) var(--pad) 0; }
.cs-label-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 64px);
}
.cs-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 8px;
}
.cs-label em { font-style: normal; color: var(--accent); margin-right: 8px; }
.cs-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.cs-prose p {
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: 640px;
  text-wrap: pretty;
}
.cs-prose p strong { color: var(--ink); font-weight: 600; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.problem-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  background: var(--surface);
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}
.problem-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.problem-card .pc-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 32px;
}
.problem-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.problem-card p { font-size: 14px; color: var(--ink-2); margin: 0; }

.artifact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.artifact {
  border-radius: 4px;
  padding: 22px 22px 52px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.artifact .a-label {
  position: absolute;
  bottom: 14px; left: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* full-bleed image carousel */
.cs-carousel-wrap {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  margin-top: clamp(40px, 6vh, 72px);
}
.cs-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
  right: 0;
  background: none;
}
.cs-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.cs-carousel-wrap:hover .cs-carousel-track { animation-play-state: paused; }
.cs-carousel-item {
  flex: none;
  width: 358px;
  border-radius: 42px;
  overflow: hidden;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.cs-carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.metric { padding: 28px 28px 0 0; }
.metric + .metric { padding-left: 28px; border-left: 1px solid var(--line); }
.metric .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}
.metric .lbl {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 12px;
  max-width: 220px;
}

.cs-quote {
  margin-top: clamp(64px, 10vh, 120px);
  padding: 0 var(--pad);
  text-align: center;
}
.cs-quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 880px;
  margin: 0 auto;
  text-wrap: balance;
}
.cs-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 24px;
}

.next-project {
  margin-top: clamp(80px, 13vh, 160px);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 8vh, 90px) var(--pad);
  display: block;
  text-align: center;
}
.next-project .np-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 18px;
}
.next-project .np-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 10vw, 150px);
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  transition: color 0.45s ease;
  display: inline-block;
}
.next-project:hover .np-title { color: var(--ink); }

@media (max-width: 920px) {
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-label-row { grid-template-columns: 1fr; gap: 16px; }
  .problem-grid, .artifact-strip { grid-template-columns: 1fr; }
  .artifact { aspect-ratio: auto; min-height: 180px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* AAA hero — light with snow background */
.cs-hero {
  background:
    linear-gradient(to bottom, transparent 0%, transparent 55%, var(--bg) 82%),
    url('/assets/aaa-hero-bg.png') top center / 100% auto no-repeat #F5F7FA;
  color: var(--ink);
}
.cs-hero .eyebrow { color: var(--ink-3); }
.cs-hero .eyebrow::before { background: #D94040; }
.cs-hero .hero-index { color: var(--ink-3); }
.cs-hero .cs-title { color: var(--ink); }
.cs-hero .cs-sub { color: var(--ink-2); }
.cs-hero .cs-meta { border-top-color: rgba(0, 0, 0, 0.15); }
.cs-hero .cs-meta dt { color: var(--ink-3); }
.cs-hero .cs-meta dd { color: var(--ink); }

/* Nav — dark text for light hero */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.40) !important;
  border-bottom-color: rgba(0,0,0,0.08) !important;
}
.nav-links .u-link { color: var(--ink-2) !important; }
.nav-links .u-link:hover { color: var(--ink) !important; }
.nav-cta { color: var(--ink) !important; border-color: var(--line-strong) !important; }
.nav-cta:hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.theme-toggle { color: var(--ink-2) !important; }
.theme-toggle:hover { color: var(--ink) !important; background: rgba(0,0,0,0.05) !important; }

.cs-hero .cs-hero-media {
  background: transparent;
  padding: 0;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.cs-hero .cs-hero-media .mock {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.cs-hero .cs-hero-media .mock img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  vertical-align: top;
}
