/* ======================================================================
   1. VARIABLES
   ====================================================================== */
:root {
  /* color */
  --ink-950: #081A17;
  --ink-900: #0D211D;
  --ink-800: #142F29;
  --ink-line: rgba(234, 243, 238, 0.12);

  --bone: #F5F3EC;
  --bone-line: rgba(8, 26, 23, 0.12);
  --paper: #FFFFFF;

  --emerald-600: #15815C;
  --emerald-500: #1F9A6E;
  --emerald-400: #3FBF8E;
  --emerald-300: #8FE0BE;
  --emerald-tint: #E7F4EE;

  --gold-500: #C9A24B;
  --gold-300: #E3CD93;

  --text-ink: #0C211D;
  --text-muted: #4B5D58;
  --text-on-dark: #EAF3EE;
  --text-on-dark-muted: #9FB8AF;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --ease: cubic-bezier(.22,.9,.3,1);
  --dur: .6s;

  --container: 1200px;
  --section-pad: 128px;
}

@media (max-width: 760px) {
  :root { --section-pad: 76px; }
}


/* ======================================================================
   2. RESET
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}
ul { list-style: none; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 3px;
  border-radius: 4px;
}

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

body {
  background: var(--bone);
  color: var(--text-ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 999;
  background: var(--ink-950); color: var(--text-on-dark);
  padding: 12px 18px; border-radius: 0 0 8px 0;
  /* hidden without pushing pixels off-screen (negative offsets create scrollable overflow in RTL) */
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { clip-path: none; }

/* ======================================================================
   3. TYPOGRAPHY
   ====================================================================== */
h1, h2, h3, h4,
.display, .section-title, .hero__headline {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--text-ink);
}

.display {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 600;
  max-width: 14ch;
}
.display--center { max-width: none; text-align: center; margin: 0 auto; }
.accent { color: var(--emerald-500); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  max-width: 18ch;
  margin-top: 18px;
}
.section-title--light { color: var(--text-on-dark); }

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-top: 20px;
}
.lede--light { color: var(--text-on-dark-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-600);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--gold-500);
}
.eyebrow--light { color: var(--emerald-300); }

p { color: var(--text-muted); }
strong { color: var(--text-ink); font-weight: 600; }
.section--dark strong, .section--ink strong { color: var(--text-on-dark); }

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  color: var(--text-ink);
  border-bottom: 1.5px solid var(--gold-500);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.text-link:hover { color: var(--emerald-600); border-color: var(--emerald-500); }

/* ======================================================================
   4. LAYOUT HELPERS
   ====================================================================== */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 560px) { .wrap { padding: 0 20px; } }

.wrap--bleed { max-width: none; padding: 0; }
.wrap--bleed > .wrap { max-width: var(--container); }

.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--light { background: var(--bone); }
.section--dark { background: var(--ink-950); }
.section--ink { background: var(--ink-900); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--emerald-400);
  color: var(--ink-950);
  box-shadow: 0 10px 30px -10px rgba(63, 191, 142, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(63,191,142,.65); }
.btn--ghost {
  border: 1.5px solid rgba(234,243,238,0.4);
  color: inherit;
}
.btn--ghost:hover { border-color: var(--emerald-400); color: var(--emerald-300); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ======================================================================
   5. NAVIGATION
   ====================================================================== */
.nav {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  width: min(1100px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  background: rgba(8, 26, 23, 0.56);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(234,243,238,0.14);
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  color: var(--text-on-dark);
}
.nav.is-scrolled .nav__inner {
  padding: 8px 10px 8px 18px;
  background: rgba(8, 26, 23, 0.82);
  box-shadow: 0 14px 40px -20px rgba(0,0,0,.6);
}

.nav__logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--text-on-dark); }
.nav__logo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border-radius: 10px;
  padding: 6px 10px;
  line-height: 0;
}
.nav__logo-badge img { height: 26px; width: auto; display: block; }
.nav__logo-badge--footer { padding: 9px 14px; border-radius: 12px; }
.nav__logo-badge--footer img { height: 34px; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text-on-dark); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--emerald-400);
  border-radius: 2px;
}

.nav__cta {
  flex-shrink: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--emerald-400);
  color: var(--ink-950);
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform var(--dur) var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; flex-shrink: 0; }
.nav__burger span { width: 20px; height: 1.5px; background: var(--text-on-dark); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  pointer-events: none;
  position: fixed;
  inset: 0;
  height: 100dvh;
  padding: 100px 28px 28px;
  background: var(--ink-950);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 90;
}
.mobile-menu.is-open { pointer-events: auto; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  color: var(--text-on-dark);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* Header fit: every control stays inside the pill at each width (no clipping, no squeezed labels) */
.nav__inner > * { flex-shrink: 0; min-width: 0; }
@media (min-width: 901px) and (max-width: 1180px) {
  .nav__inner { gap: 14px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 0.86rem; }
  .nav__cta { padding: 9px 14px; }
}
@media (min-width: 901px) and (max-width: 960px) {
  .nav__inner { gap: 12px; }
  .nav__links { gap: 12px; }
  .nav .ctrl-btn { padding: 8px 10px; }
}
@media (max-width: 420px) {
  .nav { top: 12px; }
  .nav__inner { width: calc(100% - 20px); padding: 8px 8px 8px 10px; gap: 8px; }
  .nav__logo-badge { padding: 4px 7px; }
  .nav__logo-badge img { height: 22px; }
  .nav .ctrl { padding: 2px; }
  .nav .ctrl button { padding: 5px 8px; }
  .nav .ctrl-btn { padding: 7px 9px; }
}

/* Anchor jumps land below the fixed header instead of under it */
[id] { scroll-margin-top: 96px; }

/* ======================================================================
   6. HERO
   ====================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 90% at 78% 20%, #123B32 0%, var(--ink-950) 58%);
  overflow: hidden;
  color: var(--text-on-dark);
}
.hero__photo {
  position: absolute; inset: 0;
  background-position: center right;
  background-size: cover;
  opacity: 0.16;
  filter: saturate(0.7);
  mix-blend-mode: luminosity;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,26,23,.92) 0%, rgba(8,26,23,.55) 42%, rgba(8,26,23,.15) 62%, transparent 85%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 160px 32px 120px;
}
.hero__content { max-width: 640px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(143, 224, 190, 0.35);
  background: rgba(63, 191, 142, 0.08);
  color: var(--emerald-300);
}
.tag__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 0 rgba(63,191,142,.6);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(63,191,142,.55); }
  70% { box-shadow: 0 0 0 9px rgba(63,191,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,191,142,0); }
}

.hero__headline {
  margin-top: 26px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  color: var(--text-on-dark);
}
.hero__headline .hl { color: var(--emerald-400); }

.hero__sub {
  margin-top: 24px;
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--text-on-dark-muted);
}

.hero__ctas { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__ctas--center { justify-content: center; }

.scroll-cue {
  position: absolute;
  left: 32px; bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-dark-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-cue i {
  display: block;
  width: 1px; height: 34px;
  background: linear-gradient(var(--emerald-400), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--emerald-400);
  animation: cue-drop 1.8s var(--ease) infinite;
}
@keyframes cue-drop {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ======================================================================
   7. ABOUT / POSITIONING
   ====================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  position: relative;
}
.about__spine {
  position: absolute;
  left: calc(47.8% - 1px);   /* centred in the gap between the two columns */
  top: 0; bottom: 0;
  width: 2px;
  background: var(--bone-line);
  display: none;
}
.about__spine i {
  display: block;
  width: 100%; height: 0%;
  background: linear-gradient(var(--emerald-500), var(--gold-500));
  transition: height 1.1s var(--ease);
}
@media (min-width: 860px) { .about__spine { display: block; } }

.about__copy h3 { font-size: 1.5rem; margin-top: 10px; max-width: 20ch; }
.about__copy p { margin-top: 20px; font-size: 1.05rem; max-width: 52ch; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ======================================================================
   8. STATS
   ====================================================================== */
.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.stat {
  background: var(--ink-950);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 600;
  color: var(--emerald-300);
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--text-on-dark-muted); font-size: 0.95rem; }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================================================
   9. OPPORTUNITY MAP
   ====================================================================== */
.opp-map {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--bone-line);
}
.opp-panel {
  border-bottom: 1px solid var(--bone-line);
  padding: 30px 4px;
  cursor: pointer;
  transition: padding var(--dur) var(--ease);
}
.opp-panel__head { display: flex; align-items: baseline; gap: 22px; }
.opp-panel__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: var(--gold-500);
  font-weight: 500;
}
.opp-panel__head h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  transition: color var(--dur) var(--ease);
}
.opp-panel__body {
  display: grid;
  grid-template-rows: 0fr;
  grid-template-columns: 180px 1fr;
  gap: 0 32px;
  opacity: 0;
  transition: grid-template-rows .55s var(--ease), opacity .4s var(--ease) .05s, margin-top var(--dur) var(--ease);
  margin-top: 0;
}
.opp-panel__body > * { overflow: hidden; min-height: 0; }
.opp-panel__stat {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  color: var(--emerald-600);
  font-weight: 600;
  align-self: start;
}
.opp-panel__body p:last-child { max-width: 56ch; align-self: start; color: var(--text-muted); }

.opp-panel.is-active { padding: 36px 4px; }
.opp-panel.is-active .opp-panel__head h3 { color: var(--emerald-600); }
.opp-panel.is-active .opp-panel__body {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .opp-panel__body { grid-template-columns: 1fr; gap: 10px; }
}

/* ======================================================================
   10. FACILITY
   ====================================================================== */
.facility {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.facility__diagram {
  position: relative;
  aspect-ratio: 760 / 320;
  width: 100%;
}
.facility__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.facility__lines path {
  fill: none;
  stroke: var(--ink-line);
  stroke-width: 1.5;
}
.fz {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 13vw, 108px);
  height: clamp(72px, 13vw, 108px);
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--ink-line);
  color: var(--text-on-dark-muted);
  text-align: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.fz__num { font-family: "Space Grotesk", sans-serif; font-size: 0.72rem; color: var(--gold-500); }
.fz__name { font-family: "Space Grotesk", sans-serif; font-size: 0.74rem; line-height: 1.2; margin-top: 3px; color: inherit; }
.fz:hover, .fz.is-active {
  background: var(--emerald-500);
  border-color: var(--emerald-400);
  color: var(--ink-950);
  transform: translate(-50%, -50%) scale(1.07);
}
.fz:hover .fz__num, .fz.is-active .fz__num { color: var(--ink-950); opacity: .7; }

.facility__panel {
  background: var(--ink-900);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  padding: 36px;
  min-height: 220px;
}
.facility__panel-num {
  font-family: "Space Grotesk", sans-serif;
  color: var(--gold-500);
  font-size: 0.85rem;
}
.facility__panel h3 { color: var(--text-on-dark); font-size: 1.5rem; margin-top: 10px; }
.facility__panel p { color: var(--text-on-dark-muted); margin-top: 14px; }

@media (max-width: 860px) {
  .facility { grid-template-columns: 1fr; }
}

/* ======================================================================
   11. PORTFOLIO SCROLLER
   ====================================================================== */
.portfolio-scroller {
  margin-top: 48px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 32px 28px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.portfolio-scroller::-webkit-scrollbar { display: none; }

.product-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  background: var(--paper);
  border: 1px solid var(--bone-line);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(8,26,23,.25); }
.product-card__cat {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-600);
}
.product-card h3 { font-size: 1.25rem; margin-top: 14px; max-width: 18ch; }
.product-card__abbr {
  display: inline-block;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  color: var(--gold-500);
  border: 1px solid var(--gold-300);
  border-radius: 999px;
  padding: 3px 10px;
}
.product-card p { margin-top: 16px; font-size: 0.96rem; }

.portfolio-progress {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 2px;
}
.portfolio-progress i {
  display: block; height: 2px; width: 16.6%;
  background: var(--emerald-500);
  transition: transform .2s linear;
  will-change: transform;
}

/* ======================================================================
   12. MARKET
   ====================================================================== */
.market {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.market__stats { margin-top: 36px; display: flex; gap: 48px; }
.market__stats strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2rem; color: var(--text-ink); }
.market__stats span { color: var(--text-muted); font-size: 0.9rem; }

.market__chart { display: flex; align-items: flex-end; gap: 36px; height: 280px; padding-bottom: 8px; }
.mc-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.mc-bar__fill {
  width: 100%;
  max-width: 120px;
  height: 0%;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--emerald-400), var(--emerald-600));
  transition: height 1.1s var(--ease) var(--delay, 0s);
}
.mc-bar.in-view .mc-bar__fill { height: var(--h, 0%); }
.mc-bar__value { margin-top: 14px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.15rem; }
.mc-bar__label { margin-top: 2px; font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .market { grid-template-columns: 1fr; }
}

/* ======================================================================
   13. PARTNERS
   ====================================================================== */
.partner-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.partner-card {
  background: var(--paper);
  border: 1px solid var(--bone-line);
  border-radius: var(--radius-l);
  padding: 36px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.partner-card:hover { border-color: var(--emerald-400); transform: translateY(-4px); }
.partner-card__logo-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(250px, 100%);
  min-height: 82px;
  padding: 12px 18px;
  border: 1px solid var(--bone-line);
  border-radius: 12px;
  background: #fff;
}
.partner-card__logo { display: block; width: 100%; height: 56px; object-fit: contain; object-position: left center; }
.partner-card h3 { margin-top: 20px; font-size: 1.3rem; }
.partner-card p { margin-top: 12px; }

@media (max-width: 640px) { .partner-grid { grid-template-columns: 1fr; } }

/* ======================================================================
   14. WHY ANIVAX — HUB
   ====================================================================== */
.hub {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
  margin: 72px auto 0;
}
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__lines line {
  stroke: var(--ink-line);
  stroke-width: 1.5;
  transform-origin: 300px 300px;
  transform: scaleY(0);
  transition: transform .9s var(--ease);
}
.hub.in-view .hub__lines line { transform: scaleY(1); }
.hub__lines line:nth-child(1){ transition-delay:.05s }
.hub__lines line:nth-child(2){ transition-delay:.12s }
.hub__lines line:nth-child(3){ transition-delay:.19s }
.hub__lines line:nth-child(4){ transition-delay:.26s }
.hub__lines line:nth-child(5){ transition-delay:.33s }
.hub__lines line:nth-child(6){ transition-delay:.4s }

.hub__center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 148px; height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--emerald-400), var(--emerald-600));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(143,224,190,.25), 0 30px 60px -20px rgba(63,191,142,.5);
  z-index: 2;
}
.hub__center span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--ink-950);
  font-size: 1.1rem;
}

.hub__node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink-900);
  border: 1px solid var(--ink-line);
  color: var(--text-on-dark-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hub__node:hover {
  color: var(--text-on-dark);
  border-color: var(--emerald-400);
  background: var(--ink-800);
}

@media (max-width: 560px) {
  .hub { transform: scale(.82); margin-top: 40px; }
  .hub__node { font-size: 0.72rem; padding: 9px 12px; }
}

/* ======================================================================
   15. VISION 2030
   ====================================================================== */
.vision__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.vision__item {
  background: var(--ink-900);
  padding: 40px 30px;
}
.vision__item span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  color: var(--gold-500);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.vision__item p { color: var(--text-on-dark); font-size: 1.15rem; font-weight: 500; font-family: "Space Grotesk", sans-serif; }

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

/* ======================================================================
   16. BIOERA CAPABILITIES
   ====================================================================== */
.capability-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.capability { border-top: 2px solid var(--gold-500); padding-top: 20px; }
.capability h3 { font-size: 1.2rem; }
.capability p { margin-top: 12px; font-size: 0.96rem; }

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

/* ======================================================================
   17. TIMELINE
   ====================================================================== */
.timeline {
  margin-top: 56px;
  position: relative;
  padding-left: 32px;
  border-left: 1.5px solid var(--bone-line);
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.timeline__item { position: relative; max-width: 62ch; }
.timeline__dot {
  position: absolute;
  left: -38px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bone);
  border: 2px solid var(--emerald-500);
}
.timeline__item h3 { font-size: 1.25rem; }
.timeline__item p { margin-top: 10px; }

/* ======================================================================
   18. FINAL CTA
   ====================================================================== */
.final-cta {
  position: relative;
  background: var(--ink-950);
  padding: var(--section-pad) 0;
  overflow: hidden;
  text-align: center;
  color: var(--text-on-dark);
}
.final-cta__photo {
  position: absolute; inset: 0;
  background-image: var(--bg-photo);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(0.6);
}
.final-cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.final-cta__inner { position: relative; z-index: 2; }
.final-cta .display { color: var(--text-on-dark); }
.final-cta p { margin-top: 22px; color: var(--text-on-dark-muted); font-size: 1.1rem; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ======================================================================
   19. CONTACT
   ====================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-list { margin-top: 44px; display: flex; flex-direction: column; gap: 26px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 22px; border-bottom: 1px solid var(--bone-line); }
.contact-list__role { font-family: "Space Grotesk", sans-serif; font-size: 0.82rem; color: var(--emerald-600); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-list__name { font-weight: 600; font-size: 1.05rem; }
.contact-list a { color: var(--text-muted); transition: color var(--dur) var(--ease); }
.contact-list a:hover { color: var(--emerald-600); }

.contact-office { margin-top: 30px; }
.contact-office p { margin-top: 8px; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--bone-line);
  border-radius: var(--radius-l);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
}
.field, .field-row > .field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 0.85rem; color: var(--text-muted); }
input, textarea {
  background: var(--bone);
  border: 1px solid var(--bone-line);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  transition: border-color var(--dur) var(--ease);
}
input:focus, textarea:focus { border-color: var(--emerald-400); }
textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  color: var(--emerald-600);
  font-size: 0.92rem;
  background: var(--emerald-tint);
  border-radius: var(--radius-s);
  padding: 12px 14px;
}
.form-success.is-visible { display: block; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ======================================================================
   20. FOOTER
   ====================================================================== */
.footer { background: var(--ink-950); color: var(--text-on-dark-muted); padding: 80px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ink-line);
}
.footer__brand p { margin-top: 14px; max-width: 28ch; color: var(--text-on-dark-muted); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  color: var(--text-on-dark);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer__col a, .footer__col span { color: var(--text-on-dark-muted); font-size: 0.92rem; transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--emerald-300); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
}
.footer__bottom a { color: var(--emerald-300); }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ======================================================================
   21. SCROLL REVEAL
   ====================================================================== */
/* Reveal elements only when JavaScript is active */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Direction-aware reveals */
.js [data-reveal][data-dir="start"] {
  transform: translate3d(calc(var(--start) * -40px), 0, 0);
}

.js [data-reveal][data-dir="end"] {
  transform: translate3d(calc(var(--start) * 40px), 0, 0);
}

.js [data-reveal][data-dir].in-view {
  transform: none;
}

/* ======================================================================
   22. REAL PHOTOGRAPHY INTEGRATION
   ====================================================================== */
.section--photo { position: relative; }
.section--photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--bg-photo);
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  filter: saturate(0.6);
  pointer-events: none;
}
.section--photo > .wrap { position: relative; z-index: 1; }

.facility__intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}
.facility__photo {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--ink-line);
  position: relative;
}
.facility__photo img { width: 100%; height: 240px; object-fit: cover; display: block; }
.facility__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(8,26,23,.85), transparent);
  color: var(--text-on-dark);
  font-size: 0.82rem;
  font-family: "Space Grotesk", sans-serif;
}
@media (max-width: 860px) {
  .facility__intro { grid-template-columns: 1fr; }
  .facility__photo img { height: 200px; }
}

.vision__panel {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.vision__panel .vision__grid { grid-template-columns: 1fr; margin-top: 0; }
.vision__panel .vision__item { padding: 22px 26px; }
.vision__photo {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--ink-line);
}
.vision__photo img { width: 100%; display: block; }
@media (max-width: 760px) {
  .vision__panel { grid-template-columns: 1fr; }
}

/* --- 24. Strategic milestone (tripartite MoU, 22 June 2026) --- */
.milestone {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.milestone__photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--bone-line);
  box-shadow: 0 30px 60px -36px rgba(8, 26, 23, 0.35);
}
.milestone__photo img { width: 100%; height: auto; aspect-ratio: 1280 / 860; object-fit: cover; }
/* one light sweep across the photo once it reveals */
.milestone__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(143, 224, 190, 0.32) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.milestone__photo.in-view::after { animation: milestoneSheen 1.9s var(--ease) 0.9s both; }
@keyframes milestoneSheen { to { transform: translateX(100%); } }

.milestone__title { margin-top: 18px; }
.milestone__rule {
  display: block;
  width: 96px;
  height: 2px;
  margin: 26px 0 28px;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-500));
  transform-origin: left center;
}
.js .milestone__rule { transform: scaleX(0); transition: transform 1.2s var(--ease) 0.35s; }
.js .milestone__copy.in-view .milestone__rule { transform: scaleX(1); }

.milestone__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.milestone__parties { display: grid; gap: 12px; }
.milestone__party {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 12px 20px;
  border: 1px solid var(--bone-line);
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--text-ink);
  font-weight: 500;
  line-height: 1.4;
}
.milestone__num {
  flex: 0 0 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--emerald-600);
}
.milestone__date {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--emerald-tint);
  color: var(--emerald-600);
  font-weight: 600;
}
.milestone__date strong { color: inherit; }
.milestone__logo-wrap {
  flex: 0 0 112px;
  width: 112px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.milestone__logo { display: block; max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.milestone__logo--nlfdp { max-width: 108px; max-height: 48px; }
.milestone__logo--boehringer { max-width: 112px; max-height: 48px; }
.milestone__logo--anivax { max-width: 108px; max-height: 50px; }
.milestone__party-name { flex: 1 1 auto; min-width: 0; }


[data-theme="dark"] .milestone__party { background: var(--ink-800); border-color: var(--ink-line); color: var(--text-on-dark); }
[data-theme="dark"] .milestone__num,
[data-theme="dark"] .milestone__date { color: var(--emerald-300); }
[data-theme="dark"] .milestone__date { background: rgba(63, 191, 142, 0.14); }
[data-theme="dark"] .milestone__label { color: var(--text-on-dark-muted); }

@media (max-width: 760px) {
  .milestone { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .milestone__party { padding: 12px 14px; gap: 10px; min-height: 82px; }
  .milestone__logo-wrap { flex-basis: 88px; width: 88px; height: 46px; }
  .milestone__logo { max-height: 42px; }
  .milestone__logo--nlfdp, .milestone__logo--boehringer, .milestone__logo--anivax { max-width: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  .milestone__photo::after { display: none; }
  .js .milestone__rule { transform: none; transition: none; }
}

/* ======================================================================
   15. ADDED — HERO VIDEO, THEME & LANGUAGE CONTROLS, RTL
   ====================================================================== */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease);
}

.hero__video.is-playing {
  opacity: 1;
}

.ctrl {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--ink-line); border-radius: 999px; padding: 3px;
}
.ctrl button {
  font-size: .75rem; letter-spacing: .08em; padding: 6px 11px; border-radius: 999px;
  color: var(--text-on-dark-muted); transition: background .4s var(--ease), color .4s var(--ease);
}
.ctrl button:hover { color: var(--text-on-dark); }
.ctrl button[aria-pressed="true"] { background: var(--emerald-500); color: var(--ink-950); }
.ctrl-btn {
  font-size: .78rem; letter-spacing: .06em; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--ink-line); color: var(--text-on-dark-muted);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.ctrl-btn:hover { color: var(--text-on-dark); border-color: var(--emerald-400); }
.ctrl-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }

/* Dark theme: applies to the light sections (the nav and dark sections are already dark) */
[data-theme="dark"] .section--light { background: var(--ink-900); }
[data-theme="dark"] .section--light :is(h2, h3, h4, strong, .display, .section-title) { color: var(--text-on-dark); }
[data-theme="dark"] .section--light :is(p, .lede, li) { color: var(--text-on-dark-muted); }
[data-theme="dark"] .product-card,
[data-theme="dark"] .partner-card,
[data-theme="dark"] .capability,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .timeline__item {
  background: var(--ink-800); border-color: var(--ink-line);
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea {
  background: var(--ink-950); border-color: var(--ink-line); color: var(--text-on-dark);
}

/* Arabic (RTL) */
html[dir="rtl"] body { font-family: "Tajawal", "Cairo", Arial, sans-serif; letter-spacing: 0; }
html[dir="rtl"] :is(.nav__links a, .tag, .eyebrow, .btn, .ctrl button) { letter-spacing: 0; }
html[dir="rtl"] :is(.hero__content, .about__copy, .section-title, .lede, .display, .hero__headline, .hero__sub) { text-align: right; }
html[dir="rtl"] .hero__ctas { justify-content: flex-start; }
html[dir="rtl"] .hero__sub { margin-inline-start: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero__video { transition: none; animation: none; }
}

/* ======================================================================
   23. MOTION LAYER: premium animation enhancements (additive)
   Every rule here respects prefers-reduced-motion (see block at the end).
   ====================================================================== */

/* --- 23a. Hero entrance: whole elements, so Arabic text swaps stay intact --- */
.hero .tag,
.hero__headline,
.hero__sub,
.hero__ctas .btn,
.scroll-cue {
  animation: heroRise 1s var(--ease) backwards;
}
.hero .tag            { animation-delay: .10s; }
.hero__headline       { animation-delay: .22s; }
.hero__sub            { animation-delay: .38s; }
.hero__ctas .btn:nth-child(1) { animation-delay: .52s; }
.hero__ctas .btn:nth-child(2) { animation-delay: .64s; }
.scroll-cue           { animation-delay: 1s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Background video settles in from a slight zoom */
.hero__video {
  animation: heroSettle 3s var(--ease) backwards;
}
@keyframes heroSettle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* --- 23b. Hero overlay: a slow light sheen moving across the scrim --- */
.hero__scrim::after {
  content: "";
  position: absolute;
  top: -10%; bottom: -10%; left: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(143, 224, 190, .09), transparent);
  transform: translateX(-120%);
  animation: heroSheen 11s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes heroSheen {
  0%         { transform: translateX(-120%); }
  55%, 100%  { transform: translateX(480%); }
}

/* --- 23c. DNA helix line art (hero + final CTA) --- */
.hero__helix,
.final-cta__helix {
  position: absolute;
  height: 72%;
  width: auto;
  aspect-ratio: 200 / 640;
  color: var(--emerald-300);
  pointer-events: none;
  animation: helixFloat 10s ease-in-out infinite;
}
.hero__helix {
  top: 14%;
  right: 3%;
  opacity: .42;
  z-index: 1;
}
html[dir="rtl"] .hero__helix { right: auto; left: 3%; }

.final-cta__helix {
  top: 50%;
  height: 440px;
  margin-top: -220px;
  opacity: .16;
  z-index: 1;
}
.final-cta__helix--l { left: 4%; }
.final-cta__helix--r { right: 4%; animation-delay: -6s; }

.dna__strand,
.dna__rung {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.dna__strand      { stroke-width: 2.4; animation: dnaDraw 2.8s var(--ease) .3s forwards; }
.dna__strand--b   { opacity: .55; animation-delay: .55s; }
.dna__rung        { stroke-width: 1.4; opacity: .7; animation: dnaDraw 1.4s var(--ease) 1.5s forwards; }
@keyframes dnaDraw { to { stroke-dashoffset: 0; } }
@keyframes helixFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Slow drift on the final CTA photograph (existing image, gentle movement) */
.final-cta__photo {
  animation: photoDrift 26s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes photoDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.5%, -1%, 0); }
}

/* Process flow along the facility diagram: dashes travel along the lines */
.facility__lines path {
  stroke-dasharray: 3 9;
  animation: lineFlow 3s linear infinite;
}
@keyframes lineFlow { to { stroke-dashoffset: -24; } }

/* --- 23d. Image reveals: mask opens, photo settles from a slight zoom --- */
.img-reveal {
  transition: opacity 1.1s var(--ease), clip-path 1.3s var(--ease);
}
/* hidden start state only when JS is running, so the photos stay visible without it */
.js .img-reveal {
  opacity: 0;
  clip-path: inset(10% 6% 10% 6% round var(--radius-l));
}
.img-reveal.in-view {
  opacity: 1;
  clip-path: inset(0 0 0 0 round var(--radius-l));
}
.img-reveal img {
  transform: scale(1.12);
  transition: transform 1.6s var(--ease);
}
.img-reveal.in-view img { transform: scale(1); }

/* --- 23e. Scroll-reveal polish: one transition set for revealed cards --- */
.stat, .vision__item, .capability, .timeline__item, .contact-list li,
.facility__panel, .product-card, .partner-card, .opp-panel, .contact-form {
  transition-property: opacity, transform, box-shadow, border-color, background-color, padding;
  transition-duration: .7s;
  transition-timing-function: var(--ease);
}

/* --- 23f. Buttons: light sweep on hover, tactile press --- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-20deg);
  z-index: -1;
  pointer-events: none;
}
.btn:active { transform: scale(.98); }

/* --- 23g. Hover states: only on devices that actually hover --- */
@media (hover: hover) {
  .btn:hover::after { left: 130%; transition: left .9s var(--ease); }

  .stat { transition-property: opacity, transform, background-color; }
  .stat:hover { background: #10302A; }
  .stat:hover .stat__num { transform: scale(1.05); }
  .stat__num { display: inline-block; transition: transform .6s var(--ease); transform-origin: left center; }
  html[dir="rtl"] .stat__num { transform-origin: right center; }

  .vision__item:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--emerald-500); }
  .vision__item:hover span { color: var(--gold-300); }
  .vision__item span { transition: color .6s var(--ease); }

  .capability:hover { transform: translateY(-4px); border-top-color: var(--emerald-500); }

  .timeline__item:hover .timeline__dot { box-shadow: 0 0 0 6px rgba(31, 154, 110, .18); }
  .timeline__dot { transition: box-shadow .6s var(--ease); }

  .product-card { position: relative; overflow: hidden; }
  .product-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--emerald-500), var(--gold-500));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s var(--ease);
  }
  html[dir="rtl"] .product-card::before { transform-origin: right center; }
  .product-card:hover::before { transform: scaleX(1); }

  .partner-card__mark { transition: transform .6s var(--ease); }
  .partner-card:hover .partner-card__mark { transform: scale(1.06); }

  .img-reveal.in-view:hover img { transform: scale(1.04); transition-duration: .9s; }

  .contact-list li:hover .contact-list__name { color: var(--emerald-600); }
  .contact-list__name { transition: color .6s var(--ease); }
}

/* --- 23h. Mobile: taps and layout --- */
@media (max-width: 760px) {
  .hero__scrim {
    background: linear-gradient(180deg, rgba(8, 26, 23, .86) 0%, rgba(8, 26, 23, .62) 55%, rgba(8, 26, 23, .9) 100%);
  }
  .ctrl button { min-height: 36px; }
  .ctrl-btn { white-space: nowrap; }
}
/* Open mobile menu: keep the header bar (logo + close burger) usable above it */
@media (max-width: 900px) {
  .mobile-menu { clip-path: inset(92px 0 0 0); }
  .nav:has(#burger[aria-expanded="true"]) .nav__inner :is(.ctrl, .ctrl-btn) { visibility: hidden; }
}
@media (max-width: 899px) {
  .hero__helix,
  .final-cta__helix { display: none; }
}
body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

/* --- 23i. Reduced motion: keep the final state, drop the movement --- */
@media (prefers-reduced-motion: reduce) {
  .hero__helix,
  .final-cta__helix,
  .final-cta__photo,
  .hero__scrim::after,
  .facility__lines path,
  .hero__video,
  .hero .tag, .hero__headline, .hero__sub, .hero__ctas .btn, .scroll-cue {
    animation: none !important;
  }
  .dna__strand,
  .dna__rung { stroke-dashoffset: 0; animation: none !important; }
  .img-reveal,
  .img-reveal img { transition: none; }
  .btn::after { display: none; }
}


/* ======================================================================
   24. SECTION MOTION: every section gets its own treatment
   Hidden starting states are gated on .js (set by script.js), so if
   JavaScript fails the content stays visible.
   ====================================================================== */

/* --- 24a. Direction-aware reveals: slide in from the start or end side --- */
:root { --start: 1; }
html[dir="rtl"] { --start: -1; }   /* "start" means left in LTR and right in RTL */

.js [data-reveal][data-dir="start"] { transform: translate3d(calc(var(--start) * -40px), 0, 0); }
.js [data-reveal][data-dir="end"]   { transform: translate3d(calc(var(--start) * 40px), 0, 0); }
.js [data-reveal][data-dir].in-view { transform: none; }

/* --- 24b. Scientific line drawing: timeline spine draws downward --- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: -1.5px; top: 0;
  width: 1.5px; height: 100%;
  background: linear-gradient(var(--emerald-500), var(--emerald-300));
  transform-origin: top center;
}
.js .timeline.draw-line::before { transform: scaleY(0); transition: transform 1.8s var(--ease); }
.js .timeline.draw-line.in-view::before { transform: scaleY(1); }

/* Facility diagram: connecting process lines fade in one by one, then keep flowing */
.facility__lines path {
  animation: lineFlow 3s linear infinite;
  transition: opacity 1s var(--ease);
}
.facility__lines path:nth-child(1) { transition-delay: .05s; }
.facility__lines path:nth-child(2) { transition-delay: .15s; }
.facility__lines path:nth-child(3) { transition-delay: .25s; }
.facility__lines path:nth-child(4) { transition-delay: .35s; }
.facility__lines path:nth-child(5) { transition-delay: .45s; }
.facility__lines path:nth-child(6) { transition-delay: .55s; }
.facility__lines path:nth-child(7) { transition-delay: .65s; }
.facility__lines path:nth-child(8) { transition-delay: .75s; }
.js .facility:not(.in-view) .facility__lines path { opacity: 0; }

/* --- 24c. Process steps: zone nodes appear in sequence along the flow --- */
@keyframes nodeIn {
  from { opacity: 0; scale: .7; }
  to   { opacity: 1; scale: 1; }
}
.js .facility:not(.in-view) .fz,
.js .hub:not(.in-view) .hub__node { opacity: 0; }

.facility.in-view .fz { animation: nodeIn .8s var(--ease) both; }
.facility.in-view .fz:nth-child(2) { animation-delay: .2s; }
.facility.in-view .fz:nth-child(3) { animation-delay: .32s; }
.facility.in-view .fz:nth-child(4) { animation-delay: .44s; }
.facility.in-view .fz:nth-child(5) { animation-delay: .56s; }
.facility.in-view .fz:nth-child(6) { animation-delay: .68s; }
.facility.in-view .fz:nth-child(7) { animation-delay: .80s; }
.facility.in-view .fz:nth-child(8) { animation-delay: .92s; }

/* Active zone (R&D by default) gets a soft pulse ring to show it is live */
.fz.is-active::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--emerald-400);
  opacity: 0;
  pointer-events: none;
  animation: ringPulse 2.8s var(--ease) infinite;
}
@keyframes ringPulse {
  0%   { opacity: .6; scale: .92; }
  100% { opacity: 0;  scale: 1.22; }
}

/* --- 24d. Hub: nodes pop in after the spokes draw --- */
.hub.in-view .hub__node { animation: nodeIn .8s var(--ease) both; }
.hub.in-view .hub__node:nth-child(3) { animation-delay: .45s; }
.hub.in-view .hub__node:nth-child(4) { animation-delay: .53s; }
.hub.in-view .hub__node:nth-child(5) { animation-delay: .61s; }
.hub.in-view .hub__node:nth-child(6) { animation-delay: .69s; }
.hub.in-view .hub__node:nth-child(7) { animation-delay: .77s; }
.hub.in-view .hub__node:nth-child(8) { animation-delay: .85s; }

/* --- 24e. Manufacturing field: molecular particles behind the facility --- */
.facility-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

/* --- 24f. Technology / expertise: scientific grid that drifts slowly --- */
.section--grid { position: relative; overflow: hidden; }
.section--grid::after {
  content: "";
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  pointer-events: none;
  animation: gridDrift 48s linear infinite;
}
.section--grid > * { position: relative; z-index: 1; }
.section--grid { --grid-line: rgba(8, 26, 23, .055); }
.section--dark.section--grid,
[data-theme="dark"] .section--light.section--grid { --grid-line: rgba(234, 243, 238, .06); }
@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(64px, 64px, 0); }
}
@media (max-width: 760px) {
  .section--grid::after { animation: none; }
}

/* --- 24g. Partner marks: a small ring-in when each card arrives --- */
@keyframes markIn {
  from { opacity: 0; scale: .6; }
  to   { opacity: 1; scale: 1; }
}
.partner-card.in-view .partner-card__mark { animation: markIn .8s var(--ease) .35s both; }

/* --- 24h. Footer and CTA links: underline sweep on hover --- */
.footer__col a { position: relative; display: inline-block; }
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--emerald-300);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease);
}
html[dir="rtl"] .footer__col a::after { transform-origin: right center; }
@media (hover: hover) {
  .footer__col a:hover::after { transform: scaleX(1); }
}

/* --- 24i. Keep the new motion calm on phones and under reduced motion --- */
@media (max-width: 760px) {
  .fz.is-active::after { animation-duration: 4s; }
}
@media (prefers-reduced-motion: reduce) {
  .section--grid::after,
  .fz.is-active::after,
  .facility__lines path { animation: none !important; }
  .facility__lines path { opacity: 1; }
  .facility.in-view .fz,
  .hub.in-view .hub__node,
  .partner-card.in-view .partner-card__mark { animation: none !important; }
  .js .timeline.draw-line::before { transform: scaleY(1); }
  .timeline::before { transition: none; }
}

/* RTL: the columns swap sides, so the spine follows them */
html[dir="rtl"] .about__spine { left: auto; right: calc(47.8% - 1px); }

/* About copy sits on a light background: use the body text colour for readability */
.about__copy .hero__sub { color: var(--text-muted); }
[data-theme="dark"] .about__copy .hero__sub { color: var(--text-on-dark-muted); }


/* ======================================================================
   25. FINISHING MOTION: overlooked content, same restrained visual rhythm
   These additions complement the existing section animations above.
   ====================================================================== */
.market__stats > div {
  border-inline-start: 2px solid rgba(31, 154, 110, .22);
  padding-inline-start: 16px;
  transition: border-color .55s var(--ease), transform .55s var(--ease);
}
.market__stats > div.in-view { border-inline-start-color: var(--emerald-500); }

.market__chart .mc-bar__value,
.market__chart .mc-bar__label {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.market__chart .mc-bar:not(.in-view) .mc-bar__value,
.market__chart .mc-bar:not(.in-view) .mc-bar__label {
  opacity: 0;
  transform: translateY(8px);
}
.market__chart .mc-bar.in-view .mc-bar__value,
.market__chart .mc-bar.in-view .mc-bar__label {
  opacity: 1;
  transform: translateY(0);
}
.market__chart .mc-bar__value { transition-delay: .16s; }
.market__chart .mc-bar__label { transition-delay: .24s; }

.facility__panel.in-view {
  box-shadow: 0 22px 54px -34px rgba(0, 0, 0, .65);
}

.portfolio-progress {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.portfolio-progress.in-view i {
  box-shadow: 0 0 12px rgba(31, 154, 110, .24);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .market__stats > div:hover {
    border-inline-start-color: var(--emerald-500);
    transform: translateY(-3px);
  }
  .facility__panel:hover {
    border-color: rgba(63, 191, 142, .35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .market__stats > div,
  .market__chart .mc-bar__value,
  .market__chart .mc-bar__label,
  .portfolio-progress {
    transition: none !important;
    transform: none !important;
  }
  .market__chart .mc-bar__value,
  .market__chart .mc-bar__label { opacity: 1 !important; }
}


/* ======================================================================
   RE-ADDED: photo frames, labels, floating and partner-card accent
   ====================================================================== */
.facility__photo, .vision__photo {
  box-shadow: 0 24px 50px -28px rgba(8, 26, 23, .45);
}
/* Thin inner frame for a finished, catalogue-style edge */
.facility__photo::after, .vision__photo::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: inherit;
  pointer-events: none;
}
.vision__photo { position: relative; }

.photo-tag {
  position: absolute;
  inset-block-start: 16px;   /* top edge, so it never sits on the photo caption */
  inset-inline-start: 16px;
  z-index: 2;
  background: rgba(8, 26, 23, .8);
  color: var(--text-on-dark);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-inline-start: 2px solid var(--emerald-400);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 760px) {
  .photo-tag { font-size: .64rem; padding: 6px 10px; inset-block-start: 12px; inset-inline-start: 12px; }
}

/* Gentle float on desktop only, paused when the photo is off-screen by default */
@keyframes photo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .facility__photo, .vision__photo { animation: photo-float 9s ease-in-out infinite; }
}

/* Partner cards: accent line draws across the top on hover (desktop only) */
.partner-card { position: relative; }
.partner-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 36px; right: 36px;
  height: 2px;
  background: var(--emerald-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--ease);
}
html[dir="rtl"] .partner-card::before { transform-origin: right center; }
@media (hover: hover) {
  .partner-card:hover::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .facility__photo, .vision__photo { animation: none; }
  .partner-card::before { transition: none; }
}


/* ======================================================================
   COMPACT PHONE LAYOUT (Android & iPhone browsers, up to 560px wide)
   Tighter spacing and type, no sideways scrolling, 44px tap targets,
   and room kept for notches and home indicators.
   ====================================================================== */
@media (max-width: 560px) {
  :root { --section-pad: 56px; }

  /* Stop grid and flex children from forcing the page wider than the screen */
  .wrap, .about__grid, .contact, .vision, .market, .opp-map, .opp-panel,
  .about__copy, .about__statement, .facility, .facility__intro > div,
  .capability-grid > *, .partner-grid > *, .timeline, .timeline__item,
  .footer__grid > * { min-width: 0; }
  .about__grid, .contact, .market { grid-template-columns: minmax(0, 1fr); }
  .about__grid { gap: 28px; }
  .about__copy h3 { font-size: 1.3rem; }
  .about__copy p, .hero__sub, .lede { font-size: 1rem; overflow-wrap: anywhere; }

  .hero__headline { font-size: clamp(2rem, 9vw, 2.5rem); line-height: 1.08; }
  .section-title { font-size: clamp(1.6rem, 7.2vw, 2rem); line-height: 1.12; }
  .display { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .eyebrow { margin-bottom: 10px; }

  /* Hero: fit the first screen without a tall empty band */
  .hero { min-height: 74svh; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { flex: 1 1 auto; text-align: center; }

  /* Stats: tidy columns */
  .stats { gap: 10px; }
  .stat { padding: 16px 14px; }
  .stat__num { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .stat__label { font-size: .8rem; }

  /* Opportunity accordion */
  .opp-map { margin-top: 28px; }
  .opp-panel { padding: 18px 2px; }
  .opp-panel__head { gap: 14px; }

  /* Cards */
  .product-card { flex-basis: 252px; padding: 22px 20px; }
  .partner-card, .capability, .vision__item { padding: 20px; }
  .partner-card__mark { width: 44px; height: 44px; font-size: .9rem; }
  .capability-grid, .partner-grid, .vision__grid { gap: 12px; }

  /* Facility diagram: keep the zone buttons legible */
  .fz { min-width: 44px; min-height: 44px; }
  .fz__name { font-size: .72rem; }

  /* Market chart: shorter bars */
  .market__chart { height: 220px; gap: 20px; }

  /* Footer: compact and single column */
  .footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); }
  .footer__grid { gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 6px; }

  /* Touch targets: at least 44px for buttons, the menu toggle and menu links */
  .btn, .nav__burger, .mobile-menu a, .text-link, .footer__col a { min-height: 44px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; }
  .ctrl button, .ctrl-btn { min-height: 40px; min-width: 40px; }
  .nav__burger { width: 44px; height: 44px; }

  /* Clip sideways overflow at page level, so reveal slides that start off-screen never cause a sideways scroll */
  html, body { overflow-x: clip; }

  /* iPhone notch: keep the header clear of the status bar */
  .nav { padding-top: env(safe-area-inset-top); }
}

/* Very small phones (320-380px): tighten a little more */
@media (max-width: 380px) {
  :root { --section-pad: 48px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .stats { grid-template-columns: 1fr; }
  .product-card { flex-basis: 84vw; }
  .hero__headline { font-size: 1.85rem; }
}


/* ======================================================================
   MOBILE MOTION: every animation runs on Android and iPhone too.
   Phones get gentler amplitudes and lighter drawing, and touch screens
   get in-view versions of the hover effects. Users who turn on the
   system "reduce motion" setting still get the static layout.
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Background grid drift (was switched off below 760px) */
  .section--grid::after { animation: gridDrift 48s linear infinite; }

  /* DNA helix in the hero and final call-to-action (was hidden below 900px) */
  .hero__helix, .final-cta__helix { display: block; opacity: .28; }
  .hero__helix { width: 180px; right: -40px; top: 18%; }
  .final-cta__helix { width: 160px; }

  /* Hero scroll cue (was hidden below 640px) */
  .scroll-cue { display: flex; }

  /* Gentle float on the two photos, on every screen size */
  .facility__photo, .vision__photo { animation: photo-float-sm 9s ease-in-out infinite; }
}

@keyframes photo-float-sm {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Touch screens: the accent lines on cards draw in when the card is revealed */
@media (hover: none) {
  .partner-card.in-view::before,
  .product-card.in-view::before { transform: scaleX(1); transition-delay: .25s; }
}

@media (prefers-reduced-motion: reduce) {
  .facility__photo, .vision__photo, .scroll-cue, .section--grid::after { animation: none !important; }
  .hero__helix, .final-cta__helix { display: none; }
}

/* Enquiry form: delivery error message (added with the CMS build) */
.form-error { color: #B42318; font-size: .95rem; margin: 12px 0 0; }
.form-error[hidden] { display: none; }


/* Partner and milestone logo alignment — responsive across mobile and desktop */
@media (max-width: 480px) {
  .milestone__party { display: grid; grid-template-columns: 24px 76px minmax(0, 1fr); gap: 9px; padding: 12px 10px; }
  .milestone__num { flex-basis: auto; font-size: .76rem; }
  .milestone__logo-wrap { width: 76px; height: 44px; }
  .milestone__logo, .milestone__logo--nlfdp, .milestone__logo--boehringer, .milestone__logo--anivax { max-width: 74px; max-height: 40px; }
  .milestone__party-name { font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; }
  .partner-card { padding: 22px; }
  .partner-card__logo-box { min-height: 70px; width: min(220px, 100%); }
  .partner-card__logo { height: 46px; }
}
@media (max-width: 360px) {
  .milestone__party { grid-template-columns: 22px 64px minmax(0, 1fr); gap: 7px; padding-inline: 8px; }
  .milestone__logo-wrap { width: 64px; }
  .milestone__logo, .milestone__logo--nlfdp, .milestone__logo--boehringer, .milestone__logo--anivax { max-width: 62px; }
  .milestone__party-name { font-size: .82rem; }
}


/* ======================================================================
   STATIC PRESENTATION PATCH — decorative motion disabled
   ====================================================================== */
html { scroll-behavior: auto !important; }
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
[data-reveal],
.img-reveal,
.js [data-reveal],
.js .img-reveal,
.draw-line,
.js .draw-line {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  clip-path: none !important;
}
.hero__helix,
.final-cta__helix,
.hero__canvas,
.final-cta__canvas,
#facility-canvas {
  display: none !important;
}
