:root {
  --ink: #18222b;
  --muted: #66717c;
  --paper: #f6f2ed;
  --white: #ffffff;
  --line: #dfd8d0;
  --oxblood: #7f1f2c;
  --oxblood-2: #a8323f;
  --deep: #12364a;
  --teal: #26766f;
  --gold: #b9822e;
  --blue: #3a6f98;
  --violet: #5c567d;
  --shadow: 0 24px 70px rgba(24, 34, 43, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 242, 237, 0.92);
  border-bottom: 1px solid rgba(223, 216, 208, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--oxblood);
  color: white;
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--oxblood-2);
}

.nav-button {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--deep);
  color: white;
  font-weight: 800;
}

.nav-button:hover {
  color: white;
  background: var(--oxblood);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #151f28;
}

.hero img {
  position: absolute;
  right: 0;
  bottom: -18vh;
  width: min(56vw, 760px);
  max-width: none;
  opacity: 0.74;
  filter: saturate(0.9) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 27, 35, 0.98) 0%, rgba(27, 42, 51, 0.88) 46%, rgba(72, 60, 86, 0.34) 100%),
    linear-gradient(145deg, rgba(92, 86, 125, 0.34) 0%, transparent 44%),
    linear-gradient(0deg, rgba(18, 54, 74, 0.42), transparent 54%);
}

.hero-copy {
  position: relative;
  max-width: 900px;
  padding: 84px clamp(22px, 7vw, 96px) 118px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c16c;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  font-size: clamp(3rem, 8vw, 7.5rem);
}

h2 {
  font-size: clamp(2rem, 4.1vw, 4rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 14px 0 0;
}

.lede {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: #fbf7ea;
  color: #151f28;
}

.button.ghost {
  color: white;
}

.notice-band {
  padding: 16px clamp(20px, 5vw, 70px);
  background: #fff2e8;
  border-top: 1px solid #efd4bf;
  border-bottom: 1px solid #efd4bf;
  color: #543026;
}

.audience-bar {
  position: sticky;
  top: 67px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px clamp(20px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.audience-bar h2 {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 340px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #efe7dc;
}

.segmented-control button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.segmented-control button.active {
  background: var(--oxblood);
  color: white;
  box-shadow: 0 9px 22px rgba(127, 31, 44, 0.2);
}

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

.section,
.band {
  padding: clamp(64px, 9vw, 116px) 0;
}

.band {
  background: var(--white);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 760px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: start;
}

.cards,
.cause-grid,
.workup-grid,
.visual-grid {
  display: grid;
  gap: 18px;
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.type-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.cause-card,
.workup-grid article,
figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 48px rgba(24, 34, 43, 0.06);
}

.card {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e5f3f0;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.ef-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.prognosis-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.prognosis-strip div {
  padding: 16px;
  background: #f7faf9;
}

.prognosis-strip strong,
.prognosis-strip span {
  display: block;
}

.prognosis-strip strong {
  color: var(--violet);
}

.prognosis-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.ef-strip div {
  padding: 16px;
  background: #f7faf9;
}

.ef-strip strong,
.ef-strip span {
  display: block;
}

.ef-strip strong {
  color: var(--oxblood);
}

.ef-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.cause-card {
  position: relative;
  min-height: 265px;
  padding: 28px;
  overflow: hidden;
}

.cause-card::after {
  position: absolute;
  inset: auto 20px 18px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(38, 118, 111, 0.1);
  content: "";
}

.cause-card.urgent {
  border-color: #e2a8a8;
  background: #fff8ee;
}

.number {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 950;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: center;
}

.red-flag-section {
  background: #861c20;
  color: #fff8ed;
}

.red-flag-section .eyebrow {
  color: #ffd978;
}

.red-flag-section h2 {
  color: #fff;
  font-weight: 1000;
}

.red-flag-section .patient-copy,
.red-flag-section .clinician-copy {
  font-weight: 800;
}

.red-list {
  display: grid;
  gap: 12px;
}

.red-list div {
  display: grid;
  grid-template-columns: minmax(145px, 0.55fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #fff8f6;
  box-shadow: 0 18px 40px rgba(75, 10, 8, 0.26);
}

.red-list strong {
  color: #b3120f;
  font-weight: 1000;
  text-transform: uppercase;
}

.red-list span {
  color: #7f1412;
  font-weight: 850;
}

.gene-list {
  display: grid;
  gap: 12px;
}

.gene-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 40px rgba(24, 34, 43, 0.08);
}

.gene-list strong {
  color: var(--violet);
  font-weight: 1000;
}

.gene-list span {
  color: var(--muted);
  font-weight: 750;
}

.workup-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workup-grid article {
  padding: 22px;
}

.visual-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

figure {
  margin: 0;
  overflow: hidden;
}

figure img,
figure video {
  display: block;
  width: 100%;
  height: 315px;
  object-fit: cover;
  background: #101820;
}

figure:first-child img {
  object-fit: contain;
  padding: 16px;
}

.video-figure video {
  object-fit: cover;
}

figcaption {
  padding: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

figcaption strong {
  color: var(--ink);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-list a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--deep);
  font-weight: 850;
  text-decoration: none;
}

.source-list a:hover {
  border-color: var(--oxblood-2);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 70px);
  background: #102f3e;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: white;
}

.site-footer p {
  margin: 0;
}

.clinician-copy {
  display: none;
}

body.audience-clinician .patient-copy {
  display: none;
}

body.audience-clinician .clinician-copy {
  display: block;
}

@media (max-width: 1280px) {
  .audience-bar {
    position: static;
  }
}

@media (max-width: 1320px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }
}

@media (max-width: 1020px) {
  .cards.four,
  .type-cards,
  .workup-grid,
  .ef-strip,
  .prognosis-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  figure img,
  figure video {
    height: 380px;
  }
}

@media (max-width: 760px) {
  .audience-bar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .hero {
    min-height: 84vh;
  }

  .hero img {
    right: -56vw;
    bottom: -8vh;
    width: 150vw;
    opacity: 0.36;
  }

  .intro-grid,
  .two-col,
  .cause-grid,
  .cards.four,
  .workup-grid,
  .source-list,
  .ef-strip,
  .type-cards,
  .prognosis-strip {
    grid-template-columns: 1fr;
  }

  .red-list div,
  .gene-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand strong {
    max-width: 250px;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    padding: 62px 20px 92px;
  }

  .notice-band {
    padding: 14px;
  }

  .cause-card,
  .card,
  .workup-grid article {
    padding: 20px;
  }

  figure img,
  figure video {
    height: 290px;
  }
}
