/* Aevion — rebuild
   Palette, type scale and layout metrics were measured off the original at a
   1440px viewport, so the numbers here are transcriptions rather than guesses. */

@font-face {
  font-family: switzer;
  src: url("assets/fonts/switzer-variable.woff2") format("woff2-variations");
  font-weight: 300 500;
  font-display: swap;
}

@font-face {
  font-family: protoMono;
  src: url("assets/fonts/proto-mono-light.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #24363f;
  --near: #171717;
  --canvas: #fdfdfd;
  --paper: #fff;
  --panel: #dde5e9;

  --ink-88: rgba(36, 54, 63, 0.88);
  --ink-64: rgba(36, 54, 63, 0.64);
  --ink-48: rgba(36, 54, 63, 0.48);
  --ink-32: rgba(36, 54, 63, 0.32);
  --ink-24: rgba(36, 54, 63, 0.24);
  --ink-12: rgba(36, 54, 63, 0.12);
  --ink-08: rgba(36, 54, 63, 0.08);

  --gutter: 24px;
  --bar-h: 64px;

  /* the original's easing, lifted from its compiled stylesheet */
  --ease: cubic-bezier(0.32, 0, 0.16, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  /* Lenis drives scrolling; the fallback keeps anchors civilised without it. */
  scroll-behavior: smooth;
}

html.lenis { scroll-behavior: auto; }
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: switzer, ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }

p, h1, h2, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.skip:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.mono {
  font-family: protoMono, ui-monospace, monospace;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--ink-64);
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 40px;
  padding: 0 12px 0 var(--gutter);
  background: rgba(253, 253, 253, 0.82);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.mark img { width: 20px; height: 20px; }

.brand .dot { color: var(--ink-32); font-size: 11px; }
.brand .sub { color: var(--ink-64); white-space: nowrap; }

.credit { justify-self: center; color: var(--ink-64); white-space: nowrap; }
.credit a { color: var(--ink); }
.credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

.clock {
  justify-self: center;
  color: var(--ink-64);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The original's clock ticks by blinking its colon once a second. */
.clock .colon {
  display: inline-block;
  margin: 0 0.3em;
  transition: opacity 0.15s linear;
}

.clock .colon.off { opacity: 0; }

.menubtn {
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 500;
  text-transform: lowercase;
  background: var(--ink-08);
  transition: background 0.2s var(--ease), opacity 0.7s var(--ease-soft) 0.45s;
}

.menubtn:hover { background: var(--ink-12); }

/* ------------------------------------------------------------------- menu */

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  background: rgba(253, 253, 253, 0.97);
  backdrop-filter: blur(14px);
}

.menu[hidden] { display: none; }

.menu .close {
  position: absolute;
  top: 8px;
  right: 12px;
}

.menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu a {
  display: block;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}

.menu:hover a { opacity: 0.28; }
.menu a:hover { opacity: 1; }

.menu.in a { animation: menuin 0.5s var(--ease-soft) backwards; }

@keyframes menuin {
  from { opacity: 0; transform: translateY(24px); }
}

/* ------------------------------------------------- fixed 3d drone "stage" */

/* The band's own background paints below the drone layer, so the model can
   cross in front of the copy inside it. */
.topband { background: var(--canvas); }

.stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.stage.live { opacity: 1; }
.stage canvas { width: 100%; height: 100%; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100svh;
  padding: 0 var(--gutter) 24px;
  overflow: hidden;
}

/* Drawn as a mask rather than an <img>: the source file carries fill="none",
   and this way the colour is ours to set. */
.hero .wordmark {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(96%, 1500px);
  aspect-ratio: 2515 / 723;
  translate: -50% -50%;
  background: var(--ink);
  opacity: 0.07;
  -webkit-mask: url("assets/hero/aevion.svg") center / contain no-repeat;
  mask: url("assets/hero/aevion.svg") center / contain no-repeat;
  pointer-events: none;
}

.hero .glow {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 76%;
  aspect-ratio: 2.4;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(36, 54, 63, 0.055), rgba(36, 54, 63, 0));
  pointer-events: none;
}

.herofoot {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.lede {
  display: flex;
  flex-direction: column;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  letter-spacing: -0.8px;
}

.lede .soft { color: var(--ink-48); }

.scrolldown {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
}

.scrolldown svg { transition: transform 0.4s var(--ease); }
.scrolldown:hover svg { transform: translateY(4px); }

/* --------------------------------------------------------------- entrance
   The original holds the hero on plain white while the model streams in, then
   resolves the wordmark out of a very wide blur as it rises, and brings the
   tagline in a word at a time. `booting` comes off once the drone is ready. */

@media (prefers-reduced-motion: no-preference) {

  .hero .wordmark {
    transition: filter 1.3s var(--ease-soft), translate 1.3s var(--ease-soft);
  }

  body.booting .hero .wordmark {
    filter: blur(200px);
    translate: -50% calc(-50% + 50px);
  }

  .hero .glow { transition: opacity 1.1s var(--ease-soft) 0.15s; }
  body.booting .hero .glow { opacity: 0; }

  /* Before the words are split the whole block carries the blur, so a late
     module never flashes sharp text. */
  .lede { transition: filter 0.8s var(--ease-soft); }
  body.booting .lede { filter: blur(50px); }
  body.booting .lede.split { filter: none; }

  .lede .w {
    display: inline-block;
    transition: filter 0.85s var(--ease-soft), opacity 0.85s var(--ease-soft);
    transition-delay: calc(var(--i, 0) * 45ms);
  }

  body.booting .lede .w { filter: blur(50px); opacity: 0; }

  body.booting .menubtn,
  body.booting .scrolldown { opacity: 0; }
}

.scrolldown { transition: opacity 0.7s var(--ease-soft) 0.45s; }

/* ------------------------------------------------------ scroll-lit copy */

.reveal span {
  color: var(--ink-24);
  transition: color 0.45s var(--ease);
}

.reveal span.lit { color: var(--near); }

.intro {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 120vh;
  padding: 0 var(--gutter);
}

.intro h1 {
  max-width: 590px;
  font-size: clamp(34px, 4.45vw, 64px);
  font-weight: 300;
  line-height: 1.125;
  letter-spacing: -0.0375em;
}

/* --------------------------------------------------------------- sections */

.section {
  position: relative;
  padding: 0 var(--gutter);
}

.secthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.giant {
  font-size: clamp(64px, 16.7vw, 240px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.054em;
  color: var(--near);
}

.secnum {
  padding-top: 8px;
  font-family: protoMono, ui-monospace, monospace;
  font-size: 14px;
  color: var(--ink-48);
}

.tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag .bullet { font-size: 10px; color: var(--ink-32); }

.big {
  font-size: clamp(22px, 2.22vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* ------------------------------------------------------------------- gear */

.gear {
  padding-top: 24px;
  padding-bottom: 8vh;
}

.gearbody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12vh;
  min-height: 46vh;
}

.gearcopy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
  padding-top: 4vh;
}

/* ------------------------------------------- pinned stats under the drone */

.dronelock {
  position: relative;
  height: 260vh;
}

.lockinner {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100svh;
  padding: 0 var(--gutter) 6vh;
}

.dome {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 346px;
  margin: 0 auto;
  width: min(691px, 100%);
  color: var(--ink-24);
}

.dome .arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dome .marker {
  position: absolute;
  bottom: 78px;
  color: var(--ink-48);
}

.dome .badge {
  position: absolute;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--ink-24);
  border-radius: 50%;
  background: var(--canvas);
}

.dome .badge svg { fill: var(--ink); animation: badge 4s var(--ease) infinite; }

@keyframes badge {
  0%, 100% { opacity: 0.5; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(90deg); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-24);
}

.stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 64px 16px;
  text-align: center;
}

.stats li + li { border-left: 1px solid var(--ink-24); }

.stats .val {
  font-size: clamp(30px, 3.33vw, 48px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.06em;
  color: var(--ink-24);
  transition: color 0.5s var(--ease);
}

.stats .mono { color: var(--ink-24); transition: color 0.5s var(--ease); }

.stats li.on .val { color: var(--ink); }
.stats li.on .mono { color: var(--ink-64); }

/* -------------------------------------------------------------- solutions */

/* These sit above the 3D layer on their own opaque ground; the landing section
   deliberately does not, so the drone can settle into it. */
.solutions, .capabilities, .software {
  position: relative;
  z-index: 6;
  background: var(--paper);
}

.solutions { padding-top: 200px; padding-bottom: 64px; }

.tabrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 8vh;
}

.tab {
  position: relative;
  padding-bottom: 6px;
  font-size: clamp(30px, 3.9vw, 56px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink-32);
  transition: color 0.3s var(--ease);
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.tab:hover { color: var(--ink-64); }
.tab.on { color: var(--ink); }
.tab.on::after { transform: scaleX(1); }

.solbody {
  display: grid;
  grid-template-columns: 580fr 695fr;
  gap: 117px;
  margin-top: 40px;
  border-top: 1px solid var(--ink-24);
  padding-top: 40px;
}

.solcopy { position: relative; }

.panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel[hidden] { display: none; }

.panel.in { animation: panelin 0.55s var(--ease-soft); }

@keyframes panelin {
  from { opacity: 0; transform: translateY(14px); }
}

.para {
  font-size: clamp(20px, 1.95vw, 28px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.029em;
  max-width: 34ch;
}

.cells {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  margin-top: 16px;
}

.cell {
  position: relative;
  padding: 8px 12px 14px;
  border-top: 1px solid var(--ink-24);
}

.cell .num {
  font-size: clamp(24px, 2.22vw, 32px);
  font-weight: 300;
  line-height: 40px;
  letter-spacing: -0.025em;
  color: var(--ink-88);
}

/* The metered readouts show their value as a fill that stops at --bar, with a
   hairline at the fill edge the way a gauge would. */
.cell.meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--bar) * 100%);
  border-right: 1px solid var(--ink-24);
  background: var(--ink-08);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-soft);
}

.cells.lit .cell.meter::before { transform: scaleX(1); }

.cell.meter > * { position: relative; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 8px;
}

.solvideo {
  position: relative;
  aspect-ratio: 695 / 700;
  background: var(--panel);
  overflow: hidden;
}

.solvideo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.solvideo video.on { opacity: 1; }

/* ----------------------------------------------------------- capabilities */

.capabilities {
  border-top: 1px solid var(--ink-24);
  padding-top: 120px;
  padding-bottom: 96px;
}

.capbody {
  display: grid;
  grid-template-columns: 1fr minmax(0, 691px) 1fr;
  gap: 25px;
  margin-top: 48px;
  border-top: 1px solid var(--ink-24);
  padding-top: 72px;
}

.capside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.caplist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.captab {
  font-size: clamp(24px, 2.22vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink-32);
  transition: color 0.3s var(--ease);
}

.captab:hover { color: var(--ink-64); }
.captab.on { color: var(--ink); }

.capvisual {
  position: relative;
  aspect-ratio: 691 / 531;
  background: var(--panel);
  overflow: hidden;
}

.capvisual canvas { width: 100%; height: 100%; }

.capreadout { display: flex; flex-direction: column; gap: 12px; }

.capval {
  font-size: clamp(26px, 2.22vw, 32px);
  font-weight: 300;
  line-height: 40px;
  letter-spacing: -0.025em;
  color: var(--ink-88);
}

.capnote {
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  letter-spacing: -0.02em;
  max-width: 32ch;
}

.capside .marker { color: var(--ink-48); }
.capside .marker.end { text-align: right; }

.capswap { animation: panelin 0.5s var(--ease-soft); }

/* --------------------------------------------------------------- software */

.software { padding-top: 200px; padding-bottom: 96px; }

.softhead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 14vh;
}

.softhead .big { max-width: 660px; }

.terrain {
  position: relative;
  aspect-ratio: 1392 / 608;
  margin-top: 12vh;
  background: linear-gradient(175deg, #e7edf0, #f4f7f8 60%, #eef3f5);
  overflow: hidden;
}

.terrain canvas { width: 100%; height: 100%; }

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
}

/* The dot sits on a hairline stem so it reads as a marker planted in the
   terrain rather than a floating button. */
.pindot {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d2b32;
  translate: -50% -100%;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.pindot::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 42px;
  background: linear-gradient(#1d2b32, rgba(29, 43, 50, 0));
}

.pindot img { width: 12px; height: 12px; filter: invert(1); }
.pindot:hover { transform: scale(1.08); }

.pincard {
  position: absolute;
  left: 0;
  top: -14px;
  z-index: 3;
  width: 300px;
  padding: 18px 20px 20px;
  background: rgba(23, 32, 37, 0.94);
  backdrop-filter: blur(8px);
  color: #fff;
  translate: -50% -100%;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.pin.open .pincard {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pin.open .pindot { background: #0f1a1f; }

.pintop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pintop .mono { color: rgba(255, 255, 255, 0.48); }
.pinclose img { width: 12px; height: 12px; filter: invert(1); opacity: 0.6; }
.pinclose:hover img { opacity: 1; }

.pintitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -0.2px;
}

.pinnote {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 300;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.64);
}

.pinrisk {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  text-transform: none;
  color: rgba(255, 255, 255, 0.48);
}

.pinrisk span + span { color: #fff; }

/* -------------------------------------------------------- landing + foot */

.landing {
  position: relative;
  padding: 46vh var(--gutter) 24px;
}

.markers {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-24);
}

.foot { padding-top: 56px; }

.footgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footlede {
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
  letter-spacing: -0.8px;
  max-width: 30ch;
}

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  transition: background 0.25s var(--ease);
}

.btn:hover { background: #16242b; }

.footgrid.lists {
  align-items: end;
  margin-top: 72px;
}

.riotters {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: var(--ink);
}

.footcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.colhead {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 28px;
  letter-spacing: -0.4px;
  color: var(--ink-48);
}

.footcols li {
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.4px;
  padding: 3px 0;
}

.footbottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-24);
}

.fine {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: normal;
  max-width: 62ch;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .solbody { grid-template-columns: 1fr; gap: 48px; }
  .para, .capnote { max-width: 46ch; }
  .capbody { grid-template-columns: 1fr; gap: 32px; }
  .capside { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .capside.right { flex-direction: column; align-items: flex-start; }
  .capside .marker.end { text-align: left; }
  .caplist { flex-direction: row; gap: 24px; flex-wrap: wrap; }
  .softhead, .gearbody { grid-template-columns: 1fr; }
  .gearcopy { max-width: none; }
  .terrain { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }

  .topbar { grid-template-columns: 1fr auto; gap: 12px; height: 44px; }
  .credit, .clock { display: none; }
  .brand .sub, .brand .dot { display: none; }

  .herofoot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .lede { font-size: 19px; line-height: 26px; }
  .intro { min-height: 100vh; }
  .solutions, .software { padding-top: 96px; }
  .capabilities { padding-top: 72px; }
  .stats { grid-template-columns: 1fr; }
  .stats li { align-items: flex-start; text-align: left; padding: 24px 0; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--ink-24); }
  .dome { height: 220px; }
  .dronelock { height: 200vh; }
  .cells { grid-template-columns: 1fr 1fr; }
  .footgrid, .footcols, .footbottom { grid-template-columns: 1fr; }
  .footgrid.lists { margin-top: 48px; }
  .riotters { order: 2; margin-top: 40px; }
  .landing { padding-top: 34vh; }
  .pincard { width: min(74vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal span { color: var(--near); }
  .stats .val { color: var(--ink); }
  .stats .mono { color: var(--ink-64); }
  .cell.meter::before { transform: scaleX(1); }
}
