/* The overlay holds the headline contrast steady through all eight cuts. */
.film-hero {
  display: flex; flex-direction: column; align-items: stretch; justify-content: space-between;
  isolation: isolate; padding: 0; gap: 0; background: #050606; color: #fff;
  border-color: #262a28; min-height: clamp(510px, 39vw, 660px);
}
.hero-reel, .film-hero::after {
  position: absolute; inset: 0; height: 100%; width: 100%; pointer-events: none;
}
.hero-reel { z-index: -2; object-fit: cover; object-position: 50% 59%; }
.film-hero::after {
  z-index: -1; content: ''; background: linear-gradient(90deg, #020403f7 0%, #030504e6 27%, #0305048f 55%, #03050436 90%),
    linear-gradient(0deg, #020302d9, transparent 36%);
}
.film-hero .hero-copy { margin: auto 0; padding: clamp(28px,4vw,68px) clamp(24px,5vw,82px) 25px; }
.film-hero .studio-line { color: #cbd5cf; margin-bottom: 21px; }
.film-hero .studio-line strong, .film-hero h1 { color: #fff; }
.film-hero h1 { max-width: 14ch; font-size: clamp(3.45rem,6.1vw,6.5rem); line-height: .97; }
.film-hero h1 .accent, .film-hero .security-jump { color: var(--accent); }
.film-hero .hero-sub { max-width: 48ch; color: #e0e8e3; }
.film-hero .btn.primary { background: #a0f0c9; color: #10231a; }
.film-hero .btn.secondary { color: white; background: #0d1512ba; border-color: #94a69b; }
.film-hero :focus-visible { outline: 2px solid #adf6d1; outline-offset: 3px; }
.film-hero { background: #060b0c; }
.film-hero .hero-copy { position: relative; z-index: 1; width: 57%; margin: auto 0; }
.film-hero h1 { font-weight: 520; letter-spacing: -.07em; }
.film-hero .hero-reel { opacity: 1; filter: brightness(1.22); }
.film-hero::after {
  background: linear-gradient(90deg, #080b0b9b 5%, #080b0b7b 38%, transparent 77%),
    linear-gradient(0deg, #04090937, transparent 47%);
}
@media (min-width: 961px) {
  .film-hero .hero-copy { padding-block: clamp(42px,4.4vw,70px); }
}
@media (max-width: 760px) {
  .film-hero .hero-copy { width: 100%; padding-bottom: 32px; }
}
.product-card > .pcb-explorer { border-radius: 0; align-self: center; }
.product-card:has(> .pcb-explorer) { background: #101914; }
.product-card:has(> .pcb-explorer) .product-copy { background: white; }

@media (prefers-reduced-motion: no-preference) {
  .product-media img, .about-heading-photo img {
    translate: 0 var(--media-shift, 0px);
  }
  .about-heading-photo { overflow: hidden; }
  .about-heading-photo img { scale: 1.12; }
  .film-hero .hero-copy h1 { animation: film-title-in .8s cubic-bezier(.2,.75,.18,1) both; }
  .section-head.is-visible h2 { animation: film-title-in .65s cubic-bezier(.2,.75,.18,1) both; }
  .services-grid .service-card.is-visible { animation: service-in .64s cubic-bezier(.2,.75,.18,1) backwards; }
  .services-grid .service-card:nth-child(3n+2) { animation-delay: 70ms; }
  .services-grid .service-card:nth-child(3n) { animation-delay: 130ms; }
  .product-card.is-visible .product-media, .product-card.is-visible > .pcb-explorer { animation: reveal-hardware .8s cubic-bezier(.16,.8,.22,1) both; }
  .service-card { transition: background .24s, border-color .24s; }
  #services .service-card:is(:hover,:focus-within) { border-color: #6c957c; }
  .client-mark img, .engagements a span, .service-link span { transition: transform .3s ease; }
  :is(.engagements a,.service-link):is(:hover,:focus-visible) span { transform: translate(3px,-3px); }
  @keyframes film-title-in { from { clip-path: inset(0 0 100%); translate: 0 16px; } to { clip-path: inset(-4%); translate: 0; } }
  @keyframes reveal-hardware { from { clip-path: inset(8% 4%); scale: .96; opacity: .35; } to { clip-path: inset(0); opacity: 1; } }
  @keyframes service-in { from { opacity: .3; translate: 0 22px; } to { opacity: 1; translate: 0; } }
}
@media (max-width: 960px) {
  .product-card:has(> .pcb-explorer) { background: white; }
}
@media (max-width: 660px) {
  .film-hero { min-height: 530px; }
  .film-hero::after { background: linear-gradient(0deg,#0205038a 0%,#0205036f 56%,#0205032f 100%); }
  .film-hero .hero-copy { padding: 36px 21px 16px; }
  .film-hero h1 { font-size: clamp(2.9rem,10.5vw,4rem); }
}


.product-card.powermon-feature {
  display: flex; flex-direction: column; background: #f7f9f8; border-color: #dbe3dd;
}
.powermon-feature[hidden] { display: none; }
.powermon-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:22px clamp(16px,3vw,40px) 0; }
.powermon-switch:not([hidden]) { display:flex; gap:4px; padding:3px; border:1px solid #bccbc3; border-radius:24px; }
.powermon-switch button { padding:8px 13px; background:transparent; border:0; border-radius:20px; color:#244c39; font:inherit; cursor:pointer; }
.powermon-switch button[aria-pressed=true] { background:#214f3b; color:white; }
.powermon-stage { position:relative; overflow:hidden; }
.powermon-board { display:grid; place-items:center; padding:14px; }
.powermon-unit { width:min(90%,560px); height:clamp(220px,26vw,360px); object-fit:contain; }
.powermon-panel { display:grid; align-content:center; gap:12px; padding:clamp(18px,3vw,42px); color:#182e24; }
.powermon-panel .product-tag { margin:0; color:#24674c; }
.powermon-panel p { line-height:1.5; color:#425649; }
.powermon-screen { align-self:center; }
.powermon-screen video { display:block; width:100%; height:auto; aspect-ratio:1280 / 736; }
.powermon-feature[data-view] .powermon-stage { display:grid; grid-template-columns:1fr 1fr; }
.powermon-feature[data-view] .powermon-board { grid-area:1 / 1 / 2 / 3; transition:transform .35s ease; }
.powermon-feature[data-view] .powermon-panel,
.powermon-feature[data-view] .powermon-screen { visibility:hidden; opacity:0; transition:transform .32s ease, opacity .24s ease; background:#f7f9f8; }
.powermon-feature[data-view] .powermon-panel { grid-area:1 / 1; transform:translateX(-28px); }
.powermon-feature[data-view] .powermon-screen { grid-area:1 / 2; transform:translateX(28px); }
.powermon-feature[data-view=hardware] .powermon-panel,
.powermon-feature[data-view=software] .powermon-screen { visibility:visible; opacity:1; transform:none; }
.powermon-feature[data-view=hardware] .powermon-board { transform:translateX(25%) scale(.88); }
.powermon-feature[data-view=software] .powermon-board { transform:translateX(-25%) scale(.88); }
@media(max-width:720px) {
  .powermon-feature[data-view] .powermon-panel,.powermon-feature[data-view] .powermon-screen { grid-area:1 / 1 / 2 / 3; align-self:stretch; }
  .powermon-screen video { height:100%; object-fit:contain; }
}
@media(prefers-reduced-motion:reduce) {
  .powermon-feature[data-view] .powermon-stage > * { transition:none; }
}
.product-card:has(> .pcb-explorer) { background: white; }
.pcb-explorer, .film-hero .hero-copy > * { animation: none !important; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion:no-preference) {
    .product-media img {
      animation: photo-position linear both;
      animation-timeline: view();
    }
    @keyframes photo-position { from { translate: 0 16px; } to { translate: 0 -16px; } }
  }
}
