
/* SUB/RBN / Kinetic Editorial v1.1.9.5 — compositor-friendly mobile panel entrances.
   Homepage only. Native scroll; no CDN, external fonts or forced scrolling.
   All essential content is visible with JavaScript off. */

.manifesto .manifesto-line { display:block; }
/* The anchor never receives a transform, letting us measure the true viewport edge. */
.manifesto .nocto-anchor { width:clamp(100px,14vw,220px); flex:0 0 auto; position:relative; }
.manifesto .nocto-stage { width:100%; }
/* Hide offscreen elements without creating a horizontal scrollbar. */
.manifesto { overflow-x:clip; }
.footer { overflow:hidden; }
.footer-signature-block { width:min(1150px,95%); max-width:100%; }
.footer-signature { position:relative; width:100%; aspect-ratio:1159/269; }
.footer-signature img { width:100%; height:auto; display:block; }
.footer-signature-static { position:relative; }
.footer-signature .footer-piece { display:none; position:absolute; top:0; left:0; pointer-events:none; }
.footer-signature .footer-piece--sub { clip-path:inset(0 56.8% 0 0); }
.footer-signature .footer-piece--rbn { clip-path:inset(0 0 0 55.9%); }
.footer-signature .footer-piece--slash { clip-path:inset(0 44.5% 0 44.5%); }
@media(max-width:800px) { .manifesto .nocto-anchor { width:100px; } }


@media (prefers-reduced-motion: no-preference) {
  body.subrbn-kinetic .hero-copy {
    animation: subrbn-hero-arrive .95s cubic-bezier(.2,.8,.2,1) both;
  }
  body.subrbn-kinetic .hero-visual {
    animation: subrbn-slash-arrive 1.2s cubic-bezier(.16,1,.3,1) both;
  }
  @keyframes subrbn-hero-arrive {
    from { opacity:0; transform:translate3d(0,34px,0); }
    to { opacity:1; transform:translate3d(0,0,0); }
  }
  @keyframes subrbn-slash-arrive {
    from { opacity:0; transform:translate3d(40px,-25px,0); }
    to { opacity:1; transform:translate3d(0,0,0); }
  }

  /* The original slash passes BEHIND the hero typography (never over navigation).
     Scroll drives its large diagonal sweep, pointer adds up to 26px of parallax. */
  body.subrbn-kinetic .hero-visual { z-index:1; }
  body.subrbn-kinetic .hero-copy { z-index:2; }
  body.subrbn-kinetic .hero h1 span:first-child {
    transform:translate3d(var(--hero-first-x,0px),var(--hero-first-y,0px),0);
    opacity:var(--hero-first-opacity,1);
  }
  body.subrbn-kinetic .hero h1 span:last-child {
    transform:translate3d(var(--hero-second-x,0px),var(--hero-second-y,0px),0);
    opacity:var(--hero-second-opacity,1);
  }
  body.subrbn-kinetic .hero-visual img {
    transform:translate3d(calc(var(--hero-slash-x,-7%) + var(--slash-pointer-x,0px)),
                          calc(var(--hero-slash-y,0px) + var(--slash-pointer-y,0px)),0)
              rotate(calc(var(--hero-slash-rotation,0deg) + var(--slash-pointer-rotation,0deg)))
              scale(var(--hero-slash-scale,1));
    opacity:var(--hero-slash-opacity,1);
    transform-origin:center center;
    will-change:transform;
  }
  body.subrbn-kinetic .hero .tagline {
    transform:translate3d(0,var(--hero-tagline-y,0px),0);
    opacity:var(--hero-tagline-opacity,1);
  }
  body.subrbn-kinetic .hero-bottom { opacity:var(--hero-bottom-opacity,1); }

  /* Directional wipe, with unchanged desktop column proportions. */
  @media (min-width:801px) {
    body.subrbn-kinetic .division--studio {
      clip-path:inset(0 0 0 var(--studio-mask,0%));
    }
    body.subrbn-kinetic .division--studio .division-heading {
      transform:translate3d(var(--studio-title-x,0px),0,0);
    }
  }

  body.subrbn-kinetic .service-entry.subrbn-awaiting {
    opacity:0;
    transform:translate3d(0,25px,0);
    transition:opacity .75s cubic-bezier(.2,.75,.2,1),transform .75s cubic-bezier(.2,.75,.2,1);
    transition-delay:var(--entry-delay,0ms);
  }
  body.subrbn-kinetic .service-entry.subrbn-awaiting.is-visible {
    opacity:1;
    transform:translate3d(0,0,0);
  }
  body.subrbn-kinetic .service-entry .service-arrow {
    transition:transform .25s ease,opacity .25s ease;
  }
  @media (hover:hover) and (pointer:fine) {
    body.subrbn-kinetic .service-entry:hover .service-arrow,
    body.subrbn-kinetic .service-entry:focus-within .service-arrow {
      transform:translate3d(5px,-5px,0);
      opacity:1;
    }
  }

  body.subrbn-kinetic .manifesto-line {
    transform:translate3d(var(--line-x,0px),var(--line-y,0px),0);
    opacity:var(--line-opacity,1);
  }

  /* Entire Nocto PNG moves through a staggered arc and jumps under scroll.
     The image is unedited: no layered face, arm or frame substitution. */
  .manifesto .nocto-stage {
    transform-origin:65% 95%;
  }
  .manifesto .nocto-stage .nocto {
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
  }
  body.subrbn-kinetic .manifesto .nocto-stage {
    transform:translate3d(var(--nocto-x,0px),var(--nocto-y,0px),0)
              rotate(var(--nocto-rotation,0deg))
              scale(var(--nocto-scale,1));
    opacity:var(--nocto-opacity,1);
    will-change:transform;
  }
  @media (hover:hover) and (pointer:fine) {
    body.subrbn-kinetic .manifesto .nocto-stage:hover .nocto {
      animation: subrbn-nocto-greet .8s cubic-bezier(.22,.7,.22,1) both;
    }
    @keyframes subrbn-nocto-greet {
      0%,100% { transform:translateY(0) rotate(0deg); }
      28% { transform:translateY(-24px) rotate(-9deg); }
      57% { transform:translateY(-11px) rotate(7deg); }
      76% { transform:translateY(-19px) rotate(-4deg); }
    }
  }

  /* Closing signature (~1.45s): scroll triggers, CSS animates.
     The original wordmark PNG and its precise cutouts remain untouched.
     SUB and RBN travel in opposite directions, slash joins last. */
  body.subrbn-kinetic .footer-signature-static { visibility:hidden; }
  body.subrbn-kinetic .footer-signature .footer-piece {
    display:block;
    backface-visibility:hidden;
  }
  body.subrbn-kinetic .footer-piece--sub {
    transform:translate3d(-110vw,0,0);
  }
  body.subrbn-kinetic .footer-piece--rbn {
    transform:translate3d(110vw,0,0);
  }
  body.subrbn-kinetic .footer-piece--slash {
    transform:translate3d(0,-90px,0) rotate(-13deg) scale(.7);
    opacity:0;
  }
  body.subrbn-kinetic .footer-signature.is-composing .footer-piece--sub {
    animation:subrbn-logo-from-left 1.3s cubic-bezier(.22,.65,.26,1) both;
  }
  body.subrbn-kinetic .footer-signature.is-composing .footer-piece--rbn {
    animation:subrbn-logo-from-right 1.3s cubic-bezier(.22,.65,.26,1) both;
  }
  body.subrbn-kinetic .footer-signature.is-composing .footer-piece--slash {
    animation:subrbn-logo-slash .55s cubic-bezier(.22,.72,.28,1) .9s both;
  }
  @keyframes subrbn-logo-from-left {
    from {transform:translate3d(-110vw,0,0);}
    to {transform:translate3d(0,0,0);}
  }
  @keyframes subrbn-logo-from-right {
    from {transform:translate3d(110vw,0,0);}
    to {transform:translate3d(0,0,0);}
  }
  @keyframes subrbn-logo-slash {
    from {transform:translate3d(0,-90px,0) rotate(-13deg) scale(.7);opacity:0;}
    to {transform:translate3d(0,0,0) rotate(0deg) scale(1);opacity:1;}
  }
  @media (max-width:600px) {
    /* Smartphone: entire panels enter from opposite edges in scroll sequence. */
    body.subrbn-kinetic .main-division { overflow-x:clip; }
    body.subrbn-kinetic .division--lab,
    body.subrbn-kinetic .division--studio {
      transform:translate3d(var(--mobile-division-x,0px),0,0);
      will-change:transform;
    }
    body.subrbn-kinetic .division--lab { --mobile-division-x:-110vw; }
    body.subrbn-kinetic .division--studio {
      --mobile-division-x:110vw;
      clip-path:none;
    }
  }
  @media (max-width:800px) {
    body.subrbn-kinetic .division--studio { clip-path:none; }
    .manifesto .nocto-anchor { width:100px; }
  }
}

/* Safari 26+, Chromium 115+: CSS owns the two smartphone panel motions.
   Unlike per-scroll JS style writes, modern Safari can run these timelines on
   the compositor thread. `view()` uses layout geometry (not transformed pixels).
   Browsers without view timelines keep the JavaScript fallback above. */
@supports (animation-timeline: view()) {
  @media (max-width:600px) and (prefers-reduced-motion:no-preference) {
    @keyframes subrbn-lab-arrive {
      from { transform:translate3d(-110vw,0,0); }
      to { transform:translate3d(0,0,0); }
    }
    @keyframes subrbn-studio-arrive {
      from { transform:translate3d(110vw,0,0); }
      to { transform:translate3d(0,0,0); }
    }
    body.subrbn-kinetic .division--lab,
    body.subrbn-kinetic .division--studio {
      animation-duration:1s;
      animation-timing-function:linear;
      animation-fill-mode:both;
      animation-timeline:view(block);
      animation-range:entry 0% entry 75%;
    }
    body.subrbn-kinetic .division--lab { animation-name:subrbn-lab-arrive; }
    body.subrbn-kinetic .division--studio { animation-name:subrbn-studio-arrive; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,.hero-visual,.hero-visual img,.hero h1 span,.tagline,
  .division,.service-entry,.manifesto-line,.manifesto .nocto,
  .manifesto .nocto-stage {
    animation:none !important;
    transform:none !important;
    transition:none !important;
    opacity:1 !important;
    clip-path:none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-signature .footer-piece { display:none !important; }
  .footer-signature-static { visibility:visible !important; }
}

