/* ==========================================================================
   Dr. Mateus Vassalo — quiet premium + medical technology
   Tokens → base → layout → componentes → seções → movimento → a11y
   ========================================================================== */

:root {
  /* Escuro (tecnologia) */
  --ink: #0f1a22;
  --ink-2: #13222d;
  --ink-3: #1a2d3a;
  --glow: #3e6c8e;
  --on-ink: #eef3f6;
  --on-ink-2: #a9bccb;
  --on-ink-3: #7b91a2;
  --line-ink: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.04);
  --accent: #8ec0e2;
  --accent-strong: #5fa3cf;

  /* Claro (conteúdo clínico) */
  --paper: #f6f7f8;
  --paper-2: #ffffff;
  --text: #0f1b24;
  --text-2: #43535f;
  --text-3: #6a7a86;
  --line: #dfe4e8;
  --link: #24618c;

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark light;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                        */
/* -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--on-ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }

::selection { background: var(--accent); color: var(--ink); }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--on-ink); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* -------------------------------------------------------------------------- */
/* Tipografia — tracking e leading variam com o tamanho                        */
/* -------------------------------------------------------------------------- */

.display {
  font-weight: 300;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h1 {
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2 {
  font-weight: 300;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h3 {
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-ink-2);
  max-width: 40em;
  text-wrap: pretty;
}
.muted { color: var(--on-ink-3); }

/* -------------------------------------------------------------------------- */
/* Header — camada translúcida, conteúdo rola por baixo                        */
/* -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-ink);
  transition: background-color 320ms var(--ease-out), color 320ms var(--ease-out),
    backdrop-filter 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.header.is-scrolled {
  background: rgba(15, 26, 34, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.header.is-light {
  color: var(--text);
  background: rgba(246, 247, 248, 0.72);
  box-shadow: inset 0 -1px 0 rgba(15, 27, 36, 0.06);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  margin-right: auto;
  line-height: 1;
}
.brand__name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__name b { font-weight: 500; color: var(--accent); }
.header.is-light .brand__name b { color: var(--accent-strong); }
.brand__tag {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.6;
}

.nav { display: none; }
.nav a {
  position: relative;
  font-size: 0.875rem;
  text-decoration: none;
  opacity: 0.78;
  padding: 8px 2px;
  transition: opacity 160ms ease;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a::after {
  content: "";
  position: absolute; left: 2px; right: 2px; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (min-width: 1080px) {
  .nav { display: flex; gap: 26px; }
  .menu-btn { display: none !important; }
}

.btn.header__cta { display: none; }
@media (min-width: 640px) { .btn.header__cta { display: inline-flex; } }
@media (max-width: 420px) { .brand__name { letter-spacing: 0.16em; font-size: 0.875rem; } }

/* Hambúrguer: duas linhas, como na referência */
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0; background: none; color: inherit;
  cursor: pointer; border-radius: 999px;
}
.menu-btn span {
  grid-area: 1 / 1;
  width: 22px; height: 1.5px; background: currentColor;
  transition: transform 360ms var(--ease-out);
}
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: rotate(-45deg); }

/* Menu sobreposto: materializa a partir do botão (canto superior direito) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: rgba(15, 26, 34, 0.86);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  color: var(--on-ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 44px) 36px);
  transition: clip-path 560ms var(--ease-in-out), opacity 300ms ease, visibility 0s 560ms;
}
.menu-open .menu {
  opacity: 1;
  visibility: visible;
  clip-path: circle(150% at calc(100% - 44px) 36px);
  transition: clip-path 640ms var(--ease-in-out), opacity 200ms ease, visibility 0s;
}
.menu a {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
}
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(2) { transition-delay: 40ms; }
.menu-open .menu a:nth-child(3) { transition-delay: 80ms; }
.menu-open .menu a:nth-child(4) { transition-delay: 120ms; }
.menu-open .menu a:nth-child(5) { transition-delay: 160ms; }
.menu-open .menu a:nth-child(6) { transition-delay: 200ms; }
.menu-open .menu a:nth-child(7) { transition-delay: 240ms; }
.menu__foot { margin-top: auto; font-size: 0.875rem; color: var(--on-ink-2); }
.menu-open { overflow: hidden; }

/* -------------------------------------------------------------------------- */
/* Botões — pill com seta, feedback no pressionar                              */
/* -------------------------------------------------------------------------- */

.btn {
  --b: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 20px 10px 22px;
  border: 1px solid var(--b);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 0.9375rem/1 var(--font);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease,
    transform 120ms var(--ease-out);
}
.btn:hover { background: rgba(255, 255, 255, 0.08); --b: rgba(255, 255, 255, 0.9); }
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn svg { width: 14px; height: 14px; transition: transform 320ms var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--solid {
  background: var(--on-ink);
  color: var(--ink);
  border-color: var(--on-ink);
}
.btn--solid:hover { background: #fff; color: var(--ink); }

.btn--sm { min-height: 38px; padding: 8px 14px 8px 16px; font-size: 0.8125rem; }

.is-light .btn, .paper .btn { --b: rgba(15, 27, 36, 0.35); }
.is-light .btn:hover, .paper .btn:hover { background: rgba(15, 27, 36, 0.05); --b: rgba(15, 27, 36, 0.8); }
.paper .btn--solid { background: var(--text); color: #fff; border-color: var(--text); }
.paper .btn--solid:hover { background: #000; color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* -------------------------------------------------------------------------- */
/* Fundo escuro com brilho radial no topo + canvas de partículas               */
/* -------------------------------------------------------------------------- */

.sky {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(62, 108, 142, 0.85) 0%, rgba(30, 52, 68, 0.6) 38%, transparent 72%),
    var(--ink);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.particles.is-ready { opacity: 1; }
.particles--hero { position: absolute; }

.layer { position: relative; z-index: 1; }

/* -------------------------------------------------------------------------- */
/* Home — seções de altura cheia, texto alterna lados                          */
/* -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 96px;
}
.hero__grid { display: grid; gap: 40px; }
.hero .display { max-width: 12em; }
.hero .lead { margin-top: 28px; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 28px;
  width: 30px; height: 46px;
  margin-left: -15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--on-ink-2);
  text-decoration: none;
}
.scroll-hint svg { width: 12px; height: 12px; animation: hint 2.4s var(--ease-in-out) infinite; }
@keyframes hint { 0%, 100% { transform: translateY(-3px); opacity: .5; } 50% { transform: translateY(4px); opacity: 1; } }

.panel {
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}
.panel__body { max-width: 34rem; }
.panel--right .panel__body { margin-left: auto; text-align: right; }
.panel--right .actions { justify-content: flex-end; }
.panel--center .panel__body { margin-inline: auto; text-align: center; max-width: 46rem; }
.panel--center .lead { margin-inline: auto; }
.panel--center .actions { justify-content: center; }
.panel .h2 { margin-bottom: 24px; }

@media (max-width: 760px) {
  .panel--right .panel__body { text-align: left; margin-left: 0; }
  .panel--right .actions { justify-content: flex-start; }
  .panel { min-height: 0; padding: 22svh 0 18svh; }
}

/* Lista de tópicos dentro dos painéis */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.panel--right .chips { justify-content: flex-end; }
.chips a { color: inherit; text-decoration: none; display: block; margin: -6px -12px; padding: 6px 12px; border-radius: 999px; transition: color 160ms ease; }
.chips a:hover { color: var(--on-ink); }
.chips li:has(a) { transition: border-color 200ms ease; }
.chips li:has(a:hover) { border-color: rgba(255, 255, 255, 0.4); }
.chips li {
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-ink);
  background: var(--glass);
  color: var(--on-ink-2);
}
@media (max-width: 760px) { .panel--right .chips { justify-content: flex-start; } }

/* -------------------------------------------------------------------------- */
/* Cards de vidro (processo, áreas)                                            */
/* -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  counter-reset: step;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; } }

.glass {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: left;
}
.glass h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.glass p { font-size: 0.9375rem; color: var(--on-ink-2); margin: 0; }

@media (min-width: 1080px) {
  .steps .glass:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%; right: -32px;
    width: 24px; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.5));
  }
}
.steps .glass::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
a.glass { text-decoration: none; transition: border-color 240ms ease, transform 240ms var(--ease-out), background-color 240ms ease; }
a.glass:hover { border-color: rgba(255, 255, 255, 0.32); transform: translateY(-2px); }
a.glass:active { transform: scale(0.985); }
.glass .more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 0.875rem; color: var(--on-ink);
}
.glass .more svg { width: 12px; height: 12px; transition: transform 320ms var(--ease-out); }
a.glass:hover .more svg { transform: translate(2px, -2px); }

/* -------------------------------------------------------------------------- */
/* Seções claras — leitura clínica                                             */
/* -------------------------------------------------------------------------- */

.paper {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--text);
}
.paper .lead { color: var(--text-2); }
.paper .muted { color: var(--text-3); }
.paper .eyebrow { color: var(--accent-strong); }
.paper a { color: var(--link); }
.paper .btn { color: var(--text); }
.paper .btn--solid { color: #fff; }

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section + .section { padding-top: 0; }

/* Bloco do médico */
.doctor {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .doctor { grid-template-columns: 5fr 7fr; gap: 80px; } }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(62, 108, 142, 0.9), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink));
  display: grid;
  place-items: center;
  color: var(--on-ink);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__mono {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.portrait__note {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  font-size: 0.75rem; color: var(--on-ink-2); text-align: center;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.facts div { background: var(--paper-2); padding: 16px 18px; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 4px 0 0; font-weight: 500; }

/* -------------------------------------------------------------------------- */
/* Páginas internas                                                            */
/* -------------------------------------------------------------------------- */

.page-hero {
  min-height: min(78svh, 760px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 64px) 0 72px;
  overflow: hidden;
}
.page-hero .h1 { max-width: 14em; margin-top: 8px; }
.page-hero .lead { margin-top: 24px; }

.crumbs { font-size: 0.8125rem; color: var(--on-ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; color: var(--on-ink-2); }
.crumbs a:hover { color: var(--on-ink); }

.article {
  display: grid;
  gap: 48px;
  padding: clamp(64px, 9vw, 120px) 0;
}
@media (min-width: 1000px) {
  .article { grid-template-columns: 240px minmax(0, 1fr); gap: 80px; }
}

.toc { font-size: 0.875rem; }
.toc__inner { position: sticky; top: calc(var(--header-h) + 32px); }
.toc p { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--text); }
@media (max-width: 999px) { .toc { display: none; } }

.prose { max-width: 44rem; font-size: 1.0625rem; line-height: 1.7; color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 72px 0 20px;
}
.prose h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 40px 0 12px;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--text-3); }

.note {
  margin: 32px 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}
.note strong { display: block; margin-bottom: 4px; }

.callout {
  margin: 40px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink-2);
  font-size: 1rem;
}
.callout strong { color: var(--on-ink); }
.callout .stat { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 20px 0; }
.callout .stat div { display: flex; flex-direction: column; }
.callout .stat b { font-size: 2.25rem; font-weight: 300; letter-spacing: -0.03em; color: var(--on-ink); line-height: 1; }
.callout .stat span { font-size: 0.8125rem; margin-top: 6px; }
.callout a { color: var(--accent); }

.compare { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 0.9375rem; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--text); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.compare td:first-child { color: var(--text); font-weight: 500; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* FAQ — visível e indexável (details/summary) */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px; margin-top: 6px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 320ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 24px; }
.faq .faq__a p:last-child { margin: 0; }

.refs { font-size: 0.875rem; color: var(--text-3); }
.refs li { margin-bottom: 0.8em; }

.related { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(2, 1fr); } }
.related a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}
.related a:hover { border-color: var(--text-3); }
.related a:active { transform: scale(0.985); }
.related svg { width: 12px; height: 12px; flex: none; }

.byline {
  display: flex; align-items: center; gap: 14px;
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--text-3);
}
.byline b { display: block; color: var(--text); font-weight: 600; }
.byline__mono {
  width: 44px; height: 44px; flex: none;
  border-radius: 999px; background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center; font-size: 0.8125rem; letter-spacing: 0.06em;
}

/* -------------------------------------------------------------------------- */
/* CTA final e rodapé                                                          */
/* -------------------------------------------------------------------------- */

.cta-band { padding: clamp(96px, 12vw, 160px) 0; text-align: center; position: relative; z-index: 2; }
.cta-band .h2 { max-width: 16em; margin-inline: auto; }
.cta-band .lead { margin: 20px auto 0; }
.cta-band .actions { justify-content: center; }

.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--line-ink);
  color: var(--on-ink-2);
  font-size: 0.875rem;
  padding: 64px 0 40px;
}
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer h2 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-ink); }
.footer address { font-style: normal; line-height: 1.7; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-ink);
  font-size: 0.75rem; color: var(--on-ink-3);
}

/* Indicador de progresso vertical (referência) */
.progress {
  position: fixed;
  right: 22px; top: 50%;
  z-index: 30;
  width: 3px; height: 72px;
  margin-top: -36px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  display: none;
  transition: background-color 320ms ease;
}
.progress i {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: var(--on-ink);
  border-radius: 3px;
  transform-origin: top;
  transform: scaleY(0);
  transition: background-color 320ms ease;
}
.progress.is-light { background: rgba(15, 27, 36, 0.12); }
.progress.is-light i { background: var(--text); }
@media (min-width: 900px) { .progress { display: block; } }

/* -------------------------------------------------------------------------- */
/* Movimento — revelação ao rolar                                              */
/* -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------- */
/* Acessibilidade — movimento, transparência, contraste                        */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .scroll-hint svg { animation: none; }
  .menu, .menu-open .menu { clip-path: none; transition: opacity 200ms ease, visibility 0s; }
  .menu a { transform: none; transition: opacity 200ms ease; }
  .btn svg, a.glass, .related a { transition: none; }
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-transparency: reduce) {
  .header.is-scrolled { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.is-light { background: var(--paper); }
  .menu { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass { background: var(--ink-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --on-ink-2: #d7e2ea; --on-ink-3: #b9c8d3; --line-ink: rgba(255,255,255,.4); --text-2: #22313b; --text-3: #3b4a55; --line: #9aa7b1; }
}

@media print {
  .header, .menu, .particles, .progress, .cta-band, .scroll-hint { display: none !important; }
  body, .paper { background: #fff; color: #000; }
}

/* Home: brilho fixo no topo da viewport, atrás das partículas (como na referência) */
.glow {
  position: fixed;
  inset: 0 0 auto 0;
  height: 75vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(110% 80% at 50% -15%, rgba(62, 108, 142, 0.8) 0%, rgba(30, 52, 68, 0.45) 40%, transparent 75%);
}
.home-stage { position: relative; }
.home-stage > section { position: relative; z-index: 1; }

.place {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
@media (min-width: 760px) { .place { grid-template-columns: repeat(3, 1fr); } }
.place .glass p { color: var(--on-ink); font-size: 1rem; }
.place .glass span { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: 8px; }

.place .glass span.more { display: inline-flex; font-size: 0.875rem; letter-spacing: 0; text-transform: none; color: var(--on-ink); margin: 16px 0 0; }
