/* ==========================================================================
   TALOS INTERACTIVE — MODULAR DESIGN SYSTEM & CORE ARCHITECTURE (core.css)
   Domains:
   - [data-domain="corporate"] -> Monochrome Black (#050608), Ludens Silver (#97A3B1) & Pure White (#FFFFFF)
   - [data-domain="studio"]    -> Monochrome Black (#050608) & Oxidized Bronze (#B68352 / #E2BE98)
   ========================================================================== */

@view-transition {
  navigation: auto;
}

@font-face {
  font-family: 'D-DIN';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/D-DIN.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'D-DIN';
  font-style: normal;
  font-weight: 700;
  src: url('../../fonts/D-DIN-Bold.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'D-DIN Exp';
  font-style: normal;
  font-weight: 400;
  src: url('../../fonts/D-DINExp.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'D-DIN Exp';
  font-style: normal;
  font-weight: 700;
  src: url('../../fonts/D-DINExp-Bold.woff') format('woff');
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg-base: #050608;
  --bg-header: rgba(2, 3, 4, 0.90);
  --bg-surface: #0B0D11;
  --bg-surface-hover: #10141B;

  --border-subtle: rgba(151, 163, 177, 0.14);
  --border-hover: rgba(151, 163, 177, 0.38);

  --text-primary: #F8FAFC;
  --text-secondary: #97A3B1;
  --text-muted: #5E6A78;

  --accent-primary: #FFFFFF;
  --accent-secondary: #97A3B1;
  --glow-rgb: 168, 184, 204;

  /* Default Typography (Preset 1: Michroma + D-DIN Exp + IBM Plex Sans) */
  --font-wordmark: 'Michroma', sans-serif;
  --font-nav: 'D-DIN Exp', 'D-DIN', sans-serif;
  --font-display: 'D-DIN Exp', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'Oxygen Mono', 'JetBrains Mono', monospace;

  --nav-tracking: 0.13em;
  --nav-size: 0.78rem;
  --display-uppercase: none;
  --display-tracking: -0.01em;

  scrollbar-width: thin;
  scrollbar-color: #2A323D var(--bg-base);
  accent-color: var(--accent-primary);
}

/* Domain Isolation: Studio uses subtle Oxidized Bronze accents */
body[data-domain="studio"] {
  --border-hover: rgba(182, 131, 82, 0.45);
  --accent-secondary: #E2BE98;
  --glow-rgb: 182, 131, 82;
}

/* ==========================================================================
   LIGHT MODE THEME ARCHITECTURE ([data-theme="light"])
   Swiss / Architectural Platinum Light Mode with High-Contrast Obsidian Ink
   ========================================================================== */
body[data-theme="light"] {
  color-scheme: light;

  --bg-base: #F4F6F9;
  --bg-header: rgba(244, 246, 249, 0.90);
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #EDF1F6;

  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-hover: rgba(15, 23, 42, 0.36);

  --text-primary: #090D14;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --accent-primary: #090D14;
  --accent-secondary: #334155;
  --glow-rgb: 71, 85, 105;

  scrollbar-color: #CBD5E1 var(--bg-base);
}

body[data-domain="studio"][data-theme="light"] {
  --bg-base: #F6F4F0;
  --bg-header: rgba(246, 244, 240, 0.90);
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #EFECE6;
  --border-hover: rgba(140, 90, 43, 0.45);
  --accent-primary: #090D14;
  --accent-secondary: #8C5A2B;
  --glow-rgb: 140, 90, 43;
}

body[data-theme="light"] nav a {
  color: #334155;
}

body[data-theme="light"] nav a:hover,
body[data-theme="light"] nav a.active {
  color: #090D14;
}

body[data-theme="light"] .btn-white {
  background: #090D14;
  color: #FFFFFF;
  border-color: #090D14;
}

body[data-theme="light"] .status-pill {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

body[data-theme="light"] .brand img {
  background: #090D14;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 3px 10px rgba(9, 13, 20, 0.16);
}

body[data-theme="light"] .hero-emblem-box {
  background: radial-gradient(circle at 50% 35%, rgba(168, 184, 204, 0.22) 0%, #090D14 78%);
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

body[data-theme="light"] .hero-emblem-caption {
  color: #CBD5E1;
  border-top-color: rgba(255, 255, 255, 0.14);
}

body[data-theme="light"] .card {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

body[data-theme="light"] .division-popover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

body[data-theme="light"] .div-pop-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

body[data-theme="light"] .div-pop-item img {
  background: #090D14;
  border-radius: 50%;
  padding: 2px;
}

body[data-theme="light"] .tag-bronze {
  color: #7C4A1E;
  background: rgba(182, 131, 82, 0.14);
  border-color: rgba(140, 90, 43, 0.35);
}

body[data-theme="light"] .typo-switcher {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.15);
}

body[data-theme="light"] .typo-btn.active,
body[data-theme="light"] .typo-btn:hover {
  background: #090D14;
  color: #FFFFFF;
  border-color: #090D14;
}

body[data-theme="light"] .typo-select {
  background: #F4F6F9;
  color: #090D14;
}

/* Typography Presets */
body[data-typo="kojima"] {
  --font-wordmark: 'Michroma', sans-serif;
  --font-nav: 'D-DIN Exp', sans-serif;
  --font-display: 'D-DIN Exp', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --nav-tracking: 0.15em;
  --nav-size: 0.78rem;
  --display-uppercase: uppercase;
  --display-tracking: 0.04em;
}

body[data-typo="spacex"] {
  --font-wordmark: 'Orbitron', sans-serif;
  --font-nav: 'D-DIN', sans-serif;
  --font-display: 'D-DIN', sans-serif;
  --font-body: 'D-DIN', 'IBM Plex Sans', sans-serif;
  --nav-tracking: 0.11em;
  --nav-size: 0.84rem;
  --display-uppercase: uppercase;
  --display-tracking: 0.03em;
}

body[data-typo="oxygen-ui"] {
  --font-wordmark: 'Michroma', sans-serif;
  --font-nav: 'Oxygen Mono', monospace;
  --font-display: 'D-DIN Exp', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --nav-tracking: 0.10em;
  --nav-size: 0.75rem;
  --display-uppercase: none;
  --display-tracking: -0.01em;
}

body[data-typo="oxygen-full"] {
  --font-wordmark: 'Oxygen Mono', monospace;
  --font-nav: 'Oxygen Mono', monospace;
  --font-display: 'Oxygen Mono', monospace;
  --font-body: 'Oxygen Mono', monospace;
  --nav-tracking: 0.10em;
  --nav-size: 0.75rem;
  --display-uppercase: none;
  --display-tracking: -0.03em;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  text-align: start;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.top-glow {
  position: fixed;
  top: -220px;
  left: 50%;
  transform: translate3d(-50%, calc(var(--scroll-y, 0px) * -0.12), 0);
  width: 1180px;
  height: 520px;
  background: radial-gradient(ellipse at 50% 35%, rgba(var(--glow-rgb), 0.14) 0%, rgba(151, 163, 177, 0.04) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(151, 163, 177, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(151, 163, 177, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 calc(var(--scroll-y, 0px) * -0.18);
  mask-image: radial-gradient(circle at 50% 15%, black 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Barra de Progresso de Telemetria no Header (Estilo SpaceX / HUD) */
header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1.5px;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(90deg, transparent, var(--accent-secondary), var(--accent-primary));
  transition: width 0.06s linear;
  pointer-events: none;
}

/* ==========================================================================
   MOEDA 3D INTERATIVA (SCROLL-DRIVEN 3D COIN — HEADER & HERO)
   Com espessura metálica real (camadas Z), borda serrilhada e reflexo especular
   ========================================================================== */
.talos-coin-stage {
  perspective: 900px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.talos-coin-stage.coin-sm {
  width: 46px;
  height: 46px;
  --coin-size: 46px;
  --coin-depth: 3.5px;
}

.talos-coin-stage.coin-lg {
  width: 198px;
  height: 198px;
  --coin-size: 198px;
  --coin-depth: 8px;
  margin-bottom: 20px;
}

.talos-coin-3d {
  width: var(--coin-size);
  height: var(--coin-size);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(var(--coin-rot-y, 0deg)) rotateX(var(--coin-rot-x, 4deg));
  will-change: transform;
  cursor: grab;
}

/* Camadas Intermediárias que criam a Espessura Metálica Serrilhada (Borda da Moeda) */
.coin-edge-disc {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg,
    #475569 0deg 3deg,
    #cbd5e1 3deg 6deg,
    #1e293b 6deg 9deg
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.8);
}

body[data-domain="studio"] .coin-edge-disc {
  background: repeating-conic-gradient(
    from 0deg,
    #6e4726 0deg 3deg,
    #e2be98 3deg 6deg,
    #3d2410 6deg 9deg
  );
  border-color: rgba(226, 190, 152, 0.45);
}

/* Faces Frontal (Anverso) e Traseira (Reverso) da Moeda */
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #1e2530 0%, #090c10 75%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.32),
    inset 0 0 0 5px rgba(15, 23, 42, 0.85),
    0 4px 16px rgba(0, 0, 0, 0.55);
}

body[data-domain="studio"] .coin-face {
  background: radial-gradient(circle at 35% 30%, #2a1d14 0%, #0b0806 75%);
  box-shadow:
    inset 0 0 0 2px rgba(226, 190, 152, 0.45),
    inset 0 0 0 5px rgba(24, 16, 10, 0.9),
    0 4px 16px rgba(0, 0, 0, 0.65);
}

.coin-face-front {
  transform: translateZ(calc(var(--coin-depth) * 0.5));
}

.coin-face-back {
  transform: rotateY(180deg) translateZ(calc(var(--coin-depth) * 0.5));
}

.coin-face img {
  width: 92% !important;
  height: 92% !important;
  margin: 0 !important;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Reflexo Especular Dinâmico que corre pela moeda conforme ela gira */
.coin-glint {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 42%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.03) 58%,
    transparent 70%
  );
  transform: translateX(var(--coin-glint-x, 0%)) rotate(15deg);
  pointer-events: none;
  mix-blend-mode: screen;
}

body[data-domain="studio"] .coin-glint {
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(226, 190, 152, 0.04) 42%,
    rgba(255, 232, 204, 0.32) 50%,
    rgba(226, 190, 152, 0.04) 58%,
    transparent 70%
  );
}

/* Scroll-Reveal Sóbrio de Seções e Cards (Sem ocultar conteúdo com opacity: 0) */
body[data-motion="on"] .reveal-on-scroll {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-motion="on"] .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Respeita preferência de acessibilidade do sistema operacional */
@media (prefers-reduced-motion: reduce) {
  .top-glow,
  .hero-emblem-box,
  .reveal-on-scroll {
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(var(--glow-rgb), 0.18);
  box-shadow: 0 16px 48px -8px rgba(var(--glow-rgb), 0.09);
}

.nav-bar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand:hover img {
  transform: scale(1.05);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-wordmark);
  text-transform: uppercase;
  line-height: 1.02;
}

.brand-line-1 {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-primary);
}

.brand-line-2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-secondary);
  margin-top: 2px;
}

body[data-domain="corporate"] .brand-line-2 {
  color: var(--accent-primary);
}

body[data-typo="spacex"] .brand-wordmark {
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
}

body[data-typo="spacex"] .brand-line-1 {
  font-size: 1.05rem;
  letter-spacing: 0.24em;
}

body[data-typo="spacex"] .brand-line-2 {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
  margin-top: 0;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

nav a {
  font-family: var(--font-nav);
  color: #D8DEE6;
  text-decoration: none;
  font-size: var(--nav-size);
  font-weight: 700;
  letter-spacing: var(--nav-tracking);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-primary);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent-secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-domain="corporate"] nav a::after {
  background: var(--accent-primary);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-portal-pill {
  display: none;
}

/* ==========================================================================
   SELETOR DE DIVISÃO INTEGRADO À LOGO (POPOVER ESTILO LINEAR / VERCEL)
   Mantém 1 único Header puro estilo Kojima Productions / SpaceX
   ========================================================================== */
.ecosystem-bar,
.division-segmented {
  display: none !important;
}

.brand-switcher-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.brand-Caret {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-left: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.brand-switcher-wrap:hover .brand-Caret {
  color: var(--accent-primary);
  transform: translateY(1px);
}

.division-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 310px;
  background: rgba(8, 10, 14, 0.98);
  border: 1px solid rgba(151, 163, 177, 0.24);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 90;
}

.brand-switcher-wrap:hover .division-popover,
.brand-switcher-wrap:focus-within .division-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.div-pop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.div-pop-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.div-pop-item.active {
  background: rgba(151, 163, 177, 0.09);
}

.div-pop-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.div-pop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.div-pop-title {
  font-family: var(--font-wordmark);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.div-pop-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.nav-caret {
  font-size: 0.52rem;
  color: var(--text-secondary);
  line-height: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-btn {
  background: rgba(151, 163, 177, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  border-color: var(--border-hover);
  background: rgba(151, 163, 177, 0.14);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #050608;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--accent-primary);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-white:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

/* Hero (Sem duplicação da logo no topo — foco tipográfico puro) */
.hero {
  padding: 92px 0 72px;
  display: block;
  max-width: 920px;
}

/* ==========================================================================
   SEQUÊNCIA EXECUTIVA DE ABERTURA (GPU-COMPOSITED INTRO SPLASH + CASCADE)
   100% Compositor Thread (transform3d + opacity apenas) — Zero Micro-Stutters
   ========================================================================== */
.talos-intro-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at 50% 42%, rgba(var(--glow-rgb), 0.14) 0%, #050608 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  contain: layout paint style;
  will-change: opacity, transform;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.52s;
}

body[data-theme="light"] .talos-intro-splash {
  background: radial-gradient(circle at 50% 42%, rgba(168, 184, 204, 0.22) 0%, #090D14 75%);
}

.talos-intro-splash.is-dissolving {
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(1.028);
  pointer-events: none;
  visibility: hidden;
}

.intro-monolith-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 56px 38px;
  border-radius: 8px;
  border: 1px solid rgba(var(--glow-rgb), 0.22);
  background: rgba(11, 13, 17, 0.72);
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

/* Animação da Moeda 3D na Abertura (Giro de Precisão em 120fps na GPU) */
.talos-intro-splash .talos-coin-stage.coin-lg {
  margin-bottom: 22px;
}

.talos-intro-splash .talos-coin-3d {
  animation: introCoinPresent 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.talos-intro-splash .coin-glint {
  animation: introGlintSweep 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes introCoinPresent {
  0% {
    transform: translate3d(0, 8px, 0) scale(0.88) rotateY(-48deg) rotateX(10deg);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotateY(0deg) rotateX(3deg);
  }
}

@keyframes introGlintSweep {
  0% {
    transform: translate3d(-65%, 0, 0) rotate(15deg);
  }
  100% {
    transform: translate3d(45%, 0, 0) rotate(15deg);
  }
}

.intro-progress-track {
  width: 220px;
  height: 2px;
  background: rgba(151, 163, 177, 0.16);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 22px;
  position: relative;
}

.intro-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  animation: introProgressFill 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes introProgressFill {
  0% {
    transform: scaleX(0.06);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Cascata Sequencial dos Elementos da Página após a Cortina Dissolver */
body.intro-staging header,
body.intro-staging .hero .status-pill,
body.intro-staging .hero h1,
body.intro-staging .hero p,
body.intro-staging .hero-actions,
body.intro-staging .hero-telemetry,
body.intro-staging main > section:first-of-type {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: opacity, transform;
}

body.intro-staging header {
  transform: translate3d(0, -14px, 0);
}

body.intro-reveal header,
body.intro-reveal .hero .status-pill,
body.intro-reveal .hero h1,
body.intro-reveal .hero p,
body.intro-reveal .hero-actions,
body.intro-reveal .hero-telemetry,
body.intro-reveal main > section:first-of-type {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.54s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.54s cubic-bezier(0.22, 1, 0.36, 1);
}

body.intro-reveal header { transition-delay: 0.02s; }
body.intro-reveal .hero .status-pill { transition-delay: 0.09s; }
body.intro-reveal .hero h1 { transition-delay: 0.16s; }
body.intro-reveal .hero p { transition-delay: 0.23s; }
body.intro-reveal .hero-actions { transition-delay: 0.30s; }
body.intro-reveal .hero-telemetry { transition-delay: 0.37s; }
body.intro-reveal main > section:first-of-type { transition-delay: 0.45s; }

/* Seção Monumental de Fechamento no Final da Página (Grande Emblema Talos) */
.closing-brand-monolith {
  position: relative;
  margin-top: 24px;
  padding: 72px 32px 64px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 32%, rgba(var(--glow-rgb), 0.15) 0%, rgba(11, 13, 17, 0.82) 72%);
  border: 1px solid rgba(var(--glow-rgb), 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body[data-theme="light"] .closing-brand-monolith {
  background: radial-gradient(circle at 50% 32%, rgba(168, 184, 204, 0.22) 0%, #090D14 78%);
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.closing-wordmark {
  font-family: var(--font-wordmark);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  letter-spacing: 0.22em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 8px;
}

.closing-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--accent-secondary);
  text-transform: uppercase;
}

body[data-theme="light"] .closing-sub {
  color: #97A3B1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(11, 13, 17, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-uppercase);
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero h1 span {
  color: var(--accent-secondary);
  font-weight: 400;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.04rem;
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.telemetry-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
}

.telemetry-lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-emblem-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 30px 24px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 35%, rgba(var(--glow-rgb), 0.14) 0%, rgba(11, 13, 17, 0.76) 70%);
  border: 1px solid rgba(var(--glow-rgb), 0.24);
}

.corner-mark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(var(--glow-rgb), 0.45);
  border-style: solid;
  pointer-events: none;
}
.c-tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.c-tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.c-bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.c-br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.hero-emblem-box img {
  width: 196px;
  height: 196px;
  object-fit: contain;
  margin-bottom: 20px;
}

.hero-emblem-caption {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

/* Sections & Cards */
section {
  padding: 68px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 6px;
  display: block;
}

body[data-domain="corporate"] .section-label {
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-uppercase);
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.tag {
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(151, 163, 177, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.tag-bronze {
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(182, 131, 82, 0.10);
  border: 1px solid rgba(182, 131, 82, 0.32);
  color: #E2BE98;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: var(--display-uppercase);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
  max-width: 65ch;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid rgba(151, 163, 177, 0.12);
  padding: 2px 8px;
  border-radius: 3px;
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-footer a,
.card-footer button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.card-footer a:hover,
.card-footer button:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Founder & Contact */
.founder-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.stack-item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.contact-channel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.contact-channel a {
  color: var(--accent-primary);
  text-decoration: none;
}

.contact-channel a:hover {
  text-decoration: underline;
}

/* Native Legal Dialog */
dialog.legal-dialog {
  margin: auto;
  max-width: 680px;
  width: calc(100% - 32px);
  background: #0B0D11;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

dialog.legal-dialog::backdrop {
  background: rgba(2, 3, 4, 0.80);
  backdrop-filter: blur(6px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dialog-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.dialog-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: #050608;
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: 4px;
  color: var(--text-primary);
}

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Live Typography Switcher (Collapsible so it never obscures page content) */
.typo-switcher {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(5, 6, 8, 0.96);
  border: 1px solid rgba(151, 163, 177, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  font-family: 'Oxygen Mono', 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  max-width: 720px;
}

.typo-switcher.collapsed .typo-body-rows {
  display: none;
}

.typo-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.typo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.typo-switcher-label {
  color: var(--text-secondary);
  margin-right: 4px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.typo-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Oxygen Mono', 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  transition: all 0.15s ease;
}

.typo-btn.active,
.typo-btn:hover {
  background: var(--accent-primary);
  color: #050608;
  border-color: var(--accent-primary);
  font-weight: 600;
}

.typo-select-group {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.65rem;
}

.typo-select {
  background: #0B0D11;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 3px 6px;
  font-family: 'Oxygen Mono', monospace;
  font-size: 0.65rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .hero, .grid-2, .grid-3, .grid-4, .founder-card, .contact-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  nav ul {
    display: none;
  }
}
