: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-controls {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  align-items: end;
  gap: 18px;
  margin: 0 0 26px;
  border: 1px solid rgba(8, 45, 96, 0.13);
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 42, 70, 0.05);
}

.case-category-field {
  display: grid;
  gap: 8px;
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 800;
}

.case-category-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c5d2df;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.case-category-field select:focus {
  outline: 3px solid rgba(18, 88, 162, 0.16);
  border-color: var(--navy-700);
}

.case-result-count {
  min-width: 106px;
  margin: 0 0 13px;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.case-quality-note {
  margin: -8px 0 26px;
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  color: #586675;
  background: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.6;
}

.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-tier {
  align-self: flex-start;
  margin-top: 10px;
  border: 1px solid #d5e0eb;
  border-radius: 999px;
  padding: 5px 9px;
  color: #4e6175;
  background: #f5f8fb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.case-tier-featured {
  border-color: rgba(33, 108, 77, .25);
  color: var(--green);
  background: #edf7f1;
}

.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-card-profile {
  margin: 9px 0 0;
  color: #344e68;
  font-size: 12px;
  font-weight: 750;
}

.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-text-button {
  width: 100%;
  margin-top: auto;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  color: var(--navy-800);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.case-page-link {
  margin-top: 11px;
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-text-button:hover {
  color: var(--navy-700);
}

.case-load-row {
  display: flex;
  justify-content: center;
  padding: 30px 0 0;
}

.case-load-more {
  min-width: 210px;
}

.case-empty,
.case-load-error {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.case-empty h3 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.case-empty p {
  margin: 10px 0 0;
}

.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-detail-main {
  padding: 34px 0 80px;
}

.case-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #627184;
  font-size: 12px;
}

.case-breadcrumb a {
  color: var(--navy-700);
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: start;
  gap: 34px;
  margin-top: 22px;
}

.case-detail-copy {
  border: 1px solid rgba(8, 45, 96, .13);
  border-radius: 18px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 42, 70, .07);
}

.case-detail-copy > h1 {
  margin: 12px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.08;
}

.case-detail-profile {
  margin: 12px 0 0;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 800;
}

.case-detail-summary {
  margin: 20px 0 0;
  color: #4f5f70;
  font-size: 17px;
  line-height: 1.75;
}

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

.case-detail-facts div {
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  padding: 13px;
  background: #f7f9fc;
}

.case-detail-facts dt {
  color: #6a7785;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.case-detail-facts dd {
  margin: 6px 0 0;
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.case-detail-section {
  margin-top: 28px;
}

.case-detail-section h2,
.case-modal-context h2 {
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.case-detail-section p,
.case-modal-context p {
  margin: 11px 0 0;
  color: #4d5d6d;
  line-height: 1.75;
}

.case-detail-poster {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(8, 45, 96, .13);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 42, 70, .09);
}

.case-detail-poster img {
  width: 100%;
  height: auto;
  border: 1px solid #dce5ee;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .case-detail-layout {
    grid-template-columns: 1fr;
  }

  .case-detail-poster {
    position: static;
  }
}

@media (max-width: 560px) {
  .case-detail-copy {
    padding: 22px;
  }

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

.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(1120px, 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-actions {
  width: min(100%, 920px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.case-modal-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.case-modal-copy {
  width: min(100%, 920px);
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  color: #3d4b59;
  background: #fff;
}

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

.case-modal-copy h3 {
  margin: 26px 0 7px;
  color: var(--navy-800);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-modal-copy p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.78;
}

.case-modal-context {
  margin-top: 26px;
  border-radius: 12px;
  padding: 18px 20px;
  background: #fff8e9;
}

.case-modal-context h3 {
  margin-top: 0;
  color: #765918;
}

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

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

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

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

  .case-result-count {
    grid-column: auto;
  }

  .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-controls {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .case-result-count {
    grid-column: auto;
  }

  .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 {
    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;
  }

  .case-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .case-modal-copy {
    padding: 22px;
  }
}

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