/* =========================================================
   Reset, tipografia e fundações
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  /* Os atributos width/height do HTML reservam espaço e evitam salto de layout;
     sem `height: auto` a altura fica presa ao atributo e a imagem distorce
     assim que o CSS mexe na largura. */
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.05em;
  text-wrap: pretty;
}

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

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

/* --- estrutura --- */

.section {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
}

.shell {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.shell--narrow {
  max-width: var(--maxw-narrow);
}

/* --- utilitários de texto --- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 1.4rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--center {
  justify-content: center;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--paper-dim);
  line-height: 1.6;
}

.muted {
  color: var(--paper-faint);
  font-size: var(--fs-small);
}

.gold {
  color: var(--gold-2);
}

.gold-text {
  background: linear-gradient(180deg, #fbe6c2 0%, var(--gold-2) 48%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.center {
  text-align: center;
}

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

/* --- linhas de cadência: o roteiro respira, o texto também --- */

.beat {
  display: block;
  font-size: var(--fs-lead);
  color: var(--paper-dim);
  margin-bottom: 0.55rem;
}

.beat--strong {
  color: var(--paper);
  font-weight: 500;
}

/* --- vidro fosco --- */

.glass {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 30px 70px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), transparent 46%);
}

/* --- azul metálico escuro --- */

.t-metal {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 22%, rgba(0, 0, 0, 0.42)),
    linear-gradient(118deg, var(--metal-1) 0%, var(--metal-2) 34%, var(--metal-3) 50%, var(--metal-2) 66%, var(--metal-1) 100%);
  background-size: auto, 260% 100%;
  animation: metalDrift 24s ease-in-out infinite;
}

.t-metal::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    104deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 48%,
    rgba(255, 255, 255, 0.11) 50%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 60%
  );
  animation: sheen 11s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.t-metal::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

/* O brilho passa por trás do texto; sem este véu o contraste cai quando a
   faixa clara atravessa a coluna de leitura. */
.t-metal > .shell::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background: radial-gradient(70% 60% at 50% 50%, rgba(5, 9, 15, 0.6), transparent 72%);
  pointer-events: none;
}

@keyframes metalDrift {
  0%,
  100% {
    background-position: 0 0, 0% 50%;
  }
  50% {
    background-position: 0 0, 100% 50%;
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-62%);
  }
  100% {
    transform: translateX(62%);
  }
}

/* --- costura entre secções --- */

.seam::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, var(--ink), transparent);
  pointer-events: none;
  z-index: 1;
}
