/* XI THEORY V26 · A little more life, never more noise. */
@media (prefers-reduced-motion: no-preference) {
  /* The photo moves inside its original frame by just a few pixels. */
  .xi-voice > img,
  .editorial-photo > img,
  .photo-band > img,
  .about-photo > img,
  .human-photo > img {
    transform: translate3d(0,var(--xi-v26-drift,0px),0) scale(1.028);
    transition: transform .17s ease-out, filter .6s ease;
  }
  .xi-voice:hover > img { transform:translate3d(0,var(--xi-v26-drift,0px),0) scale(1.046); }
  .xi-native-panel {animation:xi-v26-menu-enter .34s cubic-bezier(.2,.76,.2,1) both;}
  .xi-native-drawer[open] .xi-native-links a {
    animation:xi-v26-link-enter .36s cubic-bezier(.2,.76,.2,1) both;
  }
  .xi-native-drawer[open] .xi-native-links a:nth-child(2) {animation-delay:35ms;}
  .xi-native-drawer[open] .xi-native-links a:nth-child(3) {animation-delay:65ms;}
  .xi-native-drawer[open] .xi-native-links a:nth-child(4) {animation-delay:95ms;}
  .xi-native-drawer[open] .xi-native-links a:nth-child(5) {animation-delay:125ms;}
  .xi-native-drawer[open] .xi-native-links a:nth-child(6) {animation-delay:155ms;}
  .xi-native-drawer.is-closing .xi-native-panel {
    animation:xi-v26-menu-leave .19s ease-in both!important;
  }
  .btn,.nav-links a,.xi-text-link,.xi-native-links a {
    transition: color .24s ease,opacity .24s ease,background .24s ease,transform .24s cubic-bezier(.2,.76,.2,1);
  }
  .btn:hover,.nav-cta:hover {transform:translateY(-2px);}
  .btn:active,.darkbtn:active {transform:scale(.985);}
  .xi-native-links a:hover {transform:translateX(5px);}
}
@keyframes xi-v26-menu-enter {
  from {opacity:0;transform:translate3d(0,14px,0)}
  to {opacity:1;transform:translate3d(0,0,0)}
}
@keyframes xi-v26-menu-leave {
  from {opacity:1;transform:translate3d(0,0,0)}
  to {opacity:0;transform:translate3d(0,-9px,0)}
}
@keyframes xi-v26-link-enter {
  from {opacity:.25;transform:translate3d(0,9px,0)}
  to {opacity:1;transform:translate3d(0,0,0)}
}
@media(prefers-reduced-motion:reduce){
  .xi-voice > img,.editorial-photo > img,.photo-band > img,
  .about-photo > img,.human-photo > img{transform:none!important}
  .xi-native-drawer.is-closing .xi-native-panel{animation:none!important}
}


/* XI THEORY V34 — short analog-TV RGB signal, text-only, stationary heading box. */
.hero h1,.inner-hero-copy h1{position:relative;isolation:isolate}
@media(prefers-reduced-motion:no-preference){
 .hero h1,.inner-hero-copy h1{
   animation:xi-tv-base .94s cubic-bezier(.19,1,.22,1) both;
 }
 .hero h1.xi-title-signal::before,
 .hero h1.xi-title-signal::after,
 .inner-hero-copy h1.xi-title-signal::before,
 .inner-hero-copy h1.xi-title-signal::after{
   content:attr(data-xi-echo);
   position:absolute;inset:0;display:block;
   pointer-events:none;z-index:1;
   font:inherit;font-weight:inherit;letter-spacing:inherit;
   line-height:inherit;white-space:pre-line;
   opacity:0;
   will-change:opacity,transform,clip-path;
 }
 .hero h1.xi-title-signal::before,
 .inner-hero-copy h1.xi-title-signal::before{
   color:#26c9ea;
   text-shadow:1px 0 #2a81f5;
   animation:xi-tv-cyan .94s steps(1,end) both;
 }
 .hero h1.xi-title-signal::after,
 .inner-hero-copy h1.xi-title-signal::after{
   color:#fb4260;
   text-shadow:-1px 0 #ff733e;
   animation:xi-tv-red .94s steps(1,end) both;
 }
 @keyframes xi-tv-base{
   0%{opacity:.28}
   16%{opacity:.80}
   29%{opacity:.92}
   50%{opacity:.97}
   67%,100%{opacity:1}
 }
 @keyframes xi-tv-cyan{
   0%,9%{opacity:0;transform:none;clip-path:inset(0 0 100% 0)}
   10%,19%{opacity:.84;transform:translate3d(-11px,0,0);clip-path:inset(7% 0 67% 0)}
   20%,28%{opacity:.62;transform:translate3d(5px,0,0);clip-path:inset(41% 0 38% 0)}
   29%,39%{opacity:.75;transform:translate3d(-7px,0,0);clip-path:inset(21% 0 56% 0)}
   40%,51%{opacity:.44;transform:translate3d(-3px,0,0);clip-path:inset(68% 0 17% 0)}
   52%,62%{opacity:.22;transform:translate3d(-1px,0,0);clip-path:inset(0 0 87% 0)}
   63%,100%{opacity:0;transform:none;clip-path:inset(0 0 100% 0)}
 }
 @keyframes xi-tv-red{
   0%,13%{opacity:0;transform:none;clip-path:inset(0 0 100% 0)}
   14%,24%{opacity:.84;transform:translate3d(12px,0,0);clip-path:inset(59% 0 18% 0)}
   25%,34%{opacity:.65;transform:translate3d(-6px,0,0);clip-path:inset(30% 0 51% 0)}
   35%,45%{opacity:.70;transform:translate3d(8px,0,0);clip-path:inset(78% 0 8% 0)}
   46%,56%{opacity:.48;transform:translate3d(4px,0,0);clip-path:inset(10% 0 74% 0)}
   57%,67%{opacity:.20;transform:translate3d(1px,0,0);clip-path:inset(50% 0 37% 0)}
   68%,100%{opacity:0;transform:none;clip-path:inset(0 0 100% 0)}
 }
}
@media(prefers-reduced-motion:reduce){
 .hero h1,.inner-hero-copy h1{animation:none!important;opacity:1!important}
 .hero h1.xi-title-signal::before,.hero h1.xi-title-signal::after,
 .inner-hero-copy h1.xi-title-signal::before,.inner-hero-copy h1.xi-title-signal::after{
   content:none!important;animation:none!important
 }
}

/* XI THEORY V28 — independent cinematic home-photo reveal.
   Glitch selectors above apply only to headings; no image uses them. */
@media (prefers-reduced-motion:no-preference){
 .hero .hero-media img{
   animation:xiHeroArrival 2.2s cubic-bezier(.2,.74,.25,1) both;
 }
}
@media (prefers-reduced-motion:reduce){
 .hero .hero-media img{animation:none!important;transform:none!important}
}

/* XI THEORY V30 — remove the artificial mobile cover seam.
   The photo starts underneath a transparent navigation gradient; no 38px strip. */
body .nav,body .nav.scrolled{
  border-bottom:0!important;
  box-shadow:none!important;
}
@media(max-width:980px){
  body .hero .hero-media img{
    margin-top:0!important;
    height:100%!important;
    object-position:50% 24%!important;
  }
  .xi-native-drawer[open] summary{
    top:max(2.5px,env(safe-area-inset-top))!important;
    right:22px!important;
  }
}
/* V30: animate the actual native mobile drawer, not the unused legacy menu. */
@media(prefers-reduced-motion:no-preference){
  .xi-native-drawer[open] .xi-native-panel{
    animation:xi-v30-drawer-in .4s cubic-bezier(.22,.8,.2,1) both!important;
  }
  .xi-native-drawer.is-closing .xi-native-panel{
    animation:xi-v30-drawer-out .26s cubic-bezier(.42,0,.6,1) both!important;
    pointer-events:none!important;
  }
  .xi-native-drawer[open]:not(.is-closing) .xi-native-links a{
    animation:xi-v30-link-in .44s cubic-bezier(.18,.78,.22,1) both!important;
  }
  .xi-native-drawer[open] .xi-native-links a:nth-child(2){animation-delay:35ms!important}
  .xi-native-drawer[open] .xi-native-links a:nth-child(3){animation-delay:70ms!important}
  .xi-native-drawer[open] .xi-native-links a:nth-child(4){animation-delay:105ms!important}
  .xi-native-drawer[open] .xi-native-links a:nth-child(5){animation-delay:140ms!important}
  .xi-native-drawer[open] .xi-native-links a:nth-child(6){animation-delay:175ms!important}
}
@keyframes xi-v30-drawer-in{
  from{opacity:0;transform:translate3d(0,8px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes xi-v30-drawer-out{
  from{opacity:1;transform:translate3d(0,0,0)}
  to{opacity:0;transform:translate3d(0,-6px,0)}
}
@keyframes xi-v30-link-in{
  from{opacity:0;transform:translate3d(0,10px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@media(prefers-reduced-motion:reduce){
  .xi-native-drawer[open] .xi-native-panel,
  .xi-native-drawer.is-closing .xi-native-panel,
  .xi-native-drawer[open] .xi-native-links a{animation:none!important;transition:none!important}
}

/* XI THEORY V35 — desktop-only layout balance.
   Keep the approved mobile layout and homepage hero completely unchanged. */
@media (min-width:981px){
  .inner-hero{
    min-height:0;
    height:clamp(690px,82svh,830px);
    grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);
    align-items:stretch;
  }
  .inner-hero-copy{
    min-height:0;
    justify-content:center;
    padding:112px clamp(36px,4.5vw,82px) 72px max(38px,calc((100vw - var(--max))/2 + 38px));
  }
  .inner-hero-copy .inner-label{margin-bottom:24px}
  .inner-hero h1{
    font-size:clamp(60px,5.9vw,102px);
    line-height:.91;
    letter-spacing:-.068em;
    max-width:660px;
    margin-bottom:26px;
  }
  .inner-hero p{
    font-size:clamp(17px,1.45vw,22px);
    line-height:1.48;
    max-width:600px;
  }
  .inner-hero-picture{
    position:relative;
    min-height:0;
    height:100%;
  }
  .inner-hero-picture img{
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 43%;
  }
}
@media (min-width:981px) and (max-width:1180px){
  .inner-hero{height:clamp(660px,84svh,740px)}
  .inner-hero-copy{padding:105px 38px 55px 38px}
  .inner-hero h1{font-size:clamp(58px,5.7vw,72px)}
}
