/* ====================================================================
   Polyvox — case study page styles
   Shared across all /case-*.html pages.
   ==================================================================== */

/* HERO ---------------------------------------------------------------- */
.case-hero {
  padding: var(--hero-top) var(--gutter) 110px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.case-hero__crumb {
  max-width: var(--max);
  margin: 0 auto 60px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.case-hero__crumb a:hover { color: var(--brand-teal); }

.ch-eyebrow {
  max-width: var(--max);
  margin: 0 auto 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.ch-rule { flex: 1; height: 1px; background: var(--ink); opacity: 0.28; }
.ch-eyebrow__text {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-teal); font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .ch-eyebrow { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ch-eyebrow .ch-rule { width: 60px; height: 1px; flex: none; }
  .ch-eyebrow__text { white-space: normal; font-size: 10px; letter-spacing: 0.18em; }
}

.ch-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 70px;
  align-items: end;
}
@media (max-width: 900px) {
  .ch-grid { grid-template-columns: 1fr; gap: 50px; }
}

.ch-metric {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.ch-metric__l {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  margin-bottom: 14px;
}
.ch-metric__n {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(88px, 13vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--brand-teal);
  margin-bottom: 14px;
}
/* For qualitative metrics (e.g., "Withdrawn.", "Preserved.") — long words
   need a smaller scale than 3-char numerics to fit the metric column. */
.ch-metric__n--word {
  font-size: clamp(44px, 5.4vw, 86px);
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.ch-metric__sub {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
}

.ch-title {
  padding-bottom: 14px;
}
.ch-title h1 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.0; letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 22ch;
}
.ch-title h1 em { color: var(--brand-teal); font-style: normal; }
.ch-lede-rule {
  width: 64px; height: 1px;
  background: var(--brand-teal);
  margin-bottom: 24px;
}
.ch-lede {
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

/* TWO-COLUMN BODY (sticky meta rail + reading column) ----------------- */
.case-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px var(--gutter) 110px;
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: 100px;
}
@media (max-width: 980px) {
  .case-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 60px var(--gutter) 90px;
  }
}

.case-rail {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@media (max-width: 980px) {
  .case-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 26px 36px;
    padding: 28px 26px;
    margin-bottom: 60px;
    background: var(--ink);
    border-radius: 14px;
  }
}
.rail-block {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
@media (max-width: 980px) {
  .rail-block {
    border-top: 0; padding-top: 0;
    flex: 0 0 calc(50% - 18px);
  }
}
.rail-l {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  margin-bottom: 8px;
}
@media (max-width: 980px) {
  .rail-l { color: rgba(255,255,255,0.55); }
}
.rail-v {
  font-family: var(--f-sans);
  font-size: 14px; font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
@media (max-width: 980px) {
  .rail-v { color: #fff; }
}

.case-body { max-width: 780px; }

.case-body h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 80px 0 28px;
  color: var(--ink);
}
.case-body h2:first-child { margin-top: 0; }
.case-body h2 em { color: var(--brand-teal); font-style: normal; }

.case-body p {
  font-family: var(--f-sans);
  font-size: 18px; line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.case-body p.first::first-letter {
  font-family: var(--f-display); font-weight: 500;
  font-size: 78px; line-height: 0.82;
  float: left; margin: 6px 14px -6px 0;
  color: var(--brand-teal);
}

/* NUMBERED PHASES — 01 / 02 / 03 / 04 with hairline rail -------------- */
.phases { margin-top: 36px; }
.phase {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 36px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.phase:first-child { border-top: 0; padding-top: 16px; }
.phase:last-child { padding-bottom: 0; }
.phase-n {
  font-family: var(--f-mono);
  font-size: 13px; letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--brand-teal);
  padding-top: 6px;
  position: relative;
}
.phase-n::after {
  content: ""; position: absolute;
  left: 50%; top: 32px; bottom: -32px;
  width: 1px; background: var(--rule);
  transform: translateX(-50%);
}
.phase:last-child .phase-n::after { display: none; }
.phase-content h3 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.phase-content p {
  font-size: 17px;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .phase { grid-template-columns: 1fr; gap: 10px; }
  .phase-n::after { display: none; }
}

/* PULL QUOTE + CONFIDENTIAL ------------------------------------------ */
.case-body blockquote {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.22; letter-spacing: -0.025em;
  margin: 60px 0;
  padding-left: 26px;
  border-left: 3px solid var(--brand-teal);
  color: var(--ink);
}

.case-confidential {
  display: block;
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-style: italic;
  line-height: 1.65;
}

/* ADJACENT ENGAGEMENTS ----------------------------------------------- */
.adj {
  padding: 100px var(--gutter);
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
}
.adj__inner { max-width: var(--max); margin: 0 auto; }
.adj h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.adj h2 em { color: var(--brand-teal); font-style: normal; }
.adj__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 900px) { .adj__grid { grid-template-columns: 1fr; } }
.adj__card {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  cursor: pointer;
  display: block;
  color: inherit;
}
.adj__meta {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-teal); font-weight: 700;
  margin-bottom: 12px;
}
.adj__t {
  font-family: var(--f-display); font-weight: 500;
  font-size: 22px;
  line-height: 1.18; letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.adj__sit {
  font-family: var(--f-sans);
  font-size: 14px; line-height: 1.55;
  color: var(--muted);
}
.adj__card:hover .adj__t { color: var(--brand-teal); }

/* CTA STRIP ----------------------------------------------------------- */
.cta-strip {
  padding: 100px var(--gutter);
  background: var(--brand-purple-2);
  color: var(--paper);
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 0.95; letter-spacing: -0.035em;
  max-width: 22ch; margin: 0 auto 24px;
}
.cta-strip h2 em { color: var(--brand-teal); font-style: normal; }
.cta-strip p { max-width: 54ch; margin: 0 auto 36px; color: rgba(244,241,247,0.75); font-size: 16px; line-height: 1.55; }
.cta-strip__ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
