:root {
  color-scheme: dark;
  --bg: #050609;
  /* Lets fixed .mi-beams-root / #starfield show through section fills */
  --section-atmosphere-base: rgba(5, 6, 9, 0.46);
  --panel: rgba(12, 16, 22, 0.78);
  --panel-strong: #10151d;
  --text: #f2f5ef;
  --muted: #aab3ad;
  --line: rgba(235, 245, 236, 0.16);
  --green: #5ec2f7;
  --cyan: #8edcff;
  --brand-blue: #2272d1;
  --brand-blue-light: #5ec2f7;
  --brand-gradient: linear-gradient(135deg, #5ec2f7 0%, #2f92e5 48%, #2272d1 100%);
  --brand-glow: rgba(94, 194, 247, 0.5);
  --gold: #f6c76f;
  --red: #ff6b5f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  /* Front page (main#top): section headings & body copy */
  --mi-home-title-size: clamp(1.95rem, 4vw, 3.1rem);
  --mi-home-hero-title-size-mobile: clamp(1.38rem, 3.6vw, 1.62rem);
  --mi-home-title-leading: 1.08;
  --mi-home-subtitle-size: clamp(1.02rem, 1.2vw, 1.16rem);
  --mi-home-subtitle-leading: 1.65;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 767px) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  /* clip avoids killing position:sticky descendants (overflow-x:hidden caused mobile hero black gap) */
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Ensure fixed header doesn't create layout offset gaps on mobile. */
body {
  padding-top: 0;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading main,
body.is-loading .site-header,
body.is-loading .mi-beams-root,
body.is-loading #starfield {
  visibility: hidden;
}

body:has(.mi-video-hero):not(.hero-video-ready) .mi-beams-root,
body:has(.mi-video-hero):not(.hero-video-ready) #starfield {
  visibility: hidden;
}

body.is-loading .page-loader {
  visibility: visible;
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.mi-beams-root {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}

.mi-beams-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(15px);
}

.mi-beams-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.05);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  animation: mi-beams-overlay-pulse 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mi-beams-overlay-pulse {
  0% {
    opacity: 0.05;
  }

  50% {
    opacity: 0.15;
  }

  100% {
    opacity: 0.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mi-beams-root {
    display: none;
  }
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.page-loader {
  --loader-progress: 0;
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  background:
    radial-gradient(circle at 50% 42%, rgba(114, 231, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 50% 58%, rgba(94, 194, 247, 0.1), transparent 18rem),
    #050609;
}

.page-loader[data-mi-loader-active] {
  pointer-events: all;
}

.page-loader__logo {
  position: relative;
  z-index: 3;
  margin-bottom: clamp(22px, 4vh, 40px);
}

.page-loader__logo img {
  display: block;
  width: clamp(156px, 16vw, 235px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(114, 231, 255, 0.18));
}

.page-loader__moon-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(220px, 32vw, 440px);
  aspect-ratio: 1;
  transform: scale(calc(0.9 + var(--loader-progress, 0) * 0.1));
  transition: transform 0.18s ease-out;
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.loader-moon {
  position: relative;
  z-index: 2;
  width: clamp(148px, 21vw, 300px);
  height: auto;
  animation: moon-loader-rotate var(--loader-moon-spin, 7.6s) linear infinite;
  opacity: calc(0.32 + var(--loader-progress, 0) * 0.68);
  clip-path: circle(calc(10% + var(--loader-progress, 0) * 90%) at 50% 50%);
  filter:
    drop-shadow(0 0 24px rgba(242, 245, 239, 0.24))
    drop-shadow(0 0 58px rgba(114, 231, 255, 0.24))
    brightness(calc(0.72 + var(--loader-progress, 0) * 0.42));
  transition:
    opacity 0.18s ease-out,
    clip-path 0.18s ease-out,
    filter 0.18s ease-out;
}

.page-loader__progress {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: min(88vw, 320px);
  margin-top: clamp(12px, 2vh, 24px);
  margin-bottom: 50px;
}

.page-loader__bar {
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(242, 245, 239, 0.12);
}

.page-loader__bar > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(var(--loader-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(94, 194, 247, 0.85), rgba(114, 231, 255, 1));
  box-shadow: 0 0 12px rgba(114, 231, 255, 0.35);
  transition: transform 0.14s ease-out;
  will-change: transform;
}

.page-loader__percent {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(242, 245, 239, 0.78);
  font-variant-numeric: tabular-nums;
}

.loader-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(114, 231, 255, 0.32);
  border-radius: 50%;
  animation: loader-orbit-spin var(--loader-orbit-spin, 5.6s) linear infinite;
}

.loader-orbit::before,
.loader-orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(94, 194, 247, 0.22);
  border-radius: 50%;
  transform: rotate(24deg) scaleX(1.35);
}

.loader-orbit span {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.95),
    0 0 28px rgba(114, 231, 255, 0.7);
}

.page-loader > p {
  position: relative;
  z-index: 3;
  margin: 0 0 clamp(40px, 6vh, 72px);
  color: rgba(242, 245, 239, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header {
  position: fixed;
  top: 22px;
  left: clamp(14px, 3vw, 42px);
  right: clamp(14px, 3vw, 42px);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(16px, 2.5vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035) 42%, rgba(114, 231, 255, 0.06)),
    rgba(8, 12, 18, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(34px) saturate(1.55);
  -webkit-backdrop-filter: blur(34px) saturate(1.55);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.22), transparent 18% 74%, rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%, rgba(94, 194, 247, 0.08));
  clip-path: inherit;
  pointer-events: none;
}

.brand,
.main-nav,
.main-nav__list,
.nav-cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-weight: 600;
}

.brand img {
  display: block;
  width: clamp(156px, 16vw, 235px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(114, 231, 255, 0.18));
}

.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.main-nav__list a {
  color: inherit;
  text-decoration: none;
}

/* Primary nav: shared class for desktop + mobile (same WP menu tree). */
.primary-nav-menu {
  list-style: none;
}

/* Drop header clip while a mega panel is open (JS class + keyboard focus). */
.site-header:has(.main-nav__list > li.menu-item-has-children.is-mega-open),
.site-header:has(.main-nav__list > li.menu-item-has-children:focus-within) {
  clip-path: none !important;
  z-index: 70;
}

.site-header .main-nav__list > li.menu-item-has-children {
  position: static;
}

.site-header .main-nav__list > li.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.site-header .main-nav__list > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-top: 0.12em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
}

/* Top-level mega panel (direct submenu only). Open state = .is-mega-open (set via JS on desktop). */
.site-header .main-nav__list > li.menu-item-has-children > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  box-sizing: border-box;
  margin-top: -16px;
  padding: 28px clamp(18px, 2.5vw, 32px) 26px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12), transparent 38%),
    rgba(8, 12, 18, 0.96);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
  justify-content: center;
  justify-items: stretch;
  gap: 12px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.14s ease,
    visibility 0.14s ease;
}

.site-header .main-nav__list > li.menu-item-has-children.is-mega-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header .main-nav__list > li.menu-item-has-children > .sub-menu > li > a {
  display: block;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.site-header .main-nav__list > li.menu-item-has-children > .sub-menu > li > a:hover,
.site-header .main-nav__list > li.menu-item-has-children > .sub-menu > li > a:focus-visible {
  border-color: rgba(94, 194, 247, 0.45);
  background: rgba(94, 194, 247, 0.1);
  color: var(--text);
}

/* Third level: column flyout inside mega cell. */
.site-header .main-nav__list .sub-menu .sub-menu {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 10px 0 0;
  padding: 10px 0 0;
  list-style: none;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.site-header .main-nav__list .sub-menu li.menu-item-has-children:hover > .sub-menu,
.site-header .main-nav__list .sub-menu li.menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}

.site-header .main-nav__list .sub-menu .sub-menu a {
  padding: 8px 2px 8px 10px;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: left;
}

.site-header .main-nav__list .sub-menu .sub-menu a:hover,
.site-header .main-nav__list .sub-menu .sub-menu a:focus-visible {
  color: var(--text);
}

.main-nav__list a:hover,
.main-nav__list a:focus-visible {
  color: var(--text);
}

.main-nav__list a,
.nav-cta {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--brand-gradient);
  color: #071006;
  box-shadow: 0 0 24px rgba(94, 194, 247, 0.22);
}

.nav-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(94, 194, 247, 0.32);
}

.site-header .brand {
  justify-self: start;
}

.site-header .main-nav {
  justify-self: center;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  justify-self: end;
}

.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: rgba(5, 6, 9, 0.35);
  cursor: pointer;
  color: var(--text);
}

.site-header__menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 1px;
  background: rgba(242, 245, 239, 0.88);
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.site-header__menu-toggle.is-active .site-header__menu-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__menu-toggle.is-active .site-header__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header__menu-toggle.is-active .site-header__menu-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus-visible {
  border-color: rgba(94, 194, 247, 0.45);
  background: rgba(94, 194, 247, 0.1);
}

body.is-mobile-nav-open {
  overflow: hidden;
}

.site-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s step-end;
}

.site-mobile-panel.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s step-start;
}

.site-mobile-panel__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(5, 6, 9, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.site-mobile-panel.is-open .site-mobile-panel__backdrop {
  opacity: 1;
}

.site-mobile-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 400px);
  max-width: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(8, 12, 18, 0.96);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.19, 1, 0.22, 1);
}

.site-mobile-panel.is-open .site-mobile-panel__sheet {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-mobile-panel {
    transition: none;
  }

  .site-mobile-panel__backdrop,
  .site-mobile-panel__sheet {
    transition: none;
  }
}

.site-mobile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-mobile-panel__title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-mobile-panel__close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(5, 6, 9, 0.35);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.site-mobile-panel__close:hover,
.site-mobile-panel__close:focus-visible {
  border-color: rgba(94, 194, 247, 0.45);
}

.site-mobile-panel__nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 24px;
}

.site-mobile-panel__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-mobile-panel__menu > li > a {
  display: block;
  padding: 14px 12px;
  border-radius: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.site-mobile-panel__menu > li > a:hover,
.site-mobile-panel__menu > li > a:focus-visible {
  background: rgba(94, 194, 247, 0.1);
}

.site-mobile-panel__menu .sub-menu {
  margin: 0 0 8px 12px;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.site-mobile-panel__menu .sub-menu a {
  display: block;
  padding: 10px 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
}

.site-mobile-panel__menu.primary-nav-menu > li.menu-item-has-children > a {
  color: var(--text);
  font-weight: 600;
}

.site-mobile-panel__menu.primary-nav-menu .sub-menu .sub-menu {
  margin: 4px 0 6px 10px;
  padding: 4px 0 6px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.site-mobile-panel__menu.primary-nav-menu .sub-menu .sub-menu a {
  font-size: 0.74rem;
  padding-block: 8px;
}

.site-mobile-panel__foot {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-mobile-panel__cta {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--section-atmosphere-base);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--muted);
  line-height: 1.65;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 56px);
}

.site-footer__col--brand {
  max-width: 420px;
}

.site-footer__logo {
  display: inline-block;
  margin-bottom: 18px;
}

.site-footer__logo img {
  display: block;
  width: clamp(160px, 22vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(114, 231, 255, 0.16));
}

.site-footer__about {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.65;
}

.site-footer__about p {
  margin: 0 0 12px;
}

.site-footer__about p:last-child {
  margin-bottom: 0;
}

.site-footer__heading {
  margin: 0 0 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.site-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__menu a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1.45;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
  color: var(--text);
}

.site-footer__menu .sub-menu {
  margin: 8px 0 0 12px;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__menu .sub-menu a {
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

main {
  position: relative;
}

/* Site-wide section backdrop; palette vars shift per section */
main > section {
  --sa-g-1: rgba(114, 231, 255, 0.16);
  --sa-g-2: rgba(94, 194, 247, 0.1);
  --sa-p-1: 18% 28%;
  --sa-p-2: 78% 70%;
  --sa-floor: rgba(114, 231, 255, 0.38);
  --sa-line: rgba(255, 255, 255, 0.045);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--sa-p-1), var(--sa-g-1), transparent 26rem),
    radial-gradient(circle at var(--sa-p-2), var(--sa-g-2), transparent 24rem),
    var(--section-atmosphere-base);
}

main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--sa-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sa-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

main > section::after {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  box-shadow: 0 0 36px var(--sa-floor);
}

main > section:nth-child(6n + 2) {
  --sa-g-1: rgba(142, 220, 255, 0.14);
  --sa-g-2: rgba(34, 114, 209, 0.12);
  --sa-p-1: 10% 40%;
  --sa-p-2: 90% 58%;
  --sa-floor: rgba(94, 194, 247, 0.42);
  --sa-line: rgba(255, 255, 255, 0.04);
}

main > section:nth-child(6n + 3) {
  --sa-g-1: rgba(94, 194, 247, 0.12);
  --sa-g-2: rgba(34, 114, 209, 0.14);
  --sa-p-1: 22% 18%;
  --sa-p-2: 72% 78%;
  --sa-floor: rgba(34, 114, 209, 0.45);
  --sa-line: rgba(255, 255, 255, 0.038);
}

main > section:nth-child(6n + 4) {
  --sa-g-1: rgba(180, 140, 255, 0.12);
  --sa-g-2: rgba(94, 194, 247, 0.1);
  --sa-p-1: 78% 22%;
  --sa-p-2: 14% 72%;
  --sa-floor: rgba(180, 140, 255, 0.36);
  --sa-line: rgba(255, 255, 255, 0.042);
}

main > section:nth-child(6n + 5) {
  --sa-g-1: rgba(246, 199, 111, 0.1);
  --sa-g-2: rgba(94, 194, 247, 0.09);
  --sa-p-1: 50% 12%;
  --sa-p-2: 62% 82%;
  --sa-floor: rgba(246, 199, 111, 0.32);
  --sa-line: rgba(255, 255, 255, 0.04);
}

main > section:nth-child(6n + 6) {
  --sa-g-1: rgba(94, 247, 208, 0.1);
  --sa-g-2: rgba(34, 114, 209, 0.1);
  --sa-p-1: 30% 65%;
  --sa-p-2: 85% 30%;
  --sa-floor: rgba(94, 247, 208, 0.34);
  --sa-line: rgba(255, 255, 255, 0.036);
}

main > section:nth-child(6n + 1):not(.hero):not(.page-hero) {
  --sa-g-1: rgba(114, 231, 255, 0.14);
  --sa-g-2: rgba(94, 194, 247, 0.11);
  --sa-p-1: 16% 32%;
  --sa-p-2: 84% 64%;
  --sa-floor: rgba(114, 231, 255, 0.36);
  --sa-line: rgba(255, 255, 255, 0.044);
}

main > section.hero.hero--sequence {
  --sa-g-1: rgba(114, 231, 255, 0.07);
  --sa-g-2: rgba(34, 114, 209, 0.06);
  --sa-p-1: 50% 18%;
  --sa-p-2: 70% 55%;
  --sa-floor: rgba(114, 231, 255, 0.28);
  --sa-line: rgba(255, 255, 255, 0.03);
}

main > section.page-hero {
  --sa-g-1: rgba(94, 194, 247, 0.2);
  --sa-g-2: rgba(34, 114, 209, 0.16);
  --sa-p-1: 84% 28%;
  --sa-p-2: 18% 68%;
  --sa-floor: rgba(114, 231, 255, 0.42);
  --sa-line: rgba(255, 255, 255, 0.05);
}

main > section[data-section-light="tide"] {
  --sa-g-1: rgba(94, 194, 247, 0.12);
  --sa-g-2: rgba(34, 114, 209, 0.14);
  --sa-p-1: 22% 18%;
  --sa-p-2: 72% 78%;
  --sa-floor: rgba(34, 114, 209, 0.45);
  --sa-line: rgba(255, 255, 255, 0.038);
}

main > section[data-section-light="pulse"] {
  --sa-g-1: rgba(180, 140, 255, 0.12);
  --sa-g-2: rgba(94, 194, 247, 0.1);
  --sa-p-1: 78% 22%;
  --sa-p-2: 14% 72%;
  --sa-floor: rgba(180, 140, 255, 0.36);
  --sa-line: rgba(255, 255, 255, 0.042);
}

main > section[data-section-light="ember"] {
  --sa-g-1: rgba(246, 199, 111, 0.11);
  --sa-g-2: rgba(94, 194, 247, 0.09);
  --sa-p-1: 50% 12%;
  --sa-p-2: 62% 82%;
  --sa-floor: rgba(246, 199, 111, 0.32);
  --sa-line: rgba(255, 255, 255, 0.04);
}

main > section[data-section-light="reef"] {
  --sa-g-1: rgba(94, 247, 208, 0.1);
  --sa-g-2: rgba(34, 114, 209, 0.1);
  --sa-p-1: 30% 65%;
  --sa-p-2: 85% 30%;
  --sa-floor: rgba(94, 247, 208, 0.34);
  --sa-line: rgba(255, 255, 255, 0.036);
}

main > section[data-section-light="mist"] {
  --sa-g-1: rgba(142, 220, 255, 0.14);
  --sa-g-2: rgba(34, 114, 209, 0.12);
  --sa-p-1: 10% 40%;
  --sa-p-2: 90% 58%;
  --sa-floor: rgba(94, 194, 247, 0.42);
  --sa-line: rgba(255, 255, 255, 0.04);
}

.hero {
  --hero-y: 0px;
  --hero-scale: 1;
  --hero-video-scale: 1;
  position: relative;
  display: flex;
  align-items: end;
  min-height: 118vh;
  overflow: hidden;
  padding: 128px clamp(18px, 4vw, 56px) clamp(48px, 7vw, 96px);
}

.hero.hero--sequence.has-scroll-scrub {
  display: block;
  align-items: unset;
  min-height: calc(100vh + var(--hero-scroll-distance, 2400px));
  padding: 0;
  overflow: visible;
}

.hero.hero--sequence:not(.has-scroll-scrub) .hero-scroll-stage {
  display: contents;
}

.hero.hero--sequence.has-scroll-scrub .hero-scroll-stage {
  position: sticky;
  top: 0;
  display: flex;
  align-items: end;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: 128px clamp(18px, 4vw, 56px) clamp(48px, 7vw, 96px);
}

.hero-post-fx {
  display: none;
}

.hero.hero--sequence > .hero-falling-lights {
  display: none;
}

.hero.hero--sequence .hero-image-light {
  display: none;
}

.hero-welcome {
  display: none;
}

.hero.hero--sequence > .hero-falling-lights {
  position: absolute;
  inset: -25% 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: calc(0.42 + 0.58 * var(--hero-paths-opacity, 0));
  transition: opacity 0.35s ease;
}

.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column {
  position: absolute;
  top: -35%;
  width: 12px;
  height: 150%;
  opacity: 0.9;
  filter: blur(0.2px) drop-shadow(0 0 14px rgba(65, 139, 175, 0.8));
  animation: hero-falling-lights-fall 4.8s linear infinite;
}

.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column::before,
.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(65, 139, 175, 0) 8%,
    rgba(65, 139, 175, 0.95) 16%,
    rgba(99, 194, 238, 0.9) 22%,
    rgba(65, 139, 175, 0.18) 42%,
    transparent 58%,
    transparent 100%
  );
  border-radius: 999px;
}

.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column::after {
  width: 34px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.35;
  filter: blur(14px);
}

.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(1) {
  left: 7%;
  animation-duration: 5.4s;
  animation-delay: -1.2s;
}
.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(2) {
  left: 24%;
  animation-duration: 4.7s;
  animation-delay: -3.1s;
}
.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(3) {
  left: 41%;
  animation-duration: 5.9s;
  animation-delay: -2.4s;
}
.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(4) {
  left: 58%;
  animation-duration: 4.9s;
  animation-delay: -4s;
}
.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(5) {
  left: 76%;
  animation-duration: 5.6s;
  animation-delay: -1.8s;
}
.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(6) {
  left: 93%;
  animation-duration: 5.1s;
  animation-delay: -3.7s;
}

.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(even) {
  width: 15px;
  opacity: 0.75;
}

.hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(3n) {
  width: 10px;
  opacity: 0.65;
}

@keyframes hero-falling-lights-fall {
  from {
    transform: translateY(-90vh);
  }
  to {
    transform: translateY(120vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column {
    animation: none;
    transform: translateY(0);
  }
}

.hero-copy__heading.is-hero-phase-hidden {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  pointer-events: none;
}

.hero-welcome {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.42s ease,
    visibility 0s linear 0.42s,
    max-height 0s linear 0.42s;
}

.hero-welcome.is-active {
  opacity: 1;
  visibility: visible;
  max-height: 320px;
  margin-top: clamp(12px, 2vw, 28px);
  overflow: visible;
  transition:
    opacity 0.48s ease,
    visibility 0s,
    max-height 0s;
}

h1.hero-welcome__heading {
  margin: 0 0 16px;
  line-height: var(--mi-home-title-leading);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero.hero--sequence h1.hero-copy__heading {
    margin: 0 0 16px;
    line-height: var(--mi-home-title-leading);
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  .hero.hero--sequence .hero-copy__char {
    transform: translateY(0.18em) scale(0.96);
    color: rgba(242, 245, 239, 0.12);
    transition:
      opacity 0.18s ease,
      transform 0.22s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .hero.hero--sequence .hero-copy__char.is-revealed {
    color: #fff;
    text-shadow:
      0 0 14px rgb(46, 5, 134),
      0 0 32px rgba(67, 141, 175, 0.65),
      0 0 52px rgba(67, 141, 175, 0.4),
      0 0 78px rgba(67, 141, 175, 0.22);
    animation: none;
  }
}

.hero-welcome__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.18em) scale(0.96);
  color: rgba(242, 245, 239, 0.12);
  transition:
    opacity 0.22s ease,
    transform 0.34s cubic-bezier(0.19, 1, 0.22, 1),
    color 0.28s ease,
    text-shadow 0.36s ease;
}

.hero-welcome__char--ws {
  width: 0.28em;
}

.hero-welcome__char.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  color: #438daf;
  text-shadow:
    0 0 12px rgba(67, 141, 175, 0.85),
    0 0 28px rgba(67, 141, 175, 0.5);
}

.hero-welcome__cta {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mi-video-hero .hero-scroll-hint,
.hero.hero--sequence .hero-scroll-hint {
  display: flex;
  position: absolute;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 30;
  pointer-events: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(92%, 280px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  color: var(--hero-hint-color, var(--green, #5ec2f7));
  opacity: 1;
  visibility: visible;
  mix-blend-mode: normal;
  isolation: isolate;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.mi-video-hero .hero-scroll-hint.is-dismissed,
.hero.hero--sequence .hero-scroll-hint.is-dismissed {
  opacity: 0;
  visibility: hidden;
}

.hero-scroll-hint__label {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--hero-hint-color, var(--green, #5ec2f7));
  text-shadow: 0 0 18px color-mix(in srgb, var(--hero-hint-color, var(--green, #5ec2f7)) 55%, transparent);
}

@media (min-width: 768px) {
  .mi-video-hero .hero-scroll-hint,
  .hero.hero--sequence .hero-scroll-hint {
    padding: 8px 11px 9px;
    border: 1px solid rgba(94, 194, 247, 0.48);
    background: rgba(5, 6, 9, 0.82);
    backdrop-filter: blur(10px);
    border-radius: 2px;
    color: var(--hero-hint-color, var(--green, #5ec2f7));
  }

  .mi-video-hero .hero-scroll-hint:hover,
  .hero.hero--sequence .hero-scroll-hint:hover {
    color: var(--hero-hint-color, var(--green, #5ec2f7));
    border-color: rgba(94, 194, 247, 0.72);
  }

  .mi-video-hero.is-hint-tracking .hero-scroll-hint:not(.is-dismissed),
  .hero.hero--sequence.is-hint-tracking .hero-scroll-hint:not(.is-dismissed) {
    position: fixed;
    right: auto;
    bottom: auto;
    transform: none;
    z-index: 60;
    align-items: flex-start;
    text-align: left;
    color: var(--hero-hint-color, var(--green, #5ec2f7));
    border-color: rgba(94, 194, 247, 0.55);
  }

  .mi-video-hero.is-hint-tracking .hero-scroll-hint:not(.is-dismissed):hover,
  .hero.hero--sequence.is-hint-tracking .hero-scroll-hint:not(.is-dismissed):hover {
    color: var(--hero-hint-color, var(--green, #5ec2f7));
    border-color: rgba(94, 194, 247, 0.75);
  }

  .hero-scroll-hint__label {
    text-shadow: none;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--hero-hint-color, var(--green, #5ec2f7));
  }

  .hero-scroll-hint__label:hover {
    color: var(--hero-hint-color, var(--green, #5ec2f7));
  }

  .hero-scroll-hint__wheel {
    display: none;
  }
}

@media (max-width: 767px) {
  .mi-video-hero .hero-scroll-hint,
  .hero.hero--sequence .hero-scroll-hint {
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    z-index: 35;
  }
}

.hero-scroll-hint__wheel {
  position: relative;
  width: 22px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(94, 194, 247, 0.5);
  border-radius: 12px;
  background: rgba(5, 6, 9, 0.55);
}

.hero-scroll-hint__wheel-track {
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(94, 194, 247, 0.35),
    transparent
  );
}

.hero-scroll-hint__wheel-nub {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--hero-hint-color, var(--green, #5ec2f7));
  box-shadow: 0 0 10px rgba(94, 194, 247, 0.55);
  animation: hero-scroll-hint-wheel 2.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

@keyframes hero-scroll-hint-wheel {
  0% {
    transform: translateY(0);
    opacity: 0.35;
  }
  35% {
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0.85;
  }
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint__wheel-nub {
    animation: none;
    opacity: 0.75;
    transform: translateY(6px);
  }

  .hero-welcome__char,
  .hero-welcome__char.is-revealed {
    opacity: 1;
    transform: none;
    color: inherit;
    text-shadow: none;
    transition: none;
  }
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  text-align: center;
  mix-blend-mode: screen;
}

.hero.hero--sequence .hero-copy__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
}

.hero.hero--sequence .hero-copy__line {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.hero.hero--sequence .hero-copy__line--2 {
  margin-top: 0.06em;
}

.hero-copy__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.22em) scale(0.94);
  color: rgba(242, 245, 239, 0.08);
  text-shadow: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-copy__char--ws {
  width: 0.3em;
}

.hero.hero--sequence .hero-copy__char.is-revealed,
.hero .hero-copy__char.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  color: #fff;
  text-shadow:
    0 0 14px rgb(46, 5, 134),
    0 0 32px rgba(67, 141, 175, 0.65),
    0 0 52px rgba(67, 141, 175, 0.4),
    0 0 78px rgba(67, 141, 175, 0.22);
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy__char,
  .hero-copy__char.is-revealed {
    opacity: 1;
    transform: none;
    color: inherit;
    text-shadow: none;
    transition: none;
    animation: none;
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  background: var(--brand-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(4.6rem, 11vw, 12.4rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span:not(.hero-copy__char):not(.hero-welcome__char) {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 245, 239, 0.9);
}

.hero-intro {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.26rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-video-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background-color: #050609;
  background: #050609;
  transform: none;
}

.hero-video-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 70% 18%, rgba(94, 194, 247, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(5, 6, 9, 0.08), rgba(5, 6, 9, 0.12) 44%, rgba(5, 6, 9, 0.52));
  pointer-events: none;
}

.hero-video-panel::after {
  content: "";
  position: absolute;
  inset: clamp(18px, 3vw, 42px);
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  pointer-events: none;
}

.hero-video-panel img,
.hero-sequence {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.96) contrast(1.08);
}

.hero-video-panel.has-canvas-frame {
  background-image: none !important;
}

.hero-video-panel.has-canvas-frame .hero-sequence-poster--backup {
  opacity: 0;
  visibility: hidden;
}

.hero-sequence-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  pointer-events: none;
  filter: saturate(0.96) contrast(1.08);
  transform: none;
  will-change: auto;
}

.hero-sequence-poster--backup {
  z-index: 0;
}

.hero-sequence {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-position: center center;
  transform: none;
  will-change: contents;
}

.hero-video-panel.has-canvas-frame .hero-sequence {
  z-index: 2;
}

@media (max-width: 767px) {
  .hero,
  .hero.hero--sequence {
    display: block;
    box-sizing: border-box;
    height: 100dvh;
    height: 100svh;
    min-height: 100dvh;
    min-height: 100svh;
    max-height: 100dvh;
    max-height: 100svh;
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
    touch-action: pan-y;
  }

  .hero.hero--sequence.has-scroll-scrub {
    height: auto;
    min-height: calc(100svh + var(--hero-scroll-distance, 2400px));
    max-height: none;
    overflow: visible;
  }

  .hero.hero--sequence.has-scroll-scrub .hero-scroll-stage {
    display: flex;
    align-items: end;
    justify-content: center;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      clamp(72px, 18vw, 96px)
      clamp(16px, 4vw, 24px)
      max(40px, calc(env(safe-area-inset-bottom, 0px) + 32px));
  }

  .hero-welcome {
    display: none !important;
  }

  .hero.hero--sequence .hero-copy__heading.is-hero-phase-hidden {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero.hero--sequence .hero-video-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-width: none;
    aspect-ratio: auto;
    margin: 0;
    z-index: 1;
    transform: none;
    transform-origin: center center;
  }

  .hero.hero--sequence .hero-video-panel::before {
    background:
      radial-gradient(circle at 70% 18%, rgba(94, 194, 247, 0.14), transparent 34%),
      linear-gradient(180deg, rgba(5, 6, 9, 0.2), rgba(5, 6, 9, 0.28) 42%, rgba(5, 6, 9, 0.72));
  }

  .hero.hero--sequence .hero-video-panel::after {
    inset: clamp(10px, 2.5vw, 18px);
  }

  .hero.hero--sequence .hero-sequence-poster,
  .hero.hero--sequence .hero-sequence,
  .hero.hero--sequence .hero-image-light {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
  }

  .hero.hero--sequence .hero-sequence {
    transform: none;
    backface-visibility: hidden;
    opacity: 1;
  }

  .hero.hero--sequence .hero-sequence-poster {
    transform: none;
    opacity: 1;
  }

  .hero.hero--sequence .hero-video-panel.has-canvas-frame .hero-sequence-poster--backup {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .hero.hero--sequence .hero-post-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    z-index: 3;
  }

  .hero.hero--sequence > .hero-falling-lights {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    z-index: 2;
    overflow: hidden;
  }

  .hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(1) {
    left: 6%;
  }
  .hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(2) {
    left: 28%;
  }
  .hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(3) {
    left: 50%;
  }
  .hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(4) {
    left: 72%;
  }
  .hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(5) {
    left: 94%;
  }
  .hero.hero--sequence > .hero-falling-lights .hero-falling-lights__column:nth-child(6) {
    display: none;
  }

  .hero.hero--sequence .hero-copy {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    mix-blend-mode: screen;
    pointer-events: none;
    background: none;
  }

  .hero.hero--sequence .hero-copy__heading {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 0 16px;
  }

  .hero.hero--sequence .hero-copy__line {
    white-space: nowrap;
    text-align: center;
  }

  .hero.hero--sequence .hero-copy h1,
  main#top .hero.hero--sequence h1.hero-copy__heading {
    font-size: var(--mi-home-hero-title-size-mobile);
    line-height: var(--mi-home-title-leading);
    letter-spacing: -0.02em;
    text-shadow: none;
  }

  .hero.hero--sequence .hero-copy__char {
    transform: translateY(0.18em) scale(0.96);
    color: rgba(242, 245, 239, 0.12);
  }

  .hero.hero--sequence .hero-copy::before {
    display: none;
  }

  .mi-video-hero .hero-scroll-hint,
  .hero.hero--sequence .hero-scroll-hint {
    z-index: 14;
  }
}

.hero-image-light {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(90deg, transparent, rgba(94, 194, 247, 0.95), transparent) top / 34% 2px no-repeat,
    linear-gradient(180deg, transparent, rgba(114, 231, 255, 0.88), transparent) right / 2px 34% no-repeat;
  background-position: 0 0, 100% 0;
  filter: drop-shadow(0 0 16px rgba(94, 194, 247, 0.5));
  animation: frame-light 4s linear infinite;
  pointer-events: none;
}

.primary-btn,
.contact__form-wrap .wpcf7-form-control.wpcf7-submit,
.contact__form-wrap input[type="submit"],
.contact__form-wrap button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-btn,
.contact__form-wrap .wpcf7-form-control.wpcf7-submit,
.contact__form-wrap input[type="submit"],
.contact__form-wrap button[type="submit"] {
  background: var(--brand-gradient);
  color: #071006;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(94, 194, 247, 0.22);
}

.primary-btn:hover,
.contact__form-wrap .wpcf7-form-control.wpcf7-submit:hover,
.contact__form-wrap input[type="submit"]:hover,
.contact__form-wrap button[type="submit"]:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(94, 194, 247, 0.32);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
}

.mission-text .section-actions {
  margin-top: clamp(22px, 3vw, 36px);
}

.app-story-intro .section-actions {
  margin-top: clamp(22px, 3vw, 34px);
}

.section-actions__link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 194, 247, 0.35);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.section-actions__link:hover {
  color: var(--green);
  border-bottom-color: rgba(94, 194, 247, 0.65);
}

.image-missions {
  position: relative;
  overflow: hidden;
  --row-clip: polygon(6% 0, 100% 0, 94% 100%, 0 88%);
  --light-x: 0%;
  display: grid;
  gap: clamp(40px, 8vw, 120px);
  padding: 0 clamp(18px, 4vw, 56px) clamp(74px, 9vw, 132px);
  border-bottom: 1px solid var(--line);
}

.image-missions > .mission-row {
  position: relative;
  z-index: 1;
}

.background-paths {
  position: absolute;
  inset: -65% -18%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

.background-paths svg {
  width: 100%;
  height: 100%;
}

.path-bundle {
  animation: path-bundle-enter 42s linear infinite alternate;
  transform-origin: center;
  will-change: transform;
}

.background-paths path {
  stroke: #fff;
  stroke-width: var(--path-width, 0.8);
  stroke-opacity: var(--path-opacity, 0.16);
  stroke-linecap: round;
  color: #fff;
}

.mission-row {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(440px, 1.16fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  min-height: 74vh;
}

.mission-row.is-reversed {
  grid-template-columns: minmax(440px, 1.16fr) minmax(0, 0.84fr);
}

.mission-row.is-reversed .mission-text {
  grid-column: 2;
}

.mission-row.is-reversed .mission-media {
  grid-column: 1;
  grid-row: 1;
}

.mission-text {
  position: relative;
  z-index: 2;
  opacity: 0.48;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.mission-row.is-inview .mission-text {
  opacity: 1;
  transform: translateY(0);
}

.mission-text span {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-text h2,
.mission-text h3 {
  margin-bottom: 22px;
  line-height: var(--mi-home-title-leading);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mission-text p {
  max-width: 620px;
  color: var(--muted);
  line-height: var(--mi-home-subtitle-leading);
}

.mission-media {
  --media-scale: 1;
  position: relative;
  overflow: hidden;
  min-height: min(64vw, 690px);
  margin: 0;
  clip-path: polygon(11% 0, 100% 0, 92% 100%, 0 86%);
  background: rgba(5, 6, 9, 0.26);
  transform: translateZ(0) scale(var(--media-scale));
  transition:
    clip-path 760ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: clip-path;
}

.mission-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5, 6, 9, 0.04), rgba(5, 6, 9, 0.7)),
    radial-gradient(circle at var(--light-x) 18%, rgba(94, 194, 247, 0.32), transparent 32%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.mission-media::after {
  content: "";
  position: absolute;
  inset: 36px;
  z-index: 5;
  clip-path: inherit;
  border: 1px solid rgba(242, 245, 239, 0.2);
  pointer-events: none;
}

.mission-media img,
.mission-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transform: scale(calc(1.06 - var(--row-progress, 0) * 0.04));
  filter: saturate(0.86) contrast(1.12);
}

.particle-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.particle-field i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  animation: particle-drift var(--d) linear infinite;
  animation-delay: var(--delay);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.52);
}

.border-light {
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    linear-gradient(90deg, transparent, rgba(94, 194, 247, 0.95), transparent) top / 32% 2px no-repeat,
    linear-gradient(180deg, transparent, rgba(114, 231, 255, 0.88), transparent) right / 2px 32% no-repeat,
    linear-gradient(90deg, transparent, rgba(94, 194, 247, 0.95), transparent) bottom / 32% 2px no-repeat,
    linear-gradient(180deg, transparent, rgba(114, 231, 255, 0.88), transparent) left / 2px 32% no-repeat;
  background-position:
    var(--light-x) 0,
    100% var(--light-x),
    calc(100% - var(--light-x)) 100%,
    0 calc(100% - var(--light-x));
  filter: drop-shadow(0 0 14px rgba(94, 194, 247, 0.58));
  pointer-events: none;
}

.app-story {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.app-story-intro {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  padding: clamp(74px, 10vw, 150px) clamp(18px, 4vw, 56px) clamp(46px, 7vw, 94px);
}

.app-story-intro h2 {
  max-width: 1120px;
  margin-bottom: 24px;
  line-height: var(--mi-home-title-leading);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.app-story-intro p:not(.eyebrow) {
  max-width: 860px;
  color: var(--muted);
  line-height: var(--mi-home-subtitle-leading);
}

.app-flow {
  position: relative;
  height: 100vh;
  min-height: 760px;
}

.app-flow-section {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: visible;
}

.app-flow-section + .app-flow-section {
  margin-top: 0;
}

.app-flow-inner {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 760px;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(22px, 3vw, 44px);
  padding: clamp(42px, 5vw, 74px) clamp(18px, 4vw, 56px);
  transform-origin: bottom left;
  will-change: transform;
}

.app-flow-inner::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 3vw, 42px);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.02);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  backdrop-filter: blur(18px);
}

.app-flow-reupsell .app-flow-inner {
  background:
    linear-gradient(135deg, rgba(94, 194, 247, 0.14), transparent 48%),
    rgba(7, 16, 6, 0.62);
}

.app-flow-info .app-flow-inner {
  background:
    linear-gradient(135deg, rgba(114, 231, 255, 0.14), transparent 48%),
    var(--section-atmosphere-base);
}

.app-flow-witb .app-flow-inner {
  background:
    linear-gradient(135deg, rgba(167, 132, 255, 0.16), transparent 48%),
    rgba(7, 16, 6, 0.58);
}

.app-flow-kicker,
.app-flow-points span {
  margin: 0;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-flow-inner hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.app-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
}

.app-flow-layout h3 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 11vw, 13rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-flow-layout p {
  max-width: 720px;
  color: rgba(242, 245, 239, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.7rem);
  line-height: 1.45;
}

.app-flow-card-btn {
  display: inline-flex;
  margin-top: clamp(18px, 2.5vw, 28px);
  position: relative;
  z-index: 2;
}

.app-flow-card-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
}

.app-flow-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-flow-points span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(242, 245, 239, 0.78);
}

.app-shape {
  position: relative;
  display: grid;
  min-height: clamp(320px, 40vw, 520px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 38%, rgba(94, 194, 247, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.035);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 88%);
}

.app-shape-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.92) contrast(1.06);
  pointer-events: none;
}

.app-shape--has-image .app-orbit {
  z-index: 1;
  opacity: 0.55;
}

.app-shape--has-image strong {
  text-shadow: 0 8px 32px rgba(5, 6, 9, 0.85);
}

.app-shape--has-image small {
  text-shadow: 0 2px 12px rgba(5, 6, 9, 0.9);
}

.app-shape-info {
  clip-path: polygon(0 0, 86% 0, 100% 18%, 100% 100%, 12% 92%, 0 68%);
  background:
    radial-gradient(circle at 54% 40%, rgba(114, 231, 255, 0.2), transparent 32%),
    rgba(255, 255, 255, 0.035);
}

.app-shape-witb {
  clip-path: polygon(8% 0, 100% 6%, 92% 100%, 0 88%);
  background:
    radial-gradient(circle at 46% 42%, rgba(167, 132, 255, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.app-shape strong {
  position: relative;
  z-index: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(3rem, 6vw, 7rem);
  background: var(--brand-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.app-shape small {
  position: absolute;
  bottom: 28px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-orbit,
.app-orbit::before,
.app-orbit::after {
  position: absolute;
  border: 1px solid rgba(114, 231, 255, 0.34);
  border-radius: 50%;
}

.app-orbit {
  inset: 16%;
  animation: loader-orbit-spin 12s linear infinite;
}

.app-orbit::before,
.app-orbit::after {
  content: "";
  inset: 14%;
  transform: rotate(28deg) scaleX(1.42);
}

.app-orbit::after {
  transform: rotate(-24deg) scaleX(1.2);
  border-color: rgba(94, 194, 247, 0.26);
}

.contact {
  padding: clamp(74px, 10vw, 150px) clamp(18px, 4vw, 56px);
}

.contact h2 {
  max-width: 1050px;
  font-size: clamp(2.4rem, 6vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Home only: one title scale + one subtitle scale (missions, apps intro, contact) */
main#top .mission-text h2,
main#top .mission-text h3,
main#top .app-story-intro h2,
main.page-shell .app-story-intro h2,
main#top .contact h2 {
  font-size: var(--mi-home-title-size);
  line-height: var(--mi-home-title-leading);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

main#top .mission-text p,
main#top .app-story-intro p:not(.eyebrow),
main.page-shell .app-story-intro p:not(.eyebrow) {
  font-size: var(--mi-home-subtitle-size);
  line-height: var(--mi-home-subtitle-leading);
}

/* Inner pages (main.page-shell): hero, band, section, CTA titles/subtitles match home mission / impact scale */
main.page-shell .page-hero h1 {
  max-width: none;
  font-size: var(--mi-home-title-size);
  line-height: var(--mi-home-title-leading);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 700;
  text-wrap: balance;
}

main.page-shell .page-hero p:not(.eyebrow) {
  max-width: 58ch;
  font-size: var(--mi-home-subtitle-size);
  line-height: var(--mi-home-subtitle-leading);
  color: var(--muted);
  text-wrap: pretty;
}

main.page-shell .page-band h2,
main.page-shell .page-section > h2,
main.page-shell .page-cta h2 {
  font-size: var(--mi-home-title-size);
  line-height: var(--mi-home-title-leading);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 700;
  text-wrap: balance;
}

main.page-shell .page-band p,
main.page-shell .page-section > p {
  max-width: 58ch;
  font-size: var(--mi-home-subtitle-size);
  line-height: var(--mi-home-subtitle-leading);
  color: var(--muted);
  text-wrap: pretty;
}

main#top .hero.hero--sequence h1.hero-copy__heading,
main#top .hero.hero--sequence h1.hero-welcome__heading {
  font-size: var(--mi-home-title-size);
  line-height: var(--mi-home-title-leading);
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  main#top .hero.hero--sequence h1.hero-copy__heading {
    font-size: var(--mi-home-hero-title-size-mobile);
  }
}

.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  gap: clamp(34px, 7vw, 110px);
}

.contact > .contact__hills-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.contact > .background-paths {
  z-index: 0;
}

.contact > div:not(.background-paths),
.contact > .contact__form-wrap {
  position: relative;
  z-index: 1;
}

.contact.contact--split {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
}

.contact__intro {
  margin-top: 18px;
  max-width: 52ch;
  color: rgba(242, 245, 239, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}

.contact__intro p {
  margin: 0 0 1em;
}

.contact__intro p:last-child {
  margin-bottom: 0;
}

.contact__details {
  margin: clamp(28px, 4vw, 44px) 0 0;
  display: grid;
  gap: 22px 0;
}

.contact__detail dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact__detail dd {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
}

.contact__detail a {
  color: rgba(94, 194, 247, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 194, 247, 0.35);
}

.contact__detail a:hover {
  border-bottom-color: rgba(94, 194, 247, 0.85);
}

.contact__detail--block dd p {
  margin: 0 0 0.65em;
  color: rgba(242, 245, 239, 0.7);
  line-height: 1.55;
}

.contact__detail--block dd p:last-child {
  margin-bottom: 0;
}

.contact__form-wrap {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 9, 0.58);
  align-self: start;
}

.contact__form-placeholder {
  margin: 0;
  color: rgba(242, 245, 239, 0.55);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact__form-wrap .wpcf7-form,
.contact__form-wrap form[class*="wpforms"] {
  display: grid;
  gap: 16px;
}

.contact__form-wrap .wpcf7-form-control:not(.wpcf7-submit):not([type="submit"]),
.contact__form-wrap input[type="text"],
.contact__form-wrap input[type="email"],
.contact__form-wrap input[type="tel"],
.contact__form-wrap input[type="url"],
.contact__form-wrap select,
.contact__form-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px;
  outline: none;
  font: inherit;
}

.contact__form-wrap textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form-wrap .wpcf7-form-control:focus,
.contact__form-wrap input:focus,
.contact__form-wrap select:focus,
.contact__form-wrap textarea:focus {
  border-color: rgba(94, 194, 247, 0.72);
}

.contact__form-wrap .wpcf7-form-control.wpcf7-submit,
.contact__form-wrap input[type="submit"],
.contact__form-wrap button[type="submit"] {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.contact__form-wrap .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 0.82rem;
}

.page-shell {
  padding: 132px clamp(18px, 4vw, 56px) 72px;
  overflow-x: clip;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* About / Theme dev: vertically center hero copy with visual on desktop */
@media (min-width: 1061px) {
  .page-hero.page-hero--about,
  .page-hero.page-hero--align-center {
    align-items: center;
  }
}

.page-hero h1 {
  margin: 14px 0 22px;
  max-width: 11ch;
  font-size: clamp(4.5rem, 10vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(242, 245, 239, 0.72);
  font-size: clamp(1.08rem, 1.8vw, 1.55rem);
  line-height: 1.5;
}

/* Theme development: infinite horizontal image gallery */
main.page-shell .mi-infinite-gallery.mi-infinite-gallery--theme {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 56px);
  width: auto;
  margin-inline: calc(clamp(18px, 4vw, 56px) * -1);
  min-height: min(100vh, 920px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #050608;
}

main.page-shell .mi-infinite-gallery--theme .mi-infinite-gallery__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #050608, rgba(5, 6, 8, 0.92), #050608);
  z-index: 0;
}

main.page-shell .mi-infinite-gallery--theme .mi-infinite-gallery__intro {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
}

main.page-shell .mi-infinite-gallery--theme .mi-infinite-gallery__intro .eyebrow {
  margin: 0 0 12px;
}

main.page-shell .mi-infinite-gallery--theme .mi-infinite-gallery__intro h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(242, 245, 239, 0.96);
}

main.page-shell .mi-infinite-gallery--theme .mi-scroll-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  padding: 20px 0 32px;
  mask: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

main.page-shell .mi-infinite-gallery--theme .mi-infinite-scroll {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: mi-scroll-right 22s linear infinite;
}

main.page-shell .mi-infinite-gallery--theme .mi-image-item {
  flex: 0 0 auto;
  width: 320px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s ease, filter 0.3s ease;
}

main.page-shell .mi-infinite-gallery--theme .mi-image-item:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

main.page-shell .mi-infinite-gallery--theme .mi-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

main.page-shell .mi-infinite-gallery--theme .mi-infinite-gallery__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to top, #050608, transparent);
  z-index: 3;
  pointer-events: none;
}

@keyframes mi-scroll-right {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  main.page-shell .mi-infinite-gallery--theme .mi-infinite-scroll {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  main.page-shell .mi-infinite-gallery.mi-infinite-gallery--theme {
    min-height: 70vh;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  main.page-shell .mi-infinite-gallery--theme .mi-image-item {
    width: 190px;
    height: 190px;
    border-radius: 14px;
  }

  main.page-shell .mi-infinite-gallery--theme .mi-infinite-scroll {
    gap: 16px;
    animation-duration: 18s;
  }
}

.page-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  clip-path: polygon(11% 0, 100% 0, 92% 100%, 0 86%);
  background:
    linear-gradient(135deg, rgba(94, 194, 247, 0.22), rgba(34, 114, 209, 0.1)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.page-visual img,
.page-visual video,
.page-visual iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.05) contrast(1.05);
}

.page-visual iframe {
  opacity: 0.88;
  filter: saturate(1.02) contrast(1.02);
}

.page-visual__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-visual__media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.page-visual__media--video .page-visual__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-visual__media--video .page-visual__embed > * {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border: 0;
}

.page-visual__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.page-visual--shape-morph,
figure.page-visual,
.mission-media {
  transition: clip-path 760ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: clip-path;
}

.page-visual--band {
  min-height: min(52vw, 520px);
}

.page-visual::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent, rgba(94, 194, 247, 0.16), transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}

.page-section {
  padding: clamp(72px, 10vw, 150px) 0;
}

.page-band {
  position: relative;
  overflow: hidden;
  margin-inline: calc(clamp(18px, 4vw, 56px) * -1);
  padding: clamp(74px, 10vw, 138px) clamp(18px, 4vw, 56px);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(7, 10, 15, 0.62);
  backdrop-filter: blur(18px);
}

.page-band.page-band--split {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.page-band.page-band--split .page-band__copy {
  max-width: none;
}

.page-band.page-band--split .page-band__copy h2,
.page-band.page-band--split .page-band__copy p {
  max-width: none;
}

.page-band.page-band--split .page-visual {
  margin: 0;
}

.page-band h2,
.page-section h2 {
  max-width: 980px;
  margin: 0 0 28px;
  font-size: clamp(3.1rem, 7vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.page-band p,
.page-section > p {
  max-width: 860px;
  color: rgba(242, 245, 239, 0.7);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.service-grid,
.page-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 280px;
  padding: clamp(22px, 3vw, 38px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.54);
  overflow: hidden;
}

.service-card:nth-child(3n) {
  border-right: 0;
}

.service-card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.8vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.service-card p {
  margin: 0;
  color: rgba(242, 245, 239, 0.66);
  line-height: 1.55;
}

/* About (and similar): full-width FAQ accordion */
.page-section--faq > h2 {
  max-width: none;
}

.faq-accordion {
  width: 100%;
  max-width: none;
  margin-top: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.45);
}

.faq-accordion__item {
  border-bottom: 1px solid var(--line);
}

.faq-accordion__item:last-child {
  border-bottom: 0;
}

.faq-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(18px, 2.5vw, 26px) clamp(20px, 3vw, 32px);
  cursor: pointer;
  list-style: none;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(242, 245, 239, 0.92);
  background: rgba(5, 8, 12, 0.35);
  transition: background 0.22s ease, color 0.22s ease;
}

.faq-accordion__trigger::-webkit-details-marker {
  display: none;
}

.faq-accordion__trigger:hover,
.faq-accordion__item[open] .faq-accordion__trigger {
  background: rgba(94, 194, 247, 0.08);
  color: rgba(242, 245, 239, 1);
}

.faq-accordion__title {
  flex: 1;
  text-align: left;
}

.faq-accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(94, 194, 247, 0.45);
  border-radius: 999px;
}

.faq-accordion__icon::before,
.faq-accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: rgba(94, 194, 247, 0.95);
  transform: translate(-50%, -50%);
  transition: transform 0.28s ease;
}

.faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion__item[open] .faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-accordion__panel {
  padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px);
  color: rgba(242, 245, 239, 0.7);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-accordion__panel > *:first-child {
  margin-top: 0;
}

.faq-accordion__panel > *:last-child {
  margin-bottom: 0;
}

.service-card span {
  display: block;
  margin-bottom: 56px;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-top: 64px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(94, 194, 247, 0.28);
  background:
    radial-gradient(circle at 88% 18%, rgba(94, 194, 247, 0.22), transparent 20rem),
    rgba(8, 12, 18, 0.64);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.page-cta h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.3rem, 5vw, 6rem);
}

.page-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-link-list a,
.page-directory a {
  border: 1px solid rgba(94, 194, 247, 0.28);
  padding: 11px 14px;
  color: rgba(242, 245, 239, 0.76);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.page-link-list a:hover,
.page-directory a:hover {
  color: var(--text);
  border-color: rgba(94, 194, 247, 0.62);
  background: rgba(94, 194, 247, 0.1);
}

.page-directory {
  margin-top: 72px;
}

.page-directory a {
  display: flex;
  align-items: center;
  min-height: 92px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.page-directory a:nth-child(3n) {
  border-right: 0;
}

@keyframes moon-loader-rotate {
  to {
    transform: rotate(1turn);
  }
}

@keyframes loader-orbit-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes frame-light {
  0% {
    background-position: 0 0, 100% 0;
  }
  50% {
    background-position: 100% 0, 100% 100%;
  }
  100% {
    background-position: 0 0, 100% 0;
  }
}

@keyframes path-bundle-enter {
  0% {
    transform: translate3d(-18%, 0, 0) scaleX(0.98);
  }
  100% {
    transform: translate3d(18%, 0, 0) scaleX(1.02);
  }
}

@keyframes particle-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.7);
  }
  12% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), -160px, 0) scale(1.08);
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
    top: 14px;
  }

  .main-nav {
    display: none;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .hero,
  .contact,
  .page-hero,
  .page-cta {
    grid-template-columns: 1fr;
  }

  .mission-row,
  .mission-row.is-reversed {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mission-row.is-reversed .mission-text,
  .mission-row.is-reversed .mission-media {
    grid-column: auto;
    grid-row: auto;
  }

  .mission-media {
    min-height: 560px;
  }

  .hero {
    padding-top: 116px;
  }

  .service-grid,
  .page-directory {
    grid-template-columns: 1fr;
  }

  .service-card,
  .page-directory a {
    min-height: auto;
    border-right: 0;
  }

  .app-flow-layout {
    grid-template-columns: 1fr;
  }

  .app-shape {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
    padding-inline: 16px;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  }

  .brand img {
    width: 132px;
  }

  .nav-cta {
    padding: 10px 14px;
  }

  .hero {
    min-height: auto;
    padding: 112px 16px 46px;
  }

  .page-shell {
    padding: 112px 16px 56px;
  }

  .page-hero {
    min-height: auto;
    padding-bottom: 54px;
  }

  .page-hero h1 {
    font-size: clamp(3.4rem, 17vw, 6.2rem);
  }

  main.page-shell .page-hero h1 {
    font-size: var(--mi-home-title-size);
    line-height: var(--mi-home-title-leading);
    letter-spacing: -0.02em;
  }

  .page-visual {
    min-height: 380px;
  }

  .page-band {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .page-band.page-band--split {
    grid-template-columns: 1fr;
  }

  .page-band.page-band--split .page-visual {
    order: -1;
    min-height: 340px;
  }

  .hero-actions {
    display: grid;
  }

  .image-missions {
    padding: 64px 16px;
  }

  .mission-media {
    min-height: 430px;
  }

  .mission-media::after {
    inset: 28px;
  }

  .mission-text h2,
  .mission-text h3 {
    font-size: clamp(2.5rem, 13vw, 4.8rem);
  }

  .app-story-intro {
    padding: 64px 16px 44px;
  }

  .app-story-intro h2,
  .app-flow-layout h3 {
    font-size: clamp(3rem, 14vw, 6rem);
  }

  .app-flow-inner {
    padding: 34px 16px;
  }

  .app-flow-inner::before {
    inset: 12px;
  }

  .app-shape {
    min-height: 300px;
  }

  .app-flow {
    height: auto;
    min-height: 0;
  }

  .app-flow--slider {
    padding: 0 0 44px;
  }

  .app-flow-slider__frame {
    position: relative;
    width: 100%;
  }

  .app-flow-slider__viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
  }

  .app-flow-slider__track {
    display: flex;
    align-items: stretch;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .app-flow-slider__track.is-dragging {
    transition: none;
  }

  .app-flow--slider .app-flow-section {
    position: relative;
    inset: auto;
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    min-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .app-flow--slider .app-flow-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  .app-flow-slider__btn--side {
    position: absolute;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    pointer-events: auto;
    background: rgba(5, 6, 9, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .app-flow-slider__btn--prev.app-flow-slider__btn--side {
    left: 10px;
  }

  .app-flow-slider__btn--next.app-flow-slider__btn--side {
    right: 10px;
  }

  .app-flow-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 0 16px;
  }

  .app-flow-slider__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .app-flow-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(242, 245, 239, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .app-flow-slider__dot.is-active {
    transform: scale(1.25);
    background: var(--green);
  }

  .app-flow-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    background: rgba(5, 6, 9, 0.45);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .app-flow-slider__btn:hover,
  .app-flow-slider__btn:focus-visible {
    border-color: rgba(94, 194, 247, 0.45);
    background: rgba(94, 194, 247, 0.12);
  }

  .app-flow--stacked .app-flow-section {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-bottom: 18px;
  }

  .app-flow--stacked .app-flow-section:last-child {
    margin-bottom: 0;
  }

  .contact {
    padding: 64px 16px;
  }

  footer {
    display: grid;
    padding-inline: 16px;
  }
}

/* Portfolio: draggable 3D circular gallery (Customizer slides) */
main.page-shell .mi-circular-gallery-section,
main#top .mi-circular-gallery-section {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(65, 139, 175, 0.2), transparent 36%),
    radial-gradient(circle at 20% 30%, rgba(65, 139, 175, 0.1), transparent 30%),
    rgba(5, 6, 9, 0.92);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

/* In-flow height: inner ring is all position:absolute, so this reserves vertical space for layout */
main.page-shell .mi-circular-gallery-spacer,
main#top .mi-circular-gallery-spacer {
  display: block;
  width: 100%;
  min-height: max(520px, min(78vh, 820px));
  pointer-events: none;
}

main.page-shell .mi-circular-gallery-section.is-dragging,
main#top .mi-circular-gallery-section.is-dragging {
  cursor: grabbing;
}

main.page-shell .mi-circular-gallery.mi-circular-gallery--fill,
main#top .mi-circular-gallery.mi-circular-gallery--fill {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  pointer-events: auto;
}

main.page-shell .mi-circular-gallery:not(.mi-circular-gallery--fill),
main#top .mi-circular-gallery:not(.mi-circular-gallery--fill) {
  position: relative;
  width: 100%;
  min-height: max(520px, min(78vh, 820px));
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
}

main.page-shell .mi-circular-gallery__ring,
main#top .mi-circular-gallery__ring {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

main.page-shell .mi-circular-gallery__item,
main#top .mi-circular-gallery__item {
  position: absolute;
  width: var(--mi-cg-card-w, 300px);
  height: var(--mi-cg-card-h, 400px);
  left: 50%;
  top: 50%;
  margin-left: calc(var(--mi-cg-card-w, 300px) / -2);
  margin-top: calc(var(--mi-cg-card-h, 400px) / -2);
  transform-style: preserve-3d;
  transition:
    opacity 0.28s linear,
    filter 0.28s linear,
    transform 0.38s cubic-bezier(0.22, 1, 0.32, 1);
  pointer-events: none;
}

main.page-shell .mi-circular-gallery__card,
main#top .mi-circular-gallery__card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
}

main.page-shell .mi-circular-gallery__card img,
main#top .mi-circular-gallery__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  pointer-events: none;
  user-select: none;
}

main.page-shell .mi-circular-gallery__content,
main#top .mi-circular-gallery__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), transparent);
}

main.page-shell .mi-circular-gallery__content h2,
main#top .mi-circular-gallery__content h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
}

main.page-shell .mi-circular-gallery__content em,
main#top .mi-circular-gallery__content em {
  display: block;
  font-size: 14px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

main.page-shell .mi-circular-gallery__content p,
main#top .mi-circular-gallery__content p {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

main.page-shell .mi-circular-gallery__center-glow,
main#top .mi-circular-gallery__center-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 280px;
  margin-left: -140px;
  margin-top: -140px;
  border-radius: 999px;
  background: rgba(65, 139, 175, 0.18);
  filter: blur(60px);
  pointer-events: none;
}

main.page-shell .mi-drag-hint,
main#top .mi-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 767px) {
  main.page-shell .mi-circular-gallery-section,
  main#top .mi-circular-gallery-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: clip;
    contain: layout paint;
  }

  main.page-shell .mi-circular-gallery,
  main#top .mi-circular-gallery {
    perspective: 1100px;
    overflow: hidden;
  }

  main.page-shell .mi-circular-gallery-section.is-dragging .mi-circular-gallery__item,
  main#top .mi-circular-gallery-section.is-dragging .mi-circular-gallery__item {
    transition-duration: 0.12s;
  }

  main.page-shell .mi-circular-gallery__content,
  main#top .mi-circular-gallery__content {
    padding: 14px;
  }

  main.page-shell .mi-circular-gallery__content h2,
  main#top .mi-circular-gallery__content h2 {
    font-size: 18px;
  }

  main.page-shell .mi-circular-gallery__content em,
  main.page-shell .mi-circular-gallery__content p,
  main#top .mi-circular-gallery__content em,
  main#top .mi-circular-gallery__content p {
    font-size: 11px;
  }

  main.page-shell .mi-drag-hint,
  main#top .mi-drag-hint {
    bottom: 22px;
    font-size: 11px;
  }
}

/* Home: full-width banner (desktop + mobile images via picture) */
main#top .home-banner {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  line-height: 0;
}

main#top .home-banner__link,
main#top .home-banner__figure {
  display: block;
  margin: 0;
}

main#top .home-banner__picture,
main#top .home-banner__img {
  display: block;
  width: 100%;
  height: auto;
}

main#top .home-banner__img {
  max-height: min(64vh, 720px);
  object-fit: cover;
  object-position: center;
}

/* Smaller laptop viewports (e.g. 1366×768): give banner more room. */
@media (min-width: 768px) and (max-width: 1440px) and (max-height: 860px) {
  main#top .home-banner__img {
    max-height: min(74vh, 760px);
  }
}

@media (max-width: 767px) {
  main#top .home-banner__img {
    max-height: min(78vh, 820px);
  }
}

/* Site-wide section appear animation (left / right on scroll, one-way). */
@keyframes mi-section-reveal-in {
  from {
    opacity: 0;
    transform: translate3d(var(--mi-reveal-x, 0), 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

main section.mi-section-reveal,
footer.site-footer.mi-section-reveal {
  --mi-reveal-distance: clamp(3rem, 10vw, 5.5rem);
  --mi-reveal-duration: 1.35s;
  opacity: 0;
  transform: translate3d(var(--mi-reveal-x, 0), 0, 0);
}

main section.mi-section-reveal--left,
footer.site-footer.mi-section-reveal--left {
  --mi-reveal-x: calc(-1 * var(--mi-reveal-distance));
}

main section.mi-section-reveal--right,
footer.site-footer.mi-section-reveal--right {
  --mi-reveal-x: var(--mi-reveal-distance);
}

main section.mi-section-reveal--up,
footer.site-footer.mi-section-reveal--up {
  --mi-reveal-x: 0;
  transform: translate3d(0, var(--mi-reveal-distance), 0);
}

main section.mi-section-reveal.is-visible,
footer.site-footer.mi-section-reveal.is-visible {
  animation: mi-section-reveal-in var(--mi-reveal-duration) cubic-bezier(0.12, 1, 0.28, 1) forwards;
}

main section.mi-section-reveal[data-mi-revealed="1"],
footer.site-footer.mi-section-reveal[data-mi-revealed="1"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 767px) {
  @keyframes mi-reveal-up {
    from {
      opacity: 0;
      transform: translate3d(0, var(--mi-reveal-distance), 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .mi-reveal {
    --mi-reveal-distance: clamp(2rem, 10vw, 3.75rem);
    --mi-reveal-duration: 0.9s;
    --mi-reveal-delay: 0s;
    opacity: 0;
    transform: translate3d(0, var(--mi-reveal-distance), 0);
  }

  .mi-reveal.is-visible {
    animation: mi-reveal-up var(--mi-reveal-duration) cubic-bezier(0.12, 1, 0.28, 1) var(--mi-reveal-delay) forwards;
  }

  .mi-reveal[data-mi-revealed="1"] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  main section.mi-section-reveal,
  footer.site-footer.mi-section-reveal,
  .mi-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
    animation: none !important;
  }
}

/* GSAP scroll-scrub video hero */
main > section.mi-video-hero {
  --sa-g-1: rgba(114, 231, 255, 0.07);
  --sa-g-2: rgba(34, 114, 209, 0.06);
  overflow: visible;
}

main > section.mi-video-hero::before,
main > section.mi-video-hero::after {
  display: none;
}

.mi-video-hero {
  position: relative;
  height: var(--mi-hero-scroll-vh, 280vh);
  background: #000;
  z-index: 1;
}

.mi-video-sticky {
  position: relative;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}

#mi-scroll-video,
.mi-video-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mi-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.75) 100%);
}

.mi-overlay-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(18px, 4vw, 48px);
  pointer-events: none;
}

.mi-overlay-content h1 {
  margin: 0 0 0.35em;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 24px rgba(130, 110, 255, 0.55),
    0 0 48px rgba(80, 160, 255, 0.35);
}

.mi-overlay-content p {
  margin: 0;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.image-missions--static-first .mission-text {
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  .mi-video-hero {
    margin-bottom: 0;
  }

  .mi-video-hero--scrub .mi-video-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 100vh;
  }

  .mi-video-hero--scrub .mi-video-vignette {
    display: none;
  }

  .mi-video-hero--scrub .mi-overlay-content {
    opacity: 1 !important;
    transform: none !important;
  }

  main#top > .image-missions--static-first {
    margin-top: 0;
    background: var(--bg);
    position: relative;
    z-index: 3;
  }

  body.is-hero-video-active #starfield {
    visibility: hidden;
  }
}

@media (min-width: 768px) {
  #mi-scroll-video,
  .mi-video-hero__video {
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  body.is-hero-video-active #starfield {
    visibility: hidden;
  }
}
