/*
 * V7.3.1 | BIOTEN science-first narrative and concise technical footer
 * Direction: precise material science, quiet structure, evidence-aware language.
 */

body.bioten-platform-v580 {
  --btp731-navy: #07365f;
  --btp731-ink: #082a26;
  --btp731-green: #078778;
  --btp731-mint: #75d7c0;
  --btp731-surface: #eef5f2;
  --btp731-line: rgba(8, 69, 61, 0.12);
}

/* Science is the first proof layer after the hero. */
body.bioten-platform-v580 .btp731-science {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 83, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 83, 74, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 88% 8%, rgba(97, 211, 187, 0.17), transparent 30%),
    linear-gradient(180deg, #f7faf8 0%, var(--btp731-surface) 100%);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

body.bioten-platform-v580 .btp731-science::before {
  content: "R&D / 01";
  position: absolute;
  z-index: -1;
  top: clamp(78px, 7vw, 112px);
  right: max(28px, calc((100vw - 1180px) / 2));
  color: rgba(7, 79, 70, 0.055);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(58px, 8.8vw, 132px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.8;
  pointer-events: none;
}

body.bioten-platform-v580 .btp731-science .btp580-section-head {
  max-width: 1020px;
}

html body.bioten-platform-v580.bioten-platform-v580 main.btp580-main .btp731-science .btp580-section-head h2 {
  max-width: 960px;
  text-wrap: balance;
}

body.bioten-platform-v580 .btp731-science .btp730-process {
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(8, 83, 73, 0.1),
    0 24px 64px rgba(9, 57, 50, 0.075);
  backdrop-filter: blur(14px);
}

body.bioten-platform-v580 .btp731-science .btp730-process > h2 {
  background: linear-gradient(145deg, rgba(7, 54, 95, 0.98), rgba(6, 94, 82, 0.98));
  color: #f6fffc;
}

body.bioten-platform-v580 .btp731-science .btp730-process li::before {
  color: var(--btp731-green);
}

body.bioten-platform-v580 .btp731-science .btp580-system__panel {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(103, 220, 193, 0.15), transparent 32%),
    linear-gradient(135deg, #061c2c 0%, #062923 58%, #0a342c 100%);
}

body.bioten-platform-v580 .btp731-science .btp580-system__panel::after {
  content: "MATERIAL → FORMULATION → PROCESS → ARTICLE";
  position: absolute;
  right: 34px;
  bottom: 17px;
  color: rgba(206, 246, 235, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  pointer-events: none;
}

body.bioten-platform-v580 .btp731-science .btp580-capabilities {
  gap: 15px;
  margin-top: 30px;
}

body.bioten-platform-v580 .btp731-science .btp580-capabilities article {
  min-height: 176px;
  padding: 23px 21px 21px;
  border: 1px solid var(--btp731-line);
  border-top: 3px solid rgba(7, 135, 120, 0.66);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 38px rgba(11, 61, 53, 0.045);
}

html body.bioten-platform-v580.bioten-platform-v580 main.btp580-main .btp731-science .btp580-capabilities h3 {
  color: var(--btp731-ink) !important;
  font-size: 17px !important;
  letter-spacing: -0.025em;
}

body.bioten-platform-v580 .btp731-science .btp580-capabilities p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.72;
}

body.bioten-platform-v580 .btp731-science .btp580-loop {
  margin-top: 22px;
  border-color: rgba(7, 96, 84, 0.11);
  background: rgba(255, 255, 255, 0.5);
}

/* Applications now read as downstream outcomes of the R&D system. */
body.bioten-platform-v580 .btp580-domains {
  background:
    radial-gradient(circle at 10% 4%, rgba(52, 165, 145, 0.08), transparent 24%),
    #f8faf9;
}

/* BIOTEN-specific footer: one identity, one technical vocabulary, four routes. */
html body.bioten-platform-v580 footer.btp731-footer.footer.formal-site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(52, 171, 147, 0.14), transparent 28%),
    linear-gradient(135deg, #061b29 0%, #062720 62%, #082e27 100%) !important;
}

html body.bioten-platform-v580 footer.btp731-footer .footer-inner.footer-inner {
  padding-top: 34px !important;
  padding-bottom: 18px !important;
}

body.bioten-platform-v580 .btp731-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 46px;
  align-items: end;
}

body.bioten-platform-v580 footer.btp731-footer .btp730-footer__brand {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 25px;
  align-items: center;
  max-width: 720px;
  margin: 0;
}

body.bioten-platform-v580 footer.btp731-footer .btp730-footer__brandmark {
  width: 128px;
  opacity: 0.96;
}

html body.bioten-platform-v580 footer.btp731-footer .footer-note.footer-note {
  max-width: 520px !important;
  margin: 0 !important;
  color: rgba(237, 250, 246, 0.7) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

body.bioten-platform-v580 .btp731-footer__routes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

body.bioten-platform-v580 .btp731-footer__routes a {
  position: relative;
  color: rgba(240, 252, 248, 0.78);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: color 220ms ease;
}

body.bioten-platform-v580 .btp731-footer__routes a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--btp731-mint);
}

body.bioten-platform-v580 .btp731-footer__routes a:hover {
  color: #91e6d1;
}

body.bioten-platform-v580 .btp731-footer__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin-top: 26px;
  padding: 15px 0 17px;
  border-top: 1px solid rgba(218, 248, 239, 0.1);
}

body.bioten-platform-v580 .btp731-footer__terms span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border: 1px solid rgba(200, 241, 230, 0.12);
  border-radius: 999px;
  color: rgba(223, 245, 239, 0.56);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

html body.bioten-platform-v580 footer.btp731-footer .footer-bottom.footer-bottom {
  padding-top: 15px !important;
}

@media (max-width: 960px) {
  body.bioten-platform-v580 .btp731-footer__top {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  body.bioten-platform-v580 .btp731-footer__routes {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  html[data-lang="en"] body.bioten-platform-v580 .btp580-section {
    padding-block: 62px;
  }

  body.bioten-platform-v580 .btp731-science::before {
    content: "R&D";
    top: 72px;
    right: 18px;
    font-size: 64px;
  }

  body.bioten-platform-v580 .btp731-science {
    background-size: 36px 36px, 36px 36px, auto, auto;
  }

  body.bioten-platform-v580 .btp731-science .btp580-capabilities {
    gap: 9px;
  }

  body.bioten-platform-v580 .btp731-science .btp580-capabilities article {
    min-height: 148px;
    padding: 17px 14px 15px;
  }

  html body.bioten-platform-v580.bioten-platform-v580 main.btp580-main .btp731-science .btp580-capabilities h3 {
    font-size: 15px !important;
    line-height: 1.38 !important;
  }

  body.bioten-platform-v580 .btp731-science .btp580-capabilities p {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.62;
  }

  body.bioten-platform-v580 footer.btp731-footer .btp730-footer__brand {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 16px;
  }

  body.bioten-platform-v580 footer.btp731-footer .btp730-footer__brandmark {
    width: 94px;
  }

  html body.bioten-platform-v580 footer.btp731-footer .footer-note.footer-note {
    font-size: 10.5px !important;
    line-height: 1.55 !important;
  }

  body.bioten-platform-v580 .btp731-footer__routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  body.bioten-platform-v580 .btp731-footer__routes a {
    font-size: 10.5px;
    white-space: normal;
  }

  body.bioten-platform-v580 .btp731-footer__routes a::after {
    display: none;
  }

  body.bioten-platform-v580 .btp731-footer__terms {
    gap: 6px;
    margin-top: 20px;
    padding-block: 13px;
  }

  body.bioten-platform-v580 .btp731-footer__terms span {
    min-height: 23px;
    padding-inline: 8px;
    font-size: 7.5px;
    letter-spacing: 0.055em;
  }

  html body.bioten-platform-v580 footer.btp731-footer .footer-bottom.footer-bottom {
    gap: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bioten-platform-v580 .btp731-footer__routes a {
    transition: none;
  }
}
