*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --ink: oklch(15% 0.022 188);
  --ink-soft: oklch(34% 0.018 188);
  --muted: oklch(49% 0.017 188);
  --paper: oklch(96% 0.014 84);
  --paper-low: oklch(92.5% 0.018 86);
  --forest: oklch(20% 0.052 164);
  --forest-strong: oklch(14% 0.044 174);
  --moss: oklch(56% 0.09 150);
  --lime: oklch(85% 0.12 116);
  --lime-low: oklch(90% 0.055 116);
  --line: oklch(82% 0.018 86);
  --line-dark: oklch(35% 0.034 164);
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: var(--pad);
}

.case-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--forest-strong) 94%, var(--paper) 6%);
  border-bottom: 1px solid var(--line-dark);
}

.case-nav .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--paper);
}

.brand {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand strong {
  font-size: 15px;
  font-weight: 900;
}

.brand span {
  color: color-mix(in oklch, var(--paper) 62%, var(--forest));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid color-mix(in oklch, var(--paper) 24%, transparent);
  border-radius: 999px;
  color: color-mix(in oklch, var(--paper) 78%, var(--forest));
  font-size: 13px;
  font-weight: 900;
}

.back-link:hover {
  color: var(--forest-strong);
  background: var(--lime);
  border-color: var(--lime);
}

.case-hero {
  padding: clamp(58px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--paper) 6%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in oklch, var(--paper) 6%, transparent) 1px, transparent 1px),
    var(--forest-strong);
  background-size: 86px 86px;
  color: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.56fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-lede {
  margin: 24px 0 0;
  max-width: 690px;
  color: color-mix(in oklch, var(--paper) 72%, var(--forest));
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
}

.hero-card {
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--paper) 18%, transparent);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 78px color-mix(in oklch, var(--ink) 22%, transparent);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
  object-position: center;
  background: var(--paper-low);
}

.admit-panel {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.admit-panel span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admit-panel strong {
  color: var(--forest-strong);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
  font-weight: 900;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-low);
}

.case-stat {
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: end;
  gap: 7px;
}

.case-stat:last-child {
  border-right: none;
}

.case-stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-stat strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.case-main {
  padding: clamp(64px, 8vw, 104px) 0;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: start;
}

.case-content {
  display: grid;
  gap: clamp(36px, 5vw, 58px);
}

.case-section {
  padding-bottom: clamp(34px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.case-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.section-label {
  margin: 0 0 12px;
  color: var(--moss);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-section h2 {
  margin: 0;
  color: var(--forest-strong);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.case-section p {
  margin: 20px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.68;
}

.case-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.case-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.52;
}

.case-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--moss);
}

.side-card {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-low);
  padding: 24px;
}

.side-card h2 {
  margin: 0;
  color: var(--forest-strong);
  font-size: 28px;
  line-height: 1.05;
}

.side-card p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.58;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.side-links a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--forest-strong);
  font-size: 14px;
  font-weight: 900;
}

.case-cta {
  padding: clamp(54px, 7vw, 86px) 0;
  background: var(--forest-strong);
  color: var(--paper);
}

.case-cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}

.case-cta h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
}

.case-cta p {
  margin: 14px 0 0;
  max-width: 620px;
  color: color-mix(in oklch, var(--paper) 70%, var(--forest));
  font-size: 17px;
  line-height: 1.55;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest-strong);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.cta-link:hover {
  background: var(--paper);
}

@media (max-width: 920px) {
  .hero-grid,
  .main-grid,
  .case-cta .wrap {
    grid-template-columns: 1fr;
  }

  .case-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-stat:nth-child(2) {
    border-right: none;
  }

  .case-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .case-nav .wrap {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

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

  .case-stat,
  .case-stat:nth-child(2) {
    border-right: none;
  }

  .case-stat {
    border-bottom: 1px solid var(--line);
  }

  .case-stat:last-child {
    border-bottom: none;
  }

  .case-section p {
    font-size: 17px;
  }
}
