/* ==========================================================================
   dronedot.nobrega.com.br — no framework, no webfonts, no third-party requests.
   Token names, component names and breakpoints mirror nobrega.com.br so the two
   sites read as siblings. The palette does not: --accent/--warm are the app's own
   brand_primary (#1F6FEB) and brand_accent (#FF7A00) from app/res/values/colors.xml,
   so the site and the thing it documents are the same colour.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --measure: 74rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e13;
  --bg-soft: #0e141c;
  --surface: rgba(255, 255, 255, 0.026);
  --surface-hi: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.17);
  --ink: #e7eef5;
  --ink-dim: #a3b1c2;
  --ink-mute: #6f7f92;
  /* brand_primary lifted for dark-on-dark legibility; #1F6FEB fails contrast here. */
  --accent: #58a6ff;
  --accent-ink: #06152e;
  --accent-soft: rgba(88, 166, 255, 0.13);
  --warm: #ff9d3d;
  --warm-soft: rgba(255, 157, 61, 0.13);
  --glow-a: rgba(88, 166, 255, 0.11);
  --glow-b: rgba(255, 122, 0, 0.08);
  --dot: rgba(255, 255, 255, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 34px -14px rgba(0, 0, 0, 0.7);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfcfd;
  --bg-soft: #f2f5f8;
  --surface: rgba(9, 30, 52, 0.022);
  --surface-hi: rgba(9, 30, 52, 0.045);
  --line: rgba(9, 30, 52, 0.11);
  --line-hi: rgba(9, 30, 52, 0.2);
  --ink: #101b26;
  --ink-dim: #435264;
  --ink-mute: #6d7d90;
  /* Light mode is the app's palette verbatim. */
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 111, 235, 0.1);
  --warm: #c25c00;
  --warm-soft: rgba(255, 122, 0, 0.1);
  --glow-a: rgba(31, 111, 235, 0.1);
  --glow-b: rgba(255, 122, 0, 0.08);
  --dot: rgba(9, 30, 52, 0.055);
  --shadow: 0 1px 2px rgba(9, 30, 52, 0.05), 0 12px 30px -16px rgba(9, 30, 52, 0.2);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem) / 1.68 var(--sans);
  letter-spacing: 0.0025em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -0.021em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent); text-underline-offset: 0.19em; }
a:hover { text-decoration-color: currentColor; }

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

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

.skip-link {
  position: fixed; top: 0; left: 50%; z-index: 100;
  transform: translate(-50%, -110%);
  padding: 0.7rem 1.2rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.scroll-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

/* ---------- ambient backdrop ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58rem 40rem at 78% -12%, var(--glow-a), transparent 68%),
    radial-gradient(52rem 38rem at 4% 8%, var(--glow-b), transparent 66%),
    radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(150%) blur(14px); }
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 26px -22px rgba(0, 0, 0, 0.9); }

.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  border: 1px solid var(--line-hi);
  background: var(--accent-soft);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark .ring { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0.55; }
.brand-mark .core { fill: var(--warm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 0.95rem; font-weight: 640; letter-spacing: -0.01em; }
.brand-text small { color: var(--ink-mute); font: 400 0.7rem/1.3 var(--mono); letter-spacing: 0.02em; }

.nav-links { display: flex; gap: 0.15rem; }
.nav-links a {
  padding: 0.45rem 0.7rem; border-radius: 8px;
  color: var(--ink-dim); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-hi); }
.nav-links a.is-active { color: var(--accent); background: var(--accent-soft); }

.theme-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: none; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink-dim);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--line-hi); background: var(--surface-hi); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-bottom: 1.5rem; padding: 0.34rem 0.8rem 0.34rem 0.7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  color: var(--ink-dim);
  font: 500 0.755rem/1 var(--mono); letter-spacing: 0.045em; text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 0 var(--warm);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warm) 60%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-size: clamp(2.9rem, 1.6rem + 5.2vw, 5rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  margin-bottom: clamp(0.35rem, 1.2vw, 0.75rem);
  background: linear-gradient(168deg, var(--ink) 26%, color-mix(in srgb, var(--ink) 52%, var(--accent)) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lede {
  font-size: clamp(1.1rem, 1.02rem + 0.42vw, 1.32rem);
  line-height: 1.58; color: var(--ink);
  max-width: 34ch; margin-bottom: 1.1rem;
}
.sub { color: var(--ink-dim); max-width: 52ch; }
.sub + .sub { margin-top: 0.8rem; }
.sub strong { color: var(--ink); font-weight: 620; }

.hero-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.1rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.66rem 1.15rem;
  border: 1px solid var(--line-hi); border-radius: 10px;
  background: var(--surface);
  color: var(--ink); text-decoration: none;
  font-size: 0.905rem; font-weight: 550;
  transition: transform 0.16s var(--ease), border-color 0.16s, background 0.16s, color 0.16s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  font-weight: 620;
}
.btn-primary:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 86%, white); }

/* ---------- hero map panel ----------
   A stand-in for the CalTopo Shared Locations overlay: contour hatching, a flown
   creeping-line search pattern, two ground teams, and the aircraft beacon tracking
   the pattern. Hand-authored SVG, animated from here so prefers-reduced-motion can
   switch it off — an <animate> element inside the SVG could not be. */
.mappanel {
  border: 1px solid var(--line-hi); border-radius: 20px;
  background:
    radial-gradient(26rem 18rem at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mapview { width: 100%; height: auto; display: block; }
.map-contour { fill: none; stroke: var(--accent); stroke-width: 1.1; opacity: 0.22; }
.map-grid { stroke: var(--line-hi); stroke-width: 0.8; opacity: 0.55; }
.map-track { fill: none; stroke: var(--warm); stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.5; }
.map-team { fill: var(--accent); }
.map-team-halo { fill: var(--accent); opacity: 0.18; }
.map-label { fill: var(--ink-mute); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; }
.map-callsign { fill: var(--warm); font: 600 11.5px/1 var(--mono); letter-spacing: 0.05em; }

/* Waypoint percentages are arc-length exact for the drawn pattern (5 legs of 140u
   plus 4 crossings of 70u = 980u), so `linear` gives constant ground speed. The
   animation alternates instead of looping: the aircraft flies the pattern back, which
   is both what a second pass looks like and half the keyframes. */
.map-drone { animation: fly 26s linear infinite alternate; }
@keyframes fly {
  0%      { transform: translate(70px, 240px); }
  14.29%  { transform: translate(70px, 100px); }
  21.43%  { transform: translate(140px, 100px); }
  35.71%  { transform: translate(140px, 240px); }
  42.86%  { transform: translate(210px, 240px); }
  57.14%  { transform: translate(210px, 100px); }
  64.29%  { transform: translate(280px, 100px); }
  78.57%  { transform: translate(280px, 240px); }
  85.71%  { transform: translate(350px, 240px); }
  100%    { transform: translate(350px, 100px); }
}
.map-drone-core { fill: var(--warm); }
/* Ripples via `transform: scale()`, never by animating the `r` geometry property.
   `r` as a CSS property is SVG2 and not universally implemented, and a dropped
   animation there would leave a hard 8u ring instead of degrading to a static dot.
   The circle is centred on (0,0) inside the translated group, so scaling about the
   origin and about `center` are the same transform. */
.map-drone-ring {
  fill: none; stroke: var(--warm); stroke-width: 1.6;
  transform-origin: center;
  animation: ripple 2.6s var(--ease) infinite;
}
@keyframes ripple {
  0%   { transform: scale(1);   opacity: 0.85; }
  100% { transform: scale(2.6); opacity: 0; }
}

.map-cap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--ink-mute); font: 500 0.735rem/1.5 var(--mono); letter-spacing: 0.03em;
}
.map-cap span { display: inline-flex; align-items: center; gap: 0.42rem; }
.map-cap span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.map-cap .k-drone::before { background: var(--warm); }
.map-cap .k-team::before { background: var(--accent); }

/* ---------- stats ---------- */
.stats-section { margin-bottom: clamp(2rem, 6vw, 4rem); }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.stat { display: grid; gap: 0.35rem; padding: 1.5rem 1.4rem; background: var(--bg); }
.stat-n {
  font: 620 clamp(1.2rem, 1rem + 0.9vw, 1.6rem)/1.15 var(--mono);
  letter-spacing: -0.02em; color: var(--accent);
}
.stat-l { color: var(--ink-dim); font-size: 0.845rem; line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
/* Clear the sticky header when jumping to an anchor. */
main > section[id] { scroll-margin-top: 5.25rem; }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.9rem); }
.section-head h2 {
  display: flex; align-items: baseline; gap: 0.85rem;
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem);
}
.h2-num {
  color: var(--accent);
  font: 500 0.8rem/1 var(--mono); letter-spacing: 0.08em;
  padding-top: 0.4em;
}
.section-note { margin-top: 0.8rem; color: var(--ink-mute); font-size: 0.95rem; max-width: 62ch; }
.section-note strong { color: var(--ink-dim); font-weight: 620; }

.card {
  padding: clamp(1.25rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.card h3 { font-size: 1.055rem; margin-bottom: 0.6rem; }
.card p { color: var(--ink-dim); font-size: 0.925rem; }
.card p + p { margin-top: 0.7rem; }
.card:hover { transform: translateY(-3px); border-color: var(--line-hi); background: var(--surface-hi); box-shadow: var(--shadow); }
.card code { font: 500 0.865em/1.5 var(--mono); color: var(--accent); }

.now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
/* The reporting section leads with a code block, then the cards. */
.code + .now-grid { margin-top: 1rem; }

/* Warm-bordered variant for the two things a reader must not skim past: the DJI
   Pilot 2 gotcha and the connect key being a shared secret. Same idiom as
   nobrega.com.br's .vol-accent. */
.warn { border-color: color-mix(in srgb, var(--warm) 42%, var(--line)); background: var(--warm-soft); }
.warn h3 { color: var(--warm); }
.warn:hover { border-color: var(--warm); background: var(--warm-soft); }

/* ---------- deliberate omissions ---------- */
.nope-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); gap: 0.75rem clamp(1.6rem, 4vw, 3rem); }
.nope-cols li { position: relative; padding-left: 1.75rem; color: var(--ink-dim); font-size: 0.945rem; }
.nope-cols li::before {
  content: "\00d7"; position: absolute; left: 0.35rem; top: 0;
  color: var(--warm); font: 600 1.1rem/1.62 var(--mono);
}
.nope-cols strong { color: var(--ink); font-weight: 620; }

/* ---------- spec / facts table ---------- */
.spec {
  /* minmax(0, 1fr), never the implicit `auto`: an `auto` track is
     minmax(min-content, max-content) and grows past its container to fit the widest
     child. The SHA-256 digest is 64 unbroken glyphs, so an auto track here would push
     the page sideways on a phone regardless of `word-break`. */
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--line); overflow: hidden;
}
.spec > div {
  display: grid; grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 0.35rem 1.4rem; align-items: baseline;
  padding: 1rem 1.3rem; background: var(--bg);
}
.spec dt { color: var(--ink-mute); font: 500 0.735rem/1.7 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.spec dd { margin: 0; color: var(--ink-dim); font-size: 0.93rem; }
.spec dd strong { color: var(--ink); font-weight: 620; }
.spec dd code { font: 500 0.885em/1.5 var(--mono); color: var(--accent); }
.spec dd small { display: block; margin-top: 0.2rem; color: var(--ink-mute); font-size: 0.82rem; line-height: 1.5; }

.digest { font: 500 0.8rem/1.6 var(--mono); color: var(--ink-dim); word-break: break-all; }
.copy-btn {
  display: inline-flex; align-items: center; margin-top: 0.55rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line-hi); border-radius: 7px;
  background: var(--surface); color: var(--ink-dim);
  font: 500 0.735rem/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.copy-btn.is-copied { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.copy-done { display: none; }
.copy-btn.is-copied .copy-idle { display: none; }
.copy-btn.is-copied .copy-done { display: inline; }

/* ---------- setup timeline ---------- */
/* Same minmax(0, 1fr) reasoning as .spec, and here it was not hypothetical: step 1
   holds a <pre> whose max-content is ~406px, which widened the whole document to
   468px at a 390px viewport even though the <pre> scrolls itself. */
.timeline {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.7rem, 3.6vw, 2.5rem); padding-left: 2rem;
}
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 0.6rem; bottom: 0.6rem; width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--line) 22%, var(--line) 82%, transparent);
}
.timeline > li { position: relative; }
.timeline > li::before {
  content: ""; position: absolute; left: -2rem; top: 0.42rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-hi);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline > li:first-child::before { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline > li:hover::before { border-color: var(--accent); }
.tl-step { color: var(--ink-mute); font: 500 0.76rem/1.4 var(--mono); letter-spacing: 0.045em; text-transform: uppercase; margin-bottom: 0.4rem; }
.timeline h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.timeline p { color: var(--ink-dim); font-size: 0.94rem; }
.timeline p + p, .timeline p + .code, .timeline .code + p { margin-top: 0.7rem; }
.timeline code { font: 500 0.885em/1.5 var(--mono); color: var(--accent); }
.timeline strong { color: var(--ink); font-weight: 620; }

/* ---------- code ---------- */
.code {
  margin: 0; padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink-dim);
  font: 500 0.83rem/1.75 var(--mono);
  overflow-x: auto; white-space: pre;
}
.code .k { color: var(--accent); font-weight: 600; }
.code .v { color: var(--warm); }
.code .c { color: var(--ink-mute); }

/* ---------- download ---------- */
.dl-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: clamp(1.5rem, 3.4vw, 2.1rem); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem;
  padding-block: 2rem 0.9rem;
  color: var(--ink-mute); font-size: 0.83rem;
}
.footer-tech { font-family: var(--mono); font-size: 0.755rem; letter-spacing: 0.01em; }
.disclaimer {
  padding-bottom: 2rem;
  color: var(--ink-mute); font-size: 0.775rem; line-height: 1.6; max-width: 78ch;
}

/* ---------- reveal ---------- */
/* Scoped to :root.js so a no-JS visitor sees the content instead of blank space. */
:root.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}
:root.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.oops {
  min-height: 72vh;
  display: grid; place-content: center; justify-items: center;
  gap: 1.1rem; text-align: center;
  padding-block: clamp(3rem, 10vw, 7rem);
}
.oops-code { font: 620 clamp(4rem, 14vw, 8.5rem)/0.9 var(--mono); letter-spacing: -0.05em; color: var(--accent); }
.oops h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.oops p { color: var(--ink-dim); max-width: 42ch; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 62rem) {
  .hero { grid-template-columns: 1fr; padding-block: clamp(2.5rem, 8vw, 4rem) 2.5rem; }
  /* Map first: it explains the product faster than the paragraph does. */
  .mappanel { order: -1; }
  .lede { max-width: none; }
}

/* The header runs out of room before the content grids do. Same breakpoint and same
   monogram + swipeable nav strip treatment as nobrega.com.br. */
@media (max-width: 54rem) {
  .brand-text { display: none; }
  .nav-links {
    flex: 1 1 auto; min-width: 0;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.55rem, #000 calc(100% - 1.1rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 0.55rem, #000 calc(100% - 1.1rem), transparent 100%);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; }
}

@media (max-width: 46rem) {
  /* Three stat tiles get too narrow below this. */
  .stats { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.5rem; }
  .timeline > li::before { left: -1.5rem; }
}

@media (max-width: 30rem) {
  .hero-links .btn, .dl-links .btn { flex: 1 1 100%; justify-content: center; }
}

@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; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* Freezing the ripple at its 0% keyframe leaves scale(1) — a correctly sized ring —
     and the drone at the pattern's first waypoint, so the beacon stays coherent. */
}
