/* Axys Lab — "a sala escura": um campo escuro contínuo e, nele, coisas iluminadas. */

:root {
  color-scheme: dark;

  --bg: #0e1317;
  --surface: #172027;
  --surface-2: #1d2830;
  --ink: #eef2f4;
  --muted: #a7b3ba;
  --line: #34424b;
  --drawing: #d9e1e5;
  --accent: #7cc6c2;
  --accent-hover: #a2dad6;
  --accent-ink: #0e1317;
  --footer: #0a0e11;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  --step-head: clamp(1.625rem, 0.9rem + 3.1vw, 4rem);
  --step-display: clamp(1.625rem, 7vw, 6.5rem);

  --m: max(clamp(20px, 5vw, 72px), (100vw - 1560px) / 2);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(112px, 12vw, 200px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line) var(--bg);
  caret-color: var(--accent);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: var(--m);
  top: -100px;
  z-index: 60;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.icon {
  width: 0.9em;
  height: 0.9em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}

/* Títulos: a face larga, em caixa alta. */
.section-title,
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Ações */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 0;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.button:active { transform: scale(0.97); }

.text-link {
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 180ms ease, text-underline-offset 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-hover); }
  .text-link:hover { color: var(--accent); text-underline-offset: 9px; }
  .text-link:hover .icon,
  .site-nav a:hover .icon { transform: translate(2px, -2px); }
}

/* ---------- Cabeçalho fixo: transparente no topo, sólido depois ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 20px var(--m);
  font-size: var(--step-small);
  font-weight: 500;
  transition: transform 280ms var(--ease-out), background-color 200ms ease;
}
.site-header.is-solid { background: var(--bg); }
.site-header.is-hidden { transform: translateY(-100%); transition-duration: 200ms; }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  text-decoration: none;
  transition: color 160ms ease;
}
.site-nav a.is-current { color: var(--accent); }
.nav-parent { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--accent); }
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 18px;
  background: var(--surface-2);
  border: 0;
  border-radius: 0;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.97); }

/* ---------- Hero: a faixa iluminada ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(16px, 1fr) auto auto;
  padding-top: 92px;
}

.strip {
  grid-row: 2;
  display: flex;
  gap: 10px;
  height: clamp(240px, 36vh, 420px);
  padding-inline: var(--m);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging img { pointer-events: none; }

.frame {
  flex: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
}
.frame img {
  height: calc(100% - 2.25rem);
  width: auto;
  max-width: none;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
  transition: filter 600ms var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}
.frame figcaption {
  order: -1;
  padding-bottom: 12px;
  font-size: var(--step-small);
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
.frame.is-lit img { filter: none; }
.frame.is-lit figcaption { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .frame:hover img { filter: brightness(0.8); }
  .frame.is-lit:hover img { filter: none; }
}

.hero-foot {
  grid-row: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(var(--gap) * 2);
  padding: 44px var(--m) 44px;
}
.hero-copy { flex: 1 1 auto; min-width: 0; max-width: 60rem; }
.hero h1 { font-size: var(--step-display); line-height: 0.95; }
.hero-copy p { max-width: 46ch; margin-top: 20px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

/* ---------- Intro: frase parada, imagens passando ---------- */
.intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: var(--section) var(--m) 0;
}
.intro-pin {
  grid-column: 1 / 6;
  align-self: start;
  position: sticky;
  top: 20vh;
  display: grid;
  gap: 28px;
  justify-items: start;
}
.statement {
  font-size: var(--step-lead);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: balance;
}
.intro-body { max-width: 46ch; }

.intro-pictures { grid-column: 7 / 13; }
.intro-pic figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.intro-pic img { width: 100%; object-fit: cover; }
.pic-portrait { width: 72%; }
.pic-portrait img { aspect-ratio: 4 / 5; }
.pic-wide { margin-top: 22svh; }
.video-crop { overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.video-crop video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transform-origin: 0 0; }

/* ---------- Equipamentos: cada instrumento sobre o seu dado ---------- */
.instruments { padding: var(--section) var(--m) 0; }
.instruments-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(64px, 7vw, 112px);
}
.instruments-head .section-title { grid-column: 1 / 7; }
.instruments-head p { grid-column: 8 / 13; max-width: 46ch; color: var(--muted); }

.instrument {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: center;
}
.instrument + .instrument { margin-top: clamp(96px, 10vw, 160px); }
.instrument-figure { grid-column: 1 / 8; grid-row: 1; }
.instrument-body { grid-column: 9 / 13; grid-row: 1; display: grid; gap: 22px; justify-items: start; }
.instrument:nth-of-type(even) .instrument-figure { grid-column: 6 / 13; }
.instrument:nth-of-type(even) .instrument-body { grid-column: 1 / 5; }

.drawing { width: 100%; height: auto; background: var(--surface); padding-top: 28px; }
.instrument-figure .data { width: 100%; aspect-ratio: 8 / 3.2; object-fit: cover; }
.instrument-figure figcaption { padding-top: 12px; font-size: var(--step-small); color: var(--muted); }

.drawing .ln { fill: none; stroke: var(--drawing); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.drawing .ln.body { fill: var(--surface); }
.drawing .dim { stroke: #5d6b74; }
.drawing .faint { stroke: #6f7d86; }
.drawing .dot circle { fill: var(--drawing); }
.drawing .acc-fill { fill: var(--accent); opacity: 0.4; }
.drawing .acc-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.drawing .acc-soft { fill: rgba(124, 198, 194, 0.14); }
.drawing .acc-dash path { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.drawing .lbl text { font-family: var(--font-text); font-size: 17px; fill: var(--muted); }
.drawing .lead { fill: none; stroke: #6f7d86; stroke-width: 1.5; }

.instrument-body h3 { font-size: var(--step-lead); line-height: 1.15; }
.instrument-body dl { margin: 0; display: grid; gap: 14px; width: 100%; }
.instrument-body dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; }
.instrument-body dt { color: var(--muted); }
.instrument-body dd { margin: 0; }
.instrument-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.status {
  padding: 8px 14px;
  background: var(--surface-2);
  font-size: var(--step-small);
  font-weight: 500;
}

/* ---------- Altura de voo ---------- */
.altitude {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: start;
  padding: var(--section) var(--m) 0;
}
.altitude .section-title { grid-column: 1 / -1; margin-bottom: 56px; }
.altitude-copy { grid-column: 1 / 5; display: grid; gap: 24px; }
.altitude-note { color: var(--muted); }
.altitude-lab { grid-column: 6 / 13; }
.altitude-plot { width: 100%; height: auto; }
.altitude-plot .grid path { stroke: rgba(238, 242, 244, 0.09); stroke-width: 1.5; }
.altitude-plot .grid .grid-zero { stroke: rgba(238, 242, 244, 0.28); }
.altitude-plot .axis text { font-family: var(--font-text); font-size: 15px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.altitude-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 32px;
  padding: 24px;
  background: var(--surface-2);
}
.altitude-controls label { font-weight: 500; }
.altitude-controls output { color: var(--accent); font-variant-numeric: tabular-nums; }
.altitude-controls input { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 44px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.altitude-readout { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.altitude-readout strong { color: var(--ink); font-size: var(--step-lead); font-weight: 500; font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: right; }

/* ---------- Desenvolvimento: diagonal ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding: var(--section) var(--m) 0;
}
.process .section-title { grid-column: 1 / -1; margin-bottom: 72px; }
.stage { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.stage figure img { width: 100%; object-fit: cover; }
.stage p { max-width: 36ch; }
.stage strong { font-weight: 500; color: var(--accent); }
.stage-1 figure { grid-column: 1 / 5; }
.stage-1 figure img { aspect-ratio: 3 / 4; }
.stage-1 p { grid-column: 5 / 9; padding-top: 4px; }
.stage-2 { margin-top: -18vw; }
.stage-2 figure { grid-column: 6 / 9; }
.stage-2 figure img { aspect-ratio: 1; }
.stage-2 p { grid-column: 9 / 13; }
.stage-3 { margin-top: 140px; }
.stage-3 figure { grid-column: 8 / 13; grid-row: 1; }
.stage-3 figure img { aspect-ratio: 16 / 10; }
.stage-3 p { grid-column: 3 / 7; grid-row: 1; justify-self: end; }

/* ---------- Aplicações ---------- */
.uses { padding: var(--section) var(--m) 0; }
.uses > .section-title { margin-bottom: 48px; }
.uses-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
}
.uses-picture {
  grid-column: 1 / 6;
  position: sticky;
  top: 14vh;
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}
.uses-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 400ms ease, transform 1600ms var(--ease-out);
}
.uses-picture img.is-active { opacity: 1; transform: scale(1); }
.uses-list { grid-column: 7 / 13; padding-bottom: 16vh; }
.use button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color 200ms ease;
}
.use-name { font-size: var(--step-lead); line-height: 1.2; font-weight: 500; }
.use-method { flex: none; font-size: var(--step-small); }
.use.is-active button { color: var(--ink); }
.use.is-active .use-method { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .use button:hover { color: var(--ink); }
}
.use p {
  max-width: 40ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms var(--ease-out), opacity 250ms ease, padding 300ms var(--ease-out);
}
.use.is-active p { max-height: 12em; opacity: 1; padding-bottom: 20px; }
html:not(.js) .use p { max-height: none; opacity: 1; padding-bottom: 20px; }

/* ---------- Contato: texto e e-mail à esquerda, formulário à direita ---------- */
.contact {
  margin-top: var(--section);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 56px;
  align-items: start;
  padding: clamp(80px, 9vw, 140px) var(--m);
  background: var(--surface);
}
.contact-side { grid-column: 1 / 6; display: grid; gap: 28px; justify-items: start; }
.contact-lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; max-width: 22ch; }
.contact-channel { display: grid; gap: 14px; justify-items: start; margin-top: 12px; }
.contact-email {
  font-size: var(--step-lead);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
  transition: color 180ms ease, text-underline-offset 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-email:hover { color: var(--accent-hover); text-underline-offset: 11px; }
}
.contact-place { color: var(--muted); margin-top: 12px; }
.copy-button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--surface-2);
  border: 0;
  border-radius: 0;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.copy-button:active { transform: scale(0.97); }
.copy-button[data-copied] { background: var(--accent); color: var(--accent-ink); }

.contact-form {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.contact-form label { display: grid; gap: 8px; font-size: var(--step-small); font-weight: 500; }
.contact-form .field-full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: var(--step-body);
  font-weight: 400;
  transition: border-color 160ms ease;
}
.contact-form select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a7b3ba' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent); outline: none; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-note { font-size: var(--step-small); color: var(--muted); }

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 72px var(--m) 24px;
  background: var(--footer);
  font-size: var(--step-small);
  color: var(--muted);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 40px;
}
.footer-cols > * { display: grid; gap: 8px; align-content: start; justify-items: start; grid-column: span 2; }
.footer-cols > .footer-credits { grid-column: 9 / 13; }
.footer-head { color: var(--ink); font-weight: 500; }
.site-footer a { text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: var(--ink); }
}
.footer-credits summary { cursor: pointer; color: var(--ink); min-height: 32px; display: flex; align-items: center; }
.credits { margin-top: 12px; color: var(--muted); }
.credits a { display: inline; text-decoration: underline; text-underline-offset: 3px; }
.footer-mark {
  margin-top: clamp(72px, 8vw, 128px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.legal { margin-top: 28px; }

/* ---------- Movimento ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.js .frame { animation: rise 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 100ms); }
.js .hero-copy,
.js .hero-actions { animation: rise 900ms var(--ease-out) both 450ms; }
/* Só opacidade: um transform no cabeçalho prenderia o menu fixo do telefone dentro dele. */
.js .site-header { animation: fade 600ms ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .js .frame, .js .hero-copy, .js .hero-actions { animation: fade 300ms ease both; }
  .uses-picture img { transition: opacity 300ms ease; transform: none; }
  .site-header, .site-header.is-hidden { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
  .instrument-figure,
  .instrument:nth-of-type(even) .instrument-figure { grid-column: 1 / -1; }
  .instrument-body,
  .instrument:nth-of-type(even) .instrument-body { grid-column: 1 / -1; grid-row: 2; margin-top: 40px; max-width: 40rem; }
  .instruments-head .section-title,
  .instruments-head p { grid-column: 1 / -1; }
  .instruments-head p { margin-top: 24px; }
  .altitude-copy { grid-column: 1 / -1; max-width: 46rem; margin-bottom: 48px; }
  .altitude-lab { grid-column: 1 / -1; }
  .contact-side, .contact-form { grid-column: 1 / -1; }
  .contact-form { max-width: 44rem; }
  .footer-cols > * { grid-column: span 4; }
  .footer-cols > .footer-credits { grid-column: 1 / -1; max-width: 60ch; }
}

/* ---------- Telefone: composição própria ---------- */
@media (max-width: 760px) {
  .site-header { padding: 14px var(--m); }
  .menu-toggle { display: inline-flex; align-items: center; position: relative; z-index: 2; }
  .site-header .wordmark { position: relative; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 96px var(--m) 40px;
    background: var(--bg);
    font-size: var(--step-lead);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms ease, transform 260ms var(--ease-out), visibility 0s; }
  .site-nav a { min-height: 52px; }

  .hero { padding-top: 76px; grid-template-rows: minmax(8px, 0.5fr) auto auto; }
  .strip { height: 46svh; min-height: 300px; }
  .frame { width: 80vw; }
  .frame img { width: 100%; }
  .frame figcaption { white-space: normal; }
  .hero-foot { padding: 32px var(--m) 36px; }

  .intro { display: block; }
  .intro-pin { position: static; margin-bottom: 64px; }
  .pic-portrait { width: 64%; }
  .pic-wide { width: 100%; margin-top: 56px; }

  .instrument-body,
  .instrument:nth-of-type(even) .instrument-body { margin-top: 28px; }
  .drawing { padding-top: 16px; }
  .drawing .lbl { display: none; }
  .instrument-figure .data { aspect-ratio: 8 / 4; }
  .instrument-body dl div { grid-template-columns: 6.5rem 1fr; }

  .altitude-plot .axis text { font-size: 26px; }
  .altitude-controls { grid-template-columns: 1fr; padding: 20px; }
  .altitude-controls input { grid-row: auto; }

  .process { display: flex; flex-direction: column; gap: 56px; }
  .process .section-title { margin-bottom: 0; }
  .stage { display: flex; flex-direction: column; gap: 16px; margin: 0; }
  .stage-1 figure { width: 100%; }
  .stage-1 figure img { aspect-ratio: 4 / 3; }
  .stage-2 figure { width: 62%; align-self: flex-end; }
  .stage-2 p { align-self: flex-end; max-width: 62%; min-width: 280px; }
  .stage-3 figure { width: 78%; }

  .uses-body { display: block; }
  .uses > .section-title { margin-bottom: 24px; }
  .uses-picture { position: sticky; top: 0; z-index: 2; aspect-ratio: auto; height: 32svh; margin: 0 calc(var(--m) * -1); }
  .uses-list { padding-top: 24px; padding-bottom: 0; }
  .use button { min-height: 56px; flex-direction: column; gap: 2px; }
  .use-method { color: var(--muted); }

  .contact-form { grid-template-columns: 1fr; }

  .footer-cols > *, .footer-cols > .footer-credits { grid-column: span 6; }
  .footer-cols > .footer-credits { grid-column: 1 / -1; }
}

/* ---------- Programa piloto, ficha técnica e perguntas ---------- */
.pilot { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; padding: var(--section) var(--m) 0; }
.pilot-head { grid-column: 1 / 5; display: grid; gap: 20px; justify-items: start; }
.pilot-body { grid-column: 6 / 13; display: grid; gap: 36px; justify-items: start; }
.pilot-body .statement { max-width: 28ch; }
.pilot-terms { margin: 0; display: grid; gap: 22px; }
.pilot-terms div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; }
.pilot-terms dt { color: var(--accent); font-weight: 500; }
.pilot-terms dd { margin: 0; max-width: 52ch; }

.spec-sheet { padding: var(--section) var(--m) 0; }
.spec-sheet .section-title { margin-bottom: 16px; }
.spec-sheet-note { color: var(--muted); margin-bottom: 40px; }
.spec-table { overflow-x: auto; }
.spec-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.spec-table thead th { color: var(--muted); font-weight: 500; }
.spec-table tbody th { font-weight: 500; }

.lab-faq { padding: var(--section) var(--m) 0; }
.lab-faq .section-title { margin-bottom: clamp(40px, 5vw, 72px); }
.faq { display: grid; gap: 6px; max-width: 1080px; }
.faq details { background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 18px clamp(20px, 2.4vw, 32px); font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5em; line-height: 1; color: var(--accent); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 clamp(20px, 2.4vw, 32px) 24px; color: var(--muted); }
.faq details > div p { max-width: 58ch; }

.site-nav .lang { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-kind="ok"] { color: var(--accent); }
.form-legal { grid-column: 1 / -1; max-width: 64ch; }
.form-legal a { color: var(--ink); }
.contact-side [data-wa-block], .contact-side p:has(> a[download]) { margin: 0; }

@media (max-width: 1080px) {
  .pilot-head, .pilot-body { grid-column: 1 / -1; }
  .pilot-body { margin-top: 40px; }
}
@media (max-width: 760px) {
  .pilot-terms div { grid-template-columns: 1fr; gap: 6px; }
}
