/* ============================================================
   Biomarmedical — Home page styles
   Hero, intro, capabilities, compliance, footprint, insights,
   partner roster (brand-wall). Page-specific.
   Depends on: global.css, header.css, footer.css.
   ============================================================ */

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #021f15;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: hue-rotate(-90deg) saturate(0.85) brightness(0.85);
  z-index: -3;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,30,20,0.55) 0%, rgba(2,30,20,0.35) 35%, rgba(2,30,20,0.85) 100%),
    radial-gradient(80% 70% at 30% 40%, rgba(2,30,20,0) 0%, rgba(2,30,20,0.55) 90%);
  z-index: -2;
}
.hero__noise {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 24px);
  z-index: -1;
  pointer-events: none;
}
.hero__content {
  padding-top: 120px;
  padding-bottom: 80px;
  width: 100%;
  color: white;
  max-width: 920px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}
.hero__eyebrow .eyebrow-rule { margin: 0; background: rgba(255,255,255,0.5); }
.hero__eyebrow .eyebrow { color: rgba(255,255,255,0.85); margin: 0; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0;
  max-width: 920px;
}
.hero-headline__mark {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(var(--biomar-green), var(--biomar-green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 6px;
  padding-bottom: 4px;
}
.hero-sub {
  margin: var(--space-5) 0 0;
  max-width: 620px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}
.hero__ghost {
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
}
.hero__ghost:hover { background: rgba(255,255,255,0.08); }
.hero__ghost img { filter: brightness(0) invert(1); }

.hero__strip {
  position: relative;
  width: 100%;
  background: rgba(1, 76, 51, 0.85);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.hero__strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  padding-top: 28px;
  padding-bottom: 28px;
}
.hero__stat {
  color: white;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: var(--space-4);
}
.hero__stat:first-child { border-left: none; padding-left: 0; }
.hero__stat-num {
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-lbl {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   01 — About intro
   ============================================================ */
.home-intro {
  background: var(--cream);
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border);
}
.home-intro__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-8);
  align-items: start;
}
.home-intro__copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: var(--space-4) 0 0;
}
.home-intro__facts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.home-intro__fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.home-intro__fact-key {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--biomar-green);
  line-height: 1.5;
  padding-top: 6px;
}
.home-intro__fact-val {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.home-intro__fact-val em {
  font-style: normal;
  color: var(--slate);
  font-weight: 500;
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

/* ============================================================
   02 — Capabilities
   ============================================================ */
.home-capabilities {
  background: var(--white);
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border);
}
.home-capabilities__head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}
.home-capabilities__head p {
  margin: 0;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.cap-tile {
  position: relative;
  padding: var(--space-6);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background var(--duration) var(--ease);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 260px;
}
.cap-tile::before {
  content: "";
  position: absolute;
  top: var(--space-6);
  left: 0;
  width: 3px;
  height: 28px;
  background: var(--biomar-green);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.cap-tile:hover { background: var(--biomar-green-mint); text-decoration: none; }
.cap-tile:hover::before { opacity: 1; }
.cap-tile__head { margin-bottom: var(--space-2); }
.cap-tile__icon {
  width: 32px;
  height: 32px;
  color: var(--biomar-green);
}
.cap-tile__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cap-tile__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate);
  flex-grow: 1;
}
.cap-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--biomar-green);
  margin-top: auto;
  padding-top: var(--space-3);
}
.cap-tile__more img { width: 12px; height: 12px; }

/* ============================================================
   03 — Compliance strip
   ============================================================ */
.home-compliance {
  background: var(--biomar-green-deep);
  color: var(--white);
  padding: var(--space-6) 0;
}
.home-compliance__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.home-compliance__item {
  padding: 0 var(--space-5);
  border-left: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-compliance__item:first-child { border-left: none; padding-left: 0; }
.home-compliance__key {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-compliance__key::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--biomar-green-sage);
  border-radius: 50%;
  display: inline-block;
}
.home-compliance__val {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* ============================================================
   04 — Operating footprint
   ============================================================ */
.home-footprint {
  background: var(--cream);
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border);
}
.home-footprint__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.home-footprint__media {
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}
.home-footprint__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}
.home-footprint__copy {
  display: flex;
  flex-direction: column;
}
.home-footprint__copy .eyebrow-rule { margin-bottom: var(--space-4); }
.home-footprint__copy .eyebrow { margin-bottom: var(--space-5); }
.home-footprint__copy .section-kicker { margin-top: var(--space-4); }
.home-footprint__metrics {
  margin-top: var(--space-7);
  border-top: 1px solid var(--border);
}
.home-footprint__metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.home-footprint__metric-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.home-footprint__metric-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ============================================================
   05 — Insights
   ============================================================ */
.home-insights {
  background: var(--white);
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border);
}
.home-insights__head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}
.home-insights__head .more-link { justify-self: end; }
.more-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--biomar-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.more-link img { width: 12px; height: 12px; }
.home-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
}
.insight {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-right: var(--space-5);
  border-right: 1px solid var(--border);
}
.insight:last-child { border-right: none; padding-right: 0; }
.insight__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.insight__tag {
  color: var(--biomar-green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.insight__tag::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--biomar-green);
  display: inline-block;
}
.insight__sep { color: var(--slate-soft); }
.insight__date { font-variant-numeric: tabular-nums; }
.insight__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.insight__excerpt {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate);
}
.insight__more {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--biomar-green);
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.insight__more img { width: 12px; height: 12px; }

/* ============================================================
   06 — Partner roster (brand wall)
   ============================================================ */
.home-roster {
  background: var(--cream);
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border);
}
.home-roster__head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}
.home-roster__head .more-link { justify-self: end; }
.brand-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.brand-wall__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-3);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  transition: background var(--duration) var(--ease);
  gap: var(--space-3);
  min-height: 140px;
}
.brand-wall__item:hover { background: var(--biomar-green-mint); text-decoration: none; }
.brand-wall__mono {
  font-size: 22px;
  font-weight: 800;
  color: var(--biomar-green);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-wall__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ============================================================
   Home responsive
   ============================================================ */
@media (max-width: 1366px) {
  .hero { min-height: 640px; }
  .hero-headline { font-size: clamp(42px, 6vw, 72px); }
}

@media (max-width: 1200px) {
  .home-intro__grid,
  .home-capabilities__head,
  .home-insights__head,
  .home-roster__head,
  .home-footprint__grid { gap: var(--space-7); }
  .hero__content { max-width: 860px; }
  .hero-headline { font-size: clamp(40px, 5.6vw, 64px); }
}

@media (max-width: 1024px) {
  .hero { min-height: 600px; }
  .hero__content { padding-top: 104px; padding-bottom: 72px; }

  .home-intro,
  .home-capabilities,
  .home-footprint,
  .home-insights,
  .home-roster { padding-top: var(--space-8); padding-bottom: var(--space-8); }

  .home-intro__grid,
  .home-capabilities__head,
  .home-insights__head,
  .home-roster__head,
  .home-footprint__grid { gap: var(--space-6); }

  .hero__strip-inner { gap: var(--space-4); }
  .hero__stat-num { font-size: 28px; }

  .home-footprint__metric-value { font-size: 28px; }

  .hero-headline { font-size: clamp(38px, 5.4vw, 58px); }
}

@media (max-width: 880px) {
  .hero { min-height: 560px; }
  .hero__content { padding-top: 80px; padding-bottom: 56px; }
  .hero__eyebrow { margin-bottom: 28px; }
  .hero__cta-row { margin-top: var(--space-5); }

  .hero__strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-4); }
  .hero__stat:nth-child(3) { border-left: none; padding-left: 0; }

  .home-intro,
  .home-capabilities,
  .home-footprint,
  .home-insights,
  .home-roster { padding-top: var(--space-7); padding-bottom: var(--space-7); }

  .home-intro__grid,
  .home-capabilities__head,
  .home-footprint__grid,
  .home-insights__head,
  .home-roster__head {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: start;
  }
  .home-insights__head .more-link,
  .home-roster__head .more-link { justify-self: start; }

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

  .home-insights__grid { grid-template-columns: 1fr; }
  .insight {
    border-right: none;
    padding-right: 0;
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border);
  }
  .insight:last-child { border-bottom: none; padding-bottom: 0; }

  .brand-wall { grid-template-columns: repeat(4, 1fr); }

  .home-compliance__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    row-gap: var(--space-5);
  }
  .home-compliance__item:nth-child(4) { border-left: none; padding-left: 0; }

  .home-footprint__media { aspect-ratio: 16 / 10; }
  .home-footprint__metric-value { font-size: 26px; }

  .hero-headline { font-size: clamp(34px, 6vw, 48px); }
  .hero-sub { font-size: 16px; }
}

@media (max-width: 767px) {
  .hero { min-height: 520px; }
  .hero__content { padding-top: 60px; padding-bottom: 44px; }
  .hero__eyebrow { margin-bottom: 22px; }
  .hero-headline { font-size: clamp(30px, 8.5vw, 40px); letter-spacing: -0.02em; }
  .hero-headline__mark { background-size: 100% 4px; padding-bottom: 2px; }
  .hero-sub { font-size: 15px; max-width: none; }
  .hero__cta-row {
    gap: var(--space-2);
    margin-top: var(--space-5);
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta-row .btn {
    padding: 12px 22px;
    font-size: 13px;
    width: 100%;
  }

  .hero__strip-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-4);
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .hero__stat { padding-left: var(--space-3); }
  .hero__stat:first-child,
  .hero__stat:nth-child(3) { border-left: none; padding-left: 0; }
  .hero__stat-num { font-size: 24px; }
  .hero__stat-lbl { font-size: 11px; }

  .home-intro,
  .home-capabilities,
  .home-footprint,
  .home-insights,
  .home-roster { padding-top: var(--space-7); padding-bottom: var(--space-7); }

  .cap-grid { grid-template-columns: 1fr; }
  .cap-tile { min-height: 0; padding: var(--space-5); }

  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .brand-wall__item { min-height: 110px; padding: var(--space-4) var(--space-3); }
  .brand-wall__mono { font-size: 18px; }
  .brand-wall__name { font-size: 11px; }

  .home-compliance__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    row-gap: var(--space-4);
  }
  .home-compliance__item { padding: 0 var(--space-3); border-left: none; }
  .home-compliance__item:nth-child(odd) { padding-left: 0; }
  .home-compliance__val { font-size: 15px; }

  .home-intro__fact,
  .home-footprint__metric {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: var(--space-3) 0;
    align-items: stretch;
  }
  .home-intro__fact-key { padding-top: 0; }

  .home-footprint__metric-value { font-size: 26px; }
  .home-footprint__media { aspect-ratio: 4 / 3; }
}
