/*
Theme Name: Mirova Manufacturing
Author: Codex
Description: Custom WordPress theme for Mirova LLC vitamin and supplement manufacturing.
Version: 1.0.0
Text Domain: mirova
*/

:root {
  --ink: #18201d;
  --muted: #5f6f68;
  --line: #dbe3df;
  --soft: #f3f7f4;
  --paper: #ffffff;
  --forest: #173f35;
  --green: #2f7d5a;
  --mint: #d9eee3;
  --gold: #c79d45;
  --steel: #51616a;
  --danger: #923d32;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.reveal-enabled .reveal-on-scroll {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-enabled .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--green));
  border-radius: 8px;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--steel);
  font-size: 14px;
  font-weight: 700;
}

.primary-menu a {
  padding: 8px 0;
}

.primary-menu a:hover {
  color: var(--forest);
}

.quote-link,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-weight: 800;
}

.button.secondary {
  color: var(--forest);
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: #0d1714;
  color: #fff;
}

.hero > .section-inner {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 760px;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-ops {
  isolation: isolate;
}

.hero-ops::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 19, 17, 0.95), rgba(10, 19, 17, 0.82) 43%, rgba(10, 19, 17, 0.34)),
    url("https://images.unsplash.com/photo-1581093458791-9d15482442f6?auto=format&fit=crop&w=1900&q=82") center / cover;
  transform: scale(1.02);
}

.hero-ops::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 70% 18%, rgba(199, 157, 69, 0.32), transparent 24%),
    linear-gradient(180deg, transparent 62%, rgba(9, 15, 14, 0.72));
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
}

.ops-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ops-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridDrift 18s linear infinite;
}

.machine-panel {
  position: absolute;
  right: clamp(24px, 7vw, 120px);
  width: min(42vw, 560px);
  min-width: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(232, 242, 236, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.panel-fill {
  top: 132px;
  height: 210px;
}

.panel-pack {
  right: clamp(18px, 10vw, 170px);
  bottom: 162px;
  height: 190px;
  width: min(38vw, 500px);
}

.panel-label,
.qa-panel span {
  position: absolute;
  top: 16px;
  left: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fill-heads {
  position: absolute;
  top: 54px;
  right: 42px;
  left: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fill-heads span {
  height: 68px;
  border-radius: 4px 4px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(180, 196, 187, 0.16));
  animation: fillPulse 2.8s ease-in-out infinite;
}

.fill-heads span:nth-child(2) {
  animation-delay: 0.35s;
}

.fill-heads span:nth-child(3) {
  animation-delay: 0.7s;
}

.fill-heads span:nth-child(4) {
  animation-delay: 1.05s;
}

.belt {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  height: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 22px, rgba(255, 255, 255, 0.04) 22px 44px),
    rgba(9, 18, 16, 0.55);
}

.belt i {
  position: absolute;
  top: 11px;
  width: 28px;
  height: 32px;
  border-radius: 7px 7px 10px 10px;
  background:
    linear-gradient(180deg, #f7fbf8 0 24%, #b8d3c2 24% 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
  animation: bottleMove 7.5s linear infinite;
}

.belt i:nth-child(1) { animation-delay: -0.2s; }
.belt i:nth-child(2) { animation-delay: -1.6s; }
.belt i:nth-child(3) { animation-delay: -3s; }
.belt i:nth-child(4) { animation-delay: -4.4s; }
.belt i:nth-child(5) { animation-delay: -5.8s; }

.bottle-row {
  position: absolute;
  right: 42px;
  bottom: 34px;
  left: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.bottle-row span {
  height: 88px;
  border-radius: 10px 10px 18px 18px;
  background:
    linear-gradient(180deg, #ffffff 0 18%, #dfe9e3 18% 28%, #8ab49a 28% 66%, #f5f7f4 66% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.62);
}

.scan-line {
  position: absolute;
  top: 48px;
  bottom: 18px;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(199, 157, 69, 0.9);
  animation: scanPass 3.8s ease-in-out infinite;
}

.qa-panel {
  position: absolute;
  right: min(7vw, 80px);
  top: 390px;
  width: 210px;
  height: 122px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(16, 31, 27, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.qa-panel strong {
  position: absolute;
  left: 18px;
  bottom: 36px;
  color: #bce8c9;
  font-size: 34px;
  letter-spacing: 0.06em;
}

.qa-panel em {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
}

.capsule-stream {
  position: absolute;
  right: 12%;
  top: 86px;
  width: 410px;
  height: 120px;
  transform: rotate(-8deg);
}

.capsule-stream span {
  position: absolute;
  width: 54px;
  height: 21px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0f6f1 0 50%, var(--gold) 50% 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  animation: capsuleFloat 7s ease-in-out infinite;
}

.capsule-stream span:nth-child(1) { left: 0; top: 52px; animation-delay: -0.2s; }
.capsule-stream span:nth-child(2) { left: 68px; top: 12px; animation-delay: -1.1s; }
.capsule-stream span:nth-child(3) { left: 132px; top: 72px; animation-delay: -2s; }
.capsule-stream span:nth-child(4) { left: 206px; top: 30px; animation-delay: -2.9s; }
.capsule-stream span:nth-child(5) { left: 270px; top: 86px; animation-delay: -3.8s; }
.capsule-stream span:nth-child(6) { left: 340px; top: 38px; animation-delay: -4.7s; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 30px;
  color: #edf7f1;
  font-size: 20px;
}

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

.hero-actions .secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ink);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.trust-item {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  color: var(--forest);
  font-size: 24px;
}

.trust-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.metric-card,
.insight-card {
  min-height: 230px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  color: var(--forest);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 900;
}

.service-card h3,
.metric-card h3,
.insight-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.service-card p,
.metric-card p,
.insight-card p {
  margin: 0;
  color: var(--muted);
}

.manufacturing-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.6fr);
  gap: 44px;
  align-items: center;
}

.photo-panel {
  min-height: 470px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 63, 53, 0), rgba(23, 63, 53, 0.65)),
    url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1200&q=82") center / cover;
}

.capability-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.capability-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-weight: 720;
}

.quality {
  color: #fff;
  background: var(--forest);
}

.quality .section-heading p,
.quality .eyebrow {
  color: #cce4d7;
}

.quality-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.quality-list li {
  padding-left: 26px;
  background: linear-gradient(var(--gold), var(--gold)) left 0.76em / 10px 10px no-repeat;
  color: #f5fbf8;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card strong {
  display: block;
  color: var(--green);
  font-size: 40px;
  line-height: 1;
}

.cta {
  padding: 86px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 32, 29, 0.93), rgba(23, 63, 53, 0.78)),
    url("https://images.unsplash.com/photo-1584308666744-24d5c474f2ae?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.cta p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #e6f1eb;
  font-size: 18px;
}

.site-footer {
  padding: 54px 0 34px;
  color: #d9e4de;
  background: #111917;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9fb0a8;
  font-size: 13px;
}

.page-hero {
  padding: 86px 0 58px;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), #233733);
}

.page-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
}

.content-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 86px;
}

.content-page h2 {
  margin-top: 38px;
  font-size: 30px;
}

.content-page p,
.content-page li {
  color: var(--muted);
  font-size: 18px;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.quote-form textarea {
  min-height: 150px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a:nth-child(2) svg,
.social-links a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 160px 80px, 160px 80px;
  }
}

@keyframes fillPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  48% {
    transform: translateY(18px);
    opacity: 1;
  }
}

@keyframes bottleMove {
  from {
    left: -40px;
  }
  to {
    left: calc(100% + 40px);
  }
}

@keyframes scanPass {
  0%,
  100% {
    left: 36px;
    opacity: 0.35;
  }
  50% {
    left: calc(100% - 40px);
    opacity: 1;
  }
}

@keyframes capsuleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.68;
  }
  50% {
    transform: translate3d(18px, -18px, 0) rotate(14deg);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .primary-menu {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero,
  .hero > .section-inner {
    min-height: 1040px;
  }

  .hero > .section-inner {
    align-items: start;
    padding-top: 92px;
  }

  .hero-ops::before {
    background:
      linear-gradient(180deg, rgba(10, 19, 17, 0.94), rgba(10, 19, 17, 0.78) 56%, rgba(10, 19, 17, 0.42)),
      url("https://images.unsplash.com/photo-1581093458791-9d15482442f6?auto=format&fit=crop&w=1400&q=80") center / cover;
  }

  .machine-panel {
    right: 24px;
    left: 24px;
    width: auto;
    min-width: 0;
  }

  .panel-fill {
    top: 690px;
    height: 168px;
  }

  .panel-pack {
    display: none;
  }

  .qa-panel {
    top: 890px;
    right: 24px;
    width: 190px;
  }

  .capsule-stream {
    top: 348px;
    right: 30px;
    width: 310px;
    opacity: 0.72;
  }

  .trust-grid,
  .card-grid,
  .metrics,
  .quality-list,
  .section-heading,
  .manufacturing-band,
  .cta-box,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    position: static;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-inner,
  .footer-inner,
  .content-page {
    width: min(100% - 28px, var(--max));
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero,
  .hero > .section-inner {
    min-height: 1110px;
  }

  .hero > .section-inner {
    padding-top: 70px;
    padding-bottom: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .panel-fill {
    top: 820px;
    height: 138px;
  }

  .fill-heads {
    right: 24px;
    left: 24px;
    gap: 12px;
  }

  .belt {
    bottom: 20px;
  }

  .qa-panel {
    top: 980px;
    right: 14px;
    left: 14px;
    width: auto;
    height: 92px;
  }

  .qa-panel strong {
    font-size: 25px;
  }

  .capsule-stream {
    display: none;
  }

  .section {
    padding: 62px 0;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .hero-content {
    max-width: 650px;
  }

  .hero h1 {
    font-size: clamp(54px, 6.2vw, 72px);
  }

  .machine-panel {
    opacity: 0.76;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Prototype-matched homepage */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid rgba(9, 31, 25, 0.08);
  box-shadow: 0 8px 28px rgba(7, 22, 18, 0.05);
}

.utility-bar {
  color: #fff;
  background:
    radial-gradient(circle at 18% 0, rgba(32, 126, 84, 0.28), transparent 38%),
    #001f18;
}

.utility-inner {
  display: flex;
  width: min(100% - 72px, 1440px);
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 650;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.utility-left span,
.utility-right a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.utility-left span:not(:last-child)::after,
.utility-right a:not(:last-child)::after {
  position: absolute;
  right: -14px;
  width: 1px;
  height: 22px;
  content: "";
  background: rgba(255, 255, 255, 0.24);
}

.utility-left span::before,
.utility-right a::before {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
}

.utility-left span:nth-child(1)::before { content: "✓"; }
.utility-left span:nth-child(2)::before { content: "F"; }
.utility-left span:nth-child(3)::before {
  content: "";
  display: inline-block;
  width: 20px;  /* Adjust size as needed */
  height: 14px; /* Maintain approx 1:1.9 aspect ratio */
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  
  /* The Blue Canton placed over the Stripes */
  background: 
    linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 40% 50% no-repeat,
    linear-gradient(
      #b22234 0 15.38%, 
      #fff 15.38% 30.76%, 
      #b22234 30.76% 46.14%, 
      #fff 46.14% 61.52%, 
      #b22234 61.52% 76.90%, 
      #fff 76.90% 92.28%, 
      #b22234 92.28% 100%
    );
}

.utility-right a:nth-child(1)::before { content: "☎"; }
.utility-right a:nth-child(2)::before { content: "✉"; }

.nav-shell {
  width: min(100% - 72px, 1440px);
  min-height: 118px;
}

.brand-prototype {
  gap: 18px;
}

.brand-prototype .site-logo {
  display: block;
  width: 250px;
  height: auto;
}

.mirova-symbol {
  position: relative;
  display: block;
  width: 78px;
  height: 72px;
}

.mirova-symbol::before {
  position: absolute;
  top: 0;
  left: 34px;
  width: 16px;
  height: 16px;
  content: "";
  background: #004332;
  border-radius: 50%;
}

.mirova-symbol span {
  position: absolute;
  bottom: 0;
  display: block;
  width: 22px;
  height: 58px;
  background: linear-gradient(160deg, #00613f, #002b22);
  clip-path: polygon(0 0, 100% 22%, 100% 100%, 0 70%);
}

.mirova-symbol span:nth-child(1) {
  left: 0;
}

.mirova-symbol span:nth-child(2) {
  left: 28px;
  width: 24px;
  height: 42px;
  transform: rotate(180deg);
  transform-origin: center;
}

.mirova-symbol span:nth-child(3) {
  right: 0;
  transform: scaleX(-1);
}

.brand-word {
  color: #002820;
  font-size: 38px;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 0.9;
}

.brand-word small {
  display: block;
  margin-top: 8px;
  color: #001f18;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.prototype-menu {
  gap: 30px;
  color: #101d19;
  font-size: 15px;
  font-weight: 750;
}

.prototype-menu a {
  position: relative;
  padding: 14px 0;
}

.prototype-menu a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: #078056;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.prototype-menu a:hover::after,
.prototype-menu a.is-active::after {
  transform: scaleX(1);
}

.quote-link {
  min-height: 50px;
  padding: 0 24px;
  background: #004332;
  border-color: #004332;
  border-radius: 6px;
  text-transform: uppercase;
}

.quote-link span {
  margin-left: 10px;
  font-size: 28px;
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  color: #003629;
  background: #f3f7f4;
  border: 1px solid rgba(0, 67, 50, 0.18);
  border-radius: 6px;
  font: inherit;
  font-weight: 850;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #003629;
}

.mobile-menu-toggle em {
  font-style: normal;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: #004332;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(0, 31, 24, 0.3);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #16a267;
}

.prototype-hero {
  min-height: 1040px;
  background:
    linear-gradient(90deg, rgba(0, 31, 24, 0.96) 0%, rgba(0, 31, 24, 0.76) 36%, rgba(0, 31, 24, 0.12) 70%, rgba(0, 31, 24, 0.42) 100%),
    url("assets/hero-bg-machine.jpg") center right / cover;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.prototype-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 31, 24, 0.96) 0%, rgba(0, 31, 24, 0.76) 36%, rgba(0, 31, 24, 0.18) 70%, rgba(0, 31, 24, 0.48) 100%),
    radial-gradient(circle at 78% 46%, rgba(255, 255, 255, 0.16), transparent 30%);
}

.prototype-hero::after,
.prototype-hero .ops-bg {
  display: none;
}

.prototype-hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  min-height: 1040px;
  align-content: start;
  padding: 116px 0 46px;
}

.prototype-hero .hero-content {
  max-width: 700px;
}

.prototype-hero .eyebrow {
  margin-bottom: 22px;
  color: #25af6f;
  font-size: 24px;
  letter-spacing: 0.12em;
}

.prototype-hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 4.4vw, 64px);
  line-height: 1.05;
}

.prototype-hero .hero-copy {
  max-width: 620px;
  margin-top: 24px;
  color: #fff;
  font-size: 23px;
  line-height: 1.5;
}

.prototype-hero .hero-actions {
  margin-top: 36px;
  gap: 22px;
}

.prototype-hero .button {
  min-height: 62px;
  padding: 0 30px;
  border-radius: 6px;
  text-transform: uppercase;
}

.prototype-hero .button::after {
  margin-left: 16px;
  content: "›";
  font-size: 28px;
  line-height: 1;
}

.prototype-hero .button:first-child {
  background: #16a267;
  border-color: #16a267;
}

.prototype-hero .button.secondary {
  color: #fff;
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.82);
}

.prototype-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.prototype-visual::before {
  display: none;
}

.production-hopper,
.production-rail,
.capsule-field {
  display: none;
}

.capsule-field span {
  position: absolute;
  right: -90px;
  bottom: calc(235px + (var(--i, 0) * 4px));
  width: 62px;
  height: 25px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ebe8d9 0 48%, #c3b99a 48% 52%, #f6f2df 52% 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  transform: rotate(var(--r, -12deg));
  animation: capsuleConveyor 8.5s linear infinite;
  animation-delay: var(--d, 0s);
}

.capsule-field span:nth-child(3n) {
  --r: 14deg;
  bottom: 290px;
}

.capsule-field span:nth-child(4n) {
  --r: -2deg;
  bottom: 330px;
}

.capsule-field span:nth-child(5n) {
  --r: 24deg;
  bottom: 380px;
}

.capsule-field span:nth-child(1) { --d: -0.1s; }
.capsule-field span:nth-child(2) { --d: -0.45s; }
.capsule-field span:nth-child(3) { --d: -0.8s; }
.capsule-field span:nth-child(4) { --d: -1.15s; }
.capsule-field span:nth-child(5) { --d: -1.5s; }
.capsule-field span:nth-child(6) { --d: -1.85s; }
.capsule-field span:nth-child(7) { --d: -2.2s; }
.capsule-field span:nth-child(8) { --d: -2.55s; }
.capsule-field span:nth-child(9) { --d: -2.9s; }
.capsule-field span:nth-child(10) { --d: -3.25s; }
.capsule-field span:nth-child(11) { --d: -3.6s; }
.capsule-field span:nth-child(12) { --d: -3.95s; }
.capsule-field span:nth-child(13) { --d: -4.3s; }
.capsule-field span:nth-child(14) { --d: -4.65s; }
.capsule-field span:nth-child(15) { --d: -5s; }
.capsule-field span:nth-child(16) { --d: -5.35s; }
.capsule-field span:nth-child(17) { --d: -5.7s; }
.capsule-field span:nth-child(18) { --d: -6.05s; }
.capsule-field span:nth-child(19) { --d: -6.4s; }
.capsule-field span:nth-child(20) { --d: -6.75s; }
.capsule-field span:nth-child(21) { --d: -7.1s; }
.capsule-field span:nth-child(22) { --d: -7.45s; }
.capsule-field span:nth-child(23) { --d: -7.8s; }
.capsule-field span:nth-child(24) { --d: -8.15s; }

.hero-arrow {
  position: absolute;
  top: 42%;
  z-index: 5;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
}

.hero-arrow-left {
  left: 22px;
}

.hero-arrow-right {
  right: 22px;
}

.slider-dots {
  position: absolute;
  right: 44%;
  top: 560px;
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.9;
}

.slider-dots span.active {
  background: #16a267;
}

.slider-dots button {
  color: #fff;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 20px;
  font-weight: 850;
}

.stats-tray {
  position: absolute;
  right: 0;
  top: 640px;
  bottom: auto;
  left: 0;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr 1.42fr;
  gap: 0;
  padding: 28px 26px;
  color: #fff;
  background: rgba(0, 31, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 10px;
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(9px);
}

.stat-feature,
.stat-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
  min-height: 118px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-item {
  grid-template-columns: 52px 1fr;
}

.stat-item strong,
.stat-item h3,
.stat-item p {
  grid-column: 2;
}

.stat-feature:last-child,
.stat-item:last-child {
  border-right: 0;
}

.stat-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  border: 2px solid #20ad70;
  border-radius: 8px;
  opacity: 0.95;
}

.stat-icon.award,
.stat-icon.gmp {
  border-radius: 50%;
}

.stat-icon::before,
.stat-icon::after {
  position: absolute;
  content: "";
  border: 2px solid #20ad70;
}

.stat-icon.facility::before {
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 18px;
}

.stat-icon.facility::after {
  top: 8px;
  left: 18px;
  width: 16px;
  height: 18px;
  border-bottom: 0;
}

.stat-icon.award::before {
  inset: 10px;
  border-radius: 50%;
}

.stat-icon.people::before {
  top: 11px;
  left: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.stat-icon.people::after {
  right: 9px;
  bottom: 10px;
  left: 9px;
  height: 17px;
  border-radius: 16px 16px 4px 4px;
}

.stat-icon.bottle::before {
  top: -8px;
  left: 16px;
  width: 18px;
  height: 12px;
  border-bottom: 0;
}

.stat-icon.bottle::after {
  inset: 12px 11px 8px;
  border-radius: 4px;
}

.stat-icon.gmp::before {
  inset: 8px;
  border-radius: 50%;
}

.stat-icon.gmp::after {
  inset: 18px 10px auto;
  border: 0;
  content: "GMP";
  color: #20ad70;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.stat-feature h3,
.stat-item h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 17px;
}

.stat-feature p,
.stat-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.stat-item strong {
  display: block;
  margin-top: -6px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
}

@keyframes capsuleConveyor {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--r, -12deg));
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translate3d(-78vw, 158px, 0) rotate(calc(var(--r, -12deg) + 18deg));
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .utility-inner,
  .nav-shell {
    width: min(100% - 40px, 1040px);
  }

  .utility-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 104px;
    padding: 12px 0;
  }

  .utility-left,
  .utility-right {
    flex-wrap: wrap;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    min-height: 174px;
    padding: 18px 0;
  }

  .prototype-menu {
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .prototype-hero,
  .prototype-hero-inner {
    min-height: 1440px;
  }

  .prototype-hero-inner {
    padding-top: 92px;
  }

  .prototype-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 6.4vw, 56px);
  }

  .prototype-visual::before {
    right: -16vw;
    bottom: 340px;
    width: 108vw;
  }

  .production-hopper {
    top: 360px;
    right: 18vw;
    opacity: 0.58;
  }

  .production-rail {
    bottom: 448px;
    width: 112vw;
  }

  .capsule-field span {
    bottom: 480px;
  }

  .slider-dots {
    right: auto;
    top: 700px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .stats-tray {
    top: 780px;
    grid-template-columns: 1fr 1fr;
    bottom: auto;
    padding: 26px;
  }

  .stat-feature,
  .stat-item {
    min-height: 132px;
    padding: 20px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    z-index: 50;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .utility-bar,
  .brand-prototype,
  .site-header .quote-link {
    display: none;
  }

  .utility-inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 94px;
    padding: 12px 0;
    font-size: 13px;
  }

  .utility-left,
  .utility-right {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .nav-shell {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: auto;
  }

  .brand-word {
    font-size: 30px;
  }

  .mirova-symbol {
    width: 58px;
    height: 56px;
  }

  .mirova-symbol span {
    width: 17px;
    height: 45px;
  }

  .mirova-symbol span:nth-child(2) {
    left: 21px;
    width: 18px;
    height: 32px;
  }

  .mirova-symbol::before {
    left: 25px;
    width: 12px;
    height: 12px;
  }

  .prototype-menu {
    gap: 0;
    font-size: 14px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    width: 48px;
    height: 52px;
    min-height: 52px;
    justify-content: center;
    gap: 6px;
    padding: 0;
    max-width: 100%;
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.82);
  }

  .mobile-menu-toggle em {
    display: none;
  }

  .mobile-menu-toggle span {
    background: #fff;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible {
    color: #16a267;
    border-color: #16a267;
  }

  .mobile-menu-toggle:hover span,
  .mobile-menu-toggle:focus-visible span {
    background: #16a267;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .primary-nav {
    display: none;
    position: fixed;
    top: 68px;
    right: 14px;
    width: min(280px, calc(100vw - 28px));
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .primary-menu {
    display: grid;
    width: 100%;
    gap: 0;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 31, 24, 0.24);
  }

  .primary-nav .primary-menu a {
    display: block;
    padding: 12px 0;
  }

  .prototype-hero,
  .prototype-hero-inner {
    min-height: 1780px;
  }

  .prototype-hero {
    background:
      linear-gradient(180deg, rgba(0, 31, 24, 0.98) 0%, rgba(0, 31, 24, 0.78) 45%, rgba(0, 31, 24, 0.7) 100%),
      url("assets/hero-bg-machine.jpg") center / cover;
  }

  .hero-video {
    object-position: center;
  }

  .prototype-hero::before {
    background:
      linear-gradient(180deg, rgba(0, 31, 24, 0.98) 0%, rgba(0, 31, 24, 0.84) 46%, rgba(0, 31, 24, 0.76) 100%);
  }

  .prototype-hero-inner {
    padding-top: 96px;
  }

  .prototype-hero .eyebrow {
    font-size: 15px;
  }

  .prototype-hero h1 {
    font-size: 42px;
  }

  .prototype-hero .hero-copy {
    font-size: 18px;
  }

  .prototype-hero .hero-actions {
    flex-direction: column;
    max-width: 100%;
  }

  .prototype-visual::before {
    right: -54vw;
    bottom: 516px;
    width: 170vw;
    height: 210px;
  }

  .production-hopper {
    display: none;
  }

  .production-rail {
    bottom: 600px;
    width: 150vw;
  }

  .capsule-field span {
    bottom: 620px;
    width: 48px;
    height: 20px;
  }

  .slider-dots {
    top: 740px;
    bottom: auto;
  }

  .stats-tray {
    top: 820px;
    grid-template-columns: 1fr;
    bottom: auto;
    padding: 16px;
  }

  .stat-feature,
  .stat-item {
    grid-template-columns: 48px 1fr;
    min-height: 112px;
    padding: 16px 6px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
  }
}
