/* ==========================================================================
   About page — full-bleed manufacturing video hero
   The video keeps its 16:9 ratio: on wide screens the hero is never taller
   than 16:9 (no cropping); on taller/narrow screens it fills the area with
   object-fit: cover from the centre, so nothing is ever stretched.
   ========================================================================== */
.about-hero {
  --hdr: 66px;                                   /* sticky header height, set by JS */
  position: relative;
  height: min(calc(100vh - var(--hdr)), 56.25vw);
  min-height: 440px;
  overflow: hidden;
  background: #0a1a3d;
  color: #ffffff;
  isolation: isolate;
}
@supports (height: 100svh) {
  .about-hero { height: min(calc(100svh - var(--hdr)), 56.25vw); }
}

.about-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: translateY(var(--ah-shift, 0px));
  will-change: transform;
}
.about-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 1;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 9s cubic-bezier(.16,.84,.3,1);
}
.about-hero.is-playing .about-hero-video {
  opacity: 1;
  transform: scale(1);
}
/* poster shows instantly behind the video while it buffers */
.about-hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: 50% 50%;
}

/* cinematic shading: keeps the white copy readable over the bright lab footage */
.about-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 40, 0.72) 0%, rgba(6, 16, 40, 0.34) 40%, rgba(6, 16, 40, 0) 68%),
    linear-gradient(0deg, rgba(6, 16, 40, 0.55) 0%, rgba(6, 16, 40, 0) 35%);
}

.about-hero-copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: var(--ah-fade, 1);
}
.about-hero-eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.about-hero-title {
  margin: 0;
  max-width: 13ch;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -1px;
}
.about-hero-sub {
  margin: 18px 0 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}
/* staggered entrance */
.about-hero-eyebrow, .about-hero-title, .about-hero-sub {
  opacity: 0;
  transform: translateY(18px);
  animation: ahRise 1s cubic-bezier(.2,.7,.3,1) forwards;
}
.about-hero-title { animation-delay: 0.15s; }
.about-hero-sub   { animation-delay: 0.3s; }
@keyframes ahRise { to { opacity: 1; transform: none; } }

.about-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  opacity: var(--ah-fade, 1);
}
.about-hero-scroll i {
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(255,255,255,0), #ffffff);
  animation: ahCue 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes ahCue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

.about-hero-toggle {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(6, 16, 40, 0.35);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.about-hero-toggle:hover { background: rgba(6, 16, 40, 0.6); }
.about-hero-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.about-hero-toggle .ah-play { display: none; }
.about-hero.is-paused .about-hero-toggle .ah-play { display: block; }
.about-hero.is-paused .about-hero-toggle .ah-pause { display: none; }

/* Mobile: a taller frame so the footage still reads; cover crops the sides only */
@media (max-width: 700px) {
  .about-hero { height: calc(100vh - var(--hdr)); max-height: 680px; min-height: 420px; }
  @supports (height: 100svh) { .about-hero { height: calc(100svh - var(--hdr)); } }
  .about-hero-shade {
    background: linear-gradient(0deg, rgba(6, 16, 40, 0.85) 0%, rgba(6, 16, 40, 0.35) 55%, rgba(6, 16, 40, 0.15) 100%);
  }
  .about-hero-copy { justify-content: flex-end; padding-bottom: 92px; }
  .about-hero-sub { font-size: 0.95rem; }
  .about-hero-toggle { right: 14px; bottom: 14px; width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-video { transition: opacity 0.4s ease; transform: none; }
  .about-hero.is-playing .about-hero-video { transform: none; }
  .about-hero-eyebrow, .about-hero-title, .about-hero-sub { animation: none; opacity: 1; transform: none; }
  .about-hero-scroll i { animation: none; }
}

#about-content { scroll-margin-top: 80px; }
