/* Case study detail pages. Loaded after styles.css, reuses its tokens. */
:root {
  --coral: #e85470;
  --cream: #fffae0;
  --case-gutter: 72px;
}

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.case h1, .case h2, .case h3, .statement, .lede, .stat__num, .impact__num,
.qlist li, .rules h3, .quote, .next__title, .cfoot__title, .cfoot__links {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
}
.case em, .cfoot em { font-style: italic; color: var(--coral); }

/* ---------- NAV ---------- */
.cnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px var(--case-gutter);
}
.cnav__links { display: flex; gap: 40px; align-items: center; }
.cnav a { transition: opacity 150ms ease; }
.cnav a:hover { opacity: 0.55; }
.cnav__cta { font-weight: 600; color: var(--coral); }

/* ---------- HERO ---------- */
.chero {
  padding: 56px var(--case-gutter) 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.back {
  align-self: flex-start;
  color: var(--ink-soft);
  font-weight: 600;
  transition: color 150ms ease;
}
.back:hover { color: var(--ink); }
.chero__head { display: flex; flex-direction: column; gap: 20px; }
.chero h1 {
  font-size: clamp(56px, 8vw, 116px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.chero__sub {
  max-width: 820px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.facts { display: grid; grid-template-columns: repeat(5, 1fr); }
.facts > div {
  border-top: 1px solid var(--ink);
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.facts > div:first-child { padding-left: 0; }
.facts dt { margin: 0; }
.facts dd { margin: 0; font-size: 18px; line-height: 26px; }
.facts__outcome dd { font-weight: 600; color: var(--coral); }

/* ---------- MEDIA ---------- */
.figure { padding: 0 var(--case-gutter) 140px; display: flex; flex-direction: column; gap: 20px; }
.figure--lead { padding-bottom: 120px; }
.ph {
  position: relative;
  display: grid;
  place-items: center;
  height: 640px;
  border-radius: 24px;
  background: var(--paper-deep);
  overflow: hidden;
}
.figure--lead .ph { height: 720px; }
.ph--short { height: 560px; }
.ph--tall { height: 680px; }
/* Placeholder note: remove the span once real screens are in */
.ph > span {
  max-width: 360px;
  padding: 0 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.ph > img { width: auto; max-width: 70%; max-height: 82%; border-radius: 16px; }

.captions { display: flex; gap: 80px; }
.captions > p { flex: 1; display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 26px; color: var(--ink-soft); }
.captions .eyebrow { color: var(--coral); white-space: nowrap; }

/* ---------- SECTION BLOCKS ---------- */
.block {
  padding: 0 var(--case-gutter) 120px;
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 96px;
}
.block--wide { grid-template-columns: 280px minmax(0, 920px); padding-bottom: 140px; }
.block__label { display: flex; flex-direction: column; gap: 6px; }
.block__body { display: flex; flex-direction: column; gap: 28px; }
.block__body--loose { gap: 48px; }

.block h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.01em; }
.body { font-size: 20px; line-height: 30px; }
.lede { font-size: 36px; line-height: 46px; letter-spacing: -0.01em; }
.statement { font-size: 56px; line-height: 62px; letter-spacing: -0.015em; }
.statement s { color: var(--ink-soft); text-decoration-thickness: 2px; }

.list-plain { display: flex; flex-direction: column; gap: 12px; font-size: 20px; line-height: 30px; }
.list-plain li { padding-left: 24px; position: relative; }
.list-plain li::before { content: "→"; position: absolute; left: 0; color: var(--coral); }

.qlist li {
  border-top: 1px solid var(--ink);
  padding: 18px 0;
  font-style: italic;
  font-size: 26px;
  line-height: 34px;
  letter-spacing: -0.005em;
}

.rules li {
  border-top: 1px solid var(--ink);
  padding: 22px 0;
  display: flex;
  gap: 24px;
}
.rules__key { width: 32px; flex: none; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 34px; color: var(--coral); }
.rules h3 { font-size: 24px; line-height: 34px; letter-spacing: -0.005em; margin-bottom: 6px; }
.rules p { font-size: 16px; line-height: 26px; color: var(--ink-soft); }

.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.stat { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 24px; }
.stat__num { font-weight: 300; font-size: clamp(56px, 6.6vw, 96px); line-height: 1; letter-spacing: -0.03em; }

.impact li {
  border-top: 1px solid var(--ink);
  padding: 24px 0;
  display: flex;
  gap: 32px;
  align-items: center;
}
.impact__num { width: 200px; flex: none; font-weight: 300; font-size: 72px; line-height: 72px; letter-spacing: -0.03em; }
.impact__num--word { font-size: 48px; line-height: 56px; letter-spacing: -0.02em; }
.impact p { font-size: 20px; line-height: 30px; }

/* ---------- REFLECTION ---------- */
.reflection {
  padding: 40px var(--case-gutter) 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}
.reflection .block__label { align-items: flex-start; gap: 0; }
.quote { font-size: clamp(40px, 5vw, 72px); line-height: 1.11; letter-spacing: -0.02em; }
.reflection__text { max-width: 760px; font-size: 20px; line-height: 30px; color: var(--ink-soft); }

/* ---------- NEXT ---------- */
.next { display: block; margin: 0 var(--case-gutter); padding: 48px 0 120px; }
.next__rule { height: 1px; background: var(--ink); margin-bottom: 16px; }
.next__meta { display: flex; justify-content: space-between; padding: 32px 0 16px; }
.next__title { font-size: clamp(48px, 6.6vw, 96px); line-height: 1.04; letter-spacing: -0.02em; }
.next__arrow { font-family: var(--sans); display: inline-block; transition: transform 300ms var(--ease-out); }
.next:hover .next__arrow { transform: translateX(16px); }
.next:hover .next__title em { color: var(--coral); }
.next__title em { color: inherit; transition: color 200ms ease; }

/* ---------- FOOTER ---------- */
.cfoot {
  background: var(--ink);
  color: var(--cream);
  padding: 140px var(--case-gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.cfoot .eyebrow { color: inherit; opacity: 0.6; }
.cfoot__title { max-width: 1100px; font-size: clamp(56px, 8vw, 116px); line-height: 1; letter-spacing: -0.02em; }
.cfoot__links { display: flex; gap: 40px; font-size: 26px; line-height: 34px; }
.cfoot__links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color 150ms ease; }
.cfoot__links a:hover { text-decoration-color: transparent; }
.cfoot__links span { font-family: var(--sans); }
.cfoot__bottom { display: flex; justify-content: space-between; padding-top: 56px; }
.cfoot a:focus-visible { outline-color: var(--cream); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  :root { --case-gutter: 40px; }
  .block, .block--wide { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
  .reflection { padding-left: var(--case-gutter); padding-right: var(--case-gutter); }
}

@media (max-width: 900px) {
  :root { --case-gutter: 20px; }
  .cnav__links a:not(.cnav__cta) { display: none; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .facts > div { padding-left: 0; }
  .facts > div:last-child { grid-column: 1 / -1; }
  .ph, .figure--lead .ph { height: auto; aspect-ratio: 4 / 3; }
  .figure, .figure--lead { padding-bottom: 80px; }
  .captions { flex-direction: column; gap: 12px; }
  .block, .block--wide { grid-template-columns: 1fr; gap: 20px; padding-bottom: 80px; }
  .block h2 { font-size: 32px; line-height: 38px; }
  .lede { font-size: 28px; line-height: 36px; }
  .statement { font-size: 38px; line-height: 44px; }
  .body, .list-plain, .impact p, .reflection__text { font-size: 18px; line-height: 28px; }
  .qlist li { font-size: 22px; line-height: 30px; }
  .stats { grid-auto-flow: row; }
  .stat + .stat { padding-left: 0; }
  .stat { padding-bottom: 24px; }
  .impact li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .impact__num { width: auto; font-size: 56px; line-height: 60px; }
  .reflection { padding-bottom: 100px; }
  .next { padding-bottom: 80px; }
  .next__meta { flex-direction: column; gap: 8px; }
  .cfoot { padding-top: 96px; }
  .cfoot__links { flex-wrap: wrap; gap: 16px 32px; font-size: 22px; }
  .cfoot__bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .next__arrow, .next__title em { transition: none; }
}

/* ---------- RESUME ---------- */
.chero__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.print-btn {
  font: inherit;
  font-weight: 600;
  color: var(--coral);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 150ms ease;
}
.print-btn:hover { opacity: 0.55; }
.print-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

.cv-list > li { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.cv-list > li:last-child { padding-bottom: 0; }
.cv-role { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.cv-role h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 34px; letter-spacing: -0.005em; }
.cv-role .eyebrow { white-space: nowrap; }
.cv-org { margin-top: 4px; font-size: 18px; line-height: 26px; color: var(--ink-soft); }
.cv-points { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 28px; }
.cv-points { list-style: disc; padding-left: 22px; }
.cv-points li { padding-left: 4px; position: static; }
.cv-points li::marker { color: var(--ink-soft); }
.cv-points a, .cv-org a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
.cv-points a:hover, .cv-org a:hover { text-decoration-color: transparent; }

.cv-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.cv-tags li { border-top: 1px solid var(--line); padding: 12px 0; font-size: 16px; line-height: 22px; }
.cv-langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
.cv-langs li { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.cv-langs strong { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 34px; }

.coming-soon {
  min-height: 62vh;
  padding: 56px var(--gutter) 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}
.coming-soon h1 { font-size: clamp(72px, 12vw, 160px); line-height: .94; letter-spacing: -.035em; }
.coming-soon__project { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }
.coming-soon__copy { max-width: 560px; font-size: 20px; line-height: 28px; }
.coming-soon__copy a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .cv-role { flex-direction: column; gap: 4px; }
  .cv-role h3 { font-size: 24px; line-height: 30px; }
  .cv-points { font-size: 16px; line-height: 26px; }
  .cv-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-langs { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .coming-soon { min-height: 56vh; padding-top: 40px; padding-bottom: 88px; }
}

@media print {
  .cnav, .back, .print-btn, .cfoot { display: none; }
  body { background: #fff; font-size: 11pt; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .chero { padding: 0 0 24px; gap: 16px; }
  .chero h1 { font-size: 40pt; }
  .block { padding: 0 0 24px; grid-template-columns: 140px 1fr; gap: 24px; }
  .cv-list > li { padding: 12px 0; break-inside: avoid; }
  .cv-role h3 { font-size: 15pt; line-height: 1.2; }
  .cv-points, .cv-org { font-size: 10.5pt; line-height: 1.4; }
  .cv-points { margin-top: 6px; gap: 4px; }
  a { text-decoration: none !important; }
}
