:root {
  color-scheme: dark;
  --bg: #080909;
  --surface: #111515;
  --surface-soft: #171b1a;
  --text: #f6f1e7;
  --muted: #b9b5ad;
  --gold: #efc56c;
  --red: #d7494f;
  --teal: #58aaa2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.case-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 9, 0.9);
  backdrop-filter: blur(16px);
}

.case-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.case-brand img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.header-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.case-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
  min-height: min(760px, calc(100vh - 64px));
  padding: 58px 0;
}

.case-cover {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(239, 197, 108, 0.28);
  border-radius: 6px;
  background: var(--surface);
}

.case-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  max-height: 650px;
  object-fit: cover;
}

.case-cover.is-poster img {
  object-position: center 22%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.02;
}

.lead {
  max-width: 640px;
  margin-bottom: 24px;
  color: #d3cec4;
  font-size: 18px;
  line-height: 1.7;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  border-color: var(--gold);
  color: #191205;
  background: var(--gold);
}

.case-section {
  padding: 76px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.35fr) minmax(0, 0.65fr);
  gap: 64px;
}

.case-section h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.case-section p,
.case-section li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.story-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.story-points-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.story-card img {
  width: 100%;
  height: 220px;
  margin: -22px -22px 22px;
  width: calc(100% + 44px);
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-card h3 {
  margin-top: 0;
}

.story-card .button {
  margin-top: auto;
}

.story-point {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: var(--surface);
}

.story-point span {
  display: block;
  margin-bottom: 22px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.story-point h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.story-point p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.related {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border-left: 3px solid var(--red);
  background: var(--surface-soft);
}

.related h2 {
  margin-bottom: 10px;
}

.related p {
  margin-bottom: 0;
}

.case-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .story-points-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .case-header {
    padding: 0 18px;
  }

  .case-main,
  .case-footer {
    width: min(100% - 32px, 620px);
  }

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

  .case-hero {
    gap: 34px;
    padding: 34px 0 52px;
  }

  .case-cover,
  .case-cover img {
    min-height: 300px;
    max-height: 520px;
  }

  .case-copy {
    order: -1;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .section-grid {
    gap: 20px;
  }

  .story-points {
    grid-template-columns: 1fr;
  }

  .related {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}
