/* ==========================================================================
   UNIRAY - page-level composition (hero, banners, sections, assistant)
   ========================================================================== */
@layer pages {

  /* ===================================================== PRELOADER
     Dark green, sampled off the rendered page, so the hand-off is seamless:
     when it fades there is no colour step. The lime frame draws itself with
     real progress and then FLIPs into the hero frame behind it.
     Nothing here is ever white - the old white panel flashed on every load. */
  .preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    display: grid;
    place-items: center;
    background:
      radial-gradient(120% 90% at 50% 42%,
        var(--bg-sample-light) 0%, var(--bg-sample-mid) 48%, var(--ink-950) 100%);
    transition: opacity .5s var(--ease-out);
  }
  /* same engineering grid + grain the body carries, at low strength */
  .preloader::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
  }
  /* No grain layer and no backdrop-filter here on purpose: both are
     full-viewport rasterisation work happening in the exact window LCP is
     measured in. The engineering grid above gives the surface enough texture
     at a fraction of the cost. */
  .preloader[hidden] { display: none; }
  .preloader.is-out { opacity: 0; }

  .preloader__stage {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 22px;
  }

  /* a miniature of the hero frame: 22px radius, lime hairline, glass fill */
  .preloader__frame {
    position: relative;
    display: grid;
    place-items: center;
    padding: 28px 40px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 0 48px rgba(210, 227, 136, .14);
    /* the visible border is the SVG stroke below until the draw completes,
       then JS swaps to this one so the FLIP can resize without distorting it */
    border: 1.5px solid transparent;
  }
  .preloader__frame.is-bordered { border-color: var(--lime-soft); }
  .preloader__frame.is-pulsed { box-shadow: 0 0 78px rgba(210, 227, 136, .42); }

  .preloader__border {
    position: absolute;
    inset: -1.5px;
    width: calc(100% + 3px);
    height: calc(100% + 3px);
    fill: none;
    stroke: var(--lime-soft);
    stroke-width: 1.5;
    stroke-linecap: round;
    /* pathLength=100 normalises the dash, so dashoffset IS "100 - percent"
       regardless of the frame's real perimeter. A <rect> path starts at the
       top-left corner and runs clockwise, which is the direction asked for. */
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .28s var(--ease-out);
    pointer-events: none;
  }
  .preloader__frame.is-bordered .preloader__border { opacity: 0; }

  .preloader__logo {
    width: auto;
    height: 87px;
    display: block;
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  }
  .preloader__num {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2em;
    color: var(--lime-soft);
    transition: opacity .3s var(--ease-out);
  }
  /* the travelling frame: a fixed, full-viewport SVG whose box never changes,
     so the morph produces no layout shift at all (see ui.js morph()) */
  .preloader__morph {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }
  .preloader__morph rect {
    fill: none;
    stroke: var(--lime-soft);
    stroke-width: 1.5;
  }
  .preloader.is-morphing .preloader__num { opacity: 0; }
  .preloader.is-morphing .preloader__logo { opacity: 0; transform: scale(.92); }

  @media (max-width: 767px) {
    .preloader__frame { padding: 22px 30px; border-radius: 18px; }
    .preloader__logo { height: 64px; }
  }

  /* reduced motion: a static framed logo, then a plain fade - no draw, no FLIP */
  @media (prefers-reduced-motion: reduce) {
    .preloader__border { transition: none; stroke-dashoffset: 0; }
    .preloader__logo, .preloader__num, .preloader { transition-duration: .2s; }
    .preloader__frame { border-color: var(--lime-soft); }
  }

  body.is-loading { overflow: hidden; }

  /* =========================================================== HERO */
  .hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
    background: var(--ink-950);
    isolation: isolate;
    --hero-split: 45%;
  }

  /* blurred full-bleed backdrop of the current slide */
  .hero__backdrop {
    position: absolute;
    inset: -40px;
    z-index: 0;
    pointer-events: none;
  }
  .hero__backdrop img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(28px) brightness(.7) saturate(1.1);
    transform: scale(1.08);
    opacity: 0;
    transition: opacity .9s var(--ease-out);
  }
  .hero__backdrop img.is-current { opacity: 1; }

  /* the big rounded window */
  .hero__frame {
    position: absolute;
    left: 4.5vw;
    right: 4.5vw;
    top: max(calc(var(--header-h) + 16px), 10.5vh);
    bottom: 10.5vh;
    z-index: 1;
    border-radius: clamp(24px, 2.2vw, 36px);
    border: 1.5px solid rgba(255, 255, 255, .72);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    background: var(--ink-900);
  }

  /* pan-y lets vertical scrolling through while we own horizontal swipes;
     without user-drag:none a desktop drag starts a native image drag and
     Chromium fires pointercancel, killing the swipe */
  .hero__frame { touch-action: pan-y; }
  .hero__frame img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
  }

  .hero__slides { position: absolute; inset: 0; }
  .hero__slide {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 100%);
    will-change: clip-path;
  }
  .hero__slide.is-current { clip-path: inset(0 0 0 0); }
  /* <picture> is display:inline by default and therefore has no definite
     height, so img{height:100%} would resolve against nothing and the photo
     would only fill the top of a tall (mobile) frame. */
  .hero__slide picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero__slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(var(--kb, 1));
  }

  /* frosted panel over the left 45% - the photo must stay visible through it */
  .hero__glass {
    position: absolute;
    inset: 0 calc(100% - var(--hero-split)) 0 0;
    z-index: 2;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    background:
      linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05)),
      linear-gradient(180deg, transparent 52%, rgba(8,12,9,.22) 100%);
    pointer-events: none;
  }

  /* the knockout title: two copies of the same text, clipped either side */
  .hero__titles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
  }
  .hero__title {
    position: absolute;
    inset: 0;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: .9;
    font-size: var(--hero-fs, 96px);
    white-space: nowrap;
  }
  .hero__line {
    position: absolute;
    left: var(--l1-x, 4.8%);
    top: var(--l1-y, 18%);
    display: block;
    overflow: hidden;            /* mask for the SplitText-style line reveal */
  }
  .hero__line--2 {
    left: var(--l2-x, 57%);
    top: calc(var(--l1-y, 18%) + var(--hero-lh, 86px));
  }
  /* breathing room so the mask never clips glyph overshoot, then cancelled
     again with a matching negative margin so the layout box is unchanged */
  .hero__word {
    display: block;
    padding-block: .14em;
    margin-block: -.14em;
    will-change: transform;
  }

  /* copy A - solid white, only the part sitting over the photo */
  .hero__title--solid {
    color: #fff;
    clip-path: inset(0 0 0 var(--hero-split));
  }
  /* copy B - the photo showing through the letters, over the glass.
     "Carved glass": the photo still fills the glyphs (that is the whole point
     of the reference layout), but pass 1 darkened it 20% and the letters read
     as near-black on the frosted panel. Now: a top-light gradient, a much
     lighter veil, a brightness lift on the clipped fill, and a hairline white
     stroke that gives the glyph an edge against the glass at any photo. */
  .hero__title--knock {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image:
      /* top light, then a flat veil that lifts the near-black shadows of the
         photo (brightness alone is multiplicative and barely moves them) */
      linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%),
      linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
      var(--slide-src, none);
    /* per-layer: the two gradients track the element box, only the photo is
       sized/positioned to match the hero image's object-fit:cover geometry */
    background-size: 100% 100%, 100% 100%, var(--cover-w, cover) var(--cover-h, auto);
    background-position: 0 0, 0 0, var(--cover-x, 0px) var(--cover-y, 0px);
    background-repeat: no-repeat;
    /* Measured with qa/knockout.js, which masks the real glyph pixels by
       diffing the band with the title shown vs hidden (percentiles land on
       glass - at this weight the letters are only ~26% of the band).
       Pass 1 measured 1.5:1. This lands above 4:1 with the photo still clearly
       reading through: texture .59, letter luminance .46 (not blown out).
       The stroke is deliberately light - at .45 the outline, not the photo,
       was carrying the legibility, which is not the effect the brief asks for. */
    filter: brightness(1.7) saturate(1.08);
    -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
    clip-path: inset(0 calc(100% - var(--hero-split)) 0 0);
  }
  /* if background-clip:text is unsupported, fall back to readable white */
  @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero__title--knock {
      color: rgba(255,255,255,.85);
      background-image: none;
      filter: none;
      -webkit-text-stroke: 0;
    }
  }
  @media (prefers-contrast: more) {
    .hero__title--knock { -webkit-text-stroke-color: rgba(255,255,255,.6); }
  }

  /* soft vertical light seam where glass meets photo */
  .hero__glass::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: -1px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.35) 40%,
                                rgba(255,255,255,.35) 60%, transparent);
    pointer-events: none;
    z-index: 2;
  }

  /* top-left contact row inside the glass */
  .hero__contact {
    position: absolute;
    left: 2.6%;
    top: 4.5%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero__contact-label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
  }
  .hero__contact-row { display: flex; gap: 10px; }
  /* A plain outlined square left the white glyph sitting straight on the photo;
     over a bright frame the facebook mark measured 2.79:1 (needs >=3:1, WCAG
     1.4.11). A dark glass backing makes the contrast independent of the slide. */
  .hero__contact .iconbtn {
    background: rgba(11, 15, 12, .40);
    -webkit-backdrop-filter: saturate(120%) blur(8px);
    backdrop-filter: saturate(120%) blur(8px);
    border-color: rgba(255, 255, 255, .55);
    color: rgba(255, 255, 255, .92);
  }
  .hero__contact .iconbtn .icon { --icon-size: 18px; }
  .hero__contact .iconbtn:hover,
  .hero__contact .iconbtn:focus-visible {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--ink-950);
  }

  /* lower-left text block */
  .hero__panel {
    position: absolute;
    left: 2.6%;
    top: 57%;
    width: calc(var(--hero-split) - 6%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero__panel h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(18px, 1.6vw, 24px);
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
  .hero__panel p {
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
    max-width: 36ch;
  }
  .hero__panel .btn {
    --btn-h: 46px;
    font-size: clamp(14px, 1.15vw, 18px);
    margin-top: 4px;
  }

  /* right-hand vertical pager */
  .hero__pager {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  /* same trick as the stepper: 32px circles, 44px hit area */
  .hero__pager button { position: relative; }
  .hero__pager button::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
  }
  .hero__pager-line {
    width: 1px;
    height: 72px;
    background: rgba(255, 255, 255, .42);
    position: relative;
    overflow: hidden;
  }
  .hero__pager-line span {
    position: absolute;
    inset: auto 0 0 0;
    height: 0%;
    background: var(--lime);
  }
  .hero__pager-line--top span { inset: 0 0 auto 0; }
  /* 32x32 hit area (was 30 with a 20px glyph — below the 24px AAA target),
     keyboard focusable, glyph drawn as SVG geometry not a ▼ glyph */
  .hero__pager button {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    color: rgba(255, 255, 255, .8);
    transition: color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
  }
  .hero__pager button .icon { --icon-size: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
  .hero__pager button:hover { color: #fff; transform: scale(1.12); }
  .hero__pager button:active { transform: scale(.94); }
  .hero__diamond {
    position: relative;
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
  }
  .hero__diamond::before {
    content: '';
    width: 13px; height: 13px;
    border: 1.5px solid #fff;
    background: transparent;
    transform: rotate(var(--diamond-rot, 45deg));
    transition: transform .55s var(--ease-inout), background-color .45s var(--ease-out);
  }
  /* fills with the lighter lime and turns another 90° on every slide change */
  .hero__diamond.is-on::before {
    background: var(--lime-soft);
    border-color: var(--lime-soft);
  }
  .hero__counter {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  }
  .hero__counter-label {
    font-family: var(--font-body);
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
  }
  .hero__pager:hover .hero__counter,
  .hero__pager:focus-within .hero__counter,
  .hero__counter.is-on { opacity: 1; transform: translateY(-50%) translateX(0); }
  .hero__playpause { margin-top: 4px; }
  .hero__playpause .icon { --icon-size: 14px; }

  @media (prefers-reduced-motion: reduce) {
    .hero__diamond::before, .hero__counter { transition: none; }
  }

  /* bottom-right rectangular arrows */
  .hero__arrows {
    position: absolute;
    right: 6%;
    bottom: 6%;
    z-index: 6;
    display: flex;
    gap: 14px;
  }
  .hero__arrow {
    display: grid;
    place-items: center;
    width: 92px; height: 28px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
  }
  .hero__arrow--prev { background: rgba(20, 24, 20, .35); }
  .hero__arrow--next { background: rgba(255, 255, 255, .35); }
  .hero__arrow:hover { background: var(--lime); color: var(--ink-950); }
  .hero__arrow:active { transform: scale(.95); }
  /* the arrows are now #i-tri-left / #i-tri-right on a 24-unit grid; the old
     15x12 box squashed them. The symbol carries its own fill. */
  .hero__arrow .icon { --icon-size: 15px; }

  /* ---- tablet */
  @media (max-width: 1099px) and (min-width: 768px) {
    .hero { --hero-split: 52%; }
    .hero__panel p { -webkit-line-clamp: 3; }
    .hero__arrow { width: 74px; }
  }

  /* ---- mobile: the split turns horizontal, glass becomes a bottom sheet */
  @media (max-width: 767px) {
    .hero { --hero-split: 52%; min-height: 560px; }
    .hero__frame {
      left: 10px; right: 10px;
      top: calc(var(--header-h) + 10px);
      bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
      border-radius: 26px;
    }
    .hero__glass {
      inset: var(--hero-split) 0 0 0;
      border-radius: 20px 20px 0 0;
      border-top: 1px solid rgba(255,255,255,.28);
    }
    .hero__glass::before {
      content: '';
      position: absolute;
      top: 8px; left: 50%;
      transform: translateX(-50%);
      width: 40px; height: 4px;
      border-radius: var(--radius-pill);
      background: rgba(255,255,255,.5);
    }
    .hero__title--solid { clip-path: inset(0 0 calc(100% - var(--hero-split)) 0); }
    .hero__title--knock { clip-path: inset(var(--hero-split) 0 0 0); }

    /* The two lines are parked so the block is centred on the sheet edge:
       line 1 sits just above it and line 2 crosses it, which is what makes the
       knockout readable on mobile (otherwise both lines land on one side and
       the effect disappears). */
    .hero__line {
      left: 6%;
      top: calc(var(--hero-split) - var(--hero-lh, 52px) * 1.52);
    }
    .hero__line--2 {
      left: 6%;
      top: calc(var(--hero-split) - var(--hero-lh, 52px) * 0.52);
    }

    .hero__contact { left: 5%; top: 4%; }
    .hero__contact-label { display: none; }
    .hero__contact .iconbtn { width: 32px; height: 32px; }

    .hero__panel {
      left: 5%; right: 5%;
      width: auto;
      top: calc(var(--hero-split) + 7%);
      gap: 10px;
    }
    .hero__panel p { font-size: 14px; max-width: none; }
    .hero__panel .btn {
      display: flex;
      width: 100%;
      background: var(--lime-soft);
      color: var(--ink-950);
      border-color: var(--lime-soft);
      min-height: 48px;
    }

    /* pager becomes horizontal, top-right */
    .hero__pager {
      right: 5%; top: 4%;
      transform: none;
      flex-direction: row;
      gap: 8px;
    }
    .hero__pager-line { width: 34px; height: 1px; }
    .hero__pager-line span { inset: 0 auto 0 0; width: 0%; height: 100%; }
    .hero__pager-line--top span { inset: 0 auto 0 0; }
    .hero__counter { right: auto; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); opacity: 1; }

    .hero__arrows { right: 5%; bottom: 4%; gap: 10px; }
    .hero__arrow { width: 62px; height: 26px; }

    .hero__dots {
      position: absolute;
      left: 5%; right: 5%;
      bottom: calc(4% + 38px);
      z-index: 6;
      display: flex;
      justify-content: center;
      gap: 8px;
    }
  }
  .hero__dots { display: none; }
  @media (max-width: 767px) { .hero__dots { display: flex; } }
  /* The dot is a 7px mark but needs a 24px target (WCAG 2.5.8), so the hit area
     is the button and the mark is drawn with ::before. */
  .hero__dot {
    position: relative;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: none;
    display: grid;
    place-items: center;
  }
  .hero__dot::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    transition: width var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
  }
  .hero__dot.is-current::before {
    width: 22px;
    border-radius: var(--radius-pill);
    background: var(--lime);
  }
  .hero__dots { gap: 2px; }

  @media (prefers-reduced-motion: reduce) {
    .hero__slide { transition: opacity .3s linear; }
    .hero__slide img { transform: none !important; }
  }

  /* =========================================================== BANNER */
  .banner {
    position: relative;
    height: 78vh;
    height: 78svh;
    min-height: 520px;
    overflow: hidden;
    background: var(--ink-950);
    isolation: isolate;
    --hero-split: 45%;
  }
  @media (max-width: 767px) { .banner { height: 70svh; min-height: 460px; --hero-split: 52%; } }

  .banner .hero__frame { bottom: 8vh; }
  @media (max-width: 767px) {
    .banner .hero__frame { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); }
  }

  .banner__breadcrumb {
    position: absolute;
    left: 2.6%;
    top: 5%;
    z-index: 5;
  }
  .banner__panel {
    position: absolute;
    left: 2.6%;
    top: 52%;
    width: calc(var(--hero-split) - 6%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .banner__panel p {
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.5;
    color: rgba(255,255,255,.9);
    max-width: 40ch;
  }
  .banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
  /* in the panel's flow (see sitegen_lib.banner) so the buttons above can
     never collide with them, whatever the intro wraps to */
  .banner__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }
  .banner__fact {
    padding: .45em .9em;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,.4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: rgba(20,24,20,.28);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
  }
  .banner__scroll {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.8);
  }
  .banner__scroll .line { width: 1px; height: 64px; background: rgba(255,255,255,.42); }
  .banner__scroll .icon { animation: nudge 2.4s var(--ease-inout) infinite; }
  @keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

  @media (max-width: 767px) {
    .banner__panel { left: 5%; right: 5%; width: auto; top: calc(var(--hero-split) + 6%); }
    .banner__breadcrumb { left: 5%; top: 3.5%; }
    .banner__facts { justify-content: flex-start; }
    .banner__scroll { display: none; }
  }

  /* =========================================================== HOME */
  .statement {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.4vw, 4.6rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.015em;
  }
  .statement em { font-style: normal; color: var(--lime); }

  .counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(16px, 2.4vw, 32px);
    margin-top: clamp(32px, 4vw, 56px);
    padding-top: clamp(28px, 3vw, 40px);
    border-top: 1px solid var(--line);
  }
  .counter__n {
    font-family: var(--font-mono);
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    font-weight: 500;
    color: var(--lime);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .counter__label {
    margin-top: .6em;
    font-size: var(--fs-small);
    color: var(--text-2);
  }

  .snap-row {
    display: flex;
    gap: clamp(14px, 1.6vw, 22px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
    scroll-padding-inline: var(--gutter);
  }
  .snap-row::-webkit-scrollbar { display: none; }
  .snap-row > * { scroll-snap-align: start; flex: 0 0 clamp(210px, 23vw, 280px); }

  /* stacked sticky pillars */
  .pillars { display: grid; gap: 24px; }
  .pillar {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(20px, 3vw, 44px);
    align-items: start;
    padding: clamp(26px, 3.4vw, 48px);
    border-radius: var(--radius-l);
    background: var(--ink-850);
    border: var(--glass-border);
    box-shadow: var(--glass-edge), var(--shadow-1);
    transform-origin: top center;
  }
  @media (max-width: 719px) { .pillar { grid-template-columns: 1fr; } }
  .pillar__n {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--lime);
  }

  /* process */
  /* overflow:clip contains the -4% offset decorative mark */
  .process { position: relative; overflow: clip; }
  .process__track {
    display: flex;
    gap: clamp(18px, 2.4vw, 36px);
    align-items: stretch;
  }
  /* Where the section is pinned (see motion.js, >=1024px) it is exactly as
     tall as the viewport below the header and the track fills it. Pass 2 left
     a ~300px track inside a 160px-padded section, so for the whole length of
     the pin the visitor looked at a ~580px empty band under the cards. */
  @media (min-width: 1024px) {
    .process {
      min-height: calc(100svh - var(--header-h) - 48px);
      display: grid;
      grid-template-rows: auto 1fr;
      align-content: stretch;
    }
    .process > .wrap:last-child { min-height: 0; min-width: 0; display: grid; }
    /* min-width:0 or the grid item takes its content width (1838px here),
       track.clientWidth == track.scrollWidth, and the horizontal travel - the
       length of the pin - computes to zero, so the pin never engages. */
    .process__track { height: 100%; min-width: 0; }
    /* the step number stays at the top, the title and copy sit on the base
       line of the card, so a full-height card reads as designed rather than
       as a short block with a hole under it */
    .process__step { display: flex; flex-direction: column; }
    .process__step > h3 { margin-top: auto; }
  }
  .process__step {
    flex: 0 0 min(340px, 78vw);
    padding: clamp(22px, 2.6vw, 34px);
    border-radius: var(--radius-l);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur-m);
    backdrop-filter: var(--glass-blur-m);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
  }
  .process__n {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--lime);
    margin-bottom: 1.2em;
    display: block;
  }
  .process__mark {
    position: absolute;
    right: -4%;
    top: 50%;
    width: min(420px, 40vw);
    opacity: .07;
    pointer-events: none;
    transform: translateY(-50%);
  }
  @media (max-width: 767px) {
    .process__track { flex-direction: column; }
    .process__step { flex: none; }
    .process__mark { display: none; }
  }

  /* industry finder */
  /* empty until an industry is chosen - its margin must not reserve a band */
  .finder__out:empty { display: none; }
  .finder__out {
    margin-top: clamp(24px, 3vw, 38px);
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  /* calculator */
  .calc {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(20px, 3vw, 40px);
    align-items: end;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--radius-l);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur-m);
    backdrop-filter: var(--glass-blur-m);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
  }
  @media (max-width: 719px) { .calc { grid-template-columns: 1fr; } }
  .calc__out { display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; }
  .calc__val {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    color: var(--lime);
    line-height: 1;
  }
  .calc__cap { font-size: 12px; color: var(--text-3); margin-top: .5em; }

  /* video facade */
  .videofacade {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--ink-800);
    display: grid;
    place-items: center;
    width: 100%;
    border: var(--glass-border);
  }
  .videofacade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
  .videofacade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .videofacade__play {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink-950);
    transition: transform var(--dur-2) var(--ease-out);
  }
  .videofacade:hover .videofacade__play { transform: scale(1.08); }
  .videofacade__play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }

  /* CTA band */
  .cta-band {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    isolation: isolate;
    padding: clamp(36px, 6vw, 84px);
    border: var(--glass-border);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
  }
  .cta-band img {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
  }
  .cta-band::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(11,15,12,.9) 0%, rgba(11,15,12,.62) 42%, rgba(11,15,12,.12) 100%);
  }
  .cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

  /* =========================================================== CATALOG */
  .catalog__bar {
    position: sticky;
    top: calc(var(--header-h) + 8px);
    z-index: 30;
    padding: 12px;
    border-radius: var(--radius-l);
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-edge), var(--shadow-1);
  }
  .catalog__layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
  @media (max-width: 899px) { .catalog__layout { grid-template-columns: 1fr; } }
  .catalog__aside {
    position: sticky;
    top: calc(var(--header-h) + 88px);
    display: grid;
    gap: 22px;
  }
  @media (max-width: 899px) { .catalog__aside { display: none; } }
  .facet h3 {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: .9em;
    font-family: var(--font-display);
    font-weight: 600;
  }
  .facet ul { display: grid; gap: 4px; }
  .facet button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: .55em .7em;
    border-radius: var(--radius-xs);
    font-size: var(--fs-small);
    color: var(--text-2);
    text-align: left;
    transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  }
  .facet button:hover { background: rgba(255,255,255,.05); color: var(--text); }
  .facet button[aria-pressed='true'] { color: var(--lime); background: rgba(166,206,57,.1); }
  .facet button .u-mono { font-size: 11px; opacity: .7; }

  .catalog__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-block: clamp(18px, 2.4vw, 28px);
  }
  .catalog__count { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-2); }
  .select {
    appearance: none;
    -webkit-appearance: none;
    padding: .6em 2.4em .6em 1em;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04)
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23EEF2E7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>")
      no-repeat right 1em center;
    font-size: var(--fs-small);
    color: var(--text);
  }

  .empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: clamp(40px, 7vw, 90px) 20px;
    text-align: center;
    border-radius: var(--radius-l);
    border: 1px dashed var(--line-strong);
  }
  .empty .icon { width: 40px; height: 40px; color: var(--text-3); }

  /* =========================================================== PRODUCT */
  .product {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
  }
  @media (max-width: 899px) { .product { grid-template-columns: 1fr; } }

  .stage {
    position: relative;
    border-radius: var(--radius-l);
    background: var(--paper);
    overflow: hidden;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
  }
  .stage img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 7%;
    mix-blend-mode: multiply;
  }
  .stage__nav {
    position: absolute;
    inset: auto 14px 14px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }
  .stage__nav button {
    pointer-events: auto;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(26,34,28,.14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--text-on-light);
    display: grid; place-items: center;
    transition: background-color var(--dur-2) var(--ease-out);
  }
  .stage__nav button:hover { background: var(--lime); }
  .stage__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  .stage__thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-xs);
    background: var(--paper);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--dur-2) var(--ease-out);
  }
  .stage__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
  .stage__thumb[aria-current='true'] { border-color: var(--lime); }

  .product__panel {
    padding: clamp(22px, 2.6vw, 34px);
    border-radius: var(--radius-l);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur-m);
    backdrop-filter: var(--glass-blur-m);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
  }
  .product__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.08;
  }
  .product__codechip {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .35em .85em;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
  }
  .product__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: clamp(18px, 2.4vw, 26px);
  }
  .product__sticky {
    position: fixed;
    inset: auto 0 0;
    z-index: calc(var(--z-tabbar) + 1);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11,15,12,.9);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--line);
  }
  @media (max-width: 767px) {
    .product__sticky { display: flex; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
    body.has-product-bar { padding-bottom: 70px; }
  }

  .lightbox {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-sheet) + 5);
    display: grid;
    place-items: center;
    padding: 5vmin;
    background: rgba(6,9,7,.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .lightbox[hidden] { display: none; }
  .lightbox img {
    max-width: 100%; max-height: 90vh;
    width: auto;
    border-radius: var(--radius-m);
    background: var(--paper);
  }
  .lightbox__close { position: absolute; top: 18px; right: 18px; }

  /* =========================================================== INQUIRY */
  .inquiry__layout {
    display: grid;
    grid-template-columns: 1.25fr .85fr;
    gap: clamp(22px, 3.4vw, 48px);
    align-items: start;
  }
  @media (max-width: 899px) { .inquiry__layout { grid-template-columns: 1fr; } }
  .inquiry__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
  @media (max-width: 899px) { .inquiry__aside { position: static; } }

  .qitem {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-m);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
  }
  .qitem__media {
    width: 76px; height: 76px;
    border-radius: var(--radius-xs);
    background: var(--paper);
    overflow: hidden;
    display: grid; place-items: center;
  }
  .qitem__media img { width: 100%; height: 100%; object-fit: contain; padding: 7px; mix-blend-mode: multiply; }
  .qitem__name { font-weight: 600; font-size: var(--fs-small); font-family: var(--font-display); }
  .qitem__code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
  .qitem__ctrl { display: flex; align-items: center; gap: 10px; }
  @media (max-width: 599px) {
    .qitem { grid-template-columns: 62px 1fr; }
    .qitem__media { width: 62px; height: 62px; }
    .qitem__ctrl { grid-column: 1 / -1; justify-content: space-between; }
  }

  .summary-card {
    padding: clamp(20px, 2.4vw, 28px);
    border-radius: var(--radius-l);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur-m);
    backdrop-filter: var(--glass-blur-m);
    border: var(--glass-border);
    box-shadow: var(--glass-edge);
  }
  .summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-block: .55em;
    font-size: var(--fs-small);
  }
  .summary-row + .summary-row { border-top: 1px solid var(--line); }
  .summary-row b { font-family: var(--font-mono); font-weight: 500; }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .form-grid .full { grid-column: 1 / -1; }
  @media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }

  .formstate {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    padding: clamp(32px, 5vw, 60px);
    border-radius: var(--radius-l);
    border: 1px solid rgba(166,206,57,.3);
    background: rgba(166,206,57,.07);
  }
  .formstate .icon { width: 44px; height: 44px; color: var(--lime); }

  /* =========================================================== CONTACT */
  .quickrow { display: flex; flex-wrap: wrap; gap: 10px; }
  .mapfacade {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-l);
    overflow: hidden;
    border: var(--glass-border);
    background: var(--ink-850);
    display: grid;
    place-items: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
  }
  .mapfacade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .mapfacade__grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 42px 42px;
  }
  .mapfacade__inner { position: relative; display: grid; justify-items: center; gap: 14px; }

  /* =========================================================== NEWS */
  .post {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(18px, 3vw, 40px);
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius-l);
    border: var(--glass-border);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur-m);
    backdrop-filter: var(--glass-blur-m);
  }
  @media (max-width: 719px) { .post { grid-template-columns: 1fr; } }
  .post__date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--lime);
    letter-spacing: .06em;
    white-space: nowrap;
  }

  /* =========================================================== TIMELINE */
  .timeline { display: grid; gap: 0; }
  .tl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: clamp(18px, 3vw, 36px);
    padding-block: clamp(20px, 2.6vw, 30px);
    border-top: 1px solid var(--line);
    position: relative;
  }
  .tl:last-child { border-bottom: 1px solid var(--line); }
  .tl__year {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    color: var(--lime);
    line-height: 1.2;
  }
  @media (max-width: 599px) { .tl { grid-template-columns: 1fr; gap: 8px; } }

  /* =========================================================== ASSISTANT */
  .assistant {
    position: fixed;
    z-index: calc(var(--z-sheet) + 2);
    display: flex;
    flex-direction: column;
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--shadow-2);
    overflow: hidden;
  }
  .assistant[hidden] { display: none; }
  @media (min-width: 768px) {
    .assistant {
      left: clamp(14px, 3vw, 28px);
      bottom: calc(var(--fab) + var(--fab-gap) * 2);
      width: 380px;
      height: min(580px, calc(100dvh - var(--header-h) - 120px));
      border-radius: var(--radius-l);
      transform: translateY(12px) scale(.98);
      opacity: 0;
      transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
    }
    .assistant.is-open { transform: translateY(0) scale(1); opacity: 1; }
  }
  @media (max-width: 767px) {
    .assistant {
      inset: auto 0 0;
      height: 90dvh;
      border-radius: var(--radius-l) var(--radius-l) 0 0;
      transform: translateY(100%);
      transition: transform var(--dur-3) var(--ease-out);
      padding-bottom: env(safe-area-inset-bottom);
    }
    .assistant.is-open { transform: translateY(0); }
  }

  .assistant__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    flex: none;
  }
  /* the panel wears the same "AI" mark as the button that opened it */
  .assistant__mark.fab-assistant__mark {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 12px;
    background: rgba(166, 206, 57, .16);
    color: var(--lime);
    font-size: 14px;
    flex: none;
  }
  .assistant__mark .fab-assistant__spark { right: 3px; top: 5px; fill: var(--lime); }
  .assistant__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); }
  .assistant__sub { font-size: 11.5px; color: var(--lime); }
  .assistant__log {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
  }
  .msg { display: flex; flex-direction: column; gap: 8px; max-width: 88%; }
  .msg--bot { align-self: flex-start; }
  .msg--user { align-self: flex-end; align-items: flex-end; }
  .msg__bubble {
    padding: 11px 14px;
    border-radius: 16px;
    font-size: var(--fs-small);
    line-height: 1.5;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--line);
  }
  .msg--user .msg__bubble {
    background: var(--lime);
    color: var(--ink-950);
    border-color: transparent;
    border-bottom-right-radius: 5px;
  }
  .msg--bot .msg__bubble { border-bottom-left-radius: 5px; }
  .msg__bubble a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
  .msg--user .msg__bubble a { color: var(--ink-950); }

  .msg__cards { display: grid; gap: 8px; width: 100%; }
  .minicard {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
  }
  .minicard__media {
    width: 46px; height: 46px;
    border-radius: 8px;
    background: var(--paper);
    overflow: hidden;
    display: grid; place-items: center;
  }
  .minicard__media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
  .minicard__name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
  .minicard__code { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
  .minicard__btns { display: flex; gap: 6px; }
  .minicard__btn {
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text-2);
  }
  .minicard__btn:hover { background: var(--lime); border-color: var(--lime); color: var(--ink-950); }

  .assistant__chips { display: flex; flex-wrap: wrap; gap: 7px; }
  .assistant__chips .chip { min-height: 32px; font-size: 12px; padding: .25em .8em; }

  .assistant__form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
    flex: none;
  }
  .assistant__form input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding-inline: 1em;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    outline: none;
    font-size: var(--fs-small);
  }
  .assistant__form input:focus { border-color: var(--lime); }
  .assistant__send {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink-950);
  }
  .assistant__send:disabled { opacity: .4; }

  .typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
  .typing i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-3);
    animation: typing 1.2s infinite;
  }
  .typing i:nth-child(2) { animation-delay: .18s; }
  .typing i:nth-child(3) { animation-delay: .36s; }
  @keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

  /* =========================================================== 404 */
  /* The only page whose single section is also its hero. It keeps a tall
     centred block, but sets no padding of its own - the gap to the footer is
     --section-gap like everywhere else. */
  .e404 {
    min-height: 62svh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: 0;
  }
  .e404__code {
    font-family: var(--font-mono);
    font-size: clamp(4rem, 16vw, 11rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--lime);
    letter-spacing: .04em;
  }

  /* ==================================================================
     PASS 2 - unified photographic art direction.
     The hero/banner photos and the legacy shots that sit on dark sections
     are graded to one look: slightly desaturated with green-tinted shadows,
     applied as an overlay layer rather than a filter so the browser can still
     composite the image cheaply. Product photos on paper stay neutral - they
     are documentation, not atmosphere.
     ================================================================== */
  /* NB: do NOT set position here. .hero__slide is already `absolute; inset:0`
     and this block lives in a later layer, so `position:relative` silently won
     the cascade, dropped the inset, and the mobile photo collapsed to its
     content height - the same class of bug as the pass-1 <picture> defect. */
  /* .banner reuses .hero__slide, so it is already covered. The CTA band puts
     its <picture> directly in the container - there is no media wrapper. */
  .cta-band { position: relative; }
  .hero__slide::after,
  .cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* A plain translucent wash, NOT mix-blend-mode, and no filter on the image.
       Both of those force the compositor to rasterise and blend the largest
       image on the page before it can be presented; measured against the
       pass-1 build they cost ~2.5 s of LCP on hero and banner pages, which is
       far more than a slightly richer grade is worth. The colours below are
       chosen to land close to what soft-light produced. */
    background: linear-gradient(180deg, rgba(24, 48, 30, .16), rgba(10, 20, 13, .26));
    z-index: 1;
  }
  /* the knockout reads the raw photo, so the grade must not double up there */
  .hero__titles { z-index: 3; }

  @media (prefers-contrast: more) {
    .hero__slide::after, .cta-band::before { display: none; }
  }

  /* sheets: contain the scroll chain and give the drag a handle */
  .sheet, .sheet__body, [data-sheet-scroll] { overscroll-behavior: contain; }
  .sheet { touch-action: pan-y; }
}
