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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; text-wrap: balance; }
h2 { font-size: var(--text-h2); line-height: var(--lh-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--text-h3); line-height: var(--lh-h3); letter-spacing: -0.01em; }
p { text-wrap: pretty; }

a { color: var(--accent-hover); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Labels mono técnicos (Integrated Biosciences) */
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Botões (Waabi): magenta só no CTA, ghost pill no resto */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem; /* rótulo large (>=18.66px bold) mantém AA sobre o magenta */
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform 90ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--cta { background: var(--accent); color: #fff; }
.btn--cta:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; font-size: 1rem; font-weight: 600; }
.btn--ghost:hover { border-color: var(--ink); background: rgb(30 30 30 / 0.04); color: var(--ink); }
.dark .btn--ghost { border-color: #6b6b6b; color: #fff; }
.dark .btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.06); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

@media (pointer: coarse) {
  .btn, .chip { min-height: 44px; }
}

/* Alternância claro/escuro em corte seco (Elementor: inversão de superfície, sem sombra) */
.dark { background-color: var(--ink); color: #f0f0f0; }
.light { background-color: var(--bg); color: var(--ink); }

.icon, .nav__search svg, .field svg, .icon-btn svg, .lab__go svg, .palette__field svg {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.dark a { color: #fff; }
.dark .muted { color: var(--muted-dark); }
.muted { color: var(--muted); }

.section { padding-block: var(--section); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head p { max-width: 60ch; font-size: var(--text-lead); line-height: 1.5; }
.kicker { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; color: var(--muted); }
.dark .kicker { color: var(--muted-dark); }
.kicker b { font-weight: 500; color: var(--ink); }
.dark .kicker b { color: #fff; }

/* Entrada de headline por linha (Dayos): máscara + 8px */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.is-in .reveal-line > span { transform: none; }

.reveal {
  opacity: 0;
  transform: translateY(var(--motion-distance-lg));
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

.no-js .reveal { opacity: 1; transform: none; }
.no-js .reveal-line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; }
  .reveal-line > span { transform: none; transition: none; }
}

.reveal-line:nth-child(2) > span { --i: 1; }
.reveal-line:nth-child(3) > span { --i: 2; }
.reveal-line:nth-child(4) > span { --i: 3; }
