/* Omnel — the home's own layer: the night stage of the front and its scene, the night band of figures,
   the screens that settle in depth, and the small motions that make the console feel live.
   The site's stylesheet supplies type, buttons, sections and every screen; this file only adds. */

:root {
  --night: #0f1024;
  --night-3: #0b0c1a;
  --paper-72: rgba(246, 245, 240, 0.72);
  --paper-50: rgba(246, 245, 240, 0.5);
  --paper-28: rgba(246, 245, 240, 0.28);
  --paper-14: rgba(246, 245, 240, 0.14);
  --paper-08: rgba(246, 245, 240, 0.08);
  --indigo-l: #9aa6ff;
  --teal-l: #4fd1bd;
  --overlap: clamp(72px, 10vh, 112px);
}

.front section { scroll-margin-top: 76px; }

/* ── Nav: fixed; night over the stage, paper once the page has left it ── */
.front .nav { position: fixed; left: 0; right: 0; top: 0; transition: background 0.5s var(--ease), border-color 0.5s var(--ease); }
.nav .mark-dark { display: none; }
.front .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--indigo); transform-origin: left; transform: scaleX(var(--progress, 0)); opacity: 0.7; pointer-events: none; }
.front .nav-links a { position: relative; transition: color 0.3s var(--ease); }
.front .nav-links a.on { color: var(--ink); }
.front .nav-links a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; opacity: 0.5; }
.front .nav:not(.nav-day) { background: rgba(11, 12, 26, 0.62); border-bottom-color: var(--paper-08); }
.front .nav:not(.nav-day) .mark-dark { display: block; }
.front .nav:not(.nav-day) .mark-light { display: none; }
.front .nav:not(.nav-day) .brand-word { color: var(--paper); }
.front .nav:not(.nav-day) .brand-by { color: var(--paper-50); }
.front .nav:not(.nav-day) .nav-links a { color: var(--paper-72); }
.front .nav:not(.nav-day) .nav-links a:hover, .front .nav:not(.nav-day) .nav-links a.on { color: var(--paper); }
.front .nav:not(.nav-day) .btn-primary { background: var(--paper); color: var(--ink); }
.front .nav:not(.nav-day) .btn-primary:hover { background: #ffffff; }

/* ── The front: a night stage for the head, the three offers overlapping into the paper ── */
.front .hero-front { padding: 0 0 clamp(44px, 7vh, 80px); }
.front-stage { position: relative; background: var(--night-3); color: var(--paper); overflow: hidden; isolation: isolate;
  padding: calc(68px + clamp(34px, 6.5vh, 76px)) 0 calc(var(--overlap) + clamp(24px, 3.6vh, 40px)); }
.front-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity 1.8s ease; }
.front-stage.is-live .front-canvas { opacity: 1; }
.front-fb { position: absolute; inset: 0; z-index: 0; display: none;
  background:
    radial-gradient(ellipse 34% 46% at 78% 62%, rgba(154, 166, 255, 0.16), rgba(154, 166, 255, 0) 70%),
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(35, 40, 102, 0.5), rgba(35, 40, 102, 0) 70%),
    var(--night-3); }
.front-fb::before { content: ""; position: absolute; right: 6%; top: 18%; width: 34%; height: 62%;
  background: repeating-linear-gradient(90deg, rgba(246, 245, 240, 0.1) 0 1px, transparent 1px 7%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
  transform: perspective(700px) rotateY(-28deg); }
.front-stage.no-webgl .front-fb { display: block; }
.front-stage.no-webgl .front-canvas { display: none; }
.front-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 12, 26, 0.9) 0%, rgba(11, 12, 26, 0.72) 34%, rgba(11, 12, 26, 0.2) 58%, rgba(11, 12, 26, 0) 74%),
    linear-gradient(180deg, rgba(11, 12, 26, 0.6) 0%, rgba(11, 12, 26, 0) 22%, rgba(11, 12, 26, 0) 70%, rgba(11, 12, 26, 0.7) 100%); }
.front-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.front-stage-inner { position: relative; z-index: 2; min-width: 0; }
.front-stage .hero-head { max-width: 760px; }
.front-stage .eyebrow { color: var(--indigo-l); }
.front-stage h1.display { color: var(--paper); font-size: clamp(36px, 4.2vw, 60px); max-width: 14.5em; }
.front-stage h1.display em { color: var(--indigo-l); }
.front-stage .lede { color: var(--paper-72); max-width: 58ch; }

/* the four words of the scene, lit in turn as the record is placed, sealed, logged and checked */
.front-hud { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: clamp(22px, 4vh, 40px); padding-top: 14px; max-width: 760px;
  border-top: 1px solid var(--paper-14); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-50); }
.front-hud span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; transition: color 0.5s var(--ease); }
.front-hud i { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-14); transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.front-hud[data-stage="0"] span:nth-child(-n+1), .front-hud[data-stage="1"] span:nth-child(-n+2),
.front-hud[data-stage="2"] span:nth-child(-n+3), .front-hud[data-stage="3"] span { color: var(--paper-72); }
.front-hud[data-stage="0"] span:nth-child(-n+1) i, .front-hud[data-stage="1"] span:nth-child(-n+2) i,
.front-hud[data-stage="2"] span:nth-child(-n+3) i, .front-hud[data-stage="3"] span i { background: var(--teal-l); box-shadow: 0 0 10px rgba(79, 209, 189, 0.6); }
.front-hud[data-stage="0"] span:nth-child(1), .front-hud[data-stage="1"] span:nth-child(2),
.front-hud[data-stage="2"] span:nth-child(3), .front-hud[data-stage="3"] span:nth-child(4) { color: var(--paper); }
@media (prefers-reduced-motion: no-preference) { .front-hud { opacity: 0; animation: fr-fade 1.2s var(--ease) 700ms forwards; } }

.front-cards { position: relative; z-index: 3; margin-top: calc(-1 * var(--overlap)); }
.front-cards .front-offers { margin-top: 0; }
.front .front-offer { position: relative; overflow: hidden; box-shadow: 0 44px 80px -48px rgba(11, 12, 26, 0.62), 0 1px 0 rgba(255, 255, 255, 0.7) inset; }
.front .front-offer::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: var(--indigo); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) calc(var(--d, 0ms) + 500ms); }
.front .front-offer.is-in::after { transform: scaleX(1); }
.front .front-offer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(61, 79, 207, 0.07), rgba(61, 79, 207, 0) 60%); }
.front .front-offer:hover::before { opacity: 1; }
.front .front-offer[data-reveal].is-in { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.front .front-offer.is-settled { transition: opacity 0.9s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.front .front-offer.is-settled:hover { --lift: -4px; box-shadow: 0 54px 90px -50px rgba(11, 12, 26, 0.7), 0 1px 0 rgba(255, 255, 255, 0.7) inset; }

/* ── Facts: a night band; the figures count ── */
.front .facts.facts-night { position: relative; overflow: hidden; background: var(--night-3); border-color: transparent; color: var(--paper); isolation: isolate; }
.facts-night::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 40% 120% at 12% 0%, rgba(61, 79, 207, 0.22), rgba(61, 79, 207, 0) 70%),
    radial-gradient(ellipse 30% 100% at 92% 100%, rgba(79, 209, 189, 0.08), rgba(79, 209, 189, 0) 70%); }
.facts-night::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(154, 166, 255, 0) 0%, rgba(154, 166, 255, 0.8) 50%, rgba(154, 166, 255, 0) 100%) no-repeat;
  background-size: 30% 100%; background-position: -40% 0; }
@media (prefers-reduced-motion: no-preference) { .facts-night::after { animation: fr-scan 7s var(--ease) infinite; } }
.front .facts-night .facts-grid > div + div { border-left-color: var(--paper-08); }
.front .facts-night .facts-grid b { color: var(--indigo-l); font-variant-numeric: tabular-nums; }
.front .facts-night .facts-grid p { color: var(--paper-72); }

/* ── Screens: they settle out of depth, then lean a little toward the pointer ── */
.front .scr { position: relative; }
.front .scr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.front .scr.is-settled:hover::after { opacity: 1; }
.front .rows b.v::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; border-radius: 50%;
  background: #1f9d8a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6.2l1.8 1.8 3.8-4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.front .leaves td.yes::before, .front .leaves td.no::before, .front .leaves td.cond::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; vertical-align: 1px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent); }

/* ── Steps: each card draws its edge, and its number fills, in turn ── */
.front .steps li { position: relative; overflow: hidden; }
.front .steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--indigo); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease) calc(var(--d, 0ms) + 300ms); }
.front .steps li.is-in::before { transform: scaleX(1); }
.front .steps li .n { transition: background 0.6s var(--ease) calc(var(--d, 0ms) + 800ms), color 0.6s var(--ease) calc(var(--d, 0ms) + 800ms); }
.front .steps li.is-in .n { background: var(--indigo); color: var(--white); }

/* ── Aviation, on the home: the aviation page's night approach, live, in a card with a head-up display ── */
.av-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.av-home .section-head { margin-bottom: 0; }
.approach { position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden; isolation: isolate; background: #0a0b15;
  box-shadow: 0 48px 90px -52px rgba(21, 22, 43, 0.6); }
.approach-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; }
.approach.is-live .approach-canvas { opacity: 1; }
.approach-fb { position: absolute; inset: 0; display: none; }
.approach-fb svg { width: 100%; height: 100%; display: block; }
.approach.no-webgl .approach-fb { display: block; }
.approach.no-webgl .approach-canvas, .approach.no-webgl .hud-conformal { display: none; }
/* the head-up display: its horizon, pitch ladder and flight-path marker ride the true horizon of the scene */
.approach-hud { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease) 0.8s;
  filter: drop-shadow(0 0 3px rgba(79, 209, 189, 0.5)); }
.approach.is-live .approach-hud, .approach.no-webgl .approach-hud { opacity: 0.9; }
.approach-hud .hl, .approach-hud .tk, .approach-hud .pl, .approach-hud .fpv circle, .approach-hud .fpv path { fill: none; stroke: var(--teal-l); stroke-linecap: round; }
.approach-hud .hl { stroke-width: 1.3; }
.approach-hud .tk { stroke-width: 1.1; opacity: 0.7; }
.approach-hud .pl { stroke-width: 1.1; stroke-dasharray: 7 5; opacity: 0.8; }
.approach-hud .fpv circle, .approach-hud .fpv path { stroke-width: 1.7; }
.approach-hud .hud-scale circle { fill: none; stroke: var(--paper-50); stroke-width: 1.2; }
.approach-hud .dia { fill: var(--teal-l); transform-box: fill-box; transform-origin: center; }
.approach-hud .hud-n { font-family: var(--mono); font-size: 10px; fill: var(--teal-l); }
.approach-hud .hud-l { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--paper-72); }
.approach-glass { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 38%), radial-gradient(ellipse 80% 70% at 50% 50%, rgba(10, 11, 21, 0) 60%, rgba(10, 11, 21, 0.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }

/* ── Motion ── */
@media (prefers-reduced-motion: no-preference) {
  /* screens come out of depth */
  .front .scr[data-reveal] { transform: perspective(1600px) rotateX(9deg) rotateY(-12deg) translateY(26px) scale(0.98); transform-origin: 50% 60%;
    transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.6s var(--ease) var(--d, 0ms); }
  .front .offer.flip .scr[data-reveal] { transform: perspective(1600px) rotateX(9deg) rotateY(12deg) translateY(26px) scale(0.98); }
  .front .scr[data-reveal].is-in, .front .offer.flip .scr[data-reveal].is-in { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .front .scr.is-settled { transition: opacity 1s var(--ease), transform 0.45s var(--ease); }

  /* inside a screen: the figures, then the journal line by line, then the seal */
  .front .scr .kpi, .front .scr .gauge, .front .scr .tcard { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .front .scr.is-in .kpi, .front .scr.is-in .gauge, .front .scr.is-in .tcard { opacity: 1; transform: none; }
  .front .scr.is-in :is(.kpi, .gauge, .tcard):nth-child(1) { transition-delay: 450ms; }
  .front .scr.is-in :is(.kpi, .gauge, .tcard):nth-child(2) { transition-delay: 560ms; }
  .front .scr.is-in :is(.kpi, .gauge, .tcard):nth-child(3) { transition-delay: 670ms; }
  .front .scr.is-in :is(.kpi, .gauge, .tcard):nth-child(4) { transition-delay: 780ms; }
  .front .scr .journal > div { opacity: 0; transform: translateX(-8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .front .scr.is-in .journal > div { opacity: 1; transform: none; }
  .front .scr.is-in .journal > div:nth-child(1) { transition-delay: 900ms; }
  .front .scr.is-in .journal > div:nth-child(2) { transition-delay: 1180ms; }
  .front .scr.is-in .journal > div:nth-child(3) { transition-delay: 1460ms; }
  .front .scr.is-in .journal > div:nth-child(4) { transition-delay: 1740ms; }
  .front .scr.is-in .journal > div:nth-child(5) { transition-delay: 2020ms; }
  .front .scr.is-in .journal > div:nth-child(6) { transition-delay: 2300ms; }
  .front .scr.is-in .journal .hl { animation: fr-hl 2.4s var(--ease) 2.1s 1 both; }
  .front .scr .scr-head .pill { position: relative; }
  .front .scr.is-in .scr-head .pill.ok { animation: fr-stamp 0.9s var(--ease) 1.2s both; }
  .front .scr.is-in .scr-head .pill.ok::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 1px solid #1f9d8a; opacity: 0; animation: fr-ping 1.4s var(--ease) 1.5s 1; }
  .front .scr .rows b.v::before { transform: scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
  .front .scr.is-in .rows b.v::before { transform: scale(1); }
  .front .scr.is-in .rows > div:nth-child(2) b.v::before { transition-delay: 1300ms; }
  .front .scr.is-in .rows > div:nth-child(3) b.v::before { transition-delay: 1650ms; }
  .front .scr .bars .bar:nth-child(2) i { transition-delay: 120ms; }
  .front .scr .bars .bar:nth-child(3) i { transition-delay: 240ms; }
  .front .scr .bars .bar:nth-child(4) i { transition-delay: 360ms; }
  .front .scr-tabs.touring button.on { position: relative; overflow: hidden; }
  .front .scr-tabs.touring button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1px; background: var(--indigo); transform-origin: left; animation: fr-tour var(--tour, 6s) linear both; }

  /* tables: rows arrive in turn */
  .front .leaves tbody tr { opacity: 0; transform: translateY(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .front .leaves.is-in tbody tr { opacity: 1; transform: none; }
  .front .leaves.is-in tbody tr:nth-child(1) { transition-delay: 200ms; }
  .front .leaves.is-in tbody tr:nth-child(2) { transition-delay: 290ms; }
  .front .leaves.is-in tbody tr:nth-child(3) { transition-delay: 380ms; }
  .front .leaves.is-in tbody tr:nth-child(4) { transition-delay: 470ms; }
  .front .leaves.is-in tbody tr:nth-child(5) { transition-delay: 560ms; }
  .front .leaves.is-in tbody tr:nth-child(6) { transition-delay: 650ms; }
  .front .leaves.is-in tbody tr:nth-child(7) { transition-delay: 740ms; }
  .front .leaves.is-in tbody tr:nth-child(8) { transition-delay: 830ms; }
  .front .leaves.is-in tbody tr:nth-child(9) { transition-delay: 920ms; }
  .front .leaves.is-in tbody tr:nth-child(10) { transition-delay: 1010ms; }
  .front .leaves.is-in tbody tr:nth-child(11) { transition-delay: 1100ms; }
  .front .leaves.is-in tbody tr:nth-child(12) { transition-delay: 1190ms; }
  .front .leaves.is-in tbody tr:nth-child(n+13) { transition-delay: 1280ms; }

  /* the Standard: each marker drops onto its track once the band has run */
  .front .track em { transform: scaleY(0); transition: transform 0.6s var(--ease) 1.1s; }
  .front .is-in .track em { transform: scaleY(1); }

  /* the approach card turns out of depth; its two diamonds hold the path with the small corrections of a hand on the controls */
  .approach-hud .dia { animation: fr-hold 9s ease-in-out infinite; }
  .approach-hud .dia-x { animation-name: fr-hold-x; animation-duration: 13s; }
  .approach[data-reveal] { transform: perspective(1600px) rotateX(8deg) rotateY(-12deg) translateY(24px); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
  .approach[data-reveal].is-in { transform: none; }
}

@keyframes fr-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fr-scan { 0% { background-position: -40% 0; } 60%, 100% { background-position: 140% 0; } }
@keyframes fr-hl { 0% { background: rgba(61, 79, 207, 0); } 30% { background: rgba(61, 79, 207, 0.14); } 100% { background: rgba(61, 79, 207, 0); } }
@keyframes fr-stamp { 0% { transform: scale(1.5); opacity: 0; } 55% { transform: scale(0.96); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fr-ping { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes fr-tour { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fr-hold { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-2.5px); } 70% { transform: translateY(1.8px); } }
@keyframes fr-hold-x { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(2.2px); } 75% { transform: translateX(-1.6px); } }

/* ── Responsive ── */
@media (max-width: 1040px) {
  .front .facts-night .facts-grid > div:nth-child(3), .front .facts-night .facts-grid > div:nth-child(4) { border-top-color: var(--paper-08); }
  .front .facts-night .facts-grid > div:nth-child(3) { border-left: 0; }
  .av-home { grid-template-columns: 1fr; }
  .approach { max-width: 620px; }
  .front-shade { background:
    linear-gradient(90deg, rgba(11, 12, 26, 0.86) 0%, rgba(11, 12, 26, 0.6) 50%, rgba(11, 12, 26, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 12, 26, 0.6) 0%, rgba(11, 12, 26, 0) 22%, rgba(11, 12, 26, 0) 70%, rgba(11, 12, 26, 0.7) 100%); }
}
@media (max-width: 640px) {
  .front .facts-night .facts-grid > div, .front .facts-night .facts-grid > div + div { border-top-color: var(--paper-08); }
  .front-hud { gap: 8px 18px; font-size: 10px; letter-spacing: 0.1em; }
  .front-hud span { white-space: normal; }
  .front-stage { padding-top: calc(68px + 28px); }
  .front-shade { background: linear-gradient(180deg, rgba(11, 12, 26, 0.78) 0%, rgba(11, 12, 26, 0.5) 55%, rgba(11, 12, 26, 0.75) 100%); }
}
