/* Homepage hero, adapted from Anima Studio's 16 Nov 2026 HTML hand-off. */

body[data-page="home"] .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

body[data-page="home"] .site-header::after { display: none; }

body[data-page="home"] .site-header.is-scrolled {
  background: rgba(7, 14, 22, 0.9);
  box-shadow: 0 1px 0 rgba(237, 244, 248, 0.12);
  backdrop-filter: saturate(130%) blur(14px);
  -webkit-backdrop-filter: saturate(130%) blur(14px);
}

body[data-page="home"] main > .launch-home-hero:first-child {
  --launch-progress: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #0f1d2e;
  color: #fff;
  text-shadow: 0 0 38px rgba(15,29,46,.35), 0 0 14px rgba(15,29,46,.3);
}

.launch-home-hero::before { display: none; }

.launch-home-hero .launch-home-poster,
.launch-home-hero .launch-home-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.launch-home-hero .launch-home-poster { z-index: -2; }
.launch-home-hero .launch-home-poster img { width: 100%; height: 100%; object-fit: cover; object-position: inherit; }
.launch-home-hero .launch-home-video {
  z-index: -1;
  opacity: 0;
  transform: scale(calc(1 + (var(--launch-progress) * 0.08)));
  transition: opacity 420ms ease;
  will-change: transform;
}
.launch-home-hero .launch-home-video.is-playing { opacity: 1; }

body[data-page] main .launch-home-hero .launch-home-content {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: max(112px, calc(env(safe-area-inset-top) + 92px)) max(clamp(16px, 4vw, 64px), env(safe-area-inset-right)) max(90px, calc(env(safe-area-inset-bottom) + 64px)) max(clamp(16px, 4vw, 64px), env(safe-area-inset-left));
}

body[data-page="home"] .launch-home-hero .video-hero-copy.services-home-intro {
  max-width: 1100px;
  padding-block: 0;
  opacity: calc(1 - var(--launch-progress));
  transform: translate3d(0, calc(var(--launch-progress) * -18vh), 0);
  will-change: transform, opacity;
}

body[data-page] .launch-home-hero .launch-home-copy h1 {
  margin: 0;
  max-width: none;
  font: 550 clamp(1.6rem, .5rem + 5.75vw, 4.25rem) / 1.06 "Urbanist", sans-serif;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: inherit;
}

.launch-home-copy h1 span { display: block; }

.launch-home-subline {
  max-width: 35em;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font: 400 clamp(1rem, 0.9rem + 0.3vw, 1.2rem) / 1.55 "Urbanist", sans-serif;
  text-wrap: pretty;
}

.launch-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.launch-home-button {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font: 600 15px/1 "Urbanist", sans-serif;
  text-decoration: none;
  text-shadow: none;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  transition: transform 180ms ease, border-color 280ms ease;
  -webkit-tap-highlight-color: transparent;
}

.launch-home-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateX(-102%);
  transition: transform 440ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.launch-home-button span { position: relative; z-index: 1; transition: color 240ms ease 80ms; }
.launch-home-button--primary { background: #226d7a; }
.launch-home-button--primary::before { background: #000; }
.launch-home-button--ghost { border-color: rgba(255, 255, 255, 0.72); background: rgba(15, 29, 46, 0.24); }
.launch-home-button--ghost::before { background: #fff; }
.launch-home-button:is(:hover, :focus-visible)::before { transform: translateX(0); }
.launch-home-button--ghost:is(:hover, :focus-visible) span { color: #0f1d2e; }
.launch-home-button:active { transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0) scale(0.97); }
.launch-home-button:focus-visible { outline: 2px solid #6cbbc8; outline-offset: 4px; }

.launch-home-cue {
  position: absolute;
  left: max(clamp(16px, 4vw, 64px), env(safe-area-inset-left));
  bottom: max(26px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font: 500 11px/1 "Urbanist", sans-serif;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-shadow: none;
  text-transform: uppercase;
  opacity: calc(1 - (var(--launch-progress) * 6.66));
}

.launch-home-cue > span { position: relative; width: 1px; height: 40px; overflow: hidden; background: rgba(255, 255, 255, 0.32); }
.launch-home-cue i { position: absolute; inset: 0 0 auto; width: 1px; height: 16px; background: #6cbbc8; animation: launch-cue 2s ease-in-out infinite; }
.launch-home-cue strong { font: inherit; }

@keyframes launch-cue {
  from { transform: translateY(-18px); }
  to { transform: translateY(44px); }
}

body.launch-hero-motion .site-header { animation: launch-fade 1s ease both; }
body.launch-hero-motion .launch-home-copy h1 span { animation: launch-rise 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
body.launch-hero-motion .launch-home-copy h1 span:nth-child(2) { animation-delay: 180ms; }
body.launch-hero-motion .launch-home-copy h1 span:nth-child(3) { animation-delay: 360ms; }
body.launch-hero-motion .launch-home-subline { animation: launch-rise 1s cubic-bezier(0.22, 0.61, 0.36, 1) 520ms both; }
body.launch-hero-motion .launch-home-button { animation: launch-rise 900ms cubic-bezier(0.22, 0.61, 0.36, 1) 660ms both; }
body.launch-hero-motion .launch-home-button:nth-child(2) { animation-delay: 780ms; }
body.launch-hero-motion .launch-home-cue { animation: launch-fade 800ms ease 980ms both; }

@keyframes launch-rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes launch-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 720px) {
  body[data-page="home"] main > .launch-home-hero:first-child { min-height: 100svh; }
  body[data-page] main .launch-home-hero .launch-home-content { padding-top: max(96px, calc(env(safe-area-inset-top) + 82px)); padding-bottom: max(104px, calc(env(safe-area-inset-bottom) + 74px)); }
  body[data-page] .launch-home-hero .launch-home-copy h1 { max-width: none; font-size: clamp(1.6rem, .5rem + 5.75vw, 4.25rem); line-height: 1.06; }
  .launch-home-subline { max-width: 31em; margin-top: 18px; }
  .launch-home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
  .launch-home-button { min-width: 0; padding-inline: 16px; }
  .launch-home-cue { bottom: max(22px, env(safe-area-inset-bottom)); }
}

@media (max-width: 359px) {
  .launch-home-actions { grid-template-columns: 1fr; }
}

@media (max-height: 520px) and (orientation: landscape) {
  body[data-page] main .launch-home-hero .launch-home-content { padding-top: max(76px, calc(env(safe-area-inset-top) + 66px)); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  body[data-page] .launch-home-hero .launch-home-copy { max-width: 72%; }
  body[data-page] .launch-home-hero .launch-home-copy h1 { font-size: clamp(1.8rem, 8.5vh, 2.8rem); }
  .launch-home-subline { margin-top: 10px; font-size: 0.95rem; }
  .launch-home-actions { display: flex; margin-top: 16px; }
  .launch-home-button { min-height: 44px; }
  .launch-home-cue { display: none; }
}

/* Retain the approved mobile clocks below the new full-screen hero. */
.home-time-reference { display: none; }
.aviation-time { display: none; }
@media (max-width: 767px) and (orientation: portrait) {
  .home-time-reference { display: block; padding: 0 16px 24px; background: #050a12; }
  .aviation-time {
    display: block;
    max-width: 440px;
    margin: 0 auto;
    padding: 14px 12px 16px;
    border: 1px solid #29383f;
    border-radius: 4px;
    background: linear-gradient(145deg, #101c23, #091118 70%);
    color: #e0e9e8;
  }
  .aviation-time-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    color: #94a8ad;
    font: 400 9px/1.4 "IBM Plex Mono", monospace;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  .aviation-time-heading > span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 7px 2px 0;
    border-radius: 50%;
    background: #9acdbf;
  }
  .aviation-time-instruments { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; align-items: center; }
  .aviation-clock { display: grid; justify-items: center; min-width: 0; }
  .aviation-clock svg { display: block; width: min(100%, 94px); overflow: visible; }
  .clock-bezel { fill: #0a1015; stroke: #45545b; stroke-width: 1.5; }
  .clock-face { fill: #101b22; stroke: #26363e; stroke-width: 1; }
  .clock-major { stroke: #c1d0d1; stroke-width: 1.5; }
  .clock-minor { stroke: #52636c; stroke-width: 0.7; }
  .clock-numbers { fill: #a8b8be; font: 400 10px "IBM Plex Mono", monospace; text-anchor: middle; }
  .clock-hour, .clock-minute { stroke: #e4eeec; stroke-linecap: round; fill: none; }
  .clock-hour { stroke-width: 3.4; }
  .clock-minute { stroke-width: 2; }
  .clock-second { stroke: #8ed7c0; stroke-width: 1; }
  .clock-pin { fill: #99d5c3; }
  .aviation-clock-label { margin-top: 8px; color: #b4c6ca; font: 400 9px/1.3 "IBM Plex Mono", monospace; letter-spacing: 0.09em; text-transform: uppercase; }
  .aviation-clock-reading { margin-top: 4px; color: #e0e9e8; font: 400 12px/1.2 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
  .aviation-zulu { display: grid; justify-items: center; align-content: center; min-width: 0; margin-top: -12px; }
  .aviation-zulu-label { color: #a8d9cb; font: 400 9px/1.5 "IBM Plex Mono", monospace; letter-spacing: 0.11em; text-transform: uppercase; }
  .aviation-zulu > time { display: block; width: 100%; margin: 9px 0 7px; padding-block: 10px; border-block: 1px solid #31474b; color: #daf1e8; text-align: center; font: 400 clamp(17px, 5vw, 25px)/1 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
  .aviation-zulu-detail { color: #7f969e; font: 400 8px/1.5 "IBM Plex Mono", monospace; letter-spacing: 0.04em; text-transform: uppercase; }
  body[data-page="home"] #service-routes { padding-top: 24px; }
  body[data-page="home"] .services-section-heading.reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .clock-second { display: none; }
  .launch-home-hero .launch-home-video { transform: none; }
  .launch-home-hero .launch-home-copy { opacity: 1; transform: none; }
  .launch-home-cue i { animation: none; }
  .launch-home-button { transform: none; transition: none; }
  body.launch-hero-motion .site-header,
  body.launch-hero-motion .launch-home-copy h1 span,
  body.launch-hero-motion .launch-home-subline,
  body.launch-hero-motion .launch-home-button,
  body.launch-hero-motion .launch-home-cue { animation: none; }
}

/* Header and navigation follow the delivered package; service routes stay intact. */
body[data-page="home"] .header-inner { max-width: none; padding-block: 20px; }
body[data-page="home"] .brand img { width: auto; height: 32px; }
body[data-page="home"] .site-header .site-nav a { color: #fff; font: 500 14px/1 "Urbanist", sans-serif; letter-spacing: 0; text-transform: none; background-image: none; }
body[data-page="home"] .site-nav small { margin-left: 8px; padding: 3px 8px; border: 1px solid #6cbbc899; border-radius: 99px; font: 500 11px/1 "Urbanist", sans-serif; color: #6cbbc8; }
body[data-page="home"] .nav-toggle { width: 88px; border: 0; margin: 0; padding: 0; }
body[data-page="home"] .nav-toggle span:not(.menu-label) { left: auto; right: 0; width: 22px; }
body[data-page="home"] .nav-toggle span.menu-label { position: static; display: block; height: auto; width: auto; background: none; margin-right: 30px; font: 500 14px/1 "Urbanist", sans-serif; }
@media (min-width: 900px) {
  body[data-page="home"] .nav-toggle { display: none; }
  body[data-page="home"] .brand img { height: 44px; }
  body[data-page="home"] .header-inner { padding-block: 24px; }
  body[data-page="home"] .site-header .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; height: auto; padding: 0; overflow: visible; visibility: visible; opacity: 1; transform: none; background: none; }
  body[data-page="home"] .site-header .site-nav a { border: 0; min-height: 44px; }
  body[data-page="home"] .site-header .site-nav .nav-cta { display: none; }
}
@media (max-width: 899px) {
  body[data-page="home"] .nav-toggle { display: block; z-index: 102; }
  body[data-page="home"] .brand { z-index: 102; }
  body[data-page="home"].nav-open .site-header { background: #0f1d2e; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body[data-page="home"] .site-header .site-nav { position: fixed; inset: 0; height: 100dvh; padding: 100px max(16px, 4vw) max(32px, env(safe-area-inset-bottom)); justify-content: center; background: #0f1d2e; }
  body[data-page="home"] .site-header .site-nav a { min-height: 52px; border: 0; font-size: clamp(1.5rem, 5vw, 2.5rem); }
  body[data-page="home"] .site-header .site-nav .nav-cta { align-self: flex-start; min-height: 48px; margin-top: 20px; padding-inline: 28px; border: 0; border-radius: 99px; background: #226d7a; color: #fff; font-size: 16px; }
}
@media (min-width: 480px) { .launch-home-actions { display: flex; } }
@media (min-width: 1800px) {
  body[data-page] .launch-home-hero .launch-home-copy h1 { font-size: clamp(4.25rem, 3.6vw, 5.5rem); }
  .launch-home-subline { font-size: 1.25rem; }
  .launch-home-button { min-height: 56px; font-size: 17px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  body[data-page="home"] .header-inner { min-height: 60px; padding-block: 8px; }
  body[data-page="home"] .site-header .site-nav { justify-content: flex-start; padding-top: 68px; }
  body[data-page="home"] .site-header .site-nav a { min-height: 44px; font-size: 1.5rem; }
  body[data-page="home"] .site-header .site-nav .nav-cta { margin-top: 8px; }
}
/* Without scripts, keep navigation reachable alongside the poster. */
html:not(.js) body[data-page="home"] .nav-toggle { display: none; }
@media (max-width: 899px) {
  html:not(.js) body[data-page="home"] .site-header { position: relative; background: #0f1d2e; }
  html:not(.js) body[data-page="home"] .header-inner { flex-wrap: wrap; }
  html:not(.js) body[data-page="home"] .site-header .site-nav { position: static; height: auto; display: flex; flex-flow: row wrap; gap: 12px; padding: 0; visibility: visible; opacity: 1; transform: none; }
  html:not(.js) body[data-page="home"] .site-header .site-nav a { font-size: 14px; }
  html:not(.js) body[data-page="home"] .site-header .site-nav .nav-cta { margin-top: 0; }
}
