/* SKAY V37 — mobile navigation, vector icons and performance pass */
:root{--v37-ease:cubic-bezier(.16,1,.3,1)}

/* ---------- vector UI: never rely on emoji glyphs ---------- */
.ui-icon,.radio-icon{display:block;width:1em;height:1em;flex:0 0 auto;color:currentColor;overflow:visible}
.ui-arrow{width:15px;height:15px}
.ui-spark{width:15px;height:15px}
.wordmark-star{display:inline-grid;place-items:center;width:17px;height:17px;font-size:inherit}
.wordmark-star .ui-spark{width:15px;height:15px}
.pill>span,.head-contact>span,.panel-cta>span,.contact-big>span{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
.scroll-mark>span{display:inline-flex!important;align-items:center;justify-content:center;width:22px;height:22px}
.statement-spark .ui-spark{width:1em;height:1em}
.service-art-center{display:grid!important;place-items:center!important}.service-art-center .ui-spark{width:34%;height:34%}
.rec-dot{display:flex!important;align-items:center;gap:6px}.rec-dot>i{display:block;width:5px;height:5px;border-radius:50%;background:#e89ba3;box-shadow:0 0 9px rgba(232,155,163,.7)}
footer a .ui-icon{display:inline-block;width:12px;height:12px;vertical-align:-2px;margin-left:4px}

/* Radio icons */
.radio button{display:grid;place-items:center;line-height:0}
.radio-icon{width:17px;height:17px}
#playToggle .icon-pause,#muteToggle .icon-muted{display:none}
#playToggle.is-playing .icon-play{display:none}#playToggle.is-playing .icon-pause{display:block}
#muteToggle.is-muted .icon-volume{display:none}#muteToggle.is-muted .icon-muted{display:block}

/* ---------- mobile menu: animated in AND out ---------- */
@media(max-width:750px){
  .topbar nav{
    display:flex!important;visibility:hidden;pointer-events:none;opacity:0;
    transform:translate3d(0,-14px,0) scale(.985);transform-origin:50% 0;
    background:rgba(8,10,14,.94)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(199,211,230,.15)!important;
    box-shadow:0 22px 55px rgba(0,0,0,.28);
    transition:opacity .26s ease,transform .42s var(--v37-ease),visibility 0s linear .42s!important;
  }
  .topbar nav.open{
    visibility:visible;pointer-events:auto;opacity:1;transform:translate3d(0,0,0) scale(1);
    transition:opacity .28s ease,transform .48s var(--v37-ease),visibility 0s!important;
  }
  .topbar nav a{opacity:0;transform:translate3d(0,-10px,0);transition:opacity .22s ease,transform .38s var(--v37-ease),color .3s!important}
  .topbar nav.open a{opacity:1;transform:translate3d(0,0,0)}
  .topbar nav.open a:nth-child(1){transition-delay:.05s}.topbar nav.open a:nth-child(2){transition-delay:.09s}.topbar nav.open a:nth-child(3){transition-delay:.13s}.topbar nav.open a:nth-child(4){transition-delay:.17s}
  .topbar nav:not(.open) a{transition-delay:0s!important}
  .mobile-menu{position:relative;width:44px;height:44px;align-items:center;justify-content:center;gap:0!important}
  .mobile-menu span{position:absolute;width:23px!important;height:1px!important;transition:transform .38s var(--v37-ease),opacity .22s ease!important;transform-origin:center}
  .mobile-menu span:first-child{transform:translateY(-4px)}.mobile-menu span:last-child{transform:translateY(4px)}
  .mobile-menu.is-open span:first-child{transform:rotate(45deg)}.mobile-menu.is-open span:last-child{transform:rotate(-45deg)}
  html.mobile-nav-open{overscroll-behavior:none}
}

/* ---------- compositor-friendly runtime ---------- */
.progress{width:100%!important;transform:scaleX(0);transform-origin:0 50%;will-change:transform}
.pointer-light{left:0!important;top:0!important;will-change:transform,opacity}

/* Expensive loops only run while their section/state is visible. */
#home:not(.v37-active) .hero-orb,
#home:not(.v37-active) .orb-core,
#home:not(.v37-active) .orb-core::after,
#home:not(.v37-active) .orb-shine,
#home:not(.v37-active) .orb-ring,
#home:not(.v37-active) .hero-logo-layer,
#tarifs:not(.v37-active) .service-art::before,
#tarifs:not(.v37-active) .service-art-wave i,
#contact:not(.v37-active) .contact-beam{animation-play-state:paused!important}

/* Only the current process card animates. Hidden cards no longer consume frames. */
#craft .simple-step[data-morph-state="idle"] .daw-playhead,
#craft .simple-step[data-morph-state="idle"] .recording-wave i,
#craft .simple-step[data-morph-state="idle"] .mix-strip em,
#craft .simple-step[data-morph-state="idle"] .mix-strip i,
#craft .simple-step[data-morph-state="idle"] .master-waveform i,
#craft .simple-step[data-morph-state="idle"] .meter-bars span,
#craft .simple-step[data-morph-state="idle"] .export-status,
#craft .simple-step[data-morph-state="idle"] .export-wave,
#craft .simple-step[data-morph-state="idle"] .export-wave i,
#craft .simple-step[data-morph-state="idle"] .export-progress,
#craft .simple-step[data-morph-state="idle"] .export-progress span,
#craft .simple-step[data-morph-state="idle"] .export-progress b,
#craft .simple-step[data-morph-state="idle"] .export-file,
#craft .simple-step[data-morph-state="idle"] .export-cover-wrap{animation-play-state:paused!important}

/* Isolate repaint-heavy illustrations. */
.hero-orb,.hero-logo-layer,.simple-step-art,.service-art,.price-panel{contain:paint}
.simple-step-art,.service-art{transform:translateZ(0);backface-visibility:hidden}

/* Backdrop filters are attractive but expensive. Keep the look with a cheaper blur. */
.topbar.scrolled{backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important}
.radio{backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important}

/* Don't spend GPU on effects that are invisible/useless on touch and smaller screens. */
@media(max-width:1100px),(pointer:coarse){
  .pointer-light{display:none!important}
  .ambient{display:none!important}
  .grain{opacity:.05!important}
  .service-art::before{animation:none!important;transform:rotate(18deg)}
}
@media(max-width:750px){
  .topbar.scrolled{backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
  .radio{backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important}
}

/* When browser/tab is backgrounded, stop every decorative loop. */
html.v37-paused *{animation-play-state:paused!important}

/* ---------- smoother chapter motion: same language, cheaper composition ---------- */
.statement.chapter-entering,.prices.chapter-entering,.journey.chapter-entering,.contact.chapter-entering,.hero.chapter-entering{animation:none!important}
@keyframes skayChapterIn{
  0%{opacity:.28;transform:translate3d(0,calc(var(--chapter-dir,1)*38px),0) scale(.975);filter:blur(8px) brightness(.94)}
  52%{opacity:.86;transform:translate3d(0,calc(var(--chapter-dir,1)*8px),0) scale(.996);filter:blur(2px) brightness(.99)}
  100%{opacity:1;transform:none;filter:none}
}
@keyframes skayChapterOut{
  0%{opacity:1;transform:none;filter:none}
  100%{opacity:.66;transform:translate3d(0,calc(var(--chapter-dir,1)*-18px),0) scale(.988);filter:blur(4px) brightness(.94)}
}
@keyframes v34TitleIn{
  0%{opacity:.12;transform:translate3d(0,24px,0) scale(.94);filter:blur(10px) brightness(.92)}
  48%{opacity:.78;transform:translate3d(0,6px,0) scale(.987);filter:blur(2px) brightness(.99)}
  100%{opacity:1;transform:none;filter:none}
}
@keyframes v34TitleOut{
  0%{opacity:1;transform:none;filter:none}
  100%{opacity:.1;transform:translate3d(0,-18px,0) scale(.94);filter:blur(8px) brightness(.92)}
}
@keyframes v34CopyIn{from{opacity:0;transform:translate3d(0,14px,0);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@keyframes v34CopyOut{from{opacity:1;transform:none;filter:none}to{opacity:0;transform:translate3d(0,-9px,0);filter:blur(4px)}}
@media(max-width:750px){html.mobile-nav-open body{overflow:hidden}}
