﻿/* ── variables.css ── */
/* ═══════════════════════════════════════════════════════════════════
   VARIABLES & THEME
   Color palette, typography families, sizing system
═══════════════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --obsidian: #0B0C10;
  --obsidian-2: #111217;
  --obsidian-3: #16171d;
  --gold: #D4AF37;
  --gold-soft: #b8962e;
  --ivory: #F8F9FA;
  --slate: #4F5B66;
  --slate-2: #6b7681;
  
  /* Semantic colors */
  --line: rgba(248,249,250,0.10);
  --line-strong: rgba(248,249,250,0.22);
  
  /* Typography */
  --serif: "Playfair Display", "Lora", Georgia, serif;
  --sans: "Inter", "Montserrat", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ── global.css ── */
/* ═══════════════════════════════════════════════════════════════════
   GLOBAL STYLES
   Reset, base elements, acessibilidade, background effects
═══════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--obsidian);
  color: var(--ivory);
}

body {
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── Skip navigation link (acessibilidade de teclado) ───────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.2s ease;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--obsidian);
  outline-offset: 2px;
}

/* ─── Focus visível para navegação por teclado ───────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Remove outline padrão apenas quando não é teclado */
:focus:not(:focus-visible) {
  outline: none;
}

/* ─── Grain sutil de fundo ───────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  transition: opacity .3s;
}

body.no-grain::before {
  opacity: 0;
}

/* ─── prefers-reduced-motion: desabilita animações ───────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Mantém os elementos reveal visíveis imediatamente */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Remove o efeito de profundidade do stack */
  .stack-panel {
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
  }
}

/* ── typography.css ── */
/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   Headings, body text, text utilities
═══════════════════════════════════════════════════════════════════ */

/* Eyebrow label */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Headings */
h1, h2, h3 { 
  font-family: var(--serif); 
  font-weight: 400; 
  letter-spacing: -0.01em; 
  margin: 0; 
}

h1 { 
  font-size: clamp(40px, 5.6vw, 84px); 
  line-height: 1.04; 
  letter-spacing: -0.02em; 
}

h2 { 
  font-size: clamp(32px, 3.8vw, 56px); 
  line-height: 1.1; 
  letter-spacing: -0.015em; 
}

h3 { 
  font-size: clamp(20px, 1.5vw, 24px); 
  line-height: 1.25; 
}

/* Body text */
.body-lg { 
  font-size: 18px; 
  line-height: 1.65; 
  color: rgba(248,249,250,0.78); 
}

.body { 
  font-size: 16px; 
  line-height: 1.7; 
  color: rgba(248,249,250,0.72); 
}

.small { 
  font-size: 13px; 
  color: var(--slate-2); 
}

/* Inline emphasis */
em.gold { 
  color: var(--gold); 
  font-style: normal; 
}

/* ── layout.css ── */
/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   Container, spacing, general layout utilities
═══════════════════════════════════════════════════════════════════ */

.wrap { 
  max-width: 1240px; 
  margin: 0 auto; 
  padding: 0 48px; 
  position: relative; 
  z-index: 2; 
}

@media (max-width: 720px) { 
  .wrap { 
    padding: 0 24px; 
  } 
}

section { 
  position: relative; 
  z-index: 2; 
}

.hairline { 
  height: 1px; 
  background: var(--line); 
  width: 100%; 
}

/* ── buttons.css ── */
/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   Button states, sizes, variants
═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--obsidian);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover { 
  background: transparent; 
  color: var(--gold); 
}

.btn .arrow { 
  transition: transform .25s ease; 
}

.btn:hover .arrow { 
  transform: translateX(4px); 
}

/* Variants */
.btn.ghost { 
  background: transparent; 
  color: var(--ivory); 
  border-color: var(--line-strong); 
}

.btn.ghost:hover { 
  border-color: var(--gold); 
  color: var(--gold); 
}

.btn.lg { 
  padding: 20px 32px; 
  font-size: 14px; 
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── nav.css ── */
/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   Fixed header, logo, nav links
═══════════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11,12,16,0.90);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: padding .35s ease;
}

.nav.scrolled .nav-inner { padding: 14px 48px; }

@media (max-width: 720px) {
  .nav-inner,
  .nav.scrolled .nav-inner { padding: 16px 24px; }
}

/* ─── Logo ───────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.logo-mark::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
}

.logo-text { font-weight: 500; }
.logo-text .amp { color: var(--gold); font-style: italic; margin: 0 2px; }

/* ─── Links desktop ──────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(248,249,250,0.72);
}

/* <button> com reset — sem hambúrguer, apenas oculto no mobile */
.nav-links .navlink {
  background: transparent;
  border: none;
  color: rgba(248,249,250,0.72);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 4px 0;
  min-height: 44px; /* área de toque mínima WCAG 2.5.8 */
  display: inline-flex;
  align-items: center;
  transition: color .2s;
}

.nav-links .navlink:hover { color: var(--gold); }

/* Ocultar links de texto no mobile — navegação feita via side rail */
@media (max-width: 900px) {
  .nav-links .navlink { display: none; }
}

/* ── hero.css ── */
/* ═══════════════════════════════════════════════════════════════════
   HERO
   Hero section layout, backgrounds, typography
═══════════════════════════════════════════════════════════════════ */

.hero {
  /* svh desconta a barra de endereço do browser mobile */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* ─── Background layers ──────────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .parallax-image {
  position: absolute;
  inset: 0;
  background-image: url('../assets/aurum-hero-image.webp');
  background-size: cover;
  background-position: center top;
  /* fixed cria problemas de performance no iOS/Android — desabilitado via media query abaixo */
  background-attachment: fixed;
  opacity: 0.35;
  z-index: 0;
}

.hero-bg .bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--obsidian) 0%, rgba(11,12,16,0.85) 40%, transparent 100%);
  z-index: 1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(212,175,55,0.15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(212,175,55,0.08), transparent 70%);
  z-index: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248,249,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,249,250,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000, transparent 80%);
  z-index: 2;
}

/* ─── Hero content grid ──────────────────────────────────────────── */
.hero-grid {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
}

.hero-grid .eyebrow {
  margin: 0 auto;
}

.hero p.body-lg {
  margin-left: auto;
  margin-right: auto;
}

.hero .reveal.d3 {
  justify-content: center;
}

/* ─── Hero metadata strip ────────────────────────────────────────── */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: center;
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-cell .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--slate-2);
  text-transform: uppercase;
}

.meta-cell .v {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ivory);
}

.meta-cell .v em {
  color: var(--gold);
  font-style: normal;
}

.meta-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* ─── Hero image / placeholder ───────────────────────────────────── */
.hero-image {
  aspect-ratio: 1 / 1.1;
  width: 100%;
  border: 1px solid var(--line);
  position: relative;
  background: linear-gradient(180deg, #1a1b22, #0e0f14);
  overflow: hidden;
}

.ph {
  position: relative;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(248,249,250,0.025) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #181922 0%, #0d0e13 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212,175,55,0.18);
  pointer-events: none;
}

.ph .ph-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ph .ph-label .gold { color: var(--gold); }

.hero-image .corner {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BREAKPOINTS
═══════════════════════════════════════════════════════════════════ */

/* Tablet / grande mobile */
@media (max-width: 1024px) {
  .hero {
    padding: 110px 0 64px;
    align-items: flex-start;
  }

  .hero-meta {
    margin-top: 40px;
    gap: 20px;
  }
}

/* Mobile médio */
@media (max-width: 720px) {
  .hero {
    padding: 96px 0 56px;
  }

  .hero-meta {
    margin-top: 32px;
    padding-top: 20px;
    gap: 16px;
  }

  .meta-cell .v {
    font-size: 16px;
  }

  /* Separadores verticais somem quando os itens ficam em duas linhas */
  .meta-divider {
    display: none;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .hero {
    padding: 88px 0 48px;
  }

  /* parallax fixed broken no iOS — troca por scroll */
  .hero-bg .parallax-image {
    background-attachment: scroll;
    background-position: center center;
  }
}

/* ── sections.css ── */
/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   Content sections: Desafio, Metodologia, Prova, Filtro, Fechamento
═══════════════════════════════════════════════════════════════════ */

/* ─── Generic section ────────────────────────────────────────────── */
.section {
  padding: 0;
  position: relative;
  width: 100%;
}

@media (max-width: 720px) {
  .section { padding: 88px 0; }
}

.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }
}

.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-head .num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: .5;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .section-head .num::after { display: none; }
}

/* ─── Desafio ────────────────────────────────────────────────────── */
.desafio-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .desafio-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.3;
  color: var(--ivory);
  padding-left: 24px;
  border-left: 1px solid var(--gold);
  margin: 0; /* reset blockquote/div */
}

@media (max-width: 720px) {
  .pull-quote {
    font-size: 20px;
    padding-left: 18px;
  }
}

/* ─── Metodologia ────────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--obsidian);
  padding: 48px 36px;
  position: relative;
  transition: background .3s ease;
  cursor: default;
}

@media (max-width: 900px) {
  .pillar { padding: 36px 28px; }
}

@media (max-width: 720px) {
  .pillar { padding: 28px 20px; }
}

.pillar:hover { background: var(--obsidian-2); }

.pillar .pillar-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 28px;
}

.pillar .pillar-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  transition: transform .35s ease;
}

.pillar:hover .pillar-icon { transform: rotate(45deg); }

.pillar h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 14px;
}

.pillar p {
  font-size: 15px;
  color: rgba(248,249,250,0.65);
  line-height: 1.7;
}

/* ─── Prova social ───────────────────────────────────────────────── */
.prova {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  width: 100%;
}

.prova-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .prova-head { margin-bottom: 40px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; }
}

.stat {
  background: var(--obsidian-2);
  padding: 48px 32px;
  text-align: center;
}

@media (max-width: 720px) {
  .stat { padding: 32px 24px; }
}

.stat .figure {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.stat .figure .unit {
  font-size: 0.5em;
  vertical-align: baseline;
  margin-left: 4px;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.stat .label {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(248,249,250,0.75);
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.stat .micro {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--slate-2);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ─── Filtro de qualificação ─────────────────────────────────────── */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .fit-grid { grid-template-columns: 1fr; }
}

.fit-col {
  background: var(--obsidian);
  padding: 48px;
}

@media (max-width: 900px) {
  .fit-col { padding: 36px 28px; }
}

@media (max-width: 720px) {
  .fit-col { padding: 28px 20px; }
}

.fit-col .fit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.fit-col .fit-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fit-col.yes .fit-tag { color: var(--gold); }
.fit-col.no  .fit-tag { color: var(--slate-2); }

.fit-col h3 { font-size: 28px; }

@media (max-width: 720px) {
  .fit-col h3 { font-size: 22px; }
}

.fit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 720px) {
  .fit-list { gap: 16px; }
}

.fit-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  align-items: start;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(248,249,250,0.78);
}

.fit-col.no .fit-list li { color: rgba(248,249,250,0.5); }

.fit-list .mark { margin-top: 8px; }

.fit-list .mark.yes {
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  display: block;
}

.fit-list .mark.no {
  width: 14px;
  height: 1px;
  background: var(--slate);
  display: block;
  margin-top: 12px;
}

/* ─── Fechamento ─────────────────────────────────────────────────── */
.closing {
  padding: 0;
  position: relative;
  text-align: center;
  width: 100%;
}

.closing-inner {
  max-width: 820px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(40px, 5vw, 72px);
  margin-bottom: 28px;
}

.closing .body-lg {
  max-width: 640px;
  margin: 0 auto 48px;
}

.closing-meta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--slate-2);
  text-transform: uppercase;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .closing-meta { gap: 20px; }
}

.closing-meta span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.closing-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
}

/* ── stack.css ── */
/* ═══════════════════════════════════════════════════════════════════
   STACK
   Sticky scroll panels, stacking effect, panel tags

   LÓGICA MOBILE vs DESKTOP
   ──────────────────────────────────────────────────────────────────
   Desktop (>900px):
     • position: sticky — efeito de empilhamento ativo
     • overflow: hidden — corta conteúdo fora do painel (necessário para o stack)
     • useStackDepth (JS) aplica scale + brightness nas transições

   Mobile (≤900px):
     • position: relative — scroll normal de página
     • overflow: visible — NADA é recortado, todo o conteúdo aparece
     • O usuário rola pela seção inteira e só depois passa para a próxima
     • useStackDepth já tem guard (≤900px) e não aplica efeitos
═══════════════════════════════════════════════════════════════════ */

.stack {
  position: relative;
}

/* ─── Desktop: empilhamento sticky ───────────────────────────────── */
.stack-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  min-height: 100svh;
  width: 100%;
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform, filter;
  overflow: hidden;
}

.stack-panel.alt {
  background: var(--obsidian-2);
}

/* ─── Conteúdo interno (desktop) ─────────────────────────────────── */
.stack-panel .panel-inner {
  padding: 120px 0 80px;
  width: 100%;
}

/* ─── Tablet (1024px) — reduz padding, mantém sticky ────────────── */
@media (max-width: 1024px) {
  .stack-panel {
    justify-content: flex-start;
  }

  .stack-panel .panel-inner {
    padding: 96px 0 56px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE (≤900px) — SEM sticky, scroll normal de página

   Problema resolvido:
     sticky + overflow:hidden prende o painel no topo — o conteúdo
     que excede a tela some atrás do overflow:hidden porque o painel
     não rola, fica fixo. Com position:relative o painel ocupa seu
     espaço natural no documento, a página rola normalmente e o
     usuário vê TODO o conteúdo antes de chegar à próxima seção.
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .stack-panel {
    position: relative;      /* fluxo normal — sem sticky */
    overflow: visible;       /* nenhum conteúdo é recortado */
    will-change: auto;       /* sem depth effect no mobile */
    justify-content: flex-start;
  }

  .stack-panel .panel-inner {
    /* panel-tag termina em ~80px; 116px dá ~36px de respiro entre a tag e o título */
    padding: 116px 0 48px;
  }
}

@media (max-width: 480px) {
  .stack-panel .panel-inner {
    padding: 108px 0 40px;
  }
}

/* ─── Tag de índice (canto superior esquerdo de cada painel) ─────── */
.panel-tag {
  position: absolute;
  top: 100px;
  left: 48px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.panel-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .panel-tag {
    left: 24px;
    top: 68px;
    font-size: 9px;
    gap: 8px;
  }
}

/* ── components.css ── */
/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS
   Side rail (<nav> + <button>), scroll progress, reveal animations
═══════════════════════════════════════════════════════════════════ */

/* ─── Barra de progresso de scroll ──────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;   /* base para scaleX funcionar */
  height: 2px;
  background: var(--gold);
  z-index: 60;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .1s linear;
}

/* ─── Reveal — entra na tela ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  .9s cubic-bezier(0.22, 1, 0.36, 1),
    transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ─── Rail lateral de seções ─────────────────────────────────────── */
.side-rail {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* Oculto em telas ≤ 1100px */
@media (max-width: 1100px) {
  .side-rail {
    display: none;
  }
}

/* <button> reset — fundo transparente + padding invisível de toque  */
.side-rail button {
  appearance: none;
  border: none;
  background: transparent;   /* sem fundo no botão em si */
  width: 24px;
  padding: 10px 0;           /* área de toque (não aparece na tela) */
  cursor: pointer;
  display: block;
  position: relative;
  transition: width .3s;
}

/* Linha visual fina — desenhada pelo ::before dentro do padding */
.side-rail button::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  transition: background .3s, width .3s;
}

.side-rail button:hover,
.side-rail button.active {
  width: 36px;
}

.side-rail button:hover::before,
.side-rail button.active::before {
  background: var(--gold);
}

.side-rail button .lbl {
  position: absolute;
  right: 100%;
  margin-right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--slate-2);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.side-rail button:hover .lbl,
.side-rail button.active .lbl {
  opacity: 1;
  color: var(--gold);
}

/* ─── Número animado ─────────────────────────────────────────────── */
.num-anim {
  display: inline-block;
  min-width: 1ch;
}

/* ── modal.css ── */
/* ═══════════════════════════════════════════════════════════════════
   MODAL
   Application modal, form fields, steps
═══════════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11,12,16,0.85);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.open { 
  opacity: 1; 
  pointer-events: auto; 
}

.modal {
  background: var(--obsidian-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal { 
  transform: translateY(0); 
}

.modal-head {
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-head .step-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

.modal-head h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin-top: 8px;
  line-height: 1.2;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--slate-2);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover { 
  color: var(--gold); 
}

.modal-body { 
  padding: 32px 40px; 
}

@media (max-width: 600px) {
  .modal-head, .modal-body { 
    padding: 24px; 
  }
}

/* Form fields */
.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--slate-2);
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: color .2s;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  transition: border-color .2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field select option {
  background: var(--obsidian-2);
  color: var(--ivory);
}

/* ── Estado de erro ────────────────────────────────────────────────
   Borda vermelha suave + label escurecida                           */
.field--error label {
  color: #c0717a;
}

.field--error input,
.field--error textarea,
.field--error select {
  border-bottom-color: #c0717a;
}

.field--error input:focus,
.field--error textarea:focus,
.field--error select:focus {
  border-bottom-color: #e07a85;
}

/* Mensagem de erro */
.field-msg {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

.field-msg--error {
  color: #e07a85;
}

/* ── Estado válido ─────────────────────────────────────────────────
   Borda dourada + label dourada                                     */
.field--valid label {
  color: var(--gold);
}

.field--valid input,
.field--valid textarea,
.field--valid select {
  border-bottom-color: var(--gold);
}

/* ── Wrapper de input com ícone de check ──────────────────────────── */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  flex: 1;
  /* espaço à direita para o check não sobrepor o texto */
  padding-right: 28px;
}

/* Check dourado (✓) que aparece quando o campo é válido */
.input-check {
  position: absolute;
  right: 0;
  bottom: 12px;
  font-size: 14px;
  color: var(--gold);
  line-height: 1;
  pointer-events: none;
  animation: checkIn .2s ease;
}

@keyframes checkIn {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1);  }
}

/* Radio group */
.radio-group { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .2s;
  font-size: 15px;
}

.radio-row:hover { 
  border-color: var(--gold); 
}

.radio-row.sel { 
  border-color: var(--gold); 
  background: rgba(212,175,55,0.05); 
}

.radio-row .dot {
  width: 14px;
  height: 14px;
  border: 1px solid var(--slate);
  position: relative;
  flex-shrink: 0;
}

.radio-row.sel .dot { 
  border-color: var(--gold); 
}

.radio-row.sel .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gold);
}

/* Modal footer */
.modal-foot {
  padding: 24px 40px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 600px) { 
  .modal-foot { 
    padding: 20px 24px; 
  } 
}

.progress {
  display: flex;
  gap: 6px;
}

.progress .pip {
  width: 24px;
  height: 2px;
  background: var(--line);
}

.progress .pip.done { 
  background: var(--gold); 
}

.modal-back {
  background: transparent;
  border: none;
  color: var(--slate-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}

.modal-back:hover { 
  color: var(--gold); 
}

/* ═══════════════════════════════════════════════════════════════════
   PROJECT WELCOME CARD
   First-load portfolio notice
═══════════════════════════════════════════════════════════════════ */

.pw-card {
  background: var(--obsidian-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  /* entry animation reuses the overlay transition */
}

/* ── Header ─────────────────────────────────────────────────────── */
.pw-header {
  background: var(--obsidian-3);
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.pw-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
}

.pw-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0;
}

/* ── Body ───────────────────────────────────────────────────────── */
.pw-body {
  padding: 28px 28px 32px;
}

.pw-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(248, 249, 250, 0.72);
  text-align: center;
  margin: 0 0 20px;
}

.pw-text strong {
  color: var(--ivory);
  font-weight: 600;
}

.pw-rule {
  height: 1px;
  background: var(--line);
  margin: 0 0 16px;
}

.pw-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pw-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  transition: opacity .2s;
}

.pw-link:hover {
  opacity: 0.75;
}

.pw-link--cta {
  color: var(--slate-2);
}

.pw-link--cta:hover {
  color: var(--gold);
  opacity: 1;
}

.pw-dot {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
}

.pw-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Full-width, centred text for both CTAs */
.pw-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 14px;
}

/* Success state */
.success {
  text-align: center;
  padding: 32px 0 16px;
}

.success .check {
  width: 60px;
  height: 60px;
  border: 1px solid var(--gold);
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
}

.success .check::after {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--gold);
}

.success h3 { 
  font-size: 28px; 
  margin-bottom: 12px; 
  transform: none; 
}

/* ── footer.css ── */
/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   Footer section, contact info
═══════════════════════════════════════════════════════════════════ */

footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--obsidian-2);
  position: relative;
  z-index: 2;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.foot-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--slate-2);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}

