/* TaxResearch do Brasil — Site Styles
   IDV 2026: Rubik + DM Sans + Cormorant Garamond
   Brand: verde floresta #1B2C22 / ouro #C9B870 / creme #E8E2C6
*/

:root {
  /* Paleta IDV — inspirada nas cores da bandeira do Brasil */
  --bg:   #1b2c22;   /* verde floresta profundo */
  --bg-2: #162520;   /* verde mais escuro */
  --bg-3: #0f1c17;   /* quase preto-verde */
  --bg-4: #243a2e;   /* verde médio-escuro */

  --cream:  #e8e2c6;  /* creme claro */
  --beam:   #c9b870;  /* ouro champagne IDV */
  --beam-2: #b8a755;  /* ouro médio */
  --beam-3: #a2933e;  /* ouro profundo */

  --ink:      #f0ead0;   /* branco creme */
  --ink-2:    #c8c4a8;   /* creme médio */
  --ink-soft: #d4d9d6;
  --muted:    #8a9590;
  --muted-2:  #6c7670;

  --rule:   rgba(201, 184, 112, .14);
  --rule-2: rgba(201, 184, 112, .28);
  --shadow: 0 30px 80px -20px rgba(0,0,0,.55);

  /* Tipografia IDV */
  --f-sans: 'Rubik', system-ui, sans-serif;            /* Rubik Regular — primária IDV */
  --f-cond: 'Barlow Condensed', sans-serif;            /* labels, eyebrows */
  --f-sub:  'DM Sans', system-ui, sans-serif;          /* Gemma SemiBold equiv — subtítulos */
  --f-disp: 'Cormorant Garamond', 'Times New Roman', serif; /* display editorial */

  --maxw: 1440px;
  --pad-x: clamp(24px, 5vw, 80px);
}

/* Register animatable custom properties so the browser can interpolate them smoothly
   between phase changes. Without @property they snap; with it they transition. */
@property --lamp-glow    { syntax: '<number>'; initial-value: 0; inherits: true; }
@property --lamp-bloom   { syntax: '<number>'; initial-value: 0; inherits: true; }
@property --beam-amount  { syntax: '<number>'; initial-value: 0; inherits: true; }
@property --beam-spread  { syntax: '<number>'; initial-value: 0; inherits: true; }
@property --vignette     { syntax: '<number>'; initial-value: 1; inherits: true; }
@property --bg-tone      { syntax: '<number>'; initial-value: 0; inherits: true; }
@property --content-show { syntax: '<number>'; initial-value: 0; inherits: true; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
::selection { background: var(--beam); color: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ============================================================
   1. INTRO REVEAL — Cinematic lighthouse scene
   ============================================================
   Sequence (handled by setting CSS custom properties on .stage):
     phase 0  →  ambient: lighthouse breathes in the dark, faint
     phase 1  →  ignite : lamp catches a spark, slow warm-up
     phase 2  →  burst  : light blooms — beams reach out from the lamp
     phase 3  →  reveal : camera glides back, scene settles into hero
*/

.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-3);
  isolation: isolate;
  /* JS sets these per-frame via style.setProperty(); initial values for pre-load state */
  --vignette: 1;
  --bg-tone: 0;
  --content-show: 0;
}

.stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(140% 95% at 50% 55%,
      transparent 0%,
      rgba(0,0,0,.35) 40%,
      rgba(0,0,0,.78) 75%,
      rgba(0,0,0,.96) 100%);
  pointer-events: none;
  z-index: 8;
  opacity: var(--vignette);
}

/* Subtle warm tint on the whole scene as the lamp warms up */
.stage::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(80% 60% at 50% 50%, rgba(201,184,112,.07), transparent 70%);
  opacity: var(--bg-tone);
}

/* The lighthouse "scene" — fluid, fully variable-driven, with ambient drift.
   Pivot at base so scaling never makes the tower "jump".
*/
.lighthouse-scene {
  position: absolute;
  left: 38%;
  bottom: 6vh;
  width: clamp(280px, 32vw, 440px);
  aspect-ratio: 400 / 800;
  z-index: 4;
  pointer-events: none;
  transform: translate(-50%, 0);
  transform-origin: 50% 100%;
  will-change: opacity;
}

.lighthouse-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* No dynamic filter — JS drives SVG child properties directly */
}

/* JS sets opacity inline each frame — base values are starting points */
.lighthouse-svg .tower    { opacity: 0.08; }
.lighthouse-svg .lamp-halo {
  transform-origin: 200px 260px;
  opacity: 0;
  mix-blend-mode: screen;
}
.lighthouse-svg .lamp-bulb-soft {
  transform-origin: 200px 260px;
  opacity: 0;
  mix-blend-mode: screen;
}
.lighthouse-svg .lamp-bulb-core {
  transform-origin: 200px 260px;
  opacity: 0;
}
/* The rotating beam cones — rotation is CSS keyframe; opacity driven by JS */
.lighthouse-svg .beam-cones {
  opacity: 0;
  mix-blend-mode: screen;
}
.lighthouse-svg .beam-rotor {
  transform-origin: 0 0;
  animation: beam-rotate 18s linear infinite;
}
.intro-revealed .lighthouse-svg .beam-rotor {
  animation-duration: 120s; /* decelerates to near-still rather than stopping hard */
}
@keyframes beam-rotate {
  to { transform: rotate(360deg); }
}

/* Burst star — JS drives width/transform/opacity each frame.
   Base values are the initial (pre-animation) state. */
.burst-star {
  position: absolute;
  left: 48.5%;
  top: 32.5%;
  width: 130%;
  aspect-ratio: 1104 / 842;
  transform: translate(-50%, -50%) scale(0.06) rotate(-10deg);
  opacity: 0;
  mix-blend-mode: screen;
}
/* After animation completes, JS removes inline styles and this rule takes over.
   CSS transition provides a smooth settle to the beacon state. */
.intro-revealed .burst-star {
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  width: 60%;
  opacity: 1;
  filter:
    drop-shadow(0 0 28px rgba(253, 243, 184, .75))
    drop-shadow(0 0 14px rgba(201, 184, 112, .6))
    drop-shadow(0 0 55px rgba(253, 243, 184, .35));
  transition: none;
}

/* Light wash — static gradient; JS drives opacity only. No dynamic filter/gradient. */
.light-wash {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: radial-gradient(65% 52% at 50% 42%,
    rgba(253, 243, 184, .6)  0%,
    rgba(201, 184, 112, .22) 38%,
    rgba(201, 184, 112, .06) 65%,
    transparent 82%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* After reveal: fade lighthouse slightly so text reads clearly */
.intro-revealed .lighthouse-svg {
  opacity: 0.6;
  transition: opacity 2s ease;
}

/* Volumetric beam from the lamp tip up toward the brand wordmark */
.brand-beam {
  position: absolute;
  left: 50%;
  bottom: calc(6vh + clamp(280px, 32vw, 440px) * 0.66);
  width: 100vw;
  height: 60vh;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease 0.4s;
  mix-blend-mode: screen;
}
.intro-revealed .brand-beam { opacity: 1; }

/* The cone — wide at top (header), narrow at bottom (lamp) */
.brand-beam-cone {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 8% 40% at 50% 100%,
      rgba(253, 243, 184, .14) 0%,
      rgba(253, 243, 184, .05) 35%,
      transparent 70%);
  filter: blur(28px);
  animation: beam-flicker 6s ease-in-out infinite;
}
@keyframes beam-flicker {
  0%, 100% { filter: blur(28px) brightness(.95); }
  50%      { filter: blur(32px) brightness(1.1); }
}

.brand-beam-pool {
  position: absolute;
  top: -2vh;
  left: 50%;
  width: 60vw;
  height: 14vh;
  transform: translateX(-50%);
  background: radial-gradient(60% 80% at 50% 30%,
    rgba(253, 243, 184, .10) 0%,
    rgba(201, 184, 112, .05) 40%,
    transparent 75%);
  filter: blur(36px);
}

/* Hero content — revealed by JS-driven --content-show (0→1) */
.hero-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 80px var(--pad-x) 48px;
  opacity: var(--content-show);
  transform: translateY(calc((1 - var(--content-show)) * 28px));
  will-change: opacity, transform;
}

/* Skip / replay buttons */
.skip-btn {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translateX(-50%);
  z-index: 60;
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--cream);
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 11px;
  padding: 10px 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity .25s, color .25s, background .25s;
  opacity: .8;
}
.skip-btn:hover { opacity: 1; color: var(--beam); background: rgba(221,214,163,.06); }
.intro-revealed .skip-btn { display: none; }

.replay-btn {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 50;
  background: rgba(15, 23, 20, .7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule-2);
  color: var(--beam);
  padding: 10px 14px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  opacity: 0;
  pointer-events: none;
}
.intro-revealed .replay-btn {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1s ease 3.5s, color .25s, background .25s, border-color .25s;
}
.replay-btn:hover { color: var(--bg); background: var(--beam); border-color: var(--beam); }

/* ============================================================
   2. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px var(--pad-x);
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px var(--pad-x);
  background: rgba(15, 28, 23, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule-2);
}
.site-header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-header .brand-logo {
  height: 28px;
  width: auto;
  display: block;
  /* PNG is white/cream on transparent — matches the site palette naturally */
}
.site-header nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
}
.site-header nav a {
  color: var(--cream);
  text-decoration: none;
  opacity: .78;
  transition: opacity .25s, color .25s;
  position: relative;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--beam);
  transition: width .3s ease;
}
.site-header nav a:hover,
.site-header nav a.active { opacity: 1; color: var(--beam); }
.site-header nav a:hover::after,
.site-header nav a.active::after { width: 100%; }
.site-header .header-cta {
  border: 1px solid var(--rule-2);
  padding: 10px 18px;
  color: var(--beam);
  text-decoration: none;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  transition: all .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-header .header-cta:hover { background: var(--beam); color: var(--bg); border-color: var(--beam); }

/* ============================================================
   3. HERO
   ============================================================ */
/* Hero layout: lighthouse stays centered at bottom as backdrop;
   text lives in the right column, vertically centered in the available space. */
.hero-grid {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: 48px;
  align-items: center;
  padding-top: 2vh;
}
.hero-grid .hero-left {
  /* Visual spaceholder — the lighthouse floats absolutely behind this area */
  min-height: 64vh;
}
.hero-grid .hero-right {
  max-width: 620px;
}
.eyebrow {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .36em;
  font-size: 11px;
  color: var(--beam);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--beam);
}
h1.hero-title {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -.012em;
  color: var(--ink);
  margin-bottom: 32px;
  text-wrap: balance;
}
h1.hero-title em {
  font-style: italic;
  color: var(--beam);
  font-weight: 400;
}
h1.hero-title {
  position: relative;
}
.hero-lede {
  font-family: var(--f-sub);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--beam);
  color: var(--bg);
  background: var(--beam);
  transition: background .3s, color .3s, transform .3s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--beam); }
.btn .arrow { transition: transform .3s; display: inline-block; }
.btn:hover .arrow { transform: translateX(6px); }
.btn.ghost { background: transparent; color: var(--beam); border-color: var(--rule-2); }
.btn.ghost:hover { background: var(--beam); color: var(--bg); border-color: var(--beam); }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  gap: 32px;
  font-family: var(--f-cond);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}
.hero-foot .slogan {
  text-align: center;
  font-family: var(--f-disp);
  font-style: italic;
  font-size: 18px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0;
}
.hero-foot .scroll-cue { text-align: right; }
.hero-foot .scroll-cue span { display: inline-block; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

/* ============================================================
   4. SECTION FRAMEWORK
   ============================================================ */
section {
  padding: clamp(80px, 12vh, 160px) var(--pad-x);
  position: relative;
}
.container { max-width: var(--maxw); margin: 0 auto; }

.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
}
.section-num {
  font-family: var(--f-cond);
  font-size: 11px;
  color: var(--beam);
  letter-spacing: .14em;
  padding-top: 12px;
  border-top: 1px solid var(--beam);
  width: 80px;
}
.section-title {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.008em;
  max-width: 1000px;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--beam); font-weight: 400; }

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.25, .8, .25, 1);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }
[data-reveal][data-delay="5"] { transition-delay: .5s; }
[data-reveal][data-delay="6"] { transition-delay: .6s; }

/* ============================================================
   5. MANIFESTO
   ============================================================ */
.manifesto {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.manifesto-grid .label {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 11px;
  color: var(--beam);
}
.manifesto-grid p {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}
.manifesto-grid p + p { margin-top: 22px; }
.pull-quote {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-disp);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.2;
  color: var(--cream);
  max-width: 1200px;
  text-wrap: balance;
}
.pull-quote em { font-style: italic; color: var(--beam); font-weight: 400; }

/* ============================================================
   6. SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.service {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 48px 36px 56px;
  position: relative;
  transition: background .4s ease;
  cursor: pointer;
  overflow: hidden;
}
.service:nth-child(3n) { border-right: 0; }
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(221,214,163,.04) 100%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--beam);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.25, .8, .25, 1);
}
.service:hover::after { transform: scaleX(1); }
.service .ico {
  width: 44px; height: 44px;
  margin-bottom: 36px;
  color: var(--beam);
  transition: transform .5s cubic-bezier(.25, .8, .25, 1);
}
.service:hover .ico { transform: translateY(-4px); }
.service h3 {
  font-family: var(--f-disp);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.15;
}
.service p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 300;
}
.service .more {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  color: var(--beam);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .3s;
}
.service:hover .more { gap: 14px; }

/* ============================================================
   7. REFORMA TRIBUTÁRIA — gancho no index
   ============================================================ */
.reforma-hook {
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.reforma-hook::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(221,214,163,.06) 0%, transparent 70%);
  pointer-events: none;
}
.reforma-hook-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.reforma-hook-text .section-num { margin-bottom: 24px; }
.reforma-hook-text .section-title { margin-bottom: 28px; }
.reforma-hook-text p {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 520px;
}
.reforma-hook-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rule);
}
.rhs-item {
  padding: 32px 40px;
  border-bottom: 1px solid var(--rule);
  transition: background .3s;
}
.rhs-item:last-child { border-bottom: 0; }
.rhs-item:hover { background: rgba(201,184,112,.04); }
.rhs-num {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  color: var(--beam);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.rhs-label {
  font-family: var(--f-cond);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   7b. REFORMA TRIBUTÁRIA — estilos da página reforma.html
   ============================================================ */
.reforma-page {
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.reforma-page::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(221,214,163,.06) 0%, transparent 70%);
  pointer-events: none;
}
.reforma-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}
.reforma-intro p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}
.reforma-intro p + p { margin-top: 18px; }
.reforma-intro .stat-side {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 40px;
}
.reforma-intro .stat-side .big {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  color: var(--beam);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.reforma-intro .stat-side .desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.reforma-intro .stat-side hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 28px 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 48px;
  margin-top: 40px;
}
.timeline-track {
  position: absolute;
  left: 8px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--rule);
}
.timeline-fill {
  position: absolute;
  left: 8px; top: 12px;
  width: 1px;
  height: calc(100% - 24px);
  background: var(--beam);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform .1s linear;
}
.timeline-item {
  position: relative;
  padding: 28px 0 28px 32px;
  border-bottom: 1px solid var(--rule);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -48px; top: 36px;
  width: 17px; height: 17px;
  border: 1px solid var(--rule-2);
  background: var(--bg-3);
  border-radius: 50%;
  transition: all .4s;
}
.timeline-item.in::before {
  background: var(--beam);
  border-color: var(--beam);
  box-shadow: 0 0 0 6px rgba(221,214,163,.1);
}
.timeline-item .year {
  font-family: var(--f-cond);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--beam);
  margin-bottom: 8px;
}
.timeline-item h4 {
  font-family: var(--f-disp);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.timeline-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  font-weight: 300;
}

/* ============================================================
   8. PROCESS / METHOD
   ============================================================ */
.process { background: var(--bg-2); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.step {
  padding: 48px 32px 56px;
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background .3s;
}
.step:last-child { border-right: 0; }
.step:hover { background: rgba(221,214,163,.03); }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; height: 1px;
  width: 0; background: var(--beam);
  transition: width .8s ease;
}
.step.in::before { width: 100%; }
.step .step-num {
  font-family: var(--f-cond);
  font-size: 11px;
  color: var(--beam);
  letter-spacing: .14em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step .step-num::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--beam);
}
.step h4 {
  font-family: var(--f-disp);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--cream);
  letter-spacing: -.005em;
}
.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

/* ============================================================
   9. STATS / NUMEROS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 64px 36px;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat .v {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  color: var(--beam);
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.stat .l {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 200px;
}

/* ============================================================
   10. FAQ
   ============================================================ */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: left;
  padding: 32px 0;
  font-family: var(--f-disp);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -.005em;
  cursor: pointer;
  transition: color .3s;
}
.faq-q:hover { color: var(--beam); }
.faq-q .plus {
  width: 28px; height: 28px;
  position: relative;
  flex: none;
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--beam);
  transition: transform .4s cubic-bezier(.25, .8, .25, 1);
}
.faq-q .plus::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.faq-q .plus::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.25, .8, .25, 1);
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  padding: 0 0 32px 0;
  max-width: 880px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ============================================================
   11. CLIENTS SECTION
   ============================================================ */
.clients-section {
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  border-top: 1px solid var(--rule);
}
.clients-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: clamp(48px, 7vh, 80px);
  font-weight: 300;
  line-height: 1.6;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 44px 32px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .4s ease;
  cursor: default;
}
.client-card:hover { background: rgba(201,184,112,.05); }

/* Logo area */
.client-logo-wrap {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.client-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Grayscale unifies mixed logo palettes on the dark bg.
     brightness(2) makes transparent-bg logos visible; contrast(0.8) prevents blow-out. */
  filter: grayscale(1) brightness(2) contrast(0.8);
  opacity: .5;
  transition: filter .4s ease, opacity .4s ease;
}
.client-card:hover .client-logo {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
}

.client-name {
  font-family: var(--f-cond);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted-2);
  text-align: center;
  transition: color .4s;
  line-height: 1.5;
}
.client-card:hover .client-name { color: var(--cream); }

/* ============================================================
   12. CTA BLOCK
   ============================================================ */
.cta-block {
  padding: clamp(80px, 14vh, 180px) var(--pad-x);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(221,214,163,.1), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.mark-wrap {
  position: relative;
  width: 120px;
  margin: 0 auto 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark-wrap::before {
  content: "";
  position: absolute;
  inset: -110%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201,184,112,.30) 0%,
    rgba(201,184,112,.10) 35%,
    transparent 68%
  );
  filter: blur(18px);
  animation: halo-breathe 11s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes halo-breathe {
  0%, 100% { opacity: .45; transform: scale(.82); }
  50%       { opacity: 1;   transform: scale(1.18); }
}
.cta-block .mark {
  width: 120px;
  aspect-ratio: 1104 / 842;
  display: block;
  position: relative;
  z-index: 1;
}
.cta-block h3 {
  font-family: var(--f-disp);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.cta-block h3 em { font-style: italic; color: var(--beam); font-weight: 400; }
.cta-block p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
footer {
  background: var(--bg-3);
  border-top: 1px solid var(--rule);
}

/* Statement strip above the grid */
.foot-top {
  padding: 40px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.foot-statement {
  font-family: var(--f-disp);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--beam);
  letter-spacing: -.005em;
  opacity: .7;
}

/* Main grid */
.foot-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 0;
  padding: 64px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.foot-brand {
  padding-right: 64px;
  border-right: 1px solid var(--rule);
}
.foot-col {
  padding: 0 40px;
  border-right: 1px solid var(--rule);
}
.foot-col:last-child { border-right: 0; }

/* Logo */
.foot-logo {
  display: block;
  margin-bottom: 24px;
  text-decoration: none;
  width: 160px;
}
.foot-logo img {
  width: 100%;
  height: auto;
  display: block;
  opacity: .85;
  transition: opacity .25s;
}
.foot-logo:hover img { opacity: 1; }

.foot-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 340px;
  margin-bottom: 32px;
}

/* Contact items in brand column */
.foot-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.foot-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  transition: color .2s;
}
.foot-contact-item:hover { color: var(--beam); }
.foot-contact-label {
  font-family: var(--f-cond);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.foot-contact-item span:last-child {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}
.foot-contact-item:hover span:last-child { color: var(--beam); }

/* Column headings */
.foot-col h5 {
  font-family: var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 10px;
  color: var(--beam);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: 11px; }
.foot-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .25s;
}
.foot-col a:hover { color: var(--beam); }

/* Unidades */
.foot-units { margin-bottom: 36px; }
.foot-units li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.foot-unit-city {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}
.foot-unit-state {
  font-family: var(--f-cond);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted-2);
}

/* Founding year stat */
.foot-since {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.foot-since-num {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: 36px;
  line-height: 1;
  color: var(--beam);
  letter-spacing: -.02em;
  opacity: .6;
}
.foot-since-label {
  font-family: var(--f-cond);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Bottom bar */
.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad-x);
  font-family: var(--f-cond);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .04em;
}
.foot-bot a {
  color: var(--muted-2);
  text-decoration: none;
  transition: color .2s;
}
.foot-bot a:hover { color: var(--beam); }

/* ============================================================
   13. CURSOR GLOW
   ============================================================ */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  background: radial-gradient(
    circle,
    rgba(201, 184, 112, .18)  0%,
    rgba(201, 184, 112, .07)  40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
  will-change: transform;
  mix-blend-mode: screen;
}

/* ============================================================
   14. RESPONSIVE
   ============================================================ */

/* ── Mobile nav toggle button (hidden on desktop) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .2s ease;
  transform-origin: center;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  /* Header — always opaque on mobile so padding area doesn't show dark stage */
  .nav-toggle { display: flex; }
  .site-header {
    padding: 14px 20px;
    gap: 12px;
    background: rgba(8, 14, 10, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--rule-2);
  }
  .site-header .header-cta { display: none; }
  /* flex-shrink:0 keeps brand at natural size; max-width:none overrides global img rule */
  .site-header .brand { flex-shrink: 0; }
  .site-header .brand-logo { height: 24px; max-width: none; }

  /* Mobile nav: slide-down panel */
  .site-header nav {
    display: block;
    position: fixed;
    top: 52px; left: 0; right: 0;
    background: rgba(6, 9, 6, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rule);
    padding: 16px 0 28px;
    transform: translateY(calc(-100% - 52px));
    transition: transform .38s cubic-bezier(.16,1,.3,1);
    z-index: 999;
    pointer-events: none;
  }
  .nav-open .site-header nav {
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-header nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .site-header nav ul li a {
    display: block;
    padding: 13px 28px;
    font-size: 13px;
    border-bottom: 1px solid rgba(201, 184, 112, .07);
    letter-spacing: .22em;
  }
  .site-header nav ul li:last-child a { border-bottom: 0; }

  /* Intro animation: center lighthouse for mobile viewports */
  .lighthouse-scene {
    width: 200px;
    left: 50%;
    bottom: auto;
    top: 28vh;
    transform: translate(-50%, 0);
  }
  .burst-star { left: 50%; }
  .intro-revealed .lighthouse-scene {
    left: 50%;
    bottom: auto;
    top: 16vh;
    transform: translate(-50%, 0);
    width: 160px;
  }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; padding-top: 54vh; gap: 24px; }
  .hero-grid .hero-right { justify-self: start; max-width: 100%; }
  .hero-grid .hero-left { min-height: 0; }

  /* Content sections */
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { border-right: 0; }
  .reforma-intro { grid-template-columns: 1fr; gap: 40px; }
  .reforma-hook-inner { grid-template-columns: 1fr; gap: 48px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr 1fr; padding: 48px 24px; gap: 40px; }
  .foot-brand { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 40px; grid-column: 1 / -1; }
  .foot-col { padding: 0; border-right: 0; }

  /* Hero footer bar */
  .hero-foot { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .hero-foot .slogan, .hero-foot .scroll-cue { text-align: left; }
}

@media (max-width: 600px) {
  /* Typography */
  h1.hero-title { font-size: clamp(34px, 8.5vw, 48px); }
  .hero-lede { font-size: 15px; line-height: 1.6; }

  /* CTA buttons: stack vertically */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  /* Reduce hero top padding on very small screens */
  .hero-grid { padding-top: 52vh; }

  /* Sections */
  .process-grid { grid-template-columns: 1fr; }
  .step:nth-child(2) { border-right: 0; border-top: 1px solid var(--rule); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--rule) !important; }
  .stat:last-child { border-bottom: 0 !important; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; gap: 6px; text-align: center; }

  /* General padding */
  .site-header { padding: 14px 20px; }
}
