.header {
  --header-theme-transition: 240ms cubic-bezier(.38, 0, .24, 1);
}
.header .nav {
  transition: background-color var(--header-theme-transition), border-color var(--header-theme-transition);
}
.header .nav .brand img {
  transition: filter var(--header-theme-transition);
}
.header .nav :is(.nav-trigger, .nav-links > a, .nav-actions > a:not(.button), .mobile-toggle) {
  transition: color var(--header-theme-transition), background-color var(--header-theme-transition),
    border-color var(--header-theme-transition);
}
.header:not(.is-scrolled) .nav {
  background-color: transparent;
  border-color: transparent;
}
.header:not(.is-scrolled) .nav .brand img {
  filter: brightness(0) invert(1);
}
.header:not(.is-scrolled) .nav :is(.nav-trigger, .nav-links > a, .nav-actions > a:not(.button), .mobile-toggle) {
  color: #fff;
}
.header:not(.is-scrolled) .mobile-toggle {
  background: #ffffff12;
  border-color: #ffffff40;
}
.header:not(.is-scrolled) .nav :is(.nav-trigger, .nav-links > a, .nav-actions > a:not(.button), .mobile-toggle):is(:hover, :focus-visible),
.header:not(.is-scrolled) .nav-trigger[aria-expanded="true"] {
  color: #fff;
  background-color: #ffffff20;
}
@media (prefers-reduced-motion: reduce) {
  .header { --header-theme-transition: 0ms; }
}

.optic-hero .hero-world {
  background: #05070b;
}
.optic-hero[data-static-rings] .hero-world {
  background: radial-gradient(ellipse at 78% 18%, #476985, #2b4a65 75%);
}
.optic-hero[data-static-rings] .hero-art { opacity: .24; }
.optic-hero[data-static-rings] .hero-world::after {
  background:
    url('/vitrine/product-assets/bento-grain.png'),
    linear-gradient(to top, #27445f 0%, transparent 70%);
}
.masthead.optic-hero:not([data-static-rings]) { padding-bottom: clamp(106px, 12vh, 142px); }
.hero-scroll:has(> .optic-hero:not([data-static-rings], .hero-landing))::after {
  content: ''; display: block;
  height: clamp(155px, 20vw, 285px);
  background: linear-gradient(to bottom, #081525 0%, #132135 17%, #39495e 37%, #78889b 59%, #c8d1db 80%, var(--app-canvas) 100%);
}
.optic-hero .hero-world::after {
  background:
    linear-gradient(0deg, #081525 2%, #081525e8 16%, #08152528 53%, transparent 74%),
    linear-gradient(90deg, #06101dd9, #06101d38 48%, transparent 78%);
}
.optic-hero .hero-art { transform-origin: 72% 34%; }
.optic-hero .optic-stage {
  position: absolute; right: clamp(-20px, 3vw, 58px); top: clamp(57px, 9vh, 100px);
  display: block; width: min(77vw, 1110px); height: auto; aspect-ratio: 1040 / 720;
}
.optic-static .hero-art::before, .optic-static .hero-art::after {
  content: ''; position: absolute; top: 16%; right: 9%; width: min(34vw, 450px); aspect-ratio: 1;
  border: clamp(15px,5vw,65px) solid #006eb6; border-radius: 50%;
}
.optic-static .hero-art::before { right: calc(9% + min(19vw, 250px)); border-color: #243f57; border-right-color: transparent; }
.optic-replay {
  position: absolute; top: 96px; right: max(22px, calc((100% - 1280px) / 2));
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  color: #d2eaff; background: #0b2138cc; border: 1px solid #95c7f050;
  border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px;
}
.optic-replay .icon { width: 15px; height: 15px; }
.optic-replay:hover { background: #1b3753; }
.optic-replay[hidden] { display: none; }
.motion { --optic-fade-easing: cubic-bezier(.38, 0, .24, 1); }
.motion:has(.optic-hero:not([data-static-rings])) .nav-links > :is(.nav-trigger, a),
.motion:has(.optic-hero:not([data-static-rings])) .nav-actions > a,
.motion:has(.optic-hero:not([data-static-rings])) .nav > .mobile-toggle {
  --entrance-distance: 1px;
  animation: optic-copy-in 640ms var(--optic-fade-easing) 55ms backwards;
}
.motion:has(.optic-hero:not([data-static-rings])) .nav-actions > a { animation-delay: 95ms; }
.motion .optic-hero:not([data-static-rings]) .hero-inner h1,
.motion .hero-landing .landing-reassurance,
.motion .optic-hero:not([data-static-rings]) .hero-description > p,
.motion .optic-hero:not([data-static-rings]) .hero-description .actions > .button {
  --entrance-distance: 3px;
  animation: optic-copy-in 820ms var(--optic-fade-easing) 110ms backwards;
}
.motion .optic-hero:not([data-static-rings]) .hero-description > p { animation-delay: 240ms; }
.motion .optic-hero:not([data-static-rings]) .hero-description .actions > .button {
  --entrance-distance: 2px;
  animation-duration: 680ms;
  animation-delay: 355ms;
}
.motion .optic-hero:not([data-static-rings]) .hero-description .actions > .button + .button { animation-delay: 425ms; }
.motion .header .mega { animation: optic-menu-in 280ms var(--optic-fade-easing) backwards; }
.motion .header :focus-visible,
.motion .optic-hero:not([data-static-rings]) .hero-description :focus-visible {
  opacity: 1 !important;
  translate: none !important;
}
@keyframes optic-copy-in {
  from { opacity: 0; translate: 0 var(--entrance-distance); }
  to { opacity: 1; translate: none; }
}
@keyframes optic-menu-in {
  from { opacity: 0; translate: 0 -2px; }
  to { opacity: 1; translate: none; }
}
@media (max-width: 760px) {
  .masthead.optic-hero:not([data-static-rings]) { padding-bottom: 95px; }
  .optic-hero .optic-stage { width: 117%; right: -8%; top: clamp(112px, 21vw, 163px); }
  .optic-hero .hero-world::after {
    background: linear-gradient(0deg,#081525 6%,#081525de 33%,#08152540 62%,transparent 85%);
  }
  .optic-replay { top: 77px; right: 19px; }
}

.masthead.tools-masthead { min-height: clamp(430px, 65svh, 620px); padding-block: 120px clamp(50px, 9vw, 105px); }
.tools-masthead .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tools-masthead .hero-inner p { max-width: 48ch; color: #eef8ff; font-size: clamp(16px, 2vw, 20px); }
