/* Aviate on Wix Studio: global.css
   Code panel > Page Code > CSS > + Add global.css, then paste this file.
   Rules here cover colour, type, state and motion. Layout (columns, gaps, sizes, breakpoints) is set in the
   Studio editor, so it is not here; wix/preview/preview.css stands in for it in the local preview.
   Class names are Studio "Custom classes" (element > CSS Classes panel). The list is in wix/content/WIX-CONTENT.md.
   State classes on <html> come from the <aviate-film> element and the Home head snippet:
     film-loading  loader running: hide the native hero (the loader stands in for it)
     mark-away     the loader's mark is on screen: hide the header mark; it takes over where the mark lands
     hero-rise     reveal: the hero lines rise in reading order;  hero-dock: same, timed after the dock flight
     film-active   the film is under the header;  film-stop-0 .. film-stop-6: the current stop; film-hero-on: the opening headline is showing
     --film-hero   (custom property) opening text opacity, 1 at the top, 0 once the descent starts */

/* ---------- tokens ---------- */
:root{
  --aviate-paper:#F4F4F1; --aviate-paper2:#E9EAE5; --aviate-rule:#D2D4CF; --aviate-line:#9EA3A8;
  --aviate-ink:#15191E; --aviate-ink2:#4B5259; --aviate-ink3:#5C6369; --aviate-mark:#5F5F5F;
  --aviate-blue:#1C52D3; --aviate-blue-d:#1543AD; --aviate-orbit:#070B12;
  --aviate-err:#B3261E; --aviate-ok:#1B7346; --aviate-cut:#D2541E; /* cut: drawings only, never text or a button */
  /* Fonts. On Wix, replace the first name in each stack with the family name Wix gives the uploaded static file
     (read it from the live site's computed styles). Archivo SemiExpanded ExtraBold is 112.5% width, so the
     stretch below only matters where the variable font is loaded (the local preview). */
  --aviate-f-display:'Archivo SemiExpanded','Archivo','Arial Narrow',system-ui,sans-serif;
  --aviate-f-body:'Public Sans','Segoe UI',system-ui,sans-serif;
  --aviate-f-data:'Red Hat Mono',ui-monospace,Consolas,monospace;
  --aviate-display-stretch:112.5%;
  --aviate-nav-h:64px;
  --aviate-t-press:100ms; --aviate-t-hover:180ms; --aviate-t-state:260ms; --aviate-ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- browser surfaces ---------- */
::selection{background:var(--aviate-blue);color:#fff}
:focus-visible{outline:2px solid var(--aviate-blue);outline-offset:3px}
.aviate-hero :focus-visible,.aviate-contact-band :focus-visible{outline-color:#fff}
.aviate-contact-band .aviate-form :focus-visible{outline-color:var(--aviate-blue)}
html{accent-color:var(--aviate-blue);caret-color:var(--aviate-blue)}

/* ---------- header: clear over the orbit, light glass over the film, solid over the sections ---------- */
.aviate-header{color:var(--aviate-ink);background:rgba(244,244,241,.94);border-bottom:1px solid var(--aviate-rule);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  transition:background-color .6s ease,border-color .6s ease,color .6s ease}
html.film-active .aviate-header{background:rgba(244,244,241,.62);border-bottom-color:rgba(21,25,30,.08);
  -webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3)}
html.film-active.film-hero-on .aviate-header{background:transparent;border-bottom-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;
  color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.45)}
/* the mark is Bridge gray and the wordmark Ink; over the orbit both go white (brand: reversed lockup).
   aviate-logo-mark goes on the header mark only: the film element docks its loader mark into the first one it finds. */
.aviate-logo-mark,.aviate-wordmark{transition:filter .6s ease,opacity .16s linear}
html.film-active.film-hero-on .aviate-header .aviate-logo-mark,html.film-active.film-hero-on .aviate-header .aviate-wordmark{filter:brightness(0) invert(1)}
html.mark-away .aviate-logo-mark{opacity:0;transition:none}
html.film-active.film-hero-on .aviate-header .aviate-btn--sm{text-shadow:none}

/* nav links: the underline draws from the left on hover; the current page keeps it */
.aviate-nav-link{color:inherit;text-decoration:none;opacity:.78;
  background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 2px;
  transition:opacity .2s,background-size var(--aviate-t-state) var(--aviate-ease)}
.aviate-nav-link:hover,.aviate-nav-link[aria-current="page"]{opacity:1;background-size:100% 2px}

/* ---------- buttons: one system for the whole site ----------
   .aviate-btn blue primary; --ghost white outline on dark imagery; --line ink outline on paper; --sm the nav size.
   On Wix, Studio puts the label in .button__label: it inherits the colour set here. */
.aviate-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:600 1rem/1.2 var(--aviate-f-body);padding:14px 22px;border:0;border-radius:2px;
  background:var(--aviate-blue);color:#fff;text-decoration:none;text-shadow:none;white-space:nowrap;cursor:pointer;
  transition:background-color var(--aviate-t-hover) ease,color var(--aviate-t-hover) ease,box-shadow var(--aviate-t-hover) ease,transform var(--aviate-t-press) ease-out}
.aviate-btn .button__label{color:inherit}
.aviate-btn:hover{background:var(--aviate-blue-d);color:#fff}
.aviate-btn:active{transform:scale(.97)}
.aviate-btn--ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.75)}
.aviate-btn--ghost:hover{background:#fff;color:var(--aviate-ink)}
.aviate-btn--ghost:focus-visible{outline-color:#fff}
.aviate-btn--line{background:transparent;color:var(--aviate-ink);box-shadow:inset 0 0 0 1.5px var(--aviate-ink)}
.aviate-btn--line:hover{background:var(--aviate-ink);color:var(--aviate-paper)}
.aviate-btn--sm{font-size:.9rem;padding:9px 15px}
/* touch screens: the nav button keeps a 44px target (it measured 33px on phones) */
@media (pointer:coarse){.aviate-btn--sm{min-height:44px}}
.aviate-arr{display:inline-block;transition:transform var(--aviate-t-hover) var(--aviate-ease)}
.aviate-btn:hover .aviate-arr{transform:translateX(4px)}

/* ---------- type roles ---------- */
.aviate-display{font-family:var(--aviate-f-display);font-stretch:var(--aviate-display-stretch);font-weight:800;letter-spacing:-.02em;line-height:1.04;text-wrap:balance}
.aviate-lead{color:var(--aviate-ink2);font-size:1.15rem;line-height:1.6;text-wrap:pretty}
.aviate-mono-label{font:600 .75rem/1.2 var(--aviate-f-data);letter-spacing:.06em;text-transform:uppercase;color:var(--aviate-ink2)}
.aviate-textlink{color:var(--aviate-blue);font-weight:600;text-underline-offset:4px;transition:color var(--aviate-t-hover)}
.aviate-textlink:hover{color:var(--aviate-blue-d)}

/* ---------- film section and the native hero over it ---------- */
.aviate-film-section{background:var(--aviate-orbit)}
.aviate-hero{color:#fff;opacity:var(--film-hero,1);transition:opacity .16s linear}
.aviate-hero h1,.aviate-hero .aviate-display{text-shadow:0 2px 24px rgba(0,0,0,.35)}
.aviate-hero .aviate-lead{color:rgba(255,255,255,.86)}
.aviate-hint{font:500 .8rem/1.4 var(--aviate-f-data);letter-spacing:.02em;color:rgba(255,255,255,.72)}
/* the loader stands in for the hero until the film's first frame and keyframes are in */
html.film-loading .aviate-hero{opacity:0}
/* reveal: headline, lead, buttons, hint rise 16px in reading order */
@keyframes aviate-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  html.hero-rise .aviate-rise-1,html.hero-rise .aviate-rise-2,html.hero-rise .aviate-rise-3,html.hero-rise .aviate-rise-4{animation:aviate-rise .8s var(--aviate-ease) both}
  html.hero-rise .aviate-rise-2{animation-delay:.12s}
  html.hero-rise .aviate-rise-3{animation-delay:.24s}
  html.hero-rise .aviate-rise-4{animation-delay:.5s}
  /* after the dock flight the text waits until the mark has cleared the headline */
  html.hero-dock .aviate-rise-1{animation-delay:.22s}
  html.hero-dock .aviate-rise-2{animation-delay:.34s}
  html.hero-dock .aviate-rise-3{animation-delay:.46s}
  html.hero-dock .aviate-rise-4{animation-delay:.72s}
}

/* ---------- about block ---------- */
.aviate-name-line{font-family:var(--aviate-f-display);font-stretch:var(--aviate-display-stretch);font-weight:800;letter-spacing:-.02em;line-height:1.02;color:var(--aviate-ink);text-wrap:balance}
.aviate-name-line b,.aviate-name-line strong{color:var(--aviate-blue);font-weight:800}
.aviate-name-line span{white-space:nowrap}
.aviate-slogan{font:500 clamp(1.1rem,1.8vw,1.4rem)/1.35 var(--aviate-f-body);color:var(--aviate-ink2)}
.aviate-facts{border-top:2px solid var(--aviate-ink)}
.aviate-facts b,.aviate-facts strong{display:block;font:800 2rem/1.1 var(--aviate-f-display);font-stretch:var(--aviate-display-stretch);color:var(--aviate-ink)}
.aviate-facts span{color:var(--aviate-ink2);font-size:.95rem}

/* ---------- what we do: timeline ---------- */
.aviate-tl-rail{background:var(--aviate-rule);border-radius:2px}
.aviate-tl-fill{background:var(--aviate-blue);transform-origin:50% 0}
.aviate-tl-num{font:600 .8rem/1 var(--aviate-f-data);color:var(--aviate-blue);font-variant-numeric:tabular-nums}
.aviate-tl-row ul{color:var(--aviate-ink2)}
.aviate-tl-row li::marker{color:var(--aviate-line)}
.aviate-tl-dot{border-radius:50%;background:var(--aviate-paper2);box-shadow:inset 0 0 0 2px var(--aviate-line);
  transition:background-color 300ms var(--aviate-ease),box-shadow 300ms var(--aviate-ease)}
.aviate-tl-row.is-in .aviate-tl-dot{background:var(--aviate-blue);box-shadow:inset 0 0 0 2px var(--aviate-blue),0 0 0 6px rgba(28,82,211,.14)}
.aviate-tl-img{border-radius:3px;overflow:hidden;background:var(--aviate-paper)}

/* ---------- contact band: the finished bridge at dusk under an Orbit overlay (60% or more) ---------- */
.aviate-contact-band{color:#fff;background-color:var(--aviate-orbit)}
.aviate-contact-band .aviate-lead{color:rgba(255,255,255,.86)}
.aviate-contact-band .aviate-mono-label{color:rgba(255,255,255,.72)}
.aviate-contact-band a:not(.aviate-btn){color:#fff;text-underline-offset:4px}
.aviate-contact-overlay{background:linear-gradient(100deg,rgba(7,11,18,.86) 0%,rgba(7,11,18,.72) 48%,rgba(7,11,18,.6) 100%)}
.aviate-figcaption{font:500 .78rem/1.4 var(--aviate-f-data);color:rgba(255,255,255,.68)}

/* ---------- the form: field-book entry lines (as close as Wix Forms' design panel allows) ---------- */
.aviate-form{background:#FBFBF8;color:var(--aviate-ink);border-radius:3px;box-shadow:0 24px 60px -24px rgba(0,0,0,.6)}
.aviate-form label{font:600 .75rem/1.2 var(--aviate-f-data);letter-spacing:.06em;text-transform:uppercase;color:var(--aviate-ink2)}
.aviate-form label small{font:inherit;text-transform:none;letter-spacing:0;color:var(--aviate-ink3)}
.aviate-form input:not([type="checkbox"]),.aviate-form select,.aviate-form textarea{font:400 1rem var(--aviate-f-body);color:var(--aviate-ink);
  border:0;border-bottom:1px solid var(--aviate-line);border-radius:0;background:transparent;
  transition:box-shadow var(--aviate-t-state) var(--aviate-ease),border-color var(--aviate-t-hover)}
.aviate-form ::placeholder{color:#6B7178;opacity:1}
.aviate-form input:not([type="checkbox"]):hover,.aviate-form select:hover,.aviate-form textarea:hover{border-bottom-color:var(--aviate-ink2)}
/* focus: the entry line turns into a 2px blue line */
.aviate-form input:not([type="checkbox"]):focus,.aviate-form select:focus,.aviate-form textarea:focus{outline:2px solid transparent;border-bottom-color:var(--aviate-blue);box-shadow:inset 0 -1px 0 var(--aviate-blue)}
.aviate-form [aria-invalid="true"]{border-bottom-color:var(--aviate-err)!important}
.aviate-form .aviate-field-error{font-size:.85rem;color:var(--aviate-err)}
.aviate-form .aviate-status{font-size:.92rem;color:var(--aviate-ink2)}
.aviate-form .aviate-status.is-ok{color:var(--aviate-ok);font-weight:600}
.aviate-form .aviate-status.is-err{color:var(--aviate-err);font-weight:600}
.aviate-consent input{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin:2px 0 0;border:1.5px solid var(--aviate-line);border-radius:2px;background:#fff;display:grid;place-content:center;cursor:pointer;
  transition:background-color var(--aviate-t-hover) ease,border-color var(--aviate-t-hover) ease}
.aviate-consent input::after{content:"";width:10px;height:5px;border:solid #fff;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg) scale(0);transition:transform 160ms var(--aviate-ease)}
.aviate-consent input:hover{border-color:var(--aviate-ink2)}
.aviate-consent input:checked{background:var(--aviate-blue);border-color:var(--aviate-blue)}
.aviate-consent input:checked::after{transform:translateY(-1px) rotate(-45deg) scale(1)}
.aviate-consent input:focus-visible{outline:2px solid var(--aviate-blue);outline-offset:2px}
.aviate-consent label{font:500 .95rem/1.5 var(--aviate-f-body);letter-spacing:0;text-transform:none;color:var(--aviate-ink);cursor:pointer}
.aviate-consent label small{margin-left:6px;font:600 .72rem/1 var(--aviate-f-data);letter-spacing:.06em;text-transform:uppercase;color:var(--aviate-ink3);white-space:nowrap}
.aviate-consent .aviate-fine{font-size:.8rem;line-height:1.5;color:var(--aviate-ink2)}
.aviate-consent .aviate-fine a{color:var(--aviate-ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--aviate-line);text-underline-offset:3px;transition:color var(--aviate-t-hover),text-decoration-color var(--aviate-t-hover)}
.aviate-consent .aviate-fine a:hover{color:var(--aviate-blue);text-decoration-color:currentColor}

/* ---------- footer ---------- */
.aviate-footer{background:var(--aviate-paper);color:var(--aviate-ink2);border-top:2px solid var(--aviate-ink)}
.aviate-footer h2,.aviate-footer .aviate-mono-label{color:var(--aviate-ink)}
.aviate-footer a{color:inherit;text-decoration:none}
.aviate-footer a:hover{color:var(--aviate-ink);text-decoration:underline;text-underline-offset:4px}

/* ---------- about page ---------- */
.aviate-statement{font:600 clamp(1.3rem,2.2vw,1.75rem)/1.4 var(--aviate-f-body);letter-spacing:-.01em;color:var(--aviate-ink);text-wrap:pretty}
.aviate-close-band{background:var(--aviate-paper2)}

/* ---------- legal pages ---------- */
.aviate-toc a{color:var(--aviate-ink2);text-decoration:none;border-left:2px solid transparent;transition:color var(--aviate-t-hover),border-color var(--aviate-t-hover)}
.aviate-toc a:hover{color:var(--aviate-ink);border-left-color:var(--aviate-line)}
.aviate-toc a[aria-current="true"]{color:var(--aviate-ink);font-weight:600;border-left-color:var(--aviate-blue)}
.aviate-legal-body p,.aviate-legal-body li{color:var(--aviate-ink2)}
.aviate-legal-body li::marker{color:var(--aviate-blue)}
.aviate-legal-body strong{color:var(--aviate-ink);font-weight:600}
.aviate-legal-body a{color:var(--aviate-blue);font-weight:600;text-underline-offset:4px}
.aviate-legal-body a:hover{color:var(--aviate-blue-d)}
.aviate-sec-num{font:600 .8rem/1 var(--aviate-f-data);letter-spacing:.04em;color:var(--aviate-blue);font-variant-numeric:tabular-nums}
.aviate-box{background:#fff;border:1px solid var(--aviate-rule);border-radius:3px}
.aviate-box p{color:var(--aviate-ink)}

/* ---------- reduced motion: fades only, no movement ---------- */
@media (prefers-reduced-motion:reduce){
  .aviate-btn,.aviate-arr{transition:background-color var(--aviate-t-hover) ease,color var(--aviate-t-hover) ease}
  .aviate-btn:active,.aviate-btn:hover .aviate-arr{transform:none}
  .aviate-consent input::after{transition:none}
  .aviate-nav-link{transition:opacity .2s}
}
