:root {
  color-scheme: light;
  --navy-950: #051d3f;
  --navy-900: #082d60;
  --navy-800: #0a4387;
  --navy-700: #1258a2;
  --gold: #caa65a;
  --gold-light: #ead49a;
  --ink: #14202d;
  --muted: #5d6874;
  --line: #d9e2ec;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --green: #216c4d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

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

.case-site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(8, 45, 96, 0.11);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.case-header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.case-brand img {
  width: 190px;
  height: auto;
}

.case-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 650;
}

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

.case-nav a:not(.case-btn):hover {
  color: var(--navy-700);
}

.case-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 18px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 10px 24px rgba(8, 45, 96, 0.18);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}

.case-btn:hover {
  background: var(--navy-800);
}

.case-btn-light {
  color: var(--navy-900);
  border-color: rgba(8, 45, 96, 0.2);
  background: #fff;
  box-shadow: none;
}

.case-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 18%, rgba(27, 105, 181, 0.5), transparent 28%),
    linear-gradient(135deg, #051b3a 0%, #082f66 60%, #0c4e8e 100%);
}

.case-hero::after {
  position: absolute;
  right: -8%;
  bottom: -105px;
  width: 62%;
  height: 190px;
  border-top: 12px solid var(--gold);
  border-radius: 50% 0 0;
  background: #fff;
  content: "";
  transform: rotate(-4deg);
}

.case-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 70px;
  padding: 78px 0 118px;
}

.case-kicker {
  margin: 0;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 720px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.case-hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.75;
}

.case-hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 26px;
  background: rgba(3, 22, 49, 0.44);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.case-hero-stat {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}

.case-hero-stat + .case-hero-stat {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.case-stat-number {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
}

.case-stat-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.case-main {
  padding: 26px 0 90px;
}

.case-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  margin: 0 0 30px;
}

.case-intro h2 {
  margin: 8px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
}

.case-intro p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.case-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(33, 108, 77, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--green);
  background: #edf7f1;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.case-review-pill::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f996c;
  content: "";
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(8, 45, 96, 0.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 42, 70, 0.08);
}

.case-poster-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 420px;
  display: grid;
  place-items: start center;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px 22px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, #fff 100%),
    linear-gradient(135deg, #dfeafb, #f7f9fc);
  cursor: zoom-in;
}

.case-poster-button img {
  width: auto;
  height: 440px;
  border: 1px solid rgba(8, 45, 96, 0.12);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 12px 34px rgba(8, 45, 96, 0.2);
}

.case-view-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(5, 29, 63, 0.9);
  box-shadow: 0 8px 20px rgba(5, 29, 63, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.case-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.case-meta {
  color: var(--navy-700);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card h3 {
  margin: 9px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.22;
}

.case-card-summary {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.case-evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-evidence-list li {
  border-radius: 999px;
  padding: 7px 10px;
  color: #3d5369;
  background: #eef3f8;
  font-size: 11px;
  font-weight: 700;
}

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

.case-notes summary {
  padding: 17px 0 0;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.case-notes-content {
  padding: 8px 0 2px;
  color: #43505d;
  font-size: 13px;
  line-height: 1.65;
}

.case-notes-content h4 {
  margin: 16px 0 5px;
  color: var(--navy-950);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-notes-content p {
  margin: 0;
}

.case-method {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.case-method-card {
  border: 1px solid rgba(8, 45, 96, 0.13);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
}

.case-method-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.case-method-card p,
.case-method-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.case-method-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.case-disclaimer {
  border-color: rgba(202, 166, 90, 0.42);
  background: #fffaf0;
}

.case-cta {
  margin-top: 38px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border-radius: 20px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(130deg, var(--navy-950), var(--navy-800));
}

.case-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.case-cta p {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.case-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.case-site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #061b38;
}

.case-footer-row {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.case-footer-links {
  display: flex;
  gap: 18px;
}

.case-footer-links a {
  text-decoration: none;
}

.case-modal {
  width: min(980px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #eef2f7;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.case-modal::backdrop {
  background: rgba(1, 11, 28, 0.78);
  backdrop-filter: blur(5px);
}

.case-modal-bar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.97);
}

.case-modal-bar strong {
  color: var(--navy-950);
  font-size: 14px;
}

.case-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy-950);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.case-modal-body {
  display: grid;
  place-items: start center;
  padding: 24px;
}

.case-modal-body img {
  width: min(100%, 864px);
  height: auto;
  border-radius: 5px;
  box-shadow: 0 18px 55px rgba(8, 45, 96, 0.16);
}

@media (max-width: 900px) {
  .case-hero-inner,
  .case-method,
  .case-cta {
    grid-template-columns: 1fr;
  }

  .case-hero-inner {
    gap: 32px;
  }

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

  .case-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.76fr) 1fr;
  }

  .case-poster-button {
    height: 100%;
    min-height: 500px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .case-poster-button img {
    height: 520px;
  }
}

@media (max-width: 680px) {
  .case-shell {
    width: min(100% - 28px, 1180px);
  }

  .case-header-row {
    min-height: 68px;
  }

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

  .case-nav a:not(.case-btn) {
    display: none;
  }

  .case-nav .case-btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .case-hero::after {
    bottom: -135px;
    width: 96%;
  }

  .case-hero-inner {
    min-height: auto;
    padding: 58px 0 108px;
  }

  .case-hero h1 {
    font-size: clamp(39px, 13vw, 58px);
  }

  .case-hero-copy {
    font-size: 15px;
  }

  .case-intro {
    display: block;
  }

  .case-review-pill {
    margin-top: 18px;
    white-space: normal;
  }

  .case-card {
    display: flex;
  }

  .case-poster-button {
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-poster-button img {
    height: 450px;
  }

  .case-card-body,
  .case-method-card {
    padding: 22px;
  }

  .case-cta {
    padding: 26px 22px;
  }

  .case-cta-actions {
    display: grid;
  }

  .case-footer-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
  }

  .case-footer-links {
    flex-wrap: wrap;
  }

  .case-modal-body {
    padding: 12px;
  }
}

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