/* ============================================================
   FABRÍCIO GALDINO — CATHEDRAL INSCRIPTION
   Mini site cinematográfico premium
   Stack: HTML/CSS/JS estático puro
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  /* Paleta Cathedral Inscription */
  --fg-black:        #050505;
  --fg-black-soft:   #0A0A0A;
  --fg-graphite:     #1A1A1A;
  --fg-graphite-up:  #232323;
  --fg-bone:         #F3F0EA;
  --fg-bone-soft:    rgba(243, 240, 234, 0.72);
  --fg-bone-faint:   rgba(243, 240, 234, 0.42);
  --fg-bone-ghost:   rgba(243, 240, 234, 0.18);
  --fg-gold:         #B68B4C;
  --fg-gold-bright:  #D3B47B;
  --fg-gold-deep:    #7F5D2A;
  --fg-gold-glow:    rgba(182, 139, 76, 0.45);
  --fg-gray-tech:    #8A8A8A;
  --fg-line:         rgba(243, 240, 234, 0.08);
  --fg-line-gold:    rgba(182, 139, 76, 0.20);

  /* Tipografia */
  --fg-font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --fg-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --fg-font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Easings cinemáticos */
  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow:   cubic-bezier(0.65, 0.05, 0.36, 1);

  /* Layout */
  --frame-pad-desktop: 120px 80px;
  --frame-pad-tablet:  100px 48px;
  --frame-pad-mobile:  72px 24px;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fg-black-soft);
  color: var(--fg-bone);
  font-family: var(--fg-font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== TIPOGRAFIA UTIL ===== */
.display-xl { font-family: var(--fg-font-display); font-weight: 400; font-size: clamp(56px, 9.4vw, 152px); line-height: 1.02; letter-spacing: -0.008em; }
.display-l  { font-family: var(--fg-font-display); font-weight: 400; font-size: clamp(44px, 6.4vw, 104px); line-height: 1.04; letter-spacing: -0.006em; }
.display-m  { font-family: var(--fg-font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -0.004em; }
.display-s  { font-family: var(--fg-font-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.15; }
.kicker     { font-family: var(--fg-font-body); font-weight: 500; font-size: 10.5px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--fg-gold); }
.plate-no   { font-family: var(--fg-font-display); font-weight: 400; font-style: italic; font-size: 14px; color: var(--fg-bone-faint); letter-spacing: 0.1em; }
.body-l     { font-size: 17px; line-height: 1.72; color: var(--fg-bone-soft); }
.body       { font-size: 15px; line-height: 1.7; color: var(--fg-bone-soft); }
.body-s     { font-size: 13.5px; line-height: 1.65; color: var(--fg-bone-faint); }
em { font-style: italic; color: var(--fg-gold-bright); font-family: var(--fg-font-display); }

/* ===== PROGRESS BAR ===== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--fg-line); z-index: 100; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--fg-gold-deep), var(--fg-gold), var(--fg-gold-bright)); width: 0%; transition: width 0.15s linear; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,10,0.86) 0%, rgba(10,10,10,0) 100%);
  backdrop-filter: blur(6px);
}
.nav .crest {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--fg-font-display); font-style: italic;
  color: var(--fg-bone); font-size: 17px; letter-spacing: 0.01em;
}
.nav .crest img { height: 32px; width: auto; }
.nav .meta { font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-bone-faint); }
@media (max-width: 720px) {
  .nav { padding: 18px 24px; }
  .nav .crest { font-size: 15px; gap: 10px; }
  .nav .crest img { height: 26px; }
  .nav .meta { display: none; }
}

/* ===== SECTION FRAME ===== */
.section { position: relative; padding: var(--frame-pad-desktop); }
.section.bleed { padding: 0; }
.frame { max-width: 1320px; margin: 0 auto; position: relative; }
@media (max-width: 1024px) { .section { padding: var(--frame-pad-tablet); } }
@media (max-width: 640px)  { .section { padding: var(--frame-pad-mobile); } }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.4s var(--ease-cinema), transform 1.4s var(--ease-cinema); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease-cinema), transform 1.2s var(--ease-cinema); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.75s; }
.reveal-stagger.in > * { opacity: 1; transform: none; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 720px;
  overflow: hidden;
  background: var(--fg-black);
}
.hero .bg-video {
  position: absolute; inset: 0; z-index: 0;
}
.hero .bg-video video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55) saturate(0.78) contrast(1.04);
}
.hero .veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 0%, rgba(5,5,5,0.55) 70%, rgba(5,5,5,0.92) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.42) 0%, rgba(5,5,5,0.22) 35%, rgba(5,5,5,0.82) 100%);
}
.hero .veil-gold {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(60% 40% at 50% 100%, var(--fg-gold-glow) 0%, transparent 70%);
  opacity: 0.32; mix-blend-mode: screen;
}
.hero .frame-hero {
  position: relative; z-index: 5;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 140px 80px 80px;
  max-width: 1320px; margin: 0 auto;
}
.hero .top-line { display: flex; justify-content: space-between; align-items: flex-start; }
.hero .top-line .crest { font-family: var(--fg-font-display); font-style: italic; font-size: 18px; color: var(--fg-bone-soft); }
.hero .top-line .crest em { color: var(--fg-gold-bright); }
.hero .top-line .meta-right { text-align: right; font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-bone-faint); line-height: 1.9; }
.hero h1.hero-title {
  font-family: var(--fg-font-display); font-weight: 400;
  font-size: clamp(48px, 8.8vw, 132px);
  line-height: 1.02; letter-spacing: -0.008em;
  color: var(--fg-bone);
  max-width: 14ch;
}
.hero h1.hero-title em { color: var(--fg-gold-bright); font-weight: 400; }
.hero .bottom-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero .signature { font-family: var(--fg-font-display); font-style: italic; font-size: 18px; color: var(--fg-bone-soft); max-width: 32ch; line-height: 1.5; }
.hero .scroll-cue {
  display: flex; align-items: center; gap: 14px;
  font-size: 10.5px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--fg-bone-faint);
}
.hero .scroll-cue::after {
  content: ""; width: 60px; height: 1px; background: var(--fg-gold);
  animation: scrollLine 2.4s var(--ease-cinema) infinite;
}
@keyframes scrollLine { 0%,100% { transform: scaleX(1); transform-origin: left; opacity:1; } 50% { transform: scaleX(0.3); opacity:0.5; } }

/* watermark pill */
.hero .wm {
  position: absolute; bottom: 22px; right: 28px; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--fg-line-gold);
  border-radius: 30px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(6px);
  font-family: var(--fg-font-display); font-style: italic; font-size: 13px;
  color: var(--fg-bone-soft);
}
.hero .wm img { height: 18px; width: auto; }

/* hero entrada animada */
.hero .top-line { opacity: 0; transform: translateY(-12px); animation: fadeIn 1.6s var(--ease-cinema) 0.6s forwards; }
.hero h1.hero-title { opacity: 0; transform: translateY(24px); animation: fadeIn 1.8s var(--ease-cinema) 1.2s forwards; }
.hero .bottom-line { opacity: 0; transform: translateY(16px); animation: fadeIn 1.6s var(--ease-cinema) 1.8s forwards; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

/* hero CTA button */
.hero .cta-row { margin-top: 32px; }
.btn-cathedral {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--fg-gold);
  background: transparent;
  font-family: var(--fg-font-body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--fg-bone);
  transition: all 0.5s var(--ease-cinema);
  position: relative; overflow: hidden;
}
.btn-cathedral::before {
  content: ""; position: absolute; inset: 0;
  background: var(--fg-gold);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-cinema);
  z-index: -1;
}
.btn-cathedral:hover { color: var(--fg-black); }
.btn-cathedral:hover::before { transform: translateY(0); }
.btn-cathedral .arrow { transition: transform 0.5s var(--ease-cinema); }
.btn-cathedral:hover .arrow { transform: translateX(6px); }

@media (max-width: 720px) {
  .hero { min-height: 640px; }
  .hero .frame-hero { padding: 110px 24px 60px; }
  .hero .top-line .meta-right { display: none; }
  .hero .bottom-line { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero .wm { bottom: 16px; right: 16px; padding: 6px 12px; font-size: 11px; }
  .hero .wm img { height: 14px; }
}

/* ===== OPENER MANIFESTO ===== */
.opener {
  background: var(--fg-black);
  padding: 180px 80px;
  position: relative;
}
.opener .frame { max-width: 1080px; }
.opener .plate-no { margin-bottom: 60px; }
.opener .reveal-text { font-family: var(--fg-font-display); font-weight: 400; font-size: clamp(32px, 4.6vw, 72px); line-height: 1.18; color: var(--fg-bone); letter-spacing: -0.004em; }
.opener .reveal-text .line { display: block; overflow: hidden; }
.opener .reveal-text .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.4s var(--ease-cinema);
}
.opener.in .reveal-text .line > span { transform: translateY(0); }
.opener.in .line:nth-child(1) > span { transition-delay: 0.0s; }
.opener.in .line:nth-child(2) > span { transition-delay: 0.15s; }
.opener.in .line:nth-child(3) > span { transition-delay: 0.3s; }
.opener.in .line:nth-child(4) > span { transition-delay: 0.45s; }
.opener.in .line:nth-child(5) > span { transition-delay: 0.6s; }
@media (max-width: 640px) { .opener { padding: 120px 24px; } }

/* ===== CHAPTER 2 COLS (sticky) ===== */
.chapter { background: var(--fg-graphite); position: relative; }
.chapter .grid-2 {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
  align-items: start;
}
.chapter .col-left { position: sticky; top: 100px; }
.chapter .col-left .plate-no { margin-bottom: 24px; }
.chapter .col-left h2 { margin-top: 16px; }
.chapter .col-right p + p { margin-top: 22px; }
.chapter .col-right .signature {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--fg-line);
  font-family: var(--fg-font-display); font-style: italic; color: var(--fg-bone-soft);
}
@media (max-width: 900px) {
  .chapter .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .chapter .col-left { position: static; }
}

/* ===== PLATE BLEED (full-bleed photo + quote) ===== */
.plate {
  position: relative; height: 100vh; min-height: 640px; overflow: hidden;
}
.plate .bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.6) saturate(0.82) contrast(1.04);
  animation: kenburns 30s var(--ease-slow) infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2%, -1.5%); }
}
.plate .veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0.25) 50%, rgba(5,5,5,0.85) 100%);
}
.plate .frame {
  position: relative; z-index: 5;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 80px;
  max-width: 1320px;
}
.plate .quote { max-width: 20ch; }
.plate .quote-text {
  font-family: var(--fg-font-display); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -0.004em;
  color: var(--fg-bone);
}
.plate .quote-text em { color: var(--fg-gold-bright); }
.plate .quote-meta { margin-top: 22px; font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-bone-faint); }
.plate .quote-meta::before { content: "—"; margin-right: 12px; color: var(--fg-gold); }
@media (max-width: 640px) {
  .plate { min-height: 560px; }
  .plate .frame { padding: 40px 24px; }
}

/* ===== DNA GRID ===== */
.dna { background: var(--fg-black); }
.dna .head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; margin-bottom: 90px; }
.dna .head .plate-no { margin-bottom: 22px; }
.dna .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--fg-line);
}
.dna .card {
  background: var(--fg-black); padding: 44px 32px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 280px;
  transition: background 0.6s var(--ease-cinema);
}
.dna .card:hover { background: var(--fg-graphite); }
.dna .card .icon-wrap {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--fg-line-gold);
  border-radius: 50%;
}
.dna .card .icon-wrap img { width: 24px; height: 24px; filter: brightness(0) saturate(100%) invert(64%) sepia(36%) saturate(528%) hue-rotate(354deg) brightness(86%) contrast(82%); }
.dna .card .label { font-family: var(--fg-font-display); font-style: italic; font-size: 13px; color: var(--fg-bone-faint); }
.dna .card h4 { font-family: var(--fg-font-display); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--fg-bone); }
.dna .card p { font-size: 13.5px; line-height: 1.65; color: var(--fg-bone-soft); }
@media (max-width: 1024px) { .dna .grid { grid-template-columns: repeat(2, 1fr); } .dna .head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 60px; } }
@media (max-width: 540px)  { .dna .grid { grid-template-columns: 1fr; } .dna .card { min-height: 220px; padding: 36px 24px; } }

/* ===== AUTHORITY (badges + portfolio strip) ===== */
.authority { background: var(--fg-graphite); }
.authority .head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; margin-bottom: 80px; align-items: end; }
.authority .badges {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 100px;
}
.authority .badge {
  border: 1px solid var(--fg-line-gold); padding: 28px 24px;
  background: rgba(243,240,234,0.02);
  display: flex; flex-direction: column; gap: 12px;
}
.authority .badge .num { font-family: var(--fg-font-display); font-style: italic; font-size: 13px; color: var(--fg-gold-bright); }
.authority .badge .big { font-family: var(--fg-font-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; color: var(--fg-bone); }
.authority .badge .sub { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-bone-faint); }

.authority .gallery {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px;
  height: 480px;
}
.authority .gallery .cell { position: relative; overflow: hidden; background-position: center; background-size: cover; }
.authority .gallery .cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,5,0.78) 100%);
}
.authority .gallery .cell .caption {
  position: absolute; left: 24px; bottom: 22px; right: 24px; z-index: 2;
  font-family: var(--fg-font-display); font-style: italic; font-size: 15px; color: var(--fg-bone);
}
.authority .gallery .cell .caption small { display: block; font-family: var(--fg-font-body); font-size: 10px; font-style: normal; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-gold-bright); margin-bottom: 6px; }
@media (max-width: 1024px) { .authority .badges { grid-template-columns: repeat(2, 1fr); } .authority .head { grid-template-columns: 1fr; gap: 24px; } .authority .gallery { grid-template-columns: 1fr 1fr; height: auto; } .authority .gallery .cell { height: 280px; } }
@media (max-width: 540px) { .authority .badges { grid-template-columns: 1fr; } .authority .gallery { grid-template-columns: 1fr; } }

/* ===== PROBLEM (before / after) ===== */
.problem { background: var(--fg-black); }
.problem .head { margin-bottom: 80px; max-width: 800px; }
.problem .head .display-l { margin-top: 22px; }
.problem .head p { margin-top: 32px; max-width: 56ch; }
.problem .flow {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--fg-line);
  margin-bottom: 80px;
}
.problem .flow .card { background: var(--fg-black); padding: 56px 40px; min-height: 380px; }
.problem .flow .card .when { font-family: var(--fg-font-display); font-style: italic; font-size: 14px; color: var(--fg-bone-faint); margin-bottom: 18px; }
.problem .flow .card h4 { font-family: var(--fg-font-display); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; color: var(--fg-bone); margin-bottom: 32px; }
.problem .flow .card .steps { display: flex; flex-direction: column; gap: 14px; }
.problem .flow .card .step {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border: 1px solid var(--fg-line);
  font-size: 13px; color: var(--fg-bone-soft);
  position: relative;
}
.problem .flow .card .step .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-gold); flex-shrink: 0; }
.problem .flow .card .arrow-down { text-align: center; color: var(--fg-bone-faint); font-size: 14px; line-height: 1; padding: 2px 0; }
.problem .flow .card.now { background: linear-gradient(180deg, var(--fg-graphite) 0%, var(--fg-black) 100%); border-top: 1px solid var(--fg-line-gold); }
.problem .flow .card.now h4 em { color: var(--fg-gold-bright); }
.problem .key-message {
  text-align: center; max-width: 880px; margin: 0 auto;
  padding: 80px 40px; border-top: 1px solid var(--fg-line-gold); border-bottom: 1px solid var(--fg-line-gold);
}
.problem .key-message h3 {
  font-family: var(--fg-font-display); font-weight: 400; font-style: italic;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.18; color: var(--fg-bone);
}
.problem .key-message h3 em { color: var(--fg-gold-bright); }
.problem .key-message p { margin-top: 24px; max-width: 56ch; margin-inline: auto; }
@media (max-width: 900px) { .problem .flow { grid-template-columns: 1fr; } }

/* ===== AI MOCKUPS (ChatGPT / Gemini / Perplexity) ===== */
.ai { background: var(--fg-graphite); }
.ai .head { margin-bottom: 80px; max-width: 800px; }
.ai .head .display-l { margin-top: 22px; }
.ai .head p { margin-top: 32px; max-width: 60ch; }
.ai .conv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai .conv {
  background: var(--fg-black-soft); border: 1px solid var(--fg-line);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
}
.ai .conv .conv-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--fg-line);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-bone-faint);
}
.ai .conv .conv-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-gold); }
.ai .conv .conv-body { padding: 28px 22px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.ai .conv .bubble { padding: 16px 18px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.ai .conv .bubble.user { background: var(--fg-graphite-up); align-self: flex-end; max-width: 90%; color: var(--fg-bone); }
.ai .conv .bubble.ai { background: linear-gradient(135deg, rgba(182,139,76,0.08), rgba(182,139,76,0.02)); border: 1px solid var(--fg-line-gold); color: var(--fg-bone-soft); max-width: 96%; }
.ai .conv .bubble.ai strong { color: var(--fg-gold-bright); font-weight: 500; font-family: var(--fg-font-display); font-style: italic; font-size: 15px; }
.ai .conv .bubble.ai .src { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-bone-faint); }
.ai .conv .bubble.ai .src::before { content: ""; width: 14px; height: 1px; background: var(--fg-gold); }
@media (max-width: 1024px) { .ai .conv-grid { grid-template-columns: 1fr; } }

/* ===== GAP (lista premium de gaps) ===== */
.gap { background: var(--fg-black); }
.gap .grid-2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; align-items: start; }
.gap .left { position: sticky; top: 100px; }
.gap .gap-list { display: flex; flex-direction: column; gap: 1px; background: var(--fg-line); border: 1px solid var(--fg-line); }
.gap .item {
  background: var(--fg-black); padding: 32px 36px;
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 28px;
  transition: background 0.4s var(--ease-cinema);
}
.gap .item:hover { background: var(--fg-graphite); }
.gap .item .nm { font-family: var(--fg-font-display); font-style: italic; font-size: 22px; color: var(--fg-gold); }
.gap .item h5 { font-family: var(--fg-font-display); font-weight: 400; font-size: 22px; line-height: 1.18; color: var(--fg-bone); }
.gap .item h5 small { display: block; font-family: var(--fg-font-body); font-size: 13px; font-style: normal; color: var(--fg-bone-faint); margin-top: 6px; line-height: 1.55; }
.gap .item .arrow { color: var(--fg-bone-ghost); transition: color 0.4s var(--ease-cinema), transform 0.4s var(--ease-cinema); }
.gap .item:hover .arrow { color: var(--fg-gold); transform: translateX(4px); }
@media (max-width: 900px) { .gap .grid-2 { grid-template-columns: 1fr; gap: 40px; } .gap .left { position: static; } .gap .item { grid-template-columns: 40px 1fr; padding: 24px 22px; gap: 18px; } .gap .item .arrow { display: none; } }

/* ===== ECOSYSTEM (3 domínios) ===== */
.eco { background: var(--fg-graphite); }
.eco .head { margin-bottom: 80px; max-width: 800px; }
.eco .head .display-l { margin-top: 22px; }
.eco .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.eco .domain {
  background: var(--fg-black); border: 1px solid var(--fg-line);
  padding: 0;
  display: flex; flex-direction: column;
  transition: border-color 0.5s var(--ease-cinema), transform 0.5s var(--ease-cinema);
  position: relative; overflow: hidden;
}
.eco .domain:hover { border-color: var(--fg-line-gold); transform: translateY(-4px); }
.eco .domain .top {
  padding: 36px 32px 28px;
  border-bottom: 1px solid var(--fg-line);
  display: flex; flex-direction: column; gap: 16px;
}
.eco .domain .role { font-family: var(--fg-font-display); font-style: italic; font-size: 13px; color: var(--fg-bone-faint); }
.eco .domain .url {
  font-family: var(--fg-font-mono); font-size: 14px; color: var(--fg-gold-bright);
  letter-spacing: 0.02em;
}
.eco .domain h4 { font-family: var(--fg-font-display); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; color: var(--fg-bone); }
.eco .domain .body { padding: 28px 32px; flex: 1; color: var(--fg-bone-soft); font-size: 14px; line-height: 1.7; }
.eco .domain .tags { padding: 0 32px 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.eco .domain .tag { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-bone-faint); border: 1px solid var(--fg-line); padding: 6px 10px; }

.eco .connector {
  margin-top: 60px;
  text-align: center; padding: 40px;
  font-family: var(--fg-font-display); font-style: italic; font-size: 18px; color: var(--fg-bone-soft);
  border-top: 1px solid var(--fg-line-gold);
}
.eco .connector em { color: var(--fg-gold-bright); }
@media (max-width: 1024px) { .eco .grid-3 { grid-template-columns: 1fr; } }

/* ===== EXPERIENCE (5 steps mockup consulta) ===== */
.exp { background: var(--fg-black); }
.exp .head { margin-bottom: 80px; max-width: 800px; }
.exp .head .display-l { margin-top: 22px; }
.exp .stepper {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--fg-line); margin-bottom: 1px;
}
.exp .step-tab {
  background: var(--fg-graphite); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: background 0.4s var(--ease-cinema);
  text-align: left;
}
.exp .step-tab.active, .exp .step-tab:hover { background: var(--fg-graphite-up); }
.exp .step-tab.active { box-shadow: inset 0 2px 0 var(--fg-gold); }
.exp .step-tab .num { font-family: var(--fg-font-display); font-style: italic; font-size: 13px; color: var(--fg-gold-bright); }
.exp .step-tab .name { font-family: var(--fg-font-display); font-weight: 400; font-size: 18px; color: var(--fg-bone); line-height: 1.15; }
.exp .step-tab.active .name { color: var(--fg-bone); }

.exp .step-pane {
  background: var(--fg-graphite);
  padding: 60px;
  min-height: 480px;
}
.exp .pane-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.exp .pane-grid .pane-left .plate-no { margin-bottom: 18px; }
.exp .pane-grid .pane-left h3 { margin-bottom: 24px; }
.exp .pane-grid .pane-left p { color: var(--fg-bone-soft); }
.exp .pane-grid .pane-right { display: flex; flex-direction: column; gap: 14px; }
.exp .choice {
  padding: 22px 24px; border: 1px solid var(--fg-line);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.4s var(--ease-cinema), background 0.4s var(--ease-cinema);
  background: rgba(243,240,234,0.02);
}
.exp .choice:hover, .exp .choice.selected { border-color: var(--fg-gold); background: rgba(182,139,76,0.05); }
.exp .choice .label { font-family: var(--fg-font-display); font-size: 19px; color: var(--fg-bone); }
.exp .choice .label small { display: block; font-family: var(--fg-font-body); font-size: 12px; color: var(--fg-bone-faint); margin-top: 4px; letter-spacing: 0.04em; }
.exp .choice .check {
  width: 22px; height: 22px; border: 1px solid var(--fg-line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease-cinema);
}
.exp .choice.selected .check { border-color: var(--fg-gold); }
.exp .choice.selected .check::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fg-gold); }

.exp .summary-card {
  margin-top: 1px; background: var(--fg-graphite-up); padding: 36px 60px;
  border-top: 1px solid var(--fg-line-gold);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.exp .summary-card .lbl { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-bone-faint); margin-bottom: 8px; }
.exp .summary-card .val { font-family: var(--fg-font-display); font-size: 22px; color: var(--fg-bone); }
.exp .summary-card .val em { color: var(--fg-gold-bright); }

@media (max-width: 900px) {
  .exp .stepper { grid-template-columns: repeat(5, 1fr); }
  .exp .step-tab { padding: 16px 10px; }
  .exp .step-tab .name { font-size: 12px; }
  .exp .step-tab .num { font-size: 10px; }
  .exp .step-pane { padding: 36px 24px; }
  .exp .pane-grid { grid-template-columns: 1fr; gap: 32px; }
  .exp .summary-card { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 540px) {
  .exp .stepper { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CRM mockup ===== */
.crm { background: var(--fg-graphite); }
.crm .head { margin-bottom: 80px; max-width: 800px; }
.crm .head .display-l { margin-top: 22px; }
.crm .dashboard {
  display: grid; grid-template-columns: 240px 1fr;
  background: var(--fg-black); border: 1px solid var(--fg-line);
  min-height: 640px;
  overflow: hidden;
}
.crm .sidebar {
  background: var(--fg-graphite); padding: 28px 0;
  border-right: 1px solid var(--fg-line);
}
.crm .sidebar .brand {
  padding: 0 22px 28px; border-bottom: 1px solid var(--fg-line);
  display: flex; align-items: center; gap: 10px;
}
.crm .sidebar .brand img { height: 28px; }
.crm .sidebar .brand span { font-family: var(--fg-font-display); font-style: italic; font-size: 15px; }
.crm .sidebar nav { padding: 22px 0; display: flex; flex-direction: column; gap: 2px; }
.crm .sidebar nav .item {
  padding: 11px 22px; font-size: 13px; color: var(--fg-bone-soft);
  display: flex; align-items: center; gap: 12px;
  transition: background 0.3s var(--ease-cinema), color 0.3s var(--ease-cinema);
}
.crm .sidebar nav .item.active { background: var(--fg-graphite-up); color: var(--fg-bone); border-left: 2px solid var(--fg-gold); padding-left: 20px; }
.crm .sidebar nav .item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-bone-ghost); }
.crm .sidebar nav .item.active .dot { background: var(--fg-gold); }

.crm .main { padding: 32px; }
.crm .main .top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
}
.crm .main .top h3 { font-family: var(--fg-font-display); font-weight: 400; font-size: 26px; }
.crm .main .top .pills { display: flex; gap: 10px; }
.crm .main .top .pill { padding: 8px 16px; border: 1px solid var(--fg-line); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-bone-soft); }
.crm .main .top .pill.gold { border-color: var(--fg-gold); color: var(--fg-gold-bright); }

.crm .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.crm .stat { border: 1px solid var(--fg-line); padding: 22px 22px; }
.crm .stat .lbl { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-bone-faint); }
.crm .stat .num { font-family: var(--fg-font-display); font-weight: 400; font-size: 36px; color: var(--fg-bone); margin-top: 10px; line-height: 1; }
.crm .stat .num em { color: var(--fg-gold-bright); font-size: 16px; }
.crm .stat .trend { margin-top: 6px; font-size: 11px; color: var(--fg-gold-bright); }

.crm .table { border: 1px solid var(--fg-line); }
.crm .row {
  display: grid; grid-template-columns: 1fr 130px 110px 90px 90px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--fg-line);
  font-size: 13px;
}
.crm .row:last-child { border-bottom: none; }
.crm .row.head { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-bone-faint); background: var(--fg-graphite); }
.crm .row .cli { display: flex; align-items: center; gap: 12px; }
.crm .row .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fg-gold-deep); color: var(--fg-bone);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fg-font-display); font-size: 14px;
}
.crm .row .name { color: var(--fg-bone); }
.crm .row .name small { display: block; font-size: 11px; color: var(--fg-bone-faint); font-family: var(--fg-font-mono); }
.crm .row .status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.crm .row .status .dot { width: 6px; height: 6px; border-radius: 50%; }
.crm .row .status.confirmed .dot { background: #6FB36F; }
.crm .row .status.pending   .dot { background: var(--fg-gold); }
.crm .row .status.closed    .dot { background: var(--fg-bone-ghost); }
.crm .row .progress-mini {
  width: 70px; height: 4px; background: var(--fg-line); position: relative;
}
.crm .row .progress-mini::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; background: var(--fg-gold);
}
.crm .row .progress-mini.p40::after { width: 40%; }
.crm .row .progress-mini.p70::after { width: 70%; }
.crm .row .progress-mini.p20::after { width: 20%; }
.crm .row .progress-mini.p90::after { width: 90%; }

@media (max-width: 1024px) {
  .crm .dashboard { grid-template-columns: 1fr; }
  .crm .sidebar { display: none; }
  .crm .stats { grid-template-columns: repeat(2, 1fr); }
  .crm .row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .crm .row.head { display: none; }
}

/* ===== IA READY (4 pilares) ===== */
.iaready { background: var(--fg-black); }
.iaready .head { margin-bottom: 80px; max-width: 880px; }
.iaready .head .display-l { margin-top: 22px; }
.iaready .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--fg-line); border: 1px solid var(--fg-line); margin-bottom: 80px; }
.iaready .pillar { background: var(--fg-black); padding: 40px 28px; display: flex; flex-direction: column; gap: 18px; }
.iaready .pillar .num { font-family: var(--fg-font-display); font-style: italic; font-size: 14px; color: var(--fg-gold); }
.iaready .pillar h4 { font-family: var(--fg-font-display); font-weight: 400; font-size: 24px; line-height: 1.18; color: var(--fg-bone); }
.iaready .pillar p { font-size: 13px; line-height: 1.65; color: var(--fg-bone-soft); }
@media (max-width: 1024px) { .iaready .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .iaready .grid-4 { grid-template-columns: 1fr; } }

.iaready .schema-block {
  background: var(--fg-graphite); border: 1px solid var(--fg-line);
  padding: 40px;
  font-family: var(--fg-font-mono); font-size: 12px; line-height: 1.7;
  color: var(--fg-bone-soft);
  overflow-x: auto;
}
.iaready .schema-block .k { color: var(--fg-gold-bright); }
.iaready .schema-block .v { color: var(--fg-bone); }
.iaready .schema-block .c { color: var(--fg-bone-faint); }

.iaready .schema-cap {
  margin-top: 24px; text-align: center;
  font-family: var(--fg-font-display); font-style: italic; font-size: 18px; color: var(--fg-bone-soft);
}
.iaready .schema-cap em { color: var(--fg-gold-bright); }

/* ===== CLOSING ===== */
.closing {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.closing .bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: brightness(0.5) saturate(0.78) contrast(1.06); animation: kenburns 36s var(--ease-slow) infinite alternate; }
.closing .veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 60% at 50% 50%, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.95) 100%); }
.closing .veil-gold { position: absolute; inset: 0; z-index: 2; background: radial-gradient(40% 40% at 50% 100%, var(--fg-gold-glow) 0%, transparent 70%); opacity: 0.32; mix-blend-mode: screen; }
.closing .frame {
  position: relative; z-index: 5;
  text-align: center; padding: 80px 40px;
  max-width: 1080px;
}
.closing .logo-mark { margin: 0 auto 48px; width: 84px; opacity: 0.85; }
.closing h2 {
  font-family: var(--fg-font-display); font-weight: 400;
  font-size: clamp(36px, 5.6vw, 88px); line-height: 1.08; letter-spacing: -0.004em;
  color: var(--fg-bone);
  max-width: 22ch; margin: 0 auto;
}
.closing h2 em { color: var(--fg-gold-bright); }
.closing .closing-meta {
  margin-top: 56px; font-family: var(--fg-font-display); font-style: italic;
  font-size: 18px; color: var(--fg-bone-soft);
}
.closing .closing-cta { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--fg-black); padding: 80px 80px 40px;
  border-top: 1px solid var(--fg-line);
}
.footer .grid-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; max-width: 1320px; margin: 0 auto 60px; }
.footer .brand-foot img { height: 64px; margin-bottom: 20px; }
.footer .brand-foot p { font-family: var(--fg-font-display); font-style: italic; font-size: 16px; color: var(--fg-bone-soft); max-width: 32ch; }
.footer .col h6 { font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-gold); margin-bottom: 18px; }
.footer .col a, .footer .col p { display: block; font-size: 13.5px; color: var(--fg-bone-soft); margin-bottom: 10px; line-height: 1.6; }
.footer .col a:hover { color: var(--fg-gold-bright); }
.footer .bottom {
  border-top: 1px solid var(--fg-line); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-bone-faint);
  max-width: 1320px; margin: 0 auto;
}
@media (max-width: 900px) { .footer { padding: 60px 24px 24px; } .footer .grid-foot { grid-template-columns: 1fr; gap: 28px; } .footer .bottom { flex-direction: column; gap: 14px; text-align: center; } }

/* ===== UTILS ===== */
.divider { width: 60px; height: 1px; background: var(--fg-gold); margin: 28px 0; }
.divider.center { margin-inline: auto; }

/* Smooth scroll target offset for fixed nav */
section[id] { scroll-margin-top: 80px; }
