/* AI contributor: Claude Code — Claude Opus 5.5, 23/10/2026 — página "em construção". Sempre no tema escuro (é noite na
   aproximação); só tokens do sistema, tamanhos grandes como múltiplos de --fs-* e --space-*. */
:root { --display: clamp(calc(var(--fs-xl) * 2), 7vw, calc(var(--fs-xl) * 4)); }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--text-primary);
  background: var(--surface-sunken); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--bu-200); color: var(--text-primary); }
:focus-visible { outline: var(--border-width-strong) solid var(--border-focus); outline-offset: var(--space-1); border-radius: var(--radius-sm); }
.mono { font-family: var(--font-mono); }

.night {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 100%, var(--bu-100) 0%, var(--surface-sunken) 60%);
}

/* Faixa de situação, como um painel de voo */
.status {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-8); font-size: var(--fs-xs); letter-spacing: 0.18em; color: var(--text-secondary);
}
.status__brand { color: var(--text-primary); font-weight: 700; }
.status__line { display: inline-flex; align-items: center; gap: var(--space-2); }
.blink { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-full); background: var(--status-green); animation: blink 1.6s steps(1) infinite; }
.status__langs { display: inline-flex; gap: var(--space-1); }
.status__langs button {
  font: inherit; letter-spacing: 0.12em; color: var(--text-muted); background: none; cursor: pointer;
  border: var(--border-width-default) solid transparent; border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2);
}
.status__langs button[aria-pressed="true"] { color: var(--text-primary); border-color: var(--border-strong); }
.status__langs button:hover { color: var(--text-primary); }

.moon { position: absolute; z-index: 1; top: 12%; right: 6%; width: calc(var(--space-12) * 1.6); opacity: 0.85; }
.moon__dark { fill: var(--bu-50); }
.moon__lit { fill: var(--gray-900); filter: drop-shadow(0 0 var(--space-3) var(--bu-300)); }

/* Texto */
.copy {
  position: relative; z-index: 2; align-self: start; text-align: center;
  padding: clamp(var(--space-8), 9vh, calc(var(--space-12) * 2)) var(--space-6) 0;
}
h1 {
  margin: 0 auto; max-width: 16ch; font-size: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance; animation: rise 1.4s var(--ease-out) both;
}
.teaser {
  margin: var(--space-8) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-3);
  font-family: var(--font-mono); font-size: var(--fs-lg); letter-spacing: 0.04em; color: var(--text-secondary);
}
.teaser > * { opacity: 0; }
.teaser.play > * { animation: reveal 0.7s var(--ease-out) forwards; }
.teaser.play > :nth-child(1) { animation-delay: 1.2s; }
.teaser.play > :nth-child(2) { animation-delay: 1.7s; }
.teaser.play > :nth-child(3) { animation-delay: 2.2s; }
.teaser.play > :nth-child(4) { animation-delay: 2.7s; }
.teaser.play > :nth-child(5) { animation-delay: 3.2s; }
.teaser.play > :nth-child(6) { animation-delay: 3.6s; }
.teaser.play > :nth-child(7) { animation-delay: 4.1s; }
.teaser.play > :nth-child(8) { animation-delay: 4.8s; color: var(--text-primary); }
.sub { margin: var(--space-5) auto 0; max-width: 46ch; color: var(--text-muted); font-size: var(--fs-base); line-height: 1.6; animation: rise 1.2s 5.3s var(--ease-out) both; }
.contact { margin: var(--space-8) auto 0; display: grid; gap: var(--space-2); justify-items: center; font-size: var(--fs-sm); color: var(--text-secondary); animation: rise 1.2s 5.7s var(--ease-out) both; }
.contact__link {
  font-family: var(--font-mono); font-size: var(--fs-lg); color: var(--text-primary); text-decoration: none;
  padding: var(--space-2) var(--space-5); border-radius: var(--radius-full); border: var(--border-width-default) solid var(--border-strong);
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.contact__link:hover { background: var(--bu-100); border-color: var(--bu-300); }

/* Pista */
.runway { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 48vh; }
.light { fill: var(--gray-900); }
.light--edge { opacity: 0; animation: lightup 0.6s var(--ease-out) forwards; animation-delay: calc(0.4s + var(--d, 0s)); filter: drop-shadow(0 0 var(--space-1) var(--gray-900)); }
.light--threshold { fill: var(--status-green); filter: drop-shadow(0 0 var(--space-1-5) var(--status-green)); }
.light--bar { opacity: 0.55; }
.light--flash { opacity: 0.12; animation: flash 2.2s infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 var(--space-2) var(--gray-900)); }

@keyframes blink { 50% { opacity: 0.15; } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--space-4)); filter: blur(var(--space-1)); } to { opacity: 1; transform: none; filter: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(var(--space-2)); } to { opacity: 1; transform: none; } }
@keyframes lightup { to { opacity: 1; } }
@keyframes flash { 0%, 6% { opacity: 1; } 12%, 100% { opacity: 0.12; } }

@media (max-width: 640px) {
  .status { padding: var(--space-4); }
  .status__line { display: none; }
  .moon { top: 10%; right: 6%; width: calc(var(--space-12) * 1.1); }
  .teaser { font-size: var(--fs-base); }
  .runway { height: 36vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .teaser > *, .light--edge { opacity: 1; }
  .light--flash { opacity: 0.6; }
}

/* Iluminação lunar e a olhada pelos óculos de visão noturna (NVG) */
.moonlabel { position: absolute; z-index: 1; top: calc(12% + var(--space-12) * 1.8); right: 6%; margin: 0; font-size: var(--fs-xs); letter-spacing: 0.14em; color: var(--text-muted); }
.night { transition: filter 0.9s var(--ease-out); }
.night.is-nvg { filter: grayscale(1) sepia(1) hue-rotate(55deg) saturate(3.2) brightness(1.9) contrast(1.2); }
.nvg {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 0.9s var(--ease-out);
  /* visão pelo tubo: bordas escuras em círculo e linhas de varredura */
  background:
    radial-gradient(circle at 50% 42%, transparent 0 34%, color-mix(in srgb, var(--surface-sunken) 70%, transparent) 52%, var(--surface-sunken) 68%),
    repeating-linear-gradient(0deg, transparent 0 2px, color-mix(in srgb, var(--surface-sunken) 28%, transparent) 2px 3px);
}
.night.is-nvg .nvg { opacity: 1; }
@media (max-width: 1100px) { .moonlabel { display: none; } }
@media (max-width: 640px) { .nvg { background-size: auto; } }
