/* ==========================================================================
   DESIGN SYSTEM: ÁRSTRAUMUR EXECUTIVE EDITION
   Referência: arstraumur.music — Realism Contract: Dark, Desaturated, Slow.
   Tipografia: Marcellus (Display) + Inter (Corpo) + IBM Plex Mono (Telemetria)
   Easing Whitelist: Sine e Power Curves (Suavidade e Inércia Cinemática)
   ========================================================================== */

:root {
  /* Paleta Árstraumur: Céu profundo quase negro com discreto tom azulado */
  --sky-zenith: #020308;
  --sky-mid: #04070e;
  --sky-horizon: #060b16;
  --bg: var(--sky-mid);

  /* Tinta: Branco puro e tons frios desaturados para leitura limpa */
  --ink: rgba(235, 241, 248, 0.95);
  --ink-dim: rgba(199, 210, 222, 0.75);
  --ink-faint: rgba(176, 189, 204, 0.60);

  /* Acentos de Alta Autoridade (Ouro Nobre Champagne & Ciano Atmosférico) */
  --accent-gold: #e8c355;
  --accent-gold-dim: rgba(232, 195, 85, 0.35);
  --accent-gold-glow: rgba(232, 195, 85, 0.15);
  --accent-cyan: #38bdf8;
  --accent-cyan-dim: rgba(56, 189, 248, 0.35);
  --accent-emerald: #8fc7a4; /* Atomic oxygen green (Árstraumur) */

  /* Linhas e Divisores Finos */
  --line: rgba(154, 176, 201, 0.14);
  --line-strong: rgba(154, 176, 201, 0.28);
  --line-gold: rgba(232, 195, 85, 0.3);

  /* Tipografia */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-text: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  /* Curvas de Movimento Permitidas (Árstraumur Whitelist) */
  --ease-sine: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1200px;
  --header-h: 4.5rem;
  --pad-x: clamp(1.25rem, 4.5vw, 3rem);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  background-color: var(--sky-zenith);
}

html.calm {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--sky-zenith);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: rgba(232, 195, 85, 0.25);
  color: #fff;
}

/* ==========================================================================
   TEXTURA DE FILME / GRAIN SUTIL (Padrão Árstraumur)
   Previne banding em monitores de alta gama e adiciona profundidade fotográfica
   ========================================================================== */
.film-grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.045;
  pointer-events: none;
}

/* Barra Superior de Leitura */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
  z-index: 1002;
  transition: width 0.1s var(--ease-out);
  box-shadow: 0 0 12px var(--accent-gold);
}

/* ==========================================================================
   HEADER MINIMALISTA E INSTRUMENTAL
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: linear-gradient(to bottom, rgba(2, 3, 8, 0.92) 0%, rgba(2, 3, 8, 0.5) 65%, transparent 100%);
  border-bottom: 1px solid rgba(154, 176, 201, 0.08);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line-gold);
  background: rgba(232, 195, 85, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  transition: border-color 0.3s var(--ease-sine), background 0.3s var(--ease-sine);
}

.brand-wrapper:hover .brand-monogram {
  border-color: var(--accent-gold);
  background: rgba(232, 195, 85, 0.15);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-item a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s var(--ease-sine);
}

.nav-item a:hover {
  color: var(--accent-gold);
}

/* Instrumento Calm Mode Toggle (Árstraumur) */
.calm-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding: 0.42em 0.85em;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.25s var(--ease-sine), border-color 0.25s var(--ease-sine);
}

.calm-toggle-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.calm-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.25s var(--ease-sine);
}

html.calm .calm-toggle-btn {
  color: var(--accent-emerald);
  border-color: rgba(143, 199, 164, 0.4);
}

html.calm .calm-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.btn-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s var(--ease-sine);
}

.btn-whatsapp-pill:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: #4ade80;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   SCROLLYTELLING CONTAINER COM CANVAS & MÁSCARAS
   ========================================================================== */
.scrolly-hero-stage {
  position: relative;
  height: 600vh;
  width: 100%;
}

.scrolly-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#skyCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Máscara Fotográfica Árstraumur: Escurecimento com airglow sutil */
.stage-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, transparent 15%, rgba(2, 3, 8, 0.65) 65%),
    linear-gradient(to right, rgba(2, 3, 8, 0.94) 0%, rgba(2, 3, 8, 0.6) 42%, rgba(2, 3, 8, 0.3) 70%, rgba(2, 3, 8, 0.88) 100%),
    linear-gradient(to top, rgba(2, 3, 8, 0.95) 0%, transparent 20%, transparent 80%, rgba(2, 3, 8, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   RADIAL SCRIMS (ÁRSTRAUMUR DESIGN SIGNATURE)
   Evita cartões com bordas pesadas; o texto repousa sobre uma névoa escura suave
   ========================================================================== */
.scrim {
  position: relative;
}

.scrim::before {
  content: '';
  position: absolute;
  inset: -3.5rem -4.5rem;
  z-index: -1;
  background: radial-gradient(closest-side at 50% 50%,
    rgba(2, 3, 8, 0.85) 0%,
    rgba(2, 3, 8, 0.55) 60%,
    rgba(2, 3, 8, 0.15) 85%,
    rgba(2, 3, 8, 0) 100%);
  pointer-events: none;
  border-radius: 20px;
}

/* ==========================================================================
   PROMPT DE CONTINUIDADE (Aparece no final da caminhada para convidar aos cards)
   ========================================================================== */
.journey-scroll-prompt {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.4rem;
  background: rgba(2, 3, 8, 0.85);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-sine), transform 0.5s var(--ease-sine), background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-gold-dim);
}

.journey-scroll-prompt.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.journey-scroll-prompt:hover {
  background: rgba(232, 195, 85, 0.15);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(232, 195, 85, 0.4);
}

.journey-scroll-prompt .prompt-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
}

.journey-scroll-prompt .prompt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  animation: promptPulse 2s ease-in-out infinite;
}

@keyframes promptPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Bullets Cinemáticos na Direita */
.hud-chapter-nav {
  position: fixed;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hud-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-sine);
}

.hud-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: all 0.3s var(--ease-sine);
}

.hud-bullet:hover,
.hud-bullet.active {
  color: var(--accent-gold);
}

.hud-bullet.active .hud-bullet-dot {
  background: var(--accent-gold);
  transform: scale(1.5);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* ==========================================================================
   CAPÍTULOS NARRATIVOS (SOBREPOSIÇÃO ZERO + ENTRADA/SAÍDA SINE)
   ========================================================================== */
.narrative-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.narrative-chapter {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-sine), visibility 0.6s var(--ease-sine);
  width: 100%;
  max-width: var(--max-width);
  left: 50%;
  margin-left: calc(-1 * var(--max-width) / 2);
  padding: 0 var(--pad-x);
}

.narrative-chapter.in-view {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chapter-inner {
  max-width: 38rem;
}

/* Pequeno cabeçalho de instrumento técnico (Árstraumur .label) */
.instrument-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.instrument-label span {
  color: var(--accent-gold);
}

/* Título em Marcellus (Majestoso e Atemporal) */
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.chapter-title em {
  font-style: normal;
  color: var(--accent-gold);
}

.chapter-lead {
  font-size: 1.12rem;
  color: var(--ink-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Botões de Ação Nobres */
.cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-arstraumur {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.8rem;
  background: var(--accent-gold);
  color: #020308;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s var(--ease-sine), transform 0.3s var(--ease-sine), box-shadow 0.3s var(--ease-sine);
  box-shadow: 0 4px 20px var(--accent-gold-dim);
}

.btn-arstraumur:hover {
  background: #f4d983;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 195, 85, 0.45);
}

.btn-quiet {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease-sine), border-color 0.25s var(--ease-sine);
}

.btn-quiet:hover {
  color: var(--ink);
  border-color: var(--accent-gold);
}

/* Grid de Métricas (Capítulo 2) */
.metrics-hud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.metric-hud-cell {
  border-left: 2px solid var(--line-gold);
  padding-left: 1.25rem;
}

.metric-hud-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.metric-hud-title {
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.metric-hud-desc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* Lista de Pilares (Capítulo 3) */
.pillars-hud-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.pillar-hud-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.pillar-hud-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pillar-hud-idx {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.pillar-hud-body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-weight: 400;
}

.pillar-hud-body p {
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.55;
}

/* Linha do Tempo (Capítulo 4) */
.timeline-hud-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline-hud-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.timeline-hud-item:last-child {
  border-bottom: none;
}

.th-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.th-role {
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.th-org {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

/* Manifesto Executivo (Capítulo 5) */
.quote-hud-card {
  max-width: 44rem;
  text-align: left;
}

.quote-hud-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.quote-hud-sig {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.quote-hud-sub {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

/* ==========================================================================
   SEÇÕES COMPLEMENTARES (PÓS-SCROLLY)
   ========================================================================== */
.post-scrolly-section {
  position: relative;
  background: var(--sky-mid);
  z-index: 20;
  padding: 6rem 0;
  border-top: 1px solid var(--line-strong);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--ink-dim);
}

/* Elementos com revelação no Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   CARDS DE CREDENCIAIS COM MOTION AVANÇADO, 3D TILT & SPOTLIGHT
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.credential-cell {
  position: relative;
  background: rgba(2, 3, 8, 0.7);
  border: 1px solid var(--line);
  padding: 2.25rem 2rem 1.75rem;
  border-radius: 6px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, box-shadow;
  
  /* Entrada com Stagger no Scroll */
  opacity: 0;
  transform: translateY(60px) rotateX(12deg) scale(0.94);
  filter: blur(4px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.9s ease,
              border-color 0.4s var(--ease-sine),
              box-shadow 0.4s var(--ease-sine);
}

.credential-cell.revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
  filter: blur(0px);
}

/* Delays escalonados para efeito cascata cinematográfico */
.credentials-grid .credential-cell:nth-child(1) { transition-delay: 0.05s; }
.credentials-grid .credential-cell:nth-child(2) { transition-delay: 0.15s; }
.credentials-grid .credential-cell:nth-child(3) { transition-delay: 0.25s; }
.credentials-grid .credential-cell:nth-child(4) { transition-delay: 0.35s; }
.credentials-grid .credential-cell:nth-child(5) { transition-delay: 0.45s; }
.credentials-grid .credential-cell:nth-child(6) { transition-delay: 0.55s; }

/* Micro-flutuação orgânica sutil após revelado (quando o cursor não está em cima) */
.credential-cell.revealed:not(:hover) {
  animation: cardLevitate 7s ease-in-out infinite;
}

.credentials-grid .credential-cell:nth-child(2).revealed:not(:hover) { animation-delay: -2.3s; }
.credentials-grid .credential-cell:nth-child(3).revealed:not(:hover) { animation-delay: -4.6s; }
.credentials-grid .credential-cell:nth-child(4).revealed:not(:hover) { animation-delay: -1.2s; }
.credentials-grid .credential-cell:nth-child(5).revealed:not(:hover) { animation-delay: -3.5s; }
.credentials-grid .credential-cell:nth-child(6).revealed:not(:hover) { animation-delay: -5.8s; }

@keyframes cardLevitate {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-5px) rotateX(0.5deg); }
}

/* Efeito Glare / Spotlight Dinâmico que segue o Mouse */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    circle 320px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(232, 195, 85, 0.18),
    transparent 70%
  );
  transition: opacity 0.35s var(--ease-sine);
  z-index: 1;
}

.credential-cell:hover .card-glare,
.contact-channel:hover .card-glare,
.contact-form:hover .card-glare {
  opacity: 1;
}

/* Hover e 3D Depth */
.credential-cell:hover {
  border-color: rgba(232, 195, 85, 0.6);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.9),
              0 0 35px -5px rgba(232, 195, 85, 0.25);
  animation-play-state: paused;
}

/* Card Destacado Oficial (ASSOBRAFIR) com Borda de Luz Dourada */
.credential-cell.featured-card {
  border-color: rgba(232, 195, 85, 0.5);
  background: linear-gradient(145deg, rgba(232, 195, 85, 0.07) 0%, rgba(2, 3, 8, 0.8) 100%);
  box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(232, 195, 85, 0.2);
}

.card-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid transparent;
  background: radial-gradient(circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(232, 195, 85, 0.85), transparent 75%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.credential-cell:hover .card-beam {
  opacity: 1;
}

/* Conteúdo Interno dos Cards */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.cred-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
}

.cred-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}

.credential-cell:hover .cred-index {
  color: var(--accent-gold);
}

.cred-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: 0.65rem;
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.credential-cell:hover .cred-name {
  color: #fff;
  text-shadow: 0 0 15px rgba(232, 195, 85, 0.3);
}

.cred-inst {
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

.cred-footer-tag {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  transition: border-color 0.3s ease;
}

.credential-cell:hover .cred-footer-tag {
  border-color: rgba(232, 195, 85, 0.3);
}

/* ==========================================================================
   FORMULÁRIO DE CONTATO & CANAIS (PÓS-SCROLLY)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: flex-start;
  perspective: 1200px;
}

.contact-meta h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.contact-meta p {
  color: var(--ink-dim);
  margin-bottom: 2rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.contact-channel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  background: rgba(2, 3, 8, 0.7);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.15rem;
  border-radius: 6px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s var(--ease-sine),
              transform 0.35s var(--ease-sine),
              box-shadow 0.35s var(--ease-sine);
}

.contact-channel:hover {
  border-color: var(--accent-gold);
  transform: translateX(8px);
  box-shadow: 0 12px 35px -10px rgba(232, 195, 85, 0.25);
}

.channel-arrow {
  color: var(--ink-faint);
  transition: transform 0.3s var(--ease-sine), color 0.3s ease;
}

.contact-channel:hover .channel-arrow {
  transform: translateX(4px);
  color: var(--accent-gold);
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.25rem;
}

.channel-val {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-form {
  position: relative;
  background: rgba(2, 3, 8, 0.7);
  border: 1px solid var(--line);
  padding: 2.5rem;
  border-radius: 6px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease-sine), box-shadow 0.4s var(--ease-sine);
}

.contact-form:hover {
  border-color: rgba(232, 195, 85, 0.4);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8),
              0 0 30px -10px rgba(232, 195, 85, 0.15);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(2, 3, 8, 0.85);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 0.95rem;
  border-radius: 2px;
  transition: border-color 0.25s var(--ease-sine);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--sky-zenith);
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad-x);
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

/* Responsividade Mobile */
@media (max-width: 880px) {
  .site-header .nav-links {
    display: none;
  }
  .hud-chapter-nav {
    display: none;
  }
  .narrative-chapter {
    left: 0;
    margin-left: 0;
    padding: 0 1.5rem;
  }
  .metrics-hud-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
