@font-face {
  font-family: "URW Gothic";
  src: url("../fonts/urw-gothic-book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "URW Gothic";
  src: url("../fonts/urw-gothic-demi.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Avolare Drones
   One stylesheet, one token system, one rhythm.
   ========================================================================== */

:root {
  /* Surfaces — night sky, pulled from the photography rather than pure black */
  --void:        #05070C;
  --deep:        #0A0F19;
  --panel:       #0E1524;
  --raise:       #16202F;

  /* Ink */
  --frost:       #E8EDF5;
  --muted:       #97A6BD;
  --faint:       #5F6E85;

  /* Accents — the magenta aurora is the existing brand purple, kept.
     The teal is lifted from the ice-cave photography. */
  --aurora:      #8A4680;
  --aurora-lift: #B25FA6;
  --ion:         #4FD8C8;

  --line:        rgba(232, 237, 245, 0.10);
  --line-strong: rgba(232, 237, 245, 0.22);

  /* Type */
  --display: "URW Gothic", "Poppins", system-ui, sans-serif;
  --body:    "Poppins", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-display: clamp(3.4rem, 13vw, 9.5rem);
  --fs-h2:      clamp(1.9rem, 4.2vw, 3.1rem);
  --fs-h3:      clamp(1.25rem, 2.1vw, 1.6rem);
  --fs-lede:    clamp(1.02rem, 1.5vw, 1.22rem);
  --fs-body:    clamp(0.98rem, 1.05vw, 1.05rem);
  --fs-label:   0.7rem;

  /* Rhythm — every section uses these. Nothing improvises. */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.25rem;
  --s5: 3.5rem;
  --s6: 5rem;
  --s7: clamp(4.5rem, 9vw, 8rem);

  --shell:   1180px;
  --gutter:  clamp(1.25rem, 5vw, 3.5rem);
  --bar:     68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- Reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--frost);
  font-family: var(--body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }
img { display: block; max-width: 100%; }

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

:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ion);
  color: var(--void);
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip:focus { left: 0; }

/* ------------------------------------------------- Shared furniture ----- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The one label treatment used site-wide. Consistency lives here. */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ion);
  margin-bottom: var(--s2);
}

.section-head { margin-bottom: var(--s5); max-width: 46ch; }
.section-head__title { font-size: var(--fs-h2); }

/* ------------------------------------------------------- Masthead ------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--bar);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.masthead.is-stuck {
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 17px;
  width: auto;
  transition: opacity 0.25s var(--ease);
}
.brand:hover img { opacity: 0.72; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav a {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--frost); }
.nav__social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.nav__social:hover { color: var(--ion); }

/* ----------------------------------------------------------- Hero ------- */

.hero {
  position: relative;
  min-height: min(78svh, 700px);
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--bar) + var(--s4)) var(--s5);
  overflow: hidden;
  isolation: isolate;
}

.hero__plates { position: absolute; inset: 0; z-index: -2; }
.hero__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 7s linear;
}
.hero__plate.is-live { opacity: 1; transform: scale(1); }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--void) 2%, rgba(5, 7, 12, 0.55) 45%, rgba(5, 7, 12, 0.72) 100%),
    radial-gradient(110% 85% at 50% 100%, rgba(138, 70, 128, 0.26), transparent 64%);
}

.hero__inner { position: relative; text-align: center; }

.hero__title { margin-bottom: var(--s3); line-height: 0; }
.hero__title img {
  width: min(88vw, 600px);
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55));
}

.hero__lede {
  font-size: var(--fs-lede);
  color: var(--muted);
  max-width: 34em;
  margin-inline: auto;
  margin-bottom: var(--s3);
}

/* ----- Signature: the engagement sequence -------------------------------- */

.chain { padding-top: var(--s1); }

.chain__rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.chain__node {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  padding: var(--s3) var(--s1) var(--s2);
  text-align: center;
  color: var(--faint);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.3s var(--ease);
}
.chain__node::before {
  /* the rail the nodes sit on */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.chain__node::after {
  /* active segment, centred on the dot */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 64%;
  height: 1px;
  background: var(--ion);
  transition: transform 0.45s var(--ease);
}
.chain__node.is-live::after { transform: translateX(-50%) scaleX(1); }
.chain__node:hover { color: var(--muted); }
.chain__node.is-live { color: var(--frost); }

.chain__dot {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--raise);
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.chain__node.is-live .chain__dot {
  background: var(--ion);
  box-shadow: 0 0 0 4px rgba(79, 216, 200, 0.18);
}

.chain__index {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--aurora-lift);
  margin-bottom: 0.3rem;
}
.chain__name {
  display: block;
  font-family: var(--display);
  font-size: clamp(0.92rem, 1.7vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.chain__readout { min-height: 3.2em; margin-top: var(--s2); }
.chain__caption {
  color: var(--muted);
  font-size: var(--fs-body);
  max-width: 44ch;
  margin-inline: auto;
  animation: rise 0.5s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--s3);
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frost);
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cue:hover { border-color: var(--ion); background: rgba(79, 216, 200, 0.08); }
.cue svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--ion);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
  0%, 70%, 100% { transform: none; }
  85%           { transform: translateY(3px); }
}

/* ------------------------------------------------------ Arachnid -------- */

.film {
  position: relative;
  padding-block: var(--s4) var(--s7);
  background: var(--deep);
  isolation: isolate;
  overflow: hidden;
}
.film__bed {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(5, 7, 12, 0.90), rgba(5, 7, 12, 0.96)),
    url(../../images/slide01.jpg);
  background-size: cover;
  background-position: center;
}

.film__inner { text-align: center; }
.film__title { font-size: var(--fs-h2); margin-bottom: var(--s2); }
.film__note {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto var(--s4);
}

.frame {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(0.5rem, 1.4vw, 0.9rem);
  background: rgba(14, 21, 36, 0.75);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.frame__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.frame__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Instrument corner ticks — the one flourish, borrowed from a targeting reticle */
.frame__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ion);
  opacity: 0.65;
}
.frame__corner--tl { top: -1px;    left: -1px;  border-right: 0; border-bottom: 0; }
.frame__corner--tr { top: -1px;    right: -1px; border-left: 0;  border-bottom: 0; }
.frame__corner--bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; }
.frame__corner--br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }

/* ---------------------------------------------------- Capability -------- */

.capability {
  padding-block: var(--s7);
  background: var(--void);
  border-top: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.card__shot { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(14, 21, 36, 0.85));
}
.card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__shot img { transform: scale(1.05); }

.card__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.card__title { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.card__lede {
  color: var(--ion);
  font-weight: 400;
  margin-bottom: var(--s2);
  line-height: 1.5;
}
.card__body p:last-child { color: var(--muted); }

/* The company name keeps its own face wherever it appears in prose. */
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.97em;
  color: var(--frost);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------- Contact -------- */

.contact {
  position: relative;
  padding-block: var(--s7);
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(5, 7, 12, 0.88), rgba(5, 7, 12, 0.94)),
    url(../../images/bg.jpg);
  background-size: cover;
  background-position: center;
}

.contact__title { font-size: var(--fs-h2); margin-bottom: var(--s4); }

.contact__mail {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--frost);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--aurora-lift);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  word-break: break-word;
}
.contact__mail:hover { color: var(--ion); border-bottom-color: var(--ion); }

.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: var(--s4);
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact__social svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.contact__social:hover { color: var(--frost); border-color: var(--ion); }

/* -------------------------------------------------------- Footer -------- */

.foot {
  padding-block: var(--s5);
  background: var(--void);
  border-top: 1px solid var(--line);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.foot__brand { line-height: 0; }
.foot__brand img { height: 20px; width: auto; opacity: 0.85; }
.foot__nav { display: flex; flex-wrap: wrap; gap: var(--s3); }
.foot__nav a {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.foot__nav a:hover { color: var(--ion); }
.foot__fine {
  width: 100%;
  font-size: 0.72rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}

/* ------------------------------------------------------ Narrow ---------- */

@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .nav a:not(.nav__social) { display: none; }
  .nav a[href="#arachnid"] { display: inline; }

  .hero { min-height: min(86svh, 720px); }
  .chain__rail { grid-template-columns: repeat(2, 1fr); row-gap: var(--s2); }
  .chain__node { padding-inline: var(--s1); }
  .chain__readout { min-height: 4.4em; }

  .foot__inner { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------ Short screens --------- */
/* On a shallow laptop the hero would otherwise push the Arachnid heading
   below the fold. Tighten the stack rather than shrink the film. */

@media (min-width: 721px) and (max-height: 1040px) {
  .hero { padding-block: calc(var(--bar) + var(--s3)) var(--s4); }
  .hero__title { margin-bottom: var(--s3); }
  .hero__title img { width: min(88vw, 520px); }
  .hero .eyebrow { margin-bottom: var(--s1); }
  .hero__lede { margin-bottom: var(--s3); }
  .chain__readout { min-height: 2.6em; }
  .cue { margin-top: var(--s3); }
  .film { padding-block: var(--s4) var(--s6); }
}

@media (min-width: 721px) and (max-height: 940px) {
  .hero__title img { width: min(88vw, 430px); }
  .hero__lede { margin-bottom: var(--s2); }
  .cue { margin-top: var(--s2); }
  .film { padding-block: var(--s3) var(--s5); }
}

@media (min-width: 721px) and (max-height: 800px) {
  .hero__title img { width: min(88vw, 330px); }
  .hero__lede { margin-bottom: var(--s2); }
  .hero .eyebrow { margin-bottom: var(--s1); }
  .chain { padding-top: 0; }
  .chain__readout { min-height: 2.4em; }
  .film { padding-block: var(--s3) var(--s5); }
}

@media (min-width: 721px) and (max-height: 740px) {
  .hero__title img { width: min(88vw, 280px); }
  .cue { margin-top: var(--s2); }
}

/* --------------------------------------------- Reduced motion ----------- */

@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;
  }
  .hero__plate { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
