:root {
  --case-accent: #b96f52;
  --case-accent-deep: #8e4938;
  --case-wash: rgba(185, 111, 82, 0.12);
}

body.case-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 9%, var(--case-wash), transparent 28rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), transparent 42rem),
    var(--paper);
}

.case-page.tone-memory {
  --case-accent: #718368;
  --case-accent-deep: #4f6149;
  --case-wash: rgba(113, 131, 104, 0.16);
}

.case-page.tone-systems {
  --case-accent: #337f91;
  --case-accent-deep: #245e6d;
  --case-wash: rgba(85, 190, 211, 0.17);
}

.case-page.tone-science {
  --case-accent: #736596;
  --case-accent-deep: #534774;
  --case-wash: rgba(115, 101, 150, 0.14);
}

.case-page.tone-worlds {
  --case-accent: #c34f63;
  --case-accent-deep: #943a4a;
  --case-wash: rgba(195, 79, 99, 0.15);
}

.case-page.tone-evidence {
  --case-accent: #92713d;
  --case-accent-deep: #6d5129;
  --case-wash: rgba(146, 113, 61, 0.14);
}

.case-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.case-header-inner,
.case-shell {
  width: min(1120px, calc(100vw - 40px));
  margin-inline: auto;
}

.case-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.case-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.case-brand img {
  width: 152px;
  height: auto;
  max-height: 60px;
}

.case-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-nav a {
  text-decoration: none;
}

.case-nav a:last-child {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

.case-main {
  overflow: hidden;
}

.case-hero {
  position: relative;
  min-height: min(780px, calc(100svh - 78px));
  padding: clamp(76px, 10vw, 138px) 0 clamp(68px, 9vw, 116px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(44px, 9vw, 124px);
}

.case-hero::before,
.case-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--case-accent) 34%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.case-hero::before {
  width: clamp(380px, 58vw, 740px);
  aspect-ratio: 1.4;
  top: 8%;
  right: -23%;
  transform: rotate(-13deg);
}

.case-hero::after {
  width: clamp(300px, 42vw, 590px);
  aspect-ratio: 1.5;
  top: 16%;
  right: -13%;
  border-style: dashed;
  transform: rotate(9deg);
}

.case-kicker,
.case-section-label,
.case-status dt,
.case-fact-label {
  color: var(--case-accent-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-kicker {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-kicker::before {
  width: 34px;
  height: 1px;
  content: "";
  background: currentColor;
}

.case-hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.65rem, 8vw, 8rem);
  font-weight: 430;
  letter-spacing: -0.058em;
  line-height: 0.92;
}

.case-deck {
  max-width: 740px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.case-status {
  margin: 0;
  padding: 28px 0 4px;
  border-top: 1px solid var(--line-strong);
}

.case-status div {
  padding: 0 0 24px;
}

.case-status dt {
  margin-bottom: 6px;
}

.case-status dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.48;
}

.case-content {
  border-top: 1px solid var(--line);
}

.case-section {
  padding: clamp(76px, 10vw, 132px) 0;
  display: grid;
  grid-template-columns: minmax(145px, 0.27fr) minmax(0, 0.73fr);
  gap: clamp(34px, 8vw, 106px);
  border-bottom: 1px solid var(--line);
}

.case-section-label {
  margin: 5px 0 0;
}

.case-section-body h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.4vw, 5.7rem);
  font-weight: 430;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.case-section-body > p,
.case-section-body > ul {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.case-section-body ul {
  padding-left: 1.3em;
}

.case-section-body li + li {
  margin-top: 14px;
}

.approach-grid,
.evidence-grid-case {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-fact {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.66);
}

.case-fact h3 {
  margin: 42px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.case-fact p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.evidence-panel {
  position: relative;
  margin-top: 42px;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  border-radius: 28px;
  color: var(--chalk);
  background: var(--ink);
}

.evidence-panel::after {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -150px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 50%;
  content: "";
}

.evidence-panel .case-fact-label {
  color: color-mix(in srgb, var(--case-accent) 76%, white);
}

.evidence-panel strong.metric {
  display: block;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(4.7rem, 11vw, 9.8rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.evidence-panel h3 {
  max-width: 720px;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 430;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.evidence-panel p {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 20px 0 0;
  color: rgba(255, 253, 248, 0.72);
}

.evidence-panel a {
  color: var(--chalk);
}

.limitation-note {
  margin-top: 38px;
  padding: 24px 28px;
  border-left: 3px solid var(--case-accent);
  color: var(--ink-soft);
  background: var(--case-wash);
}

.limitation-note strong {
  color: var(--ink);
}

.related-section {
  padding: clamp(78px, 10vw, 126px) 0;
}

.related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.related-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  font-weight: 430;
  letter-spacing: -0.05em;
}

.related-head > a {
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.6);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.related-card:hover {
  border-color: var(--case-accent);
  color: var(--ink);
  background: var(--chalk);
  transform: translateY(-4px);
}

.related-card span {
  color: var(--case-accent-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.related-card strong {
  max-width: 260px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.case-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.case-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--umber);
  font-size: 0.75rem;
}

.case-footer a {
  color: var(--ink);
}

@media (max-width: 780px) {
  .case-header-inner,
  .case-shell {
    width: min(100% - 28px, 1120px);
  }

  .case-brand img {
    width: 136px;
  }

  .case-nav a:first-child {
    display: none;
  }

  .case-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .case-hero h1 {
    font-size: clamp(3.3rem, 16vw, 5.8rem);
  }

  .case-status {
    max-width: 520px;
  }

  .case-section {
    grid-template-columns: 1fr;
  }

  .approach-grid,
  .evidence-grid-case,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .case-fact {
    min-height: 0;
  }

  .related-head,
  .case-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .related-card {
    transition: none;
  }
}

@media print {
  .case-header,
  .case-footer,
  .related-section {
    display: none;
  }

  .case-hero {
    min-height: 0;
  }

  .case-section {
    break-inside: avoid;
  }
}
