:root {
  --hero-botanical: url("../illustrations/generated/lamiaceae-plant.fa35bf6a8504.png");
  --hero-genome: url("../illustrations/generated/phylogeny-circos.011793f7d47c.png");
  --hero-phylogeny: none;
  --hero-molecule: none;
}
html[data-theme="dark"] {
  --hero-botanical: url("../illustrations/generated/lamiaceae-plant.fa35bf6a8504.png");
  --hero-genome: url("../illustrations/generated/phylogeny-circos.011793f7d47c.png");
  --hero-phylogeny: none;
  --hero-molecule: none;
}

.home-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--surface-raised) 90%, transparent) 0, transparent 48%),
    linear-gradient(104deg, color-mix(in srgb, var(--lavender-75) 86%, var(--surface)) 0%, color-mix(in srgb, var(--surface) 80%, var(--lavender-75)) 47%, color-mix(in srgb, var(--lavender-75) 92%, var(--surface)) 100%);
  border-bottom: 1px solid var(--line-gold);
}
html[data-theme="dark"] .home-hero {
  background:
    radial-gradient(circle at 52% 18%, rgba(80, 48, 107, 0.30), transparent 42%),
    radial-gradient(circle at 88% 52%, rgba(102, 71, 133, 0.16), transparent 31%),
    linear-gradient(105deg, #0d0b18 0%, #151024 52%, #0b0a13 100%);
}
.home-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .55;
  background-image:
    linear-gradient(rgba(143, 119, 165, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 119, 165, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent);
}
html[data-theme="dark"] .home-hero::before { opacity: .18; }
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--page) 15%, transparent), transparent 25%, transparent 75%, color-mix(in srgb, var(--page) 12%, transparent));
}
.hero-art {
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  user-select: none;
}
.hero-art-botanical {
  left: -8px;
  bottom: -62px;
  width: 435px;
  height: 478px;
  background-image: var(--hero-botanical);
  background-position: left bottom;
}
.hero-art-genome {
  right: -16px;
  bottom: -30px;
  width: 425px;
  height: 425px;
  background-image: var(--hero-genome);
  background-position: right bottom;
}
.hero-art-phylogeny {
  right: 4px;
  top: 4px;
  width: 445px;
  height: 212px;
  opacity: .78;
  background-image: var(--hero-phylogeny);
  background-position: right top;
}
.hero-art-molecule {
  right: 308px;
  bottom: 28px;
  width: 138px;
  height: 156px;
  opacity: .42;
  background-image: var(--hero-molecule);
}
.hero-content {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 26px 0 30px;
}
.hero-copy {
  width: min(780px, 68vw);
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero-eyebrow {
  margin: 0 0 5px;
  color: var(--lavender-700);
  font-family: var(--font-editorial);
  font-size: 14px;
  font-style: italic;
  letter-spacing: .02em;
}
html[data-theme="dark"] .hero-eyebrow { color: var(--gold-700); }
.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(52px, 5.2vw, 78px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.hero-copy h1 span { color: var(--gold-700); }
.hero-rule {
  width: min(240px, 45%);
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  gap: 9px;
  margin: 14px 0 10px;
  color: var(--gold-600);
}
.hero-rule span { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.hero-rule span:last-child { background: linear-gradient(90deg, var(--gold-500), transparent); }
.hero-rule svg { width: 30px; height: 17px; }
.hero-summary {
  max-width: 700px;
  margin: 0 0 17px;
  color: var(--muted);
  font-family: var(--font-editorial);
  font-size: 16px;
}
.hero-search {
  width: min(720px, 100%);
  height: 58px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 11px;
  padding-left: 18px;
  color: #f8f3ff;
  background: linear-gradient(100deg, #171522, #211c31);
  border: 1px solid color-mix(in srgb, var(--gold-600) 55%, #292232);
  border-radius: 7px;
  box-shadow: 0 7px 24px rgba(27, 19, 35, .18), inset 0 1px rgba(255, 255, 255, .04);
  overflow: hidden;
}
html[data-theme="dark"] .hero-search {
  background: linear-gradient(100deg, #07070e, #151223);
  border-color: rgba(231, 191, 99, .56);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .44), inset 0 1px rgba(255, 255, 255, .05);
}
.hero-search > svg { width: 23px; height: 23px; color: #eee6f6; }
.hero-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 5px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}
.hero-search input::placeholder { color: rgba(241, 234, 248, .74); }
.hero-search button {
  width: 68px;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  color: #17131d;
  background: linear-gradient(145deg, #f0d282, #c9983a);
  border: 0;
  border-left: 1px solid rgba(255,255,255,.28);
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}
.hero-search button:hover { filter: brightness(1.08); }
.hero-search button:active { transform: translateY(1px); }
.hero-search button svg { width: 27px; height: 27px; }
.search-examples {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-editorial);
  font-size: 12px;
}
.search-examples > span { margin-right: 2px; }
.search-examples a {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 4px 15px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  border: 1px solid var(--lavender-300);
  border-radius: 999px;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.search-examples a:hover {
  color: var(--gold-800);
  background: var(--surface-raised);
  border-color: var(--gold-500);
}
html[data-theme="dark"] .search-examples a {
  color: var(--ink-soft);
  background: rgba(23, 18, 36, .78);
  border-color: rgba(198, 169, 226, .34);
}

/* Research destinations */
.research-destinations {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--line-gold);
}
.destination-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.destination-item {
  position: relative;
  min-height: 142px;
  display: grid;
  grid-template-rows: 58px auto;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px 12px 16px;
  text-align: center;
  border-left: 1px solid var(--line);
  transition: color 140ms ease, background 140ms ease;
}
.destination-item:last-child { border-right: 1px solid var(--line); }
.destination-item:hover {
  color: var(--gold-800);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--lavender-75) 75%, transparent), transparent);
}
html[data-theme="dark"] .destination-item:hover { background: linear-gradient(to bottom, rgba(114, 83, 147, .17), transparent); }
.destination-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--lavender-700);
}
.destination-item:nth-child(4n) .destination-icon,
.destination-item:nth-child(6n) .destination-icon { color: var(--gold-700); }
.destination-icon svg { width: 54px; height: 54px; }
.destination-copy { min-width: 0; display: grid; gap: 2px; }
.destination-copy strong {
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.18;
}
.destination-copy small {
  display: none;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.destination-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--gold-600);
  opacity: 0;
  transform: translate(-5px, -50%);
  transition: opacity 120ms ease, transform 120ms ease;
}
.destination-item:hover .destination-arrow { opacity: 1; transform: translate(0, -50%); }
.destination-node {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  background: var(--gold-600);
  border: 2px solid var(--surface);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* Overview */
.home-overview {
  padding: 22px 0 26px;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--lavender-75) 56%, var(--page)), var(--page));
}
html[data-theme="dark"] .home-overview {
  background:
    radial-gradient(circle at 18% 30%, rgba(110, 77, 139, .09), transparent 30%),
    linear-gradient(to bottom, #0e0c18, #090812);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 28px;
}
.overview-panel {
  position: relative;
  padding: 14px 22px 18px;
  background: color-mix(in srgb, var(--surface-raised) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-300) 45%, var(--line));
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 65%, transparent), var(--shadow-sm);
}
html[data-theme="dark"] .overview-panel {
  background: linear-gradient(150deg, rgba(24, 20, 39, .94), rgba(12, 11, 20, .94));
  border-color: rgba(226, 183, 86, .54);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 18px 38px rgba(0, 0, 0, .22);
}
.overview-panel::before,
.overview-panel::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--gold-600);
  opacity: .8;
}
.overview-panel::before { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; border-radius: 11px 0 0; }
.overview-panel::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 11px; }
.panel-title {
  display: grid;
  grid-template-columns: minmax(18px, 1fr) 22px auto 22px minmax(18px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--gold-700);
  text-align: center;
}
.panel-title span { height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold)); }
.panel-title span:last-child { background: linear-gradient(90deg, var(--line-gold), transparent); }
.panel-title svg { width: 22px; height: 13px; }
.panel-title svg:nth-of-type(2) { transform: scaleX(-1); }
.panel-title h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid transparent;
}
.statistic {
  min-width: 0;
  min-height: 73px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statistic:nth-child(3n) { border-right-color: transparent; }
.statistic > svg { width: 38px; height: 38px; color: var(--lavender-700); }
.statistic:nth-child(3n) > svg,
.statistic:nth-child(4n) > svg { color: var(--gold-700); }
.statistic > div { min-width: 0; display: grid; }
.statistic strong {
  color: var(--gold-700);
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.statistic span {
  color: var(--ink-soft);
  font-family: var(--font-editorial);
  font-size: 11px;
  line-height: 1.15;
}
.statistic-wide { grid-column: auto; }
.publication-scope-note {
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: start;
  gap: 10px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.publication-scope-note svg { width: 22px; height: 22px; color: var(--gold-700); }
.publication-scope-note strong { color: var(--ink-soft); }

.evidence-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.evidence-row {
  min-height: 37px;
  display: grid;
  grid-template-columns: 34px 120px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.evidence-row:last-child { border-bottom: 0; }
.evidence-row > * { height: 100%; display: flex; align-items: center; }
.evidence-icon { justify-content: center; border-right: 1px solid var(--line); }
.evidence-icon svg { width: 22px; height: 22px; }
.evidence-row strong { padding: 0 12px; color: var(--ink); border-right: 1px solid var(--line); font-family: var(--font-editorial); font-size: 13px; font-weight: 600; }
.evidence-row > span:last-child { padding: 0 13px; color: var(--muted); line-height: 1.3; }
.evidence-available .evidence-icon { color: var(--status-available); background: color-mix(in srgb, var(--status-available) 10%, transparent); }
.evidence-metadata .evidence-icon { color: var(--status-metadata); background: color-mix(in srgb, var(--status-metadata) 10%, transparent); }
.evidence-unavailable .evidence-icon { color: var(--status-unavailable); background: color-mix(in srgb, var(--status-unavailable) 10%, transparent); }
.evidence-nd .evidence-icon { color: var(--status-nd); background: color-mix(in srgb, var(--status-nd) 10%, transparent); }
.evidence-stable .evidence-icon { color: var(--status-stable); background: color-mix(in srgb, var(--status-stable) 10%, transparent); }
.evidence-reference .evidence-icon { color: var(--status-reference); background: color-mix(in srgb, var(--status-reference) 8%, transparent); }

@media (min-width: 1500px) {
  .home-hero { min-height: 448px; }
  .hero-content { min-height: 448px; }
  .destination-item { min-height: 148px; }
}

@media (max-width: 1180px) {
  .home-hero, .hero-content { min-height: 410px; }
  .hero-art-botanical { left: -88px; width: 398px; height: 448px; }
  .hero-art-genome { right: -90px; width: 390px; height: 390px; }
  .hero-art-phylogeny { right: -35px; width: 400px; }
  .hero-art-molecule { right: 224px; opacity: .34; }
  .hero-copy { width: min(720px, 71vw); }
  .destination-copy small { display: none; }
  .destination-item { min-height: 132px; padding-inline: 7px; }
  .overview-grid { gap: 20px; }
  .overview-panel { padding-inline: 16px; }
  .statistic { grid-template-columns: 34px minmax(0, 1fr); gap: 7px; padding-inline: 8px; }
  .statistic > svg { width: 32px; height: 32px; }
  .evidence-row { grid-template-columns: 32px 105px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .hero-art-botanical { left: -126px; width: 372px; opacity: .60; }
  .hero-art-genome { right: -128px; width: 368px; height: 368px; opacity: .64; }
  .hero-art-phylogeny { right: -78px; width: 354px; opacity: .44; }
  .hero-art-molecule { display: none; }
  .hero-copy { width: min(670px, 76vw); }
  .destination-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .destination-item { min-height: 116px; border-bottom: 1px solid var(--line); }
  .destination-item:nth-child(4n) { border-right: 1px solid var(--line); }
  .destination-item:nth-child(n+5) { border-bottom: 0; }
  .destination-copy strong { font-size: 14px; }
  .destination-icon { width: 48px; height: 48px; }
  .destination-icon svg { width: 46px; height: 46px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-panel { padding: 15px 22px 19px; }
  .statistics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .statistic:nth-child(3n) { border-right-color: var(--line); }
  .statistic:nth-child(4n) { border-right-color: transparent; }
  .statistic:last-child { border-right-color: var(--line); }
}

@media (max-width: 760px) {
  .home-hero, .hero-content { min-height: 500px; }
  .home-hero::before { display: none; }
  .hero-content { align-items: start; padding: 50px 0 32px; }
  .hero-copy { width: 100%; }
  .hero-eyebrow { font-size: 12px; }
  .hero-copy h1 { font-size: clamp(43px, 12.2vw, 58px); line-height: 1.01; }
  .hero-summary { max-width: 92%; font-size: 14px; }
  .hero-search { width: 100%; height: 56px; grid-template-columns: 24px minmax(0, 1fr) 58px; padding-left: 15px; }
  .hero-search input { font-size: 14px; }
  .hero-search button { width: 58px; }
  .hero-art-botanical { left: -126px; bottom: -90px; width: 342px; height: 394px; opacity: .50; }
  .hero-art-genome { right: -136px; bottom: -54px; width: 332px; height: 332px; opacity: .48; }
  .hero-art-phylogeny { right: -94px; top: 50px; width: 304px; height: 148px; opacity: .27; }
  .search-examples { max-width: 94%; }

  .research-destinations { padding: 7px 0; }
  .destination-grid { grid-template-columns: 1fr 1fr; }
  .destination-item {
    min-height: 84px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    grid-template-rows: auto;
    justify-items: start;
    align-content: center;
    gap: 10px;
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .destination-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .destination-item:nth-child(4n) { border-right: 1px solid var(--line); }
  .destination-item:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .destination-item:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .destination-icon { width: 42px; height: 42px; }
  .destination-icon svg { width: 38px; height: 38px; }
  .destination-copy { align-self: center; }
  .destination-copy strong { font-family: var(--font-ui); font-size: 13px; line-height: 1.25; }
  .destination-copy small { display: none; }
  .destination-arrow { position: static; width: 17px; height: 17px; align-self: center; opacity: .78; transform: none; }
  .destination-item:hover .destination-arrow { transform: none; }
  .destination-node { display: none; }

  .home-overview { padding: 17px 0 20px; }
  .overview-panel { padding: 14px 13px 16px; border-radius: 10px; }
  .panel-title { grid-template-columns: minmax(10px, 1fr) 18px auto 18px minmax(10px, 1fr); gap: 6px; }
  .panel-title h2 { font-size: 15px; letter-spacing: .08em; }
  .statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistic { min-height: 72px; grid-template-columns: 33px minmax(0, 1fr); }
  .statistic:nth-child(4n), .statistic:nth-child(3n) { border-right-color: var(--line); }
  .statistic:nth-child(2n) { border-right-color: transparent; }
  .statistic:last-child { border-right-color: var(--line); }
  .evidence-row { min-height: 45px; grid-template-columns: 35px 101px minmax(0, 1fr); font-size: 10px; }
  .evidence-row strong { padding-inline: 9px; font-size: 12px; }
  .evidence-row > span:last-child { padding-inline: 9px; }
}

@media (max-width: 450px) {
  .home-hero, .hero-content { min-height: 470px; }
  .hero-content { padding-top: 42px; }
  .hero-copy h1 { font-size: clamp(40px, 11.4vw, 50px); }
  .hero-rule { margin-block: 12px 8px; }
  .hero-summary { margin-bottom: 15px; }
  .hero-search { height: 54px; }
  .search-examples { gap: 7px; margin-top: 11px; }
  .search-examples > span { width: 100%; }
  .search-examples a { min-height: 28px; padding: 3px 10px; }
  .hero-art-botanical { left: -140px; width: 322px; height: 372px; }
  .hero-art-genome { right: -154px; width: 312px; height: 312px; }
  .destination-grid { grid-template-columns: 1fr; }
  .destination-item,
  .destination-item:nth-child(2n),
  .destination-item:nth-child(4n) { grid-column: auto; border-right: 0; }
  .destination-item:last-child { grid-column: auto; }
  .statistics-grid { grid-template-columns: 1fr 1fr; }
  .statistic { min-height: 70px; padding-inline: 6px; }
  .statistic > svg { width: 29px; height: 29px; }
  .statistic strong { font-size: 21px; }
  .statistic span { font-size: 10px; }
  .publication-scope-note { font-size: 10px; }
  .evidence-row { grid-template-columns: 34px 96px minmax(0, 1fr); }
  .evidence-row > span:last-child { line-height: 1.2; }
}
