/* Visual refinement requested 2026-07-31: cinematic home hero, benchmark
   interval plots, tab-specific ADME evidence, and on-premises deployment art. */

/* --------------------------------------------------------------------------
   Home: dark, video-led opening with the existing decision message.
   -------------------------------------------------------------------------- */

#home-benchmark-title,
#benchmarks,
#compare,
#endpoint-coverage,
#adme {
  scroll-margin-top: 96px;
}

body[data-page="home"] .site-header {
  position: fixed;
  top: 16px;
  right: auto;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 32px), 1180px);
  height: 62px;
  border: 1px solid rgba(211, 241, 235, 0.2);
  border-radius: 18px;
  background: rgba(4, 28, 28, 0.72);
  box-shadow: 0 18px 48px rgba(0, 12, 13, 0.24);
  transform: translateX(-50%);
  backdrop-filter: saturate(1.25) blur(20px);
}

body[data-page="home"] .site-header.scrolled {
  border-color: rgba(211, 241, 235, 0.24);
  background: rgba(4, 28, 28, 0.92);
}

body.feedback-v02.menu-open[data-page="home"] .site-header {
  border-color: rgba(211, 241, 235, 0.24);
  background: rgba(4, 28, 28, 0.97);
}

body[data-page="home"] .site-header__inner {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding-inline: 18px;
}

body[data-page="home"] .site-header .brand__name,
body[data-page="home"] .site-header .primary-nav > a,
body[data-page="home"] .site-header .nav-dropdown > button,
body[data-page="home"] .site-header .header-login {
  color: #f1f8f6;
}

body[data-page="home"] .site-header .mobile-menu-button {
  border-color: rgba(221, 244, 239, 0.24);
  color: #eff8f6;
  background: rgba(229, 247, 243, 0.08);
}

body[data-page="home"] .site-header .mobile-menu-button:hover {
  border-color: rgba(221, 244, 239, 0.42);
  background: rgba(229, 247, 243, 0.14);
}

body[data-page="home"] .site-header .brand__name b {
  color: #64d5c6;
}

body[data-page="home"] .site-header .brand__logo circle[fill="#0B1A1C"] {
  fill: #d9f1ec;
}

body[data-page="home"] .site-header .primary-nav > a:hover,
body[data-page="home"] .site-header .nav-dropdown > button:hover,
body[data-page="home"] .site-header .header-login:hover,
body[data-page="home"] .site-header .primary-nav [aria-current="page"] {
  color: #8ce2d6;
  background: rgba(151, 229, 218, 0.09);
}

body[data-page="home"] .site-header .button--header {
  color: #042a28;
  background: #7edbcc;
}

body[data-page="home"] .site-header .button--header:hover {
  background: #a6e8de;
}

body[data-page="home"] .site-header .nav-dropdown__menu {
  border-color: rgba(15, 77, 72, 0.18);
  background: #f8fbfa;
}

body[data-page="home"] .site-header .nav-dropdown__menu a {
  color: #123c39;
}

.campaign-hero--cinematic {
  height: auto !important;
  min-height: 66vh !important;
  min-height: 66svh !important;
  border: 0;
  background: #061918;
}

.campaign-hero--cinematic .hero-backdrop {
  position: absolute;
  inset: 0;
  display: block !important;
  overflow: hidden;
  background: #061918;
}

.campaign-hero--cinematic .hero-backdrop img {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.84;
  filter: saturate(0.78) contrast(1.04) brightness(0.72);
}

body.feedback-v02 .campaign-hero--cinematic.hero--selected.hero--video .hero-bg-video {
  width: 100%;
  height: 100%;
  min-width: 100%;
  -webkit-mask-image: none;
          mask-image: none;
  filter: saturate(0.78) contrast(1.04) brightness(0.72);
}

.campaign-hero--cinematic::before {
  z-index: 2;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(2, 19, 18, 0.93) 0%, rgba(2, 19, 18, 0.72) 46%, rgba(2, 19, 18, 0.22) 83%),
    linear-gradient(0deg, rgba(2, 19, 18, 0.9) 0%, rgba(2, 19, 18, 0.12) 46%, rgba(2, 19, 18, 0.2) 100%);
  -webkit-mask-image: none;
          mask-image: none;
}

.campaign-hero--cinematic::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(159, 221, 211, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 221, 211, 0.22) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.campaign-hero--cinematic .campaign-hero__grid {
  z-index: 3;
  width: min(calc(100% - 48px), 1240px);
  max-width: 1240px;
  min-height: 66vh;
  min-height: 66svh;
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.85fr);
  gap: clamp(46px, 6vw, 92px);
  padding-top: 88px;
  padding-bottom: 32px;
}

.campaign-hero--cinematic .campaign-hero__copy {
  min-width: 0;
  max-width: 690px;
}

.campaign-hero--cinematic .eyebrow {
  color: #72d8cb;
}

.campaign-hero--cinematic h1,
.campaign-hero--cinematic h1::first-line {
  margin-bottom: 24px;
  color: #f4faf8;
  font-size: clamp(3rem, 4vw, 3.85rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.campaign-hero--cinematic .campaign-hero__lead {
  max-width: 610px;
  margin-bottom: 30px;
  color: #bfd3cf;
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
  line-height: 1.58;
}

@media (min-width: 1081px) {
  .campaign-hero--cinematic .campaign-hero__grid {
    grid-template-columns: minmax(0, 0.97fr) minmax(500px, 1.03fr);
    gap: clamp(44px, 4vw, 64px);
  }

  .campaign-hero--cinematic h1,
  .campaign-hero--cinematic h1::first-line {
    font-size: clamp(2.25rem, 3vw, 2.75rem);
  }

  .campaign-hero--cinematic h1 .campaign-hero__desktop-line {
    white-space: normal;
  }
}

.campaign-hero--cinematic .button--primary {
  color: #042a28;
  background: #78d9cb;
}

.campaign-hero--cinematic .button--primary:hover {
  background: #a0e8dd;
}

.campaign-hero--cinematic .button--secondary {
  border-color: rgba(226, 246, 241, 0.42);
  color: #eff8f6;
  background: rgba(5, 35, 34, 0.46);
  backdrop-filter: blur(10px);
}

.campaign-hero--cinematic .button--secondary:hover {
  border-color: rgba(226, 246, 241, 0.7);
  color: #ffffff;
  background: rgba(13, 62, 58, 0.7);
}

body.feedback-v02[data-page="home"] .home-products {
  padding-top: clamp(28px, 3vw, 40px);
}

body.feedback-v02[data-page="home"] .evidence-rail {
  margin-bottom: clamp(32px, 3.5vw, 44px);
}

.home-education-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(214, 241, 236, 0.24);
  border-radius: 22px;
  background: rgba(3, 26, 25, 0.7);
  box-shadow: 0 30px 80px rgba(0, 11, 12, 0.36);
  backdrop-filter: blur(18px);
}

.home-education-card > .home-hero-overlay__video-frame {
  overflow: hidden;
  border-radius: 14px;
}

.trust-layout__intro .button-row {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 901px) {
  body.feedback-v02[data-page="evidence"] .hero--evidence-selected .hero__copy.evidence-hero-overlay {
    width: min(46%, 494px);
    max-width: min(46%, 494px);
    flex: 0 0 min(46%, 494px);
    grid-template-columns: minmax(0, 430px);
    align-content: center;
    gap: 12px;
  }

  body.feedback-v02[data-page="evidence"] .evidence-hero-overlay h1 {
    margin-bottom: 0;
  }

  body.feedback-v02[data-page="evidence"] .evidence-hero-overlay__details {
    justify-content: flex-start;
  }
}

.home-education-card__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 8px 14px;
}

.home-education-card__heading span,
.home-education-card__heading small {
  display: block;
  color: #87a9a4;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-education-card__heading h2 {
  margin: 5px 0 0;
  color: #eef8f5;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.2;
}

.home-education-card .home-hero-overlay__video-frame {
  border-color: rgba(198, 235, 229, 0.2);
  border-radius: 12px;
  background: #071e1d;
  box-shadow: none;
}

.home-education-card .home-hero-sales-video {
  background: #071e1d;
}

/* --------------------------------------------------------------------------
   Benchmark interval plots.
   -------------------------------------------------------------------------- */

.benchmark-section--home {
  background:
    radial-gradient(circle at 86% 0%, rgba(16, 167, 149, 0.08), transparent 34%),
    #f7faf8;
}

.benchmark-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: end;
  margin-bottom: 42px;
}

.benchmark-home-intro h2 {
  max-width: 15ch;
  margin-bottom: 0;
}

.benchmark-home-intro > div:last-child > p {
  margin-bottom: 18px;
  color: #48635f;
  line-height: 1.65;
}

.benchmark-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.benchmark-mini-card {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid rgba(13, 88, 82, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(12, 57, 55, 0.07);
}

.benchmark-mini-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.benchmark-mini-card__header span,
.forest-card header span {
  display: block;
  color: #153f3c;
  font-size: 1.1rem;
  font-weight: 780;
}

.benchmark-mini-card__header div > small,
.forest-card header div > small {
  display: block;
  margin-top: 4px;
  color: #6b817d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

/* Explicit leaderboard slot. Neutral ink on a soft pill: rank is ordinal
   identity, not a series value, so it must not wear the MLTox series teal or a
   status colour. The qualifier carries the separability caveat so a bare "#1"
   can never read as an outright win. */
.benchmark-rank {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  margin-top: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(13, 88, 82, 0.2);
  border-radius: 999px;
  background: #eef4f2;
  font-style: normal;
}

.benchmark-rank b {
  color: #153f3c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.benchmark-rank i {
  color: #6b817d;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 650;
}

.benchmark-mini-card__header > strong,
.forest-card header > strong {
  color: #087d71;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1;
  white-space: nowrap;
}

.benchmark-mini-card__header > strong small,
.forest-card header > strong small {
  color: #58716d;
  font-size: 0.72rem;
  font-weight: 700;
}

.benchmark-mini-plot {
  padding: 13px 14px 11px;
  border: 1px solid rgba(13, 88, 82, 0.12);
  border-radius: 12px;
  background: #f7faf9;
}

.benchmark-mini-plot__scale {
  display: flex;
  justify-content: space-between;
  margin: 0 0 4px 92px;
  color: #7b8e8a;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.benchmark-mini-plot__scale span:nth-child(2) {
  color: #0b8a7b;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.benchmark-mini-plot__row {
  display: grid;
  min-height: 34px;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #526a66;
  font-size: 0.7rem;
  font-weight: 700;
}

.benchmark-interval {
  position: relative;
  display: block;
  height: 28px;
  background: linear-gradient(90deg, rgba(40, 84, 80, 0.1) 1px, transparent 1px) 0 50% / 25% 12px repeat-x;
}

.benchmark-interval::before {
  position: absolute;
  top: 13px;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  height: 2px;
  content: "";
  background: #465a58;
}

.benchmark-interval::after {
  position: absolute;
  top: 8px;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  height: 12px;
  border-right: 2px solid #465a58;
  border-left: 2px solid #465a58;
  content: "";
}

.benchmark-interval--mltox::before {
  top: 8px;
  height: 12px;
  border-radius: 3px;
  background:
    linear-gradient(#0e9f8f, #0e9f8f) center / 100% 3px no-repeat,
    rgba(15, 168, 150, 0.14);
}

.benchmark-interval--mltox::after {
  border-color: #0e9f8f;
}

.benchmark-interval > i,
.benchmark-interval > em {
  position: absolute;
  top: 9px;
  left: var(--mean);
  z-index: 2;
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #f7faf9;
  border-radius: 50%;
  background: #465a58;
  box-shadow: 0 0 0 1px #465a58;
  transform: translateX(-50%);
}

.benchmark-interval--mltox > i,
.benchmark-interval--mltox > em {
  border-radius: 2px;
  background: #0e9f8f;
  box-shadow: 0 0 0 1px #08796e;
  transform: translateX(-50%) rotate(45deg);
}

.benchmark-mini-card > p {
  margin: 15px 0 0;
  color: #526a66;
  font-size: 0.82rem;
}

.benchmark-method-line {
  margin: 20px 0 0;
  color: #667b77;
  font-size: 0.78rem;
  line-height: 1.55;
}

#benchmarks .benchmark-layout {
  display: flex;
  flex-direction: column;
  gap: 46px;
  align-items: stretch;
}

#benchmarks .benchmark-copy {
  order: -1;
  max-width: 920px;
}

#benchmarks .benchmark-copy h2 {
  max-width: 18ch;
}

#benchmarks .benchmark-copy > p:not(.eyebrow):not(.benchmark-note) {
  max-width: 780px;
}

#benchmarks .benchmark-copy__facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#benchmarks .benchmark-copy__facts li {
  grid-template-columns: 38px 1fr;
}

.benchmark-figure--forest {
  min-width: 0;
}

.benchmark-forest-grid {
  display: grid;
  /* Two-up only while each card can still hold a 480px row grid; below that
     the score column ends up behind a scrollbar (breaks around 1080px). */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1080px) {
  .benchmark-forest-grid {
    grid-template-columns: 1fr;
  }
}

.forest-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 88, 82, 0.16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(8, 53, 51, 0.08);
}

.forest-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(13, 88, 82, 0.12);
  background: #f7faf9;
}

.forest-card header > strong {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.forest-card__plot {
  position: relative;
  min-width: 0;
  padding: 15px 20px 12px;
  overflow-x: auto;
  contain: inline-size layout paint;
  -webkit-overflow-scrolling: touch;
}

.forest-scale,
.forest-rows {
  /* Must stay under the plot's inner width (529px card - 40px padding) or
     every card gets a stray horizontal scrollbar. The grid itself floors at
     126 + 220 + 78 + 20 = 444px. */
  min-width: 480px;
}

.forest-scale {
  display: grid;
  /* Kept identical on .forest-scale and .forest-rows li so the axis and the
     interval tracks stay aligned. */
  grid-template-columns: 126px minmax(220px, 1fr) 78px;
  gap: 10px;
  color: #758985;
  font-family: var(--mono);
  font-size: 0.61rem;
}

.forest-scale span:first-child {
  grid-column: 2;
}

.forest-scale span:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  color: #0c8c7e;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.forest-scale span:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.forest-rows {
  position: relative;
  z-index: 1;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.forest-rows li {
  display: grid;
  min-height: 38px;
  /* Kept identical on .forest-scale and .forest-rows li so the axis and the
     interval tracks stay aligned. */
  grid-template-columns: 126px minmax(220px, 1fr) 78px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(13, 88, 82, 0.08);
  color: #526a66;
  font-size: 0.7rem;
}

.forest-rows li > span {
  overflow: hidden;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forest-rows li > strong {
  color: #405b57;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.forest-rows li.is-mltox {
  color: #086f65;
  font-weight: 800;
}

.forest-rows li.is-mltox > strong {
  color: #087d71;
}

.forest-track {
  position: relative;
  display: block;
  height: 28px;
}

.forest-track::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: #dbe5e2;
}

.forest-track > .benchmark-interval {
  position: absolute;
  inset: 0;
}

.forest-mltox-band {
  display: none;
}

.forest-card > p {
  min-height: 66px;
  margin: 0;
  padding: 14px 24px 17px;
  border-top: 1px solid rgba(13, 88, 82, 0.1);
  color: #526a66;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* An `auto` note column claims its full max-content width and starves the
   legend, wrapping it onto several rows; centring then leaves the one-line
   note floating mid-block. Wrap instead: the note shares the line where it
   fits and otherwise drops to its own full-width line. */
.benchmark-figure--forest figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  margin-top: 18px;
}

.benchmark-figure--forest figcaption > :last-child {
  flex: 1 1 320px;
  min-width: 0;
}

.benchmark-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.benchmark-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.legend-diamond,
.legend-circle,
.legend-band,
.legend-whisker {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.legend-diamond {
  border-radius: 2px;
  background: #0e9f8f;
  transform: rotate(45deg);
}

.legend-circle {
  border-radius: 50%;
  background: #465a58;
}

.legend-band {
  width: 18px;
  border-radius: 3px;
  background: rgba(15, 168, 150, 0.16);
}

.legend-whisker {
  position: relative;
  width: 20px;
  height: 2px;
  background: #465a58;
}

.legend-whisker::before,
.legend-whisker::after {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 10px;
  content: "";
  background: #465a58;
}

.legend-whisker::before { left: 0; }
.legend-whisker::after { right: 0; }

/* --------------------------------------------------------------------------
   Evidence comparison matrix: preserve the original table on small screens.
   -------------------------------------------------------------------------- */

body[data-page="evidence"] #compare .comparison-note {
  margin-bottom: 0;
}

body[data-page="evidence"] .comparison-table-wrap {
  max-width: 100%;
  contain: inline-size layout paint;
}

/* --------------------------------------------------------------------------
   ADME: the selected domain now changes an evidence-rich numeric table.
   -------------------------------------------------------------------------- */

.adme-data-card {
  min-width: 0;
  margin: 0;
  align-self: stretch;
  background: #f8fbfa;
}

.adme-data-card__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.adme-data-card__heading span,
.adme-data-card__heading small {
  color: #6a817d;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.adme-data-card__heading h4 {
  margin: 5px 0 0;
  color: #123c39;
  font-size: 1.3rem;
}

.adme-data-table-wrap {
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.adme-data-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.adme-data-table th,
.adme-data-table td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(13, 88, 82, 0.12);
  color: #4c6662;
  text-align: left;
  vertical-align: top;
}

.adme-data-table thead th {
  color: #718783;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.adme-data-table tbody th {
  width: 27%;
  color: #143e3b;
  font-weight: 720;
}

.adme-data-table tbody td:nth-child(2) {
  color: #087d71;
  font-weight: 800;
  white-space: nowrap;
}

.adme-data-card figcaption {
  margin: 0;
  padding: 15px 24px 18px;
  color: #667d79;
  font-size: 0.74rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Deployment: show the customer-controlled infrastructure boundary.
   -------------------------------------------------------------------------- */

body.feedback-v02[data-page="deployment"] .hero--deployment-plain {
  height: auto;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 24%, rgba(15, 168, 150, 0.1), transparent 34%),
    #f1f6f4;
}

body.feedback-v02[data-page="deployment"] .hero--deployment-plain .hero__inner {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(340px, 0.7fr) minmax(560px, 1.3fr);
  gap: clamp(30px, 3vw, 48px);
  align-items: center;
  padding-block: 48px;
}

body.feedback-v02[data-page="deployment"] .hero--deployment-plain .hero__copy {
  width: auto;
  max-width: 610px;
  flex: initial;
}

body.feedback-v02[data-page="deployment"] .hero--deployment-plain h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 3.7vw, 3.75rem);
  line-height: 1.02;
}

body.feedback-v02[data-page="deployment"] .hero--deployment-plain .hero__lead {
  max-width: 590px;
}

body.feedback-v02[data-page="deployment"] .hero--deployment-plain .button-row {
  display: flex;
  width: auto;
  flex-wrap: wrap;
}

body.feedback-v02[data-page="deployment"] .hero--deployment-plain .button {
  width: auto;
}

.deployment-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0;
}

.deployment-hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(19, 78, 74, 0.18);
  border-radius: 24px;
  background: #dfe8e5;
  box-shadow: 0 30px 74px rgba(6, 42, 43, 0.22);
}

.deployment-hero__poster,
.deployment-hero__video {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.deployment-hero__poster {
  z-index: 0;
}

.deployment-hero__video {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.deployment-hero__video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(15, 103, 94, 0.28);
  border-radius: 11px;
  color: #123c38;
  background: rgba(248, 251, 250, 0.94);
  box-shadow: 0 8px 22px rgba(6, 42, 43, 0.18);
  cursor: pointer;
}

.deployment-hero__video-toggle:hover {
  transform: translateY(-1px);
}

.deployment-hero__video-toggle:active {
  transform: translateY(1px);
}

.deployment-hero__video-toggle:focus-visible {
  outline: 3px solid #58a9d5;
  outline-offset: 3px;
}

.deployment-hero__video-icon--pause {
  display: none;
}

.deployment-hero__media.is-playing .deployment-hero__video-icon--play {
  display: none;
}

.deployment-hero__media.is-playing .deployment-hero__video-icon--pause {
  display: block;
}

.deployment-hero__visual figcaption {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: calc(100% - 32px);
  margin: -28px auto 0;
  padding: 15px 17px;
  border: 1px solid rgba(15, 103, 94, 0.18);
  border-radius: 13px;
  color: #3e5d59;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(9, 49, 47, 0.14);
  font-size: 0.78rem;
  line-height: 1.5;
  backdrop-filter: blur(12px);
}

.deployment-hero__visual figcaption svg {
  color: #0c9182;
}

/* --------------------------------------------------------------------------
   Responsive behavior.
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .campaign-hero--cinematic .campaign-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    gap: 36px;
  }

  .campaign-hero--cinematic h1,
  .campaign-hero--cinematic h1::first-line {
    font-size: clamp(2.7rem, 5vw, 3.7rem);
  }

  body[data-page="evidence"] .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    background: var(--paper);
  }

  body[data-page="evidence"] .comparison-table {
    display: table;
    width: auto;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
  }

  body[data-page="evidence"] .comparison-table thead { display: table-header-group; }
  body[data-page="evidence"] .comparison-table tbody { display: table-row-group; }

  body[data-page="evidence"] .comparison-table tr {
    display: table-row;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }

  body[data-page="evidence"] .comparison-table th,
  body[data-page="evidence"] .comparison-table td {
    display: table-cell;
    width: auto;
    min-width: 94px;
    padding: 11px 9px;
    gap: 0;
    border-right: 1px solid #e0e6e2;
    border-bottom: 1px solid #e0e6e2;
    text-align: center;
    vertical-align: middle;
  }

  body[data-page="evidence"] .comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--paper-soft);
    font-size: 11px;
    line-height: 1.3;
  }

  body[data-page="evidence"] .comparison-table .comparison-table__product {
    position: sticky;
    left: 0;
    z-index: 1;
    display: table-cell;
    min-width: 148px;
    padding: 11px 12px;
    background: var(--paper);
    box-shadow: 1px 0 0 var(--line);
    font-size: 13px;
    text-align: left;
  }

  body[data-page="evidence"] .comparison-table thead .comparison-table__product {
    z-index: 3;
    background: var(--paper-soft);
  }

  body[data-page="evidence"] .comparison-table tr.is-mltox td { background: #edf8f5; }
  body[data-page="evidence"] .comparison-table tr.is-mltox .comparison-table__product { background: #e2f3ef; }
  body[data-page="evidence"] .comparison-table td:not(.comparison-table__product)::before { content: none; }

  body.feedback-v02[data-page="deployment"] .hero--deployment-plain .hero__inner {
    grid-template-columns: minmax(0, 0.72fr) minmax(450px, 1.28fr);
    gap: 28px;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .campaign-hero--cinematic h1,
  .campaign-hero--cinematic h1::first-line {
    width: 100%;
    max-width: none;
    font-size: clamp(2.05rem, 3.6vw, 2.35rem);
  }
}

@media (max-width: 900px) {
  body[data-page="home"] .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  body[data-page="home"] .site-header .primary-nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    max-height: calc(100svh - 90px);
    border: 1px solid rgba(211, 241, 235, 0.18);
    border-radius: 16px;
    background: rgba(4, 28, 28, 0.97);
  }

  body[data-page="home"] .site-header .primary-nav > a,
  body[data-page="home"] .site-header .nav-dropdown > button {
    color: #edf8f5;
  }

  body[data-page="home"] .site-header .nav-dropdown__menu {
    background: #0b302e;
  }

  body[data-page="home"] .site-header .nav-dropdown__menu a {
    color: #edf8f5;
  }

  body[data-page="home"] .site-header .nav-dropdown__menu a small {
    color: #9ab5b0;
  }

  .campaign-hero--cinematic {
    height: auto !important;
    min-height: auto !important;
  }

  .campaign-hero--cinematic .campaign-hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 112px;
    padding-bottom: 54px;
  }

  .campaign-hero--cinematic .campaign-hero__copy {
    max-width: 740px;
  }

  .campaign-hero--cinematic h1,
  .campaign-hero--cinematic h1::first-line {
    width: 100%;
    max-width: none;
  }

  .campaign-hero--cinematic::before {
    background:
      linear-gradient(90deg, rgba(2, 19, 18, 0.94) 0%, rgba(2, 19, 18, 0.66) 100%),
      linear-gradient(0deg, rgba(2, 19, 18, 0.88), rgba(2, 19, 18, 0.12));
  }

  .home-education-card {
    width: min(100%, 720px);
  }

  .benchmark-home-intro,
  #benchmarks .benchmark-copy__facts,
  body.feedback-v02[data-page="deployment"] .hero--deployment-plain .hero__inner {
    grid-template-columns: 1fr;
  }

  .benchmark-home-intro {
    gap: 20px;
  }

  body.feedback-v02[data-page="deployment"] .hero--deployment-plain .hero__inner {
    min-height: 0;
    padding-block: 48px 62px;
  }

  body.feedback-v02[data-page="deployment"] .hero--deployment-plain .hero__copy {
    max-width: 720px;
  }

  .deployment-hero__visual {
    width: min(100%, 760px);
  }
}

@media (min-width: 861px) and (max-width: 900px) {
  body[data-page="home"] .site-header .primary-nav {
    position: static;
    inset: auto;
    display: flex;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .benchmark-mini-grid,
  .benchmark-forest-grid {
    grid-template-columns: 1fr;
  }

  .forest-scale,
  .forest-rows {
    min-width: 480px;
  }

  .adme-data-card__heading {
    padding-inline: 20px;
  }

  .adme-data-table-wrap {
    padding-inline: 20px;
  }

  .adme-data-card figcaption {
    padding-inline: 20px;
  }
}

@media (max-width: 620px) {
  /* Below ~620px the 560px-wide row grid no longer fits, so the score column
     ends up behind a horizontal scrollbar. Restack instead of scrolling:
     method name and score share the first line, interval track spans the
     full width beneath them. */
  .forest-card__plot {
    overflow-x: visible;
    padding-inline: 16px;
  }

  .forest-scale,
  .forest-rows {
    min-width: 0;
  }

  .forest-scale {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .forest-scale span:first-child {
    grid-column: 1;
  }

  .forest-scale span:nth-child(2) {
    grid-column: 2;
  }

  .forest-scale span:last-child {
    grid-column: 3;
  }

  .forest-rows li {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding-block: 9px 3px;
  }

  .forest-rows li > span {
    grid-area: 1 / 1;
  }

  .forest-rows li > strong {
    grid-area: 1 / 2;
  }

  .forest-rows .forest-track {
    grid-area: 2 / 1 / 3 / -1;
    height: 22px;
  }

  .campaign-hero--cinematic .campaign-hero__grid {
    gap: 30px;
    padding-top: 98px;
    padding-bottom: 38px;
  }

  .campaign-hero--cinematic h1,
  .campaign-hero--cinematic h1::first-line {
    margin-bottom: 18px;
    /* Hero lines are nowrap, so size purely off the viewport: the longest
       line ("about your compound") must fit down to 320px wide. Measured at
       ~10.5em for that line in Segoe UI Bold, the widest of the system stack. */
    font-size: min(2.6rem, 7.9vw);
  }

  /* Safety net for device fonts wider than the measured baseline: wrap the
     line rather than clipping it, since the hero has overflow hidden. */
  .campaign-hero--cinematic h1 .campaign-hero__desktop-line,
  .campaign-hero--cinematic h1 .campaign-hero__mobile-line {
    white-space: normal;
  }

  .campaign-hero--cinematic .campaign-hero__copy {
    box-sizing: border-box;
    width: 100%;
  }

  .campaign-hero--cinematic .campaign-hero__lead {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .campaign-hero--cinematic .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .campaign-hero--cinematic .button {
    width: 100%;
    justify-content: center;
  }

  .home-education-card {
    padding: 9px;
    border-radius: 16px;
  }

  .home-education-card__heading {
    padding: 8px 6px 12px;
  }

  .home-education-card__heading small {
    display: none;
  }

  .adme-data-card__heading > small {
    display: none;
  }

  .benchmark-mini-card__header,
  .forest-card header {
    align-items: end;
  }

  .benchmark-mini-card__header > strong,
  .forest-card header > strong {
    font-size: 1.45rem;
  }

  .benchmark-mini-plot {
    padding-inline: 10px;
  }

  .benchmark-mini-plot__scale {
    margin-left: 78px;
  }

  .benchmark-mini-plot__row {
    grid-template-columns: 70px minmax(0, 1fr);
    font-size: 0.64rem;
  }

  .forest-card header {
    padding-inline: 18px;
  }

  .forest-card > p {
    min-height: 0;
    padding-inline: 18px;
  }

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

  .deployment-hero__media {
    border-radius: 17px;
  }

  .deployment-hero__video-toggle {
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
  }

  .deployment-hero__visual figcaption {
    width: calc(100% - 20px);
    margin-top: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.feedback-v02 .campaign-hero--cinematic .hero-bg-video {
    display: none;
  }

  .deployment-hero__video,
  .deployment-hero__video-toggle {
    display: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Home hero: expose the reference video and keep mobile focus order natural.
   -------------------------------------------------------------------------- */

body.feedback-v02[data-page="home"] .campaign-hero--cinematic::before {
  content: "";
  opacity: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.86) 0%,
    rgba(0, 0, 0, 0.74) 24%,
    rgba(0, 0, 0, 0.46) 38%,
    rgba(0, 0, 0, 0.14) 50%,
    rgba(0, 0, 0, 0) 60%
  );
  -webkit-mask-image: none;
          mask-image: none;
  pointer-events: none;
}

body.feedback-v02[data-page="home"] .campaign-hero--cinematic .hero-backdrop img,
body.feedback-v02[data-page="home"] .campaign-hero--cinematic.hero--selected.hero--video .hero-bg-video {
  filter: saturate(0.9) contrast(1.04) brightness(0.88);
}

body.feedback-v02[data-page="home"] .campaign-hero--cinematic :is(.eyebrow, h1, .campaign-hero__lead) {
  text-shadow: 0 2px 18px rgba(0, 12, 12, 0.74);
}

body.feedback-v02[data-page="home"] .campaign-hero--cinematic .campaign-hero__grid {
  grid-template-areas:
    "copy media"
    "actions media";
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: 28px;
}

body.feedback-v02[data-page="home"] .campaign-hero__copy {
  grid-area: copy;
  align-self: end;
}

body.feedback-v02[data-page="home"] .campaign-hero__lead {
  margin-bottom: 0;
}

body.feedback-v02[data-page="home"] .home-education-card {
  grid-area: media;
  align-self: center;
}

body.feedback-v02[data-page="home"] .campaign-hero__actions {
  grid-area: actions;
  align-self: start;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Deployment: compact DGX Spark appliance and capability rail.
   -------------------------------------------------------------------------- */

body.feedback-v02[data-page="deployment"] .deployment-hero__visual {
  width: 100%;
  justify-self: end;
}

body.feedback-v02[data-page="deployment"] .deployment-hero__media {
  aspect-ratio: 16 / 9;
}

body.feedback-v02[data-page="deployment"] .deployment-hero__visual figcaption {
  width: 100%;
  margin: 14px 0 0;
}

.appliance-capability-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(54px, 7vw, 84px);
  border-block: 1px solid rgba(19, 78, 74, 0.14);
}

.appliance-capability-rail article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 13px;
  padding: 24px clamp(20px, 2.4vw, 32px);
}

.appliance-capability-rail article + article {
  border-left: 1px solid rgba(19, 78, 74, 0.14);
}

.appliance-capability-rail svg {
  margin-top: 2px;
  color: #0c9182;
}

.appliance-capability-rail strong,
.appliance-capability-rail span {
  display: block;
}

.appliance-capability-rail strong {
  margin-bottom: 7px;
  color: #153b38;
  font-size: 0.94rem;
  line-height: 1.35;
}

.appliance-capability-rail span {
  color: #5f7471;
  font-size: 0.8rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  body.feedback-v02[data-page="home"] .campaign-hero--cinematic::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.68) 26%,
      rgba(0, 0, 0, 0.22) 46%,
      rgba(0, 0, 0, 0) 62%
    );
  }

  body.feedback-v02[data-page="home"] .campaign-hero--cinematic .campaign-hero__grid {
    grid-template-areas:
      "copy"
      "media"
      "actions";
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .appliance-capability-rail {
    grid-template-columns: 1fr;
  }

  .appliance-capability-rail article + article {
    border-top: 1px solid rgba(19, 78, 74, 0.14);
    border-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: preserve the teal-led system while keeping compact labels,
   chart scales, and calls to action at WCAG AA contrast.
   -------------------------------------------------------------------------- */

body.feedback-v02 {
  --ink-muted: #5b716e;
  --teal-dark: #087467;
  --blue: #087467;
}

body.feedback-v02 .button--primary,
body.feedback-v02 .button--header,
body.feedback-v02 .skip-link {
  color: #042a28;
}

body.feedback-v02 .button--primary:hover,
body.feedback-v02 .button--header:hover {
  color: #ffffff;
}

body.feedback-v02[data-page="home"] .campaign-hero--cinematic .button--primary:hover,
body.feedback-v02[data-page="home"] .site-header .button--header:hover {
  color: #042a28;
}

body.feedback-v02 .learning-loop .loop-node--report > svg,
body.feedback-v02 .learning-loop .loop-node--report p {
  color: #042a28 !important;
}

body.feedback-v02 .learning-loop .loop-handoffs span,
body.feedback-v02 .learning-loop .learning-loop__phase--feedback span {
  color: #80550d;
}

body.feedback-v02 .benchmark-mini-card__header div > small,
body.feedback-v02 .forest-card header div > small,
body.feedback-v02 .benchmark-mini-plot__scale,
body.feedback-v02 .forest-scale,
body.feedback-v02 .adme-data-card__heading span,
body.feedback-v02 .adme-data-card__heading small,
body.feedback-v02 .adme-data-table thead th,
body.feedback-v02 .adme-data-card figcaption {
  color: #526a66;
}

body.feedback-v02 .benchmark-mini-plot__scale span:nth-child(2),
body.feedback-v02 .forest-scale span:nth-child(2),
body.feedback-v02 .benchmark-copy__facts strong {
  color: #087467;
}

body.feedback-v02 .decision-lane__number,
body.feedback-v02 .decision-guides summary small {
  color: #596f6c;
}

body.feedback-v02 .pilot-visual figcaption {
  color: #596f6c;
}

body.feedback-v02 .biologics-bridge .inline-brand__tox {
  color: #72d8cb;
}
