.axiophys-logo{filter:url(#axiophys-on-dark)}
:root{
  --story-inset:calc(var(--nav-h) + env(safe-area-inset-top));
}
.nav__logo{flex:none;scale:1.1}
.nav__in{position:relative}
.nav__inception{
  position:absolute;
  inset-block-start:50%;
  inset-inline-start:50%;
  translate:-50% -50%;
  scale:.9;
  display:grid;
  justify-items:center;
  gap:3px;
  width:clamp(126px,calc(14vw - 40px),184px);
  padding:5px 8px;
  pointer-events:none;
}
.nav__inception img{display:block;width:100%;height:auto}
.nav__inception span{
  color:#fff;
  font:500 clamp(9px,.78vw,12px)/1.1 var(--font-sans);
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
@media(min-width:1080px) and (max-width:1160px){
  .nav__in{gap:8px}
}
.nav__sub{color:#fff;width:var(--sub-w);flex:none}

/* Keep manual video playback above the hero copy. */
.hero .hero__manual{
  inset:calc(var(--story-inset) + 14px) var(--gutter) auto auto;
  transform:none;
  flex-direction:row;
  gap:10px;
}
.hero .hero__manual button{width:44px;height:44px}
.hero__rail-links{display:flex;align-items:center;gap:clamp(18px,2.4vw,36px);margin-left:auto}
.hero__rail-links a{display:inline-flex;align-items:center;gap:8px;min-height:44px;white-space:nowrap;color:#d9edfa;font:500 clamp(.9rem,1vw,1.05rem)/1.3 var(--font-sans);border-bottom:1px solid rgba(131,216,255,.46);transition:color var(--t-fast),border-color var(--t-fast)}
.hero__rail-links a:hover,.hero__rail-links a:focus-visible{color:#83d8ff;border-color:#83d8ff}
.hero__rail-links a span{font-size:.9em;color:#83d8ff}
@media(min-width:901px) and (max-width:1150px){.hero__rail .scroll-cue{display:none}}
@media(max-width:900px){.hero__rail-links{order:-1;width:100%;justify-content:center;margin-left:0}.hero__rail .scroll-cue{margin-inline:auto}}

.story-section{
  display:grid;
  align-items:center;
  min-block-size:calc(100svh - var(--story-inset));
  padding-block:clamp(30px,5svh,64px);
}
.story-section.contact{align-content:center}
.story-layout{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(24px,6vw,115px);
}
.story-visual,.story-copy{min-width:0}
#about .story-layout{grid-template-areas:"visual copy"}
#about .about__fig{grid-area:visual}
#about .story-copy{grid-area:copy}
.story-label{
  font-size:clamp(1rem,1.5vw,1.375rem);
  margin-bottom:clamp(8px,1.8svh,18px);
  color:var(--env-accent);
}
.story-copy h2{max-width:18ch}
.story-copy .t-lede{margin-top:clamp(12px,2.5svh,30px)}
.story-copy .t-small{margin-top:12px}
.story-copy .btn{margin-top:24px;min-height:48px}
.story-copy .layer__line{
  display:grid;
  justify-items:start;
  text-align:left;
  margin:clamp(14px,3svh,30px) 0 0;
  padding-top:14px;
  border-top:1px solid var(--env-line-strong);
  gap:6px;
  max-width:45ch;
}
.story-copy .layer__line .t-small{margin:0;min-block-size:3.15em}
.story-layout .about__stage{width:min(100%,clamp(174px,48svh,525px))}
.story-layout .about__view{min-height:44px}
.story-product-visual{
  border:1px solid var(--env-line-strong);
  border-radius:var(--r-3);
  background:var(--env-wash),var(--env-surface);
  padding:clamp(14px,3vw,34px);
}
.story-product-visual img{width:min(68%,325px);height:auto}
.story-product-visual canvas{width:100%;height:clamp(170px,33svh,340px)}
.story-product-visual figcaption{color:var(--env-text-3)}
.story-section.contact{
  min-block-size:0;
  padding-block:clamp(46px,9svh,110px);
}
#access .story-layout{
  grid-template-columns:minmax(0,1.24fr) minmax(0,1fr);
  grid-template-areas:"system copy";
  gap:clamp(36px,6vw,104px);
}
#access .story-copy{grid-area:copy}
#access h2 .grad{white-space:nowrap}
.story-contact-visual{
  position:relative;
  isolation:isolate;
  grid-area:system;
  aspect-ratio:1.56;
  width:100%;
  overflow:hidden;
  border:1px solid rgba(23,71,108,.6);
  border-radius:clamp(8px,1.1vw,18px);
  background:radial-gradient(ellipse at center,#123251,#060f20 70%);
  box-shadow:0 19px 45px -30px rgba(8,35,63,.55);
}
.contact-mark{
  position:absolute;
  top:50%;
  left:50%;
  width:min(66%,380px);
  height:auto;
  translate:-50% -50%;
}
.story-section .contact__mail{max-width:100%;overflow-wrap:anywhere}
.foot__logo{max-width:220px;height:auto}

/* The document owns scrolling. A chapter holds only when the whole scene fits. */
.story-active body{overflow-x:clip}
.story-track{
  --story-top:var(--story-inset);
  --story-runway:clamp(100px,18svh,185px);
}
.story-track--pinned{min-block-size:calc(var(--story-height) + var(--story-runway))}
.story-track--pinned>[data-story]{position:sticky;top:var(--story-top)}
.story-active [data-story-copy="lead"]{opacity:var(--story-lead,1)}
.story-active [data-story-copy="detail"]{opacity:var(--story-detail,1)}
.story-active [data-story-copy]:focus-within{opacity:1}
.story-active [data-story]:not(.story-detail-ready) [data-story-copy="detail"] a:not(:focus){
  pointer-events:none;
}

@media(max-width:999px){
  .story-layout{gap:clamp(20px,5vw,52px)}
  .story-layout .orbit{height:clamp(280px,48svh,440px)}
}
@media(max-height:520px){
  .story-layout .orbit{height:auto}
}
@media(max-height:540px) and (max-width:960px){
  :root{--nav-h:62px}
}
@media(max-width:719px){
  :root{--logo-w:clamp(140px,39vw,180px)}
  /* Both marks share one row; the menu keeps its full touch target. */
  .nav__in{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;
    gap:clamp(8px,2vw,14px);
  }
  .nav__brand{min-width:0;min-height:44px;gap:0;padding-block:0}
  .nav__logo{width:100%;max-width:var(--logo-w);min-width:0;flex:0 1 auto}
  .nav__inception{
    position:static;
    inset:auto;
    translate:none;
    width:100%;
    max-width:132px;
    min-width:0;
    padding:0;
    gap:clamp(1px,.5vw,3px);
    justify-self:center;
  }
  .nav__inception span{font-size:clamp(6px,2vw,10px);letter-spacing:.06em}
  .nav__act{grid-column:3;justify-self:end;margin-inline-start:0}
  .hero .hero__ui{padding-top:calc(var(--story-inset) + 30px);padding-bottom:12px}
  .hero .t-lede{font-size:16px;line-height:1.6;max-width:36ch}
  .hero .t-hero{font-size:clamp(31px,8.6vw,54px)}
  .story-section{padding-block:22px}
  .story-layout{grid-template-columns:minmax(0,1fr);gap:18px}
  .story-copy h2{font-size:clamp(27px,7.7vw,42px)}
  .story-copy .t-lede{font-size:16px;line-height:1.55;margin-top:12px}
  .story-copy .t-small{font-size:14px}
  .story-copy .btn,.story-section .contact__mail{margin-top:14px}
  .story-section .contact__mail{font-size:clamp(18px,5.7vw,29px)}
  .story-layout .about__cap{margin-top:4px}
  .story-layout .orbit{height:auto;gap:6px}
  .story-layout .orbit__canvas{height:clamp(155px,27svh,260px);min-height:0}
  .story-product-visual canvas{height:clamp(135px,25svh,245px)}
  #access .story-layout{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"copy" "system";
    gap:26px;
  }
  .story-track{--story-runway:clamp(76px,13svh,125px)}
  .menu{overflow-y:auto}
  .menu a{min-height:48px}
}
@media(max-width:719px) and (max-height:690px){
  .story-section{padding-block:16px}
  .story-layout{gap:14px}
  .story-layout .orbit__canvas{height:clamp(135px,24svh,175px)}
  .story-product-visual canvas{height:clamp(122px,22svh,152px)}
}
@media(max-width:719px),(max-width:960px) and (max-height:540px){
  /* Give both plots a full phone-width frame, even on a short screen.
     The chapter automatically uses normal flow when its contents needs more room. */
  #about .story-layout{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"copy" "visual";
    gap:clamp(24px,6vw,42px);
  }
  @media(prefers-reduced-motion:no-preference){
    .story-active #about .about__fig{opacity:var(--about-visual-opacity,1)}
    .story-active #about .about__fig:focus-within{opacity:1}
  }
  .story-layout .about__stage{
    width:min(100%,460px);
    aspect-ratio:1 / 1.2;
  }
  .story-layout .about__views{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:min(100%,460px);
    margin-inline:auto;
  }
  .story-layout .about__view{
    justify-content:center;
    padding-inline:8px;
  }
  .story-layout .about__cap{
    min-height:2lh;
    text-wrap:balance;
  }
}

@media(prefers-reduced-motion:reduce){
  .story-track--pinned{min-block-size:0}
  .story-track--pinned>[data-story]{position:relative;top:auto}
  .story-active [data-story-copy]{opacity:1}
}

#access .contact__channels{margin-top:24px;gap:22px}
#access .contact__channel .contact__mail{font-size:clamp(1rem,1.5vw,1.25rem);min-height:44px}
