/* AK Studio — case study page styles */
.case-hero {
  padding: clamp(40px, 7vw, 100px) 0 clamp(32px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.case-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 20px 0 48px;
  padding-bottom: 0.15em;
  max-width: 18ch;
}
.case-hero h1 em { color: var(--accent); font-style: italic; }

.case-specs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}
.case-specs-grid > div {
  padding: 20px 16px 20px 0;
  border-right: 1px solid var(--line);
}
.case-specs-grid > div:last-child { border-right: 0; padding-left: 16px; }
.case-specs-grid dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.case-specs-grid dd { margin: 0; font-family: var(--font-serif); font-size: var(--step-1); letter-spacing: -0.01em; }
@media (max-width: 780px) {
  .case-specs-grid { grid-template-columns: 1fr 1fr; }
  .case-specs-grid > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0 !important; }
  .case-specs-grid > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 14px !important; }
}

.case-hero-img { margin-top: 48px; }
.case-hero-img .placeholder { aspect-ratio: 16/9; }

/* Two-up brief / approach */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) { .two-up { grid-template-columns: 1fr; } }
.two-up h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: var(--step-3); letter-spacing: -0.01em; line-height: 1.05;
  margin: 0 0 20px;
}
.two-up h2 em { color: var(--accent); font-style: italic; }
.two-up p { color: var(--ink-2); margin: 0 0 16px; font-size: var(--step-0); line-height: 1.6; max-width: 58ch; }

/* Before / after slider */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--line-2);
  user-select: none;
  cursor: ew-resize;
  touch-action: none;
}
.ba .layer {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
}
.ba .before {
  background: repeating-linear-gradient(135deg, #d9d3c8 0 12px, #c7c0b3 12px 13px);
}
.ba .after {
  background: repeating-linear-gradient(135deg, #1a1a1a 0 12px, #2a2724 12px 13px);
  color: var(--bg);
  clip-path: inset(0 0 0 var(--split, 50%));
}
.ba .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 8px 12px; margin: 16px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--ink);
}
.ba .after .tag { background: var(--accent); border-color: var(--accent); color: #fff; }
.ba .handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent);
  left: var(--split, 50%);
}
.ba .handle::after {
  content: "◀  ▶"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent); color: #fff;
  padding: 10px 14px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; white-space: nowrap;
}

/* Scores */
.scores {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.scores > div {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--line);
}
.scores > div:last-child { border-right: 0; padding-right: 0; padding-left: 24px; }
.scores > div:not(:first-child):not(:last-child) { padding: 0 24px; }
.score-ring {
  position: relative;
  width: 120px; height: 120px;
  margin-bottom: 16px;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .track { stroke: var(--line); }
.score-ring .fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.15,1); }
.score-ring .num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 32px; letter-spacing: -0.02em;
}
.scores h3 { margin: 0 0 4px; font-size: var(--step-1); font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.scores p { margin: 0; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 780px) {
  .scores { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .scores > div { border-right: 0 !important; padding: 0 !important; }
}

/* Gallery strip */
.gallery {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.gallery .placeholder { aspect-ratio: 16/10; }
.gallery .stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery .stack .placeholder { aspect-ratio: auto; height: 100%; }
@media (max-width: 780px) { .gallery { grid-template-columns: 1fr; } }

/* Quote */
.case-quote {
  padding: clamp(56px, 9vw, 128px) 0;
  border-bottom: 1px solid var(--line);
}
.case-quote blockquote {
  margin: 0;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.case-quote blockquote em { color: var(--accent); font-style: italic; }
.case-quote .cite {
  margin-top: 32px;
  display: flex; gap: 16px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.case-quote .cite .bar { width: 24px; height: 1px; background: var(--muted); }

/* Next project */
.case-next {
  padding: clamp(48px, 8vw, 120px) 0;
  text-align: center;
}
.case-next .eyebrow { justify-content: center; display: inline-flex; margin-bottom: 24px; }
.case-next h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.02em; line-height: 1;
  margin: 0 0 24px;
}
.case-next h2 em { color: var(--accent); font-style: italic; }
