/* Página da história. Cores e fontes vêm do modelo no ar. */
:root {
  --fundo: #f6f8fb;
  --texto: #0b1a2b;
  --suave: #5a6b7d;
  --destaque: #047fa9;
  --sobre-destaque: #fff;
  --escuro: #013162;
  --superficie: #ffffff;
  --titulo: Fraunces, Georgia, serif;
  --corpo: Manrope, system-ui, sans-serif;
  --raio: 18px;
  --logo: none;
  --luz: color-mix(in srgb, var(--destaque) 48%, #fff);
  --regua: 92px;
  --cw-fab-bottom: calc(var(--regua) + 20px);
  --cw-fab-bottom-mobile: calc(var(--regua) + 16px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: color-mix(in srgb, var(--fundo) 86%, transparent);
  backdrop-filter: blur(16px);
}
.topo__logo img { height: 40px; width: auto; filter: var(--logo); }
.topo__voltar { font-weight: 650; font-size: .92rem; text-decoration: none; }
body[data-tom="escuro"] .topo { background: transparent; color: #f4f7fb; }
body[data-tom="escuro"] .topo__logo img { filter: brightness(0) invert(1); }

.cena {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 7vw calc(var(--regua) + 36px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.cena--escura { background: var(--escuro); color: #f4f7fb; }
.cena--frase { background: var(--superficie); }
.cena__miolo { position: relative; z-index: 1; width: min(1120px, 100%); }
.cena__olho {
  margin: 0 0 14px;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--luz);
}
.cena--frase .cena__olho,
.cena--clara .cena__olho { color: var(--destaque); }

.cena--ano { overflow: hidden; }
.lente, .lente::before, .lente::after {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.lente {
  width: min(78vh, 720px);
  height: min(78vh, 720px);
  right: -6vw;
  top: 50%;
  transform: translateY(-52%);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
}
.lente::before, .lente::after { content: ""; }
.lente::before {
  inset: 11%;
  border: 1px solid color-mix(in srgb, var(--luz) 70%, transparent);
}
.lente::after {
  inset: 27%;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
}
.cena__miolo--ano {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 5vw;
  align-items: end;
}
.cena__ano {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(6.5rem, 16vw, 13.5rem);
  line-height: .76;
  letter-spacing: -.065em;
  color: var(--luz);
}
.cena__miolo--ano .cena__olho { grid-column: 1 / -1; }
.cena__lado { grid-column: 2; grid-row: 2; padding-bottom: .6rem; max-width: 16em; }
.cena--ano h1 {
  margin: 0;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  line-height: .94;
  letter-spacing: -.035em;
}
.cena__lead {
  margin: 18px 0 0;
  max-width: 32ch;
  color: color-mix(in srgb, #f4f7fb 74%, transparent);
  font-size: 1.12rem;
}
.cena__desce {
  position: absolute;
  left: 7vw;
  bottom: calc(var(--regua) + 18px);
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: color-mix(in srgb, #fff 22%, transparent);
}
.cena__desce::after {
  content: "";
  display: block;
  width: 100%;
  height: 18px;
  background: var(--luz);
  animation: desce 1.8s ease-in-out infinite;
}
@keyframes desce {
  from { transform: translateY(-18px); }
  to { transform: translateY(56px); }
}

.cena--foto {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
}
.cena--foto figure { margin: 0; position: relative; min-height: 100svh; }
.cena--foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.cena--foto .cena__miolo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  padding: 108px 6vw calc(var(--regua) + 28px);
}
.cena--troca figure { order: 2; }
.cena__num {
  margin: 0;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(5.5rem, 9vw, 8.5rem);
  line-height: .78;
  letter-spacing: -.055em;
  color: var(--luz);
}
.cena--clara .cena__num,
.cena--frase h2 { color: var(--texto); }
.cena h2 {
  margin: 8px 0 0;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  line-height: .96;
  letter-spacing: -.035em;
}
.cena__corpo {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 1.14rem;
  color: color-mix(in srgb, #f4f7fb 76%, transparent);
}
.cena--frase .cena__corpo,
.cena--clara .cena__corpo { color: var(--suave); }
.cena--frase { justify-content: center; }
.cena--frase .cena__miolo {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .72fr);
  column-gap: 6vw;
  align-items: end;
}
.cena--frase .cena__olho { grid-column: 1 / -1; }
.cena--frase h2 {
  font-size: clamp(3.4rem, 6.4vw, 6.2rem);
  max-width: 9ch;
}
.cena--frase .cena__corpo { margin: 0 0 .35em; }

.cena--fim .cena__miolo { width: min(16em, 100%); }
.cena--fim h2 { font-size: clamp(3.2rem, 7vw, 6.2rem); max-width: 10ch; }
.cena__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px;
  background: var(--destaque);
  color: var(--sobre-destaque, #fff);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
.botao--linha {
  background: transparent;
  color: #f4f7fb;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #f4f7fb 48%, transparent);
}

.regua {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 16px 4vw 18px;
  background: color-mix(in srgb, var(--fundo) 90%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid color-mix(in srgb, var(--texto) 12%, transparent);
}
.regua__fio {
  position: absolute;
  left: 4vw; right: 4vw; top: 0;
  height: 2px;
  background: color-mix(in srgb, var(--texto) 14%, transparent);
}
.regua__fio i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--destaque);
  transform: scaleX(0);
  transform-origin: left;
}
.regua button {
  appearance: none;
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--suave);
  text-align: left;
  padding: 6px 8px 0;
  cursor: pointer;
  font: inherit;
}
.regua button b {
  display: block;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1;
  color: var(--texto);
  letter-spacing: -.02em;
}
.regua button small {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.regua button[aria-current="true"] b { color: var(--destaque); }
.regua button[aria-current="true"] small { color: var(--destaque); }

@media (max-width: 860px) {
  .cena { padding: 92px 22px calc(var(--regua) + 28px); }
  .cena__miolo--ano { grid-template-columns: 1fr; }
  .cena__ano, .cena__lado, .cena__miolo--ano .cena__olho { grid-column: 1; grid-row: auto; }
  .cena__lado { padding-bottom: 0; }
  .cena--frase .cena__miolo { grid-template-columns: 1fr; }
  .cena--frase .cena__corpo { margin-top: 16px; }
  .lente { width: 280px; height: 280px; right: -90px; top: auto; bottom: 18vh; transform: none; opacity: .7; }
  .cena--foto { grid-template-columns: 1fr; min-height: 0; }
  .cena--foto figure { min-height: 78vw; order: 0; }
  .cena--troca figure { order: 0; }
  .cena--foto .cena__miolo { padding: 28px 22px calc(var(--regua) + 28px); }
  .regua { overflow-x: auto; scrollbar-width: none; padding: 14px 12px 16px; gap: 0; }
  .regua::-webkit-scrollbar { display: none; }
  .regua button { flex: 1 1 0; min-width: 0; padding: 6px 4px 0; }
  .regua button b { font-size: 1.05rem; }
  .regua button small { letter-spacing: .02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .cena__desce::after { animation: none; }
}
