/* SkyArena — editorial / technical design system.
   Two surfaces (ink and paper), one type family at two widths, hairlines, no glow. */

:root {
  --ink: #0b0b0c;
  --ink-2: #131416;
  --paper: #ebe9e3;
  --paper-2: #e1ded6;
  --on-ink: #f2f1ee;
  --on-ink-2: #8e8e91;
  --on-paper: #111111;
  --on-paper-2: #66645f;
  --blue: #2f6bff;
  --red: #ee3a2c;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --max: 1440px;
  --section: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

svg,
video {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.skip {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ---------- Surfaces ---------- */

.dark {
  --bg: var(--ink);
  --fg: var(--on-ink);
  --fg-2: var(--on-ink-2);
  --rule: rgb(255 255 255 / 0.14);
  background: var(--bg);
  color: var(--fg);
}

.light {
  --bg: var(--paper);
  --fg: var(--on-paper);
  --fg-2: var(--on-paper-2);
  --rule: rgb(17 17 17 / 0.16);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Grid & type ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid > * {
  grid-column: 1 / -1;
}

.display {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.9;
}

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}

.label {
  color: var(--fg-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn i {
  font-style: normal;
  transition: transform 0.4s var(--ease);
}

.btn:hover i {
  transform: translateX(4px);
}

.btn--lg {
  height: 58px;
  padding: 0 22px;
  font-size: 15px;
  min-width: 280px;
}

.btn--block {
  width: 100%;
}

.btn--light {
  background: var(--on-ink);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
}

.btn--dark {
  background: var(--ink);
  color: var(--on-ink);
}

.btn--dark:hover {
  background: #26272a;
}

.btn--line {
  background: transparent;
  border-color: var(--fg);
  color: var(--fg);
}

.btn--line:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Header ---------- */

.hd {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-ink);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.hd.is-scrolled,
.hd.is-open {
  background: rgb(11 11 12 / 0.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: rgb(255 255 255 / 0.1);
}

.hd__in {
  align-items: center;
  height: 64px;
}

.mark {
  grid-column: 1 / 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-stretch: 125%;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mark svg {
  width: 22px;
  height: 19px;
}

.hd__nav {
  grid-column: 5 / 10;
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: 14px;
  color: var(--on-ink-2);
}

.hd__nav a {
  transition: color 0.2s;
}

.hd__nav a:hover {
  color: var(--on-ink);
}

.hd__cta {
  grid-column: 10 / 13;
  justify-self: end;
  height: 38px;
  font-size: 13px;
}

.hd__menu {
  display: none;
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}

.hd__sheet {
  display: grid;
  padding: 8px var(--gutter) 28px;
}

.hd__sheet a {
  padding: 16px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hd__nav {
    display: none;
  }

  .mark {
    grid-column: 1 / 7;
  }

  .hd__cta {
    grid-column: 7 / 11;
  }

  .hd__menu {
    display: block;
    grid-column: 11 / 13;
    justify-self: end;
  }
}

@media (min-width: 901px) {
  .hd__sheet {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .hd__cta {
    display: none;
  }
}

/* ---------- Media slots ---------- */

.slot {
  --bg: var(--ink-2);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.slot video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.slot.is-ready video {
  opacity: 1;
}

.slot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.slot.has-still img {
  opacity: 1;
}

.slot.has-still .drawing,
.slot.is-ready .drawing {
  opacity: 0;
  transition: opacity 0.6s;
}

.play__img {
  aspect-ratio: 21 / 9;
  margin: 0 0 clamp(48px, 6vw, 88px);
}

.close__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--ink) 0%, rgb(11 11 12 / 0.15) 22%, rgb(11 11 12 / 0.35) 55%, var(--ink) 100%);
}

.slot--wide {
  aspect-ratio: 21 / 9;
  margin-top: clamp(48px, 6vw, 96px);
}

.slot--bg {
  position: absolute;
  inset: 0;
}

.drawing {
  width: 100%;
  height: 100%;
  color: var(--fg);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.drawing text,
.arena__plan text {
  fill: currentColor;
  stroke: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.drawing__txt {
  opacity: 0.7;
}

/* line-drawing reveal (pathLength is set by app.js) */
.js [data-draw] .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease);
}

.js [data-draw].is-drawn .draw {
  stroke-dashoffset: 0;
}

.js [data-draw] :is(text, .drone-pip circle[fill]) {
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
}

.js [data-draw].is-drawn :is(text, .drone-pip circle[fill]) {
  opacity: 1;
}

.js [data-draw].is-drawn .drawing__txt text {
  opacity: 0.7;
}

.drone-pip {
  animation: hover 3.6s ease-in-out infinite alternate;
}

.drone-pip--r {
  animation-duration: 2.9s;
  animation-direction: alternate-reverse;
}

@keyframes hover {
  to {
    transform: translateY(-8px);
  }
}

.props path {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Hero: match-preview broadcast ---------- */

.hero {
  position: relative;
  min-height: max(100svh, 720px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  --bg: var(--ink);
}

.hero__drawing {
  position: absolute;
  top: 6%;
  right: -4%;
  width: min(86vw, 1320px);
  max-width: none;
  height: auto;
  opacity: 0.75;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(11 11 12 / 0.7) 0%, rgb(11 11 12 / 0) 22%),
    linear-gradient(0deg, rgb(11 11 12 / 0.96) 0%, rgb(11 11 12 / 0.7) 26%, rgb(11 11 12 / 0) 58%),
    linear-gradient(90deg, rgb(11 11 12 / 0.55) 0%, rgb(11 11 12 / 0) 55%);
}

/* broadcast corner marks */
.hero__frame {
  position: absolute;
  inset: 80px var(--gutter) 24px;
  pointer-events: none;
}

.hero__frame i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid rgb(255 255 255 / 0.5);
}

.hero__frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.hero__frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.hero__frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.hero__frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

.hud {
  padding-top: 104px;
  align-items: start;
  row-gap: 20px;
}

.hud__tag {
  grid-column: 1 / 6 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-ink);
}

.hud__rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.6s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

.score {
  grid-column: 7 / 13 !important;
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: stretch;
  background: rgb(11 11 12 / 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 0.14);
}

.score > * {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}

.score__team {
  font-stretch: 125%;
  font-weight: 650;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.score__pts {
  font-stretch: 125%;
  font-weight: 700;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  background: var(--on-ink);
  color: var(--ink);
}

.score__clock {
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 92px;
  color: var(--on-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.score__clock small {
  font-size: 9px;
  color: var(--on-ink-2);
}

.tele {
  grid-column: 10 / 13 !important;
  justify-self: end;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  color: var(--on-ink-2);
  font-size: 10.5px;
}

.tele > div {
  display: grid;
  grid-template-columns: 64px 76px auto;
  align-items: center;
  padding: 7px 10px;
  background: rgb(11 11 12 / 0.6);
  border-left: 2px solid rgb(255 255 255 / 0.2);
}

.tele dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--on-ink);
}

.tele .chip {
  width: 7px;
  height: 7px;
}

.tele span {
  color: var(--on-ink);
  font-variant-numeric: tabular-nums;
}

.hero__body {
  align-self: end;
  align-content: end;
  padding-bottom: clamp(40px, 6vh, 72px);
  row-gap: 28px;
  align-items: end;
}

.hero__title {
  grid-column: 1 / -1;
  font-size: min(8.6vw, 148px);
  white-space: nowrap;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.line > span {
  display: block;
}

.js .hero__title .line > span {
  transform: translateY(105%);
  animation: rise 1.2s var(--ease) 0.15s forwards;
}

.js .hero__title .line:nth-child(2) > span {
  animation-delay: 0.27s;
}

@keyframes rise {
  to {
    transform: none;
  }
}

.hero__lede {
  grid-column: 1 / 6 !important;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.22);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
  color: var(--on-ink);
}

.hero__act {
  grid-column: 8 / 13 !important;
  justify-self: end;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.hero__act .mono {
  color: var(--on-ink-2);
}

figcaption.mono {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .hud__tag {
    grid-column: 1 / -1 !important;
  }

  .score {
    grid-column: 1 / -1 !important;
    justify-self: start;
  }

  .tele {
    display: none;
  }

  .hero__media {
    inset: 196px 0 auto;
    height: min(46svh, 360px);
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 70%, var(--ink) 100%);
  }

  .hero__drawing {
    top: 26%;
    right: auto;
    left: -38%;
    width: 176vw;
    opacity: 0.7;
  }

  .hero__lede,
  .hero__act {
    grid-column: 1 / -1 !important;
    justify-self: stretch;
    justify-items: stretch;
  }

  .hero__title {
    font-size: 9.6vw;
  }

  .btn--lg {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .score > * {
    padding: 8px 10px;
  }

  .score__team {
    font-size: 11px;
  }

  .score__pts {
    font-size: 18px;
  }
}

/* ---------- Statement & system ---------- */

.statement {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}

.statement__text {
  grid-column: 1 / 11;
  font-size: clamp(26px, 3.4vw, 50px);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.statement__text span {
  color: var(--fg-2);
}

.system {
  margin-top: clamp(72px, 10vw, 152px);
  row-gap: 20px;
}

.system > h2 {
  grid-column: 1 / 4;
}

.system__list {
  grid-column: 4 / 13;
  border-top: 1px solid var(--rule);
}

.system__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr) 24px;
  align-items: baseline;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.5s var(--ease);
}

.system__row .mono {
  color: var(--fg-2);
}

.system__name {
  font-stretch: 125%;
  font-weight: 620;
  font-size: clamp(22px, 2.4vw, 34px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}

.system__desc {
  color: var(--fg-2);
  font-size: 16px;
  transition: color 0.3s;
}

.system__row i {
  font-style: normal;
  justify-self: end;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}

.system__row:hover {
  padding-left: 12px;
}

.system__row:hover .system__desc {
  color: var(--fg);
}

.system__row:hover i {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .statement__text,
  .system > h2,
  .system__list {
    grid-column: 1 / -1;
  }

  .system__row {
    grid-template-columns: 36px 1fr;
    row-gap: 8px;
  }

  .system__desc {
    grid-column: 2;
  }

  .system__row i {
    display: none;
  }
}

/* ---------- Generic sections ---------- */

.sec {
  padding-block: var(--section);
}

.sec__head {
  row-gap: 24px;
  margin-bottom: clamp(48px, 7vw, 104px);
  align-items: end;
}

.sec__head > .label {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.sec__title {
  grid-column: 1 / 9;
  font-size: clamp(34px, 5.2vw, 80px);
  text-wrap: balance;
}

.sec__lede {
  grid-column: 9 / 13;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .sec__title,
  .sec__lede {
    grid-column: 1 / -1;
  }
}

/* ---------- Arena ---------- */

.arena {
  row-gap: 48px;
  align-items: start;
}

.arena__plan {
  grid-column: 1 / 8;
}

.arena__plan svg {
  width: 100%;
  height: auto;
  color: var(--fg);
  overflow: visible;
}

.plan__txt {
  opacity: 0.65;
}

.arena__plan .plan__txt text {
  font-size: 10px;
}

.plan__keys g {
  cursor: default;
}

.plan__keys circle {
  fill: var(--bg);
  stroke: var(--fg);
  stroke-width: 1.2;
  transition: fill 0.3s, r 0.3s var(--ease);
}

.arena__plan .plan__keys text {
  text-anchor: middle;
  font-size: 11px;
  font-weight: 500;
  transition: fill 0.3s;
}

.plan__keys g.is-on circle {
  fill: var(--fg);
}

.plan__keys g.is-on text {
  fill: var(--bg);
}

.legend {
  grid-column: 9 / 13;
  border-top: 1px solid var(--rule);
}

.legend li {
  display: grid;
  grid-template-columns: 36px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  transition: opacity 0.3s;
}

.legend li .mono {
  padding-top: 3px;
  color: var(--fg-2);
}

.legend h3 {
  font-size: 17px;
  font-weight: 600;
}

.legend p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--fg-2);
}

.legend.is-focus li:not(.is-on) {
  opacity: 0.38;
}

.figures {
  margin-top: clamp(64px, 8vw, 120px);
  row-gap: 32px;
}

.figures > div {
  grid-column: span 3;
  padding-top: 14px;
  border-top: 1px solid var(--fg);
}

.figures dt {
  color: var(--fg-2);
}

.figures dd {
  margin-top: 18px;
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.figures small {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-stretch: 100%;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .arena__plan,
  .legend {
    grid-column: 1 / -1;
  }

  .figures > div {
    grid-column: span 6;
  }
}

/* ---------- Drones ---------- */

.drones .sec__title {
  grid-column: 1 / 8;
}

.tabs {
  grid-column: 9 / 13 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

.tabs button {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 16px 0 14px;
  border: 0;
  border-bottom: 2px solid var(--rule);
  background: none;
  font-stretch: 125%;
  font-weight: 620;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--fg-2);
  cursor: pointer;
  transition: color 0.3s, border-color 0.4s var(--ease);
}

.tabs button .mono {
  font-stretch: 100%;
}

.tabs button:hover {
  color: var(--fg);
}

.tabs button[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.drones[data-team="phantom"] .tabs [data-tab="phantom"][aria-selected="true"] {
  border-bottom-color: var(--blue);
}

.drones[data-team="striker"] .tabs [data-tab="striker"][aria-selected="true"] {
  border-bottom-color: var(--red);
}

.drone {
  align-items: start;
  row-gap: 40px;
  animation: fade 0.7s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.drone__fig {
  grid-column: 1 / 7;
}

.drone__fig .slot {
  aspect-ratio: 1;
}

.drone__body {
  grid-column: 8 / 13;
}

.drone__class {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-2);
}

.chip {
  display: inline-block;
  width: 10px;
  height: 10px;
}

.chip--b {
  background: var(--blue);
}

.chip--r {
  background: var(--red);
}

.drone__name {
  margin-top: 18px;
  font-size: clamp(44px, 4.6vw, 72px);
}

.drone__lede {
  margin-top: 22px;
  color: var(--fg-2);
  font-size: 17px;
}

.table {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}

.table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.table dt {
  color: var(--fg-2);
}

.table--loose > div {
  padding: 18px 0;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
}

.table--loose dt {
  color: var(--fg);
  font-weight: 600;
}

.table--loose dd {
  color: var(--fg-2);
}

.notes {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--fg-2);
}

.notes li::before {
  content: "— ";
  color: var(--fg);
}

.footnote {
  margin-top: 40px;
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .drones .sec__title,
  .tabs,
  .drone__fig,
  .drone__body {
    grid-column: 1 / -1 !important;
  }
}

/* ---------- Steps ---------- */

.steps {
  row-gap: 48px;
}

.steps li {
  grid-column: span 2;
  padding-top: 16px;
  border-top: 1px solid var(--fg);
}

.steps__n {
  display: block;
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.steps h3 {
  margin-top: clamp(36px, 5vw, 80px);
  font-size: 17px;
  font-weight: 650;
}

.steps p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--fg-2);
}

@media (max-width: 1100px) {
  .steps li {
    grid-column: span 4;
  }
}

@media (max-width: 640px) {
  .steps li {
    grid-column: span 6;
  }

  .steps h3 {
    margin-top: 24px;
  }
}

/* ---------- App ---------- */

.app {
  align-items: center;
  row-gap: 64px;
}

.app__copy {
  grid-column: 1 / 7;
}

.app__copy .sec__title {
  margin-top: 24px;
}

.app__copy .label {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.app__copy .sec__lede {
  margin-top: 24px;
}

.phone {
  grid-column: 8 / 13 !important;
  justify-self: center;
  width: min(320px, 100%);
  padding: 9px;
  border-radius: 46px;
  background: #1b1c1f;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 50px 90px -40px rgb(0 0 0 / 0.9);
}

.phone__screen {
  display: grid;
  gap: 12px;
  padding: 14px 20px 24px;
  border-radius: 38px;
  background: #050506;
  color: var(--on-ink);
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.phone__island {
  width: 88px;
  height: 25px;
  border-radius: 99px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

.phone__k {
  color: var(--on-ink-2);
  font-size: 10px;
}

.phone__vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  padding: 16px 0;
}

.phone__vs div {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.phone__vs div:last-child {
  justify-items: end;
}

.phone__vs b {
  font-stretch: 125%;
  font-weight: 650;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
}

.phone__vs span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-ink-2);
}

.phone__vs em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  color: var(--on-ink-2);
}

.phone__btn {
  display: grid;
  place-items: center;
  height: 44px;
  background: var(--on-ink);
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
}

.phone__bal {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.phone__bal .mono {
  font-size: 10px;
  color: var(--on-ink-2);
}

.phone__big {
  font-stretch: 125%;
  font-weight: 650;
  font-size: 34px;
  line-height: 1;
}

.phone__big small {
  margin-left: 4px;
  font-size: 12px;
  font-stretch: 100%;
  color: var(--on-ink-2);
}

.phone__ladder li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.phone__ladder span,
.phone__ladder em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--on-ink-2);
}

.phone__ladder b {
  font-weight: 500;
}

.phone__ladder .is-you {
  border-bottom: 0;
  box-shadow: inset 2px 0 0 var(--blue);
  padding-left: 8px;
  background: rgb(47 107 255 / 0.1);
}

@media (max-width: 900px) {
  .app__copy,
  .phone {
    grid-column: 1 / -1 !important;
  }
}

/* ---------- Minutes ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 40px;
  color: var(--fg-2);
}

.facts li {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.facts b {
  display: block;
  font-weight: 500;
  color: var(--fg);
}

.packs {
  align-items: stretch;
}

.pack {
  grid-column: span 4 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 0 0;
  border-top: 1px solid var(--fg);
}

.pack--key {
  padding: 24px 24px 24px;
  margin-top: -1px;
  background: var(--paper-2);
  border-top: 4px solid var(--fg);
}

.pack__flag {
  position: absolute;
  top: -26px;
  left: 0;
}

.pack__name {
  font-size: 15px;
  font-weight: 600;
}

.pack__min {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--fg-2);
}

.pack__min span {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.pack__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pack__price b {
  font-size: 26px;
  font-weight: 600;
}

.pack__price .mono {
  color: var(--fg-2);
}

.pack .notes {
  flex: 1;
  align-content: start;
  margin-block: 22px 32px;
}

.packs__note {
  margin-top: 40px;
  color: var(--fg-2);
}

.packs__note a {
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 960px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .pack {
    grid-column: 1 / -1 !important;
    margin-bottom: 48px;
  }

  .pack--key {
    order: -1;
    margin-top: 28px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  padding-top: 0;
}

.faq .grid {
  row-gap: 24px;
}

.faq h2 {
  grid-column: 1 / 4;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.faq__list {
  grid-column: 4 / 13;
  border-top: 1px solid var(--fg);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .faq h2,
  .faq__list {
    grid-column: 1 / -1;
  }
}

/* ---------- Close & footer ---------- */

.close {
  position: relative;
  padding-block: var(--section);
  overflow: clip;
}

.close__in {
  position: relative;
  z-index: 2;
  padding-top: clamp(240px, 38vh, 420px);
  row-gap: 40px;
  justify-items: start;
}

.close__title {
  font-size: clamp(40px, 7.6vw, 124px);
  text-wrap: balance;
}

.ft {
  overflow: clip;
  padding-top: 24px;
}

.ft__row {
  color: var(--fg-2);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.ft__row > :nth-child(1) {
  grid-column: 1 / 5;
}

.ft__row > :nth-child(2) {
  grid-column: 5 / 9;
}

.ft__row > :nth-child(3) {
  grid-column: 9 / 13;
  text-align: right;
}

.ft__row a:hover {
  color: var(--fg);
}

.ft__word {
  margin-top: clamp(24px, 4vw, 56px);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 14.6vw;
  line-height: 0.74;
  letter-spacing: -0.03em;
  text-align: center;
  color: #1a1b1d;
  user-select: none;
  transform: translateY(6%);
}

@media (max-width: 760px) {
  .ft__row > * {
    grid-column: 1 / -1 !important;
    text-align: left !important;
    padding-bottom: 6px;
  }
}

/* ---------- Checkout dialog ---------- */

.dlg {
  width: min(480px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--on-paper);
  --fg: var(--on-paper);
  --fg-2: var(--on-paper-2);
  --rule: rgb(17 17 17 / 0.16);
}

.dlg[open] {
  animation: dlg 0.45s var(--ease);
}

.dlg::backdrop {
  background: rgb(5 5 6 / 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes dlg {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.dlg__x {
  position: absolute;
  top: 18px;
  right: 22px;
}

.dlg__x button {
  border: 0;
  padding: 0;
  background: none;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  cursor: pointer;
}

.dlg__form {
  display: grid;
  gap: 18px;
  padding: 22px 28px 28px;
}

.dlg__form > .mono {
  color: var(--fg-2);
}

.dlg__title {
  font-size: 44px;
  padding-top: 12px;
  border-top: 1px solid var(--fg);
}

.dlg__sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

.dlg__sum b {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
}

.dlg__desc {
  font-size: 15px;
  color: var(--fg-2);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--fg-2);
}

.field input {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #f6f5f1;
  color: var(--fg);
  font-size: 16px;
}

.field input:focus {
  outline: none;
  border-color: var(--fg);
}

.dlg__err {
  font-size: 14px;
  color: #b3261e;
}

/* ---------- Simple pages (welcome / 404) ---------- */

.page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: 120px 80px;
}

.page .grid {
  row-gap: 28px;
}

.page__title {
  font-size: clamp(40px, 7.4vw, 112px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.page__lede {
  grid-column: 1 / 7 !important;
  font-size: 19px;
  color: var(--fg-2);
}

.page__steps {
  grid-column: 1 / 9 !important;
  border-top: 1px solid var(--rule);
}

.page__steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
}

.page__steps b {
  color: var(--fg);
  font-weight: 600;
}

.page .btn {
  justify-self: start;
}

@media (max-width: 760px) {
  .page__lede,
  .page__steps {
    grid-column: 1 / -1 !important;
  }
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .hero__title .line > span {
    opacity: 1;
    transform: none;
  }

  .js [data-draw] .draw {
    stroke-dashoffset: 0;
  }

  .js [data-draw] :is(text, .drone-pip circle[fill]) {
    opacity: 1;
  }
}

/* ---------- Scarcity: founding-run bar + stock meters ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 34px;
  padding-inline: var(--gutter);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}

.bar b {
  font-weight: 500;
}

.bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.6s steps(2, jump-none) infinite;
}

.bar__go {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgb(17 17 17 / 0.2);
}

.has-bar .hd {
  top: 34px;
}

.has-bar .hud {
  padding-top: 138px;
}

.has-bar .hero__frame {
  top: 114px;
}

.has-bar {
  scroll-padding-top: 98px;
}

@media (max-width: 420px) {
  .bar__go {
    display: none;
  }
}

.stock {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.stock[hidden] {
  display: none;
}

.stock__track {
  position: relative;
  height: 3px;
  background: var(--rule);
  overflow: hidden;
}

.stock__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--claimed, 0%);
  background: var(--fg);
  transition: width 1.2s var(--ease);
}

.stock__text {
  color: var(--fg-2);
}

.stock__text b {
  color: var(--fg);
  font-weight: 500;
}

.stock.is-low .stock__text b,
.stock.is-low .stock__text {
  color: var(--red);
}

.stock.is-low .stock__track i {
  background: var(--red);
}

.pack.is-sold-out {
  opacity: 0.55;
}

.pack.is-sold-out button {
  pointer-events: none;
}

.close__sub {
  color: var(--on-ink-2);
  margin-top: -16px;
}
