:root {
  --bg: #050505;
  --ink: #f2f0e9;
  --mute: #8a877c;
  --line: rgba(242, 240, 233, 0.14);
  --signal: #f0a202;
  --signal-2: #b8f25a;
  --danger: #e85d4c;
  --glass: rgba(242, 240, 233, 0.04);
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Public Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
}

#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.grain {
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.72) 100%);
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  mix-blend-mode: difference;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-wpt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.1rem;
}

.logo-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.85;
}

.tg {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 0.55rem 0.85rem;
}

.tg:hover {
  background: var(--ink);
  color: var(--bg);
  mix-blend-mode: normal;
}

main {
  position: relative;
  z-index: 5;
}

.panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem clamp(1rem, 4vw, 3.5rem) 3.5rem;
  max-width: 52rem;
}

.panel.hero {
  justify-content: center;
  max-width: none;
  padding-top: 7rem;
  position: relative;
}

.panel.hero::before {
  content: "";
  position: absolute;
  inset: 10% auto 10% 0;
  width: min(520px, 58vw);
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.45) 70%, transparent);
  pointer-events: none;
  z-index: -1;
}

.panel.hero > * {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.tag {
  color: var(--signal);
  margin: 0 0 1rem;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 1.25rem;
}

.h-brand {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: clamp(3.2rem, 11vw, 7.2rem);
  line-height: 0.9;
  background: linear-gradient(105deg, #fffef8 8%, #f0a202 52%, #b8f25a 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 50px rgba(240, 162, 2, 0.16));
}

.h-line {
  display: block;
  margin-top: 0.85rem;
  font-size: clamp(1.35rem, 3.8vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  max-width: 16ch;
}

.hero-sub,
.panel > p,
.scan-intro,
.truth-body {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--mute);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.pulse,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.35rem;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.pulse {
  background: var(--signal);
  color: #120e02;
  border: 1px solid var(--signal);
}

.pulse:hover {
  transform: translateY(-2px);
  background: #ffb81a;
}

.pulse.large {
  font-size: 1.15rem;
  padding: 1.15rem 1.8rem;
}

.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.ghost:hover {
  border-color: var(--ink);
}

.scroll-cue {
  color: var(--mute);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

.fly h2,
.explode h2,
.services h2,
.scan h2,
.pricing h2,
.end h2 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  max-width: 12ch;
}

.layer-legend {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.layer-legend li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.layer-legend i {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--c);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent);
}

.ops {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.ops li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.op-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
}

.op-d {
  color: var(--mute);
  max-width: 38rem;
}

.truth {
  max-width: 40rem;
}

blockquote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

blockquote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--mute);
}

blockquote .emph {
  color: var(--ink);
  margin-top: 0.4rem;
}

.instrument {
  width: min(100%, 40rem);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.instrument-form label {
  display: block;
  color: var(--mute);
  margin-bottom: 0.55rem;
}

.instrument-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.instrument-row .prefix {
  padding: 0 0.75rem;
  color: var(--mute);
  border-right: 1px solid var(--line);
}

.instrument-row input {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.95rem 0.85rem;
  outline: none;
  min-width: 0;
}

.instrument-row button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--signal);
  color: #120e02;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0 1.2rem;
  height: 100%;
  cursor: pointer;
}

.instrument-row button:hover {
  background: #ffb81a;
}

.instrument-row button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.self-scan {
  margin-top: 0.85rem;
  background: none;
  border: 0;
  color: var(--signal-2);
  cursor: pointer;
  padding: 0;
}

.self-scan:hover {
  color: var(--ink);
}

.instrument-readout {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
  animation: in 0.55s var(--ease);
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gauge {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
}

.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.g-track,
.g-val {
  fill: none;
  stroke-width: 3;
}

.g-track {
  stroke: var(--line);
}

.g-val {
  stroke: var(--signal-2);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 0.9s var(--ease), stroke 0.4s;
}

.gauge-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.gauge-num strong {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
}

.gauge-num span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mute);
}

.verdict {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}

.readout-copy p {
  margin: 0 0 0.55rem;
  color: var(--mute);
}

.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.findings li {
  display: grid;
  grid-template-columns: 0.55rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.findings .dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--danger);
}

.findings .ok .dot {
  background: var(--signal-2);
}

.findings strong {
  font-weight: 600;
  color: var(--ink);
}

.findings small {
  display: block;
  grid-column: 2;
  color: var(--mute);
}

.quote-lines {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.quote-lines li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.quote-lines a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
  text-decoration: none;
}

.quote-lines a:hover {
  color: var(--ink);
}

.end {
  justify-content: center;
  min-height: 80vh;
}

.foot {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding: 2rem clamp(1rem, 4vw, 3.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.88rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}

.foot a {
  text-decoration: none;
}

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

@media (min-width: 860px) {
  .ops li {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
  }

  .instrument-readout {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .panel.hero {
    padding-right: 42vw;
  }

  .fly,
  .explode {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
  }

  .layer-legend {
    justify-items: end;
  }

  .explode {
    max-width: 28rem;
  }
}

.fly,
.explode {
  /* Give the drone path room without stacking copy on top of later chapters */
  min-height: 140vh;
}

@media (max-width: 640px) {
  .quote-lines li {
    grid-template-columns: 1fr auto;
  }

  .quote-lines li .mono {
    grid-column: 1;
  }

  .quote-lines li a {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .instrument-row {
    grid-template-columns: 1fr auto;
  }

  .instrument-row .prefix {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}
