/* ==========================================================================
   SOLAR PLACAS — Design System
   Luz do sol: branco quente, âmbar e laranja sobre grafite quente
   Seções claras (.theme-light) alternam com fotografia e o 3D no escuro
   ========================================================================== */

:root {
  /* escuro quente (hero, tecnologia, CTA final, rodapé) */
  --bg: #120F0C;
  --bg-2: #1A1612;
  --surface: #221C17;
  --line: rgba(245, 238, 228, 0.10);
  --line-strong: rgba(245, 238, 228, 0.22);
  --text: #F7F1E8;
  --muted: #B3A899;
  --subtle: #857A6D;
  /* sol */
  --gold: #EC7A2C;      /* laranja */
  --gold-2: #F8AE4E;    /* âmbar */
  --gold-deep: #C2501B; /* laranja queimado */
  /* claro */
  --paper: #FBF7F1;
  --sand: #F3EADF;
  --ink: #1D1813;

  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 4px;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--bg); }

.theme-light {
  --bg: var(--paper);
  --bg-2: var(--sand);
  --surface: #EDE2D4;
  --line: rgba(29, 24, 19, 0.10);
  --line-strong: rgba(29, 24, 19, 0.20);
  --text: var(--ink);
  --muted: #6E6459;
  --subtle: #9A8E80;
  --gold-2: #E2661F;
  background: var(--bg);
  color: var(--text);
}
/* luz do sol entrando pela borda das seções claras */
.theme-light.section, .theme-light.stats {
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(248, 174, 78, .20), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(236, 122, 44, .07), transparent 70%),
    var(--bg);
}
.field.theme-light, .perks.theme-light { --bg: var(--sand); }
/* texto claro sobre fotografia, mesmo dentro de seções claras */
.gallery__item {
  --text: #F7F1E8; --line-strong: rgba(247, 241, 232, .32); color: var(--text);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(236, 122, 44, .15), 0 0 18px var(--gold);
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1; letter-spacing: -0.02em;
  margin-top: 22px;
}
.section-title em, .hero__title em, .final__title em, .modal__title em,
em .w > span {
  color: var(--gold-2);
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
.section-head { margin-bottom: clamp(56px, 7vw, 96px); max-width: 860px; }
.section-head--row {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.section-aside { color: var(--muted); max-width: 300px; font-size: .95rem; }

/* split-text helpers (JS) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { height: 44px; padding: 0 22px; font-size: .82rem; }
.btn--full { width: 100%; }

.btn--gold { background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); color: #1D1206; }
.btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:hover { box-shadow: 0 18px 50px -18px rgba(236,122,44,.7); }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--link { padding: 0 4px; height: auto; border-radius: 0; color: var(--muted); }
.btn--link::before { content: ''; position: absolute; left: 4px; right: 4px; bottom: -4px; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.btn--link:hover { color: var(--text); }
.btn--link:hover::before { transform: scaleX(0); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; color: var(--ink);
  background: radial-gradient(50% 50% at 50% 50%, rgba(248,174,78,.28), transparent 70%), var(--paper);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease) .15s, visibility 0s 1.3s;
}
.loader__inner { display: grid; justify-items: center; gap: 18px; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.loader__brand { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .01em; line-height: 1; }
.loader__brand em { color: var(--gold); }
.loader__bar { width: 160px; height: 1px; background: rgba(29,24,19,.15); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transform-origin: left; transform: scaleX(0); animation: loadBar 1.6s var(--ease) forwards; }
.loader__meta { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: #9A8E80; }
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader.is-done .loader__inner { opacity: 0; transform: translateY(-30px); }
@keyframes loadBar { to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0; transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .header:has(.nav.is-open) {
  --text: var(--ink); --muted: #6E6459; --line: rgba(29,24,19,.08); --line-strong: rgba(29,24,19,.2); --gold-2: #E2661F;
}
.header.is-scrolled { padding: 12px 0; background: rgba(251,247,241,.86); backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header { transition: transform .5s var(--ease), padding .5s var(--ease), background .5s var(--ease), border-color .5s; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .01em; }
.brand__name em { color: var(--gold); }

.nav { display: flex; gap: 38px; }
.nav__link { position: relative; font-size: .86rem; color: var(--muted); transition: color .3s; }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--text); transition: transform .4s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; display: flex; align-items: center; background: var(--bg); }
.hero__media { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: -3%; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; }
body:not(.is-loading) .hero__slide img { animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1.02); } }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,15,12,.88) 0%, rgba(18,15,12,.62) 34%, rgba(18,15,12,.1) 70%),
    linear-gradient(0deg, rgba(18,15,12,.95) 0%, rgba(18,15,12,0) 32%),
    linear-gradient(180deg, rgba(18,15,12,.55) 0%, rgba(18,15,12,0) 22%);
}
.hero__content { position: relative; z-index: 2; padding-top: 40px; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 7rem); line-height: .98; letter-spacing: -0.025em;
  margin: 26px 0 26px; text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; }
.hero__sub { color: rgba(247,241,232,.86); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 400px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 44px; }
.hero__actions .btn--link { color: rgba(247,241,232,.8); }

@keyframes dotFill { to { transform: scaleX(1); } }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { color: var(--text); font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.02em; }
.stat__num b { font-weight: 400; }
.stat__num small { font-family: var(--sans); font-size: .85rem; color: var(--gold); margin-left: 8px; letter-spacing: .06em; vertical-align: super; }
.stat__label { color: var(--muted); font-size: .86rem; }

/* ---------- Segments: carrossel 3D ---------- */
.segments { overflow: hidden; }
.seg-carousel__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.seg-tabs { display: flex; gap: clamp(22px, 4vw, 56px); min-width: 0; }
.seg-tabs__tab { position: relative; padding-bottom: 14px; font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1; color: var(--subtle); transition: color .5s var(--ease); white-space: nowrap; }
.seg-tabs__tab:hover, .seg-tabs__tab.is-active { color: var(--text); }
.seg-tabs__tab i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.seg-tabs__tab i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: left; }
.seg-tabs__tab.is-active i::after { animation: dotFill var(--seg-ms, 6500ms) linear forwards; }
.seg-carousel.is-paused .seg-tabs__tab.is-active i::after { animation-play-state: paused; }
.seg-carousel.is-static .seg-tabs__tab.is-active i::after { animation: none; transform: scaleX(1); }
.seg-tabs__tab:focus-visible, .seg-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.seg-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.seg-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text); transition: background .4s var(--ease), border-color .4s, color .4s, transform .4s var(--ease); }
.seg-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.seg-arrow:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.seg-arrow:active { transform: scale(.94); }

.seg-stage { position: relative; aspect-ratio: 16 / 8; max-width: 100%; perspective: 1800px; touch-action: pan-y; user-select: none; }
.seg-slide {
  --text: #F7F1E8; color: var(--text);
  position: absolute; top: 0; left: 12%; width: 76%; height: 100%;
  border-radius: 6px; overflow: hidden; background: var(--surface);
  box-shadow: 0 50px 100px -50px rgba(120, 60, 20, .55);
  transform-origin: center center; will-change: transform;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.seg-slide.is-active { z-index: 3; transform: none; opacity: 1; }
.seg-slide.is-prev { z-index: 2; transform: translateX(-64%) scale(.76) rotateY(16deg); opacity: .6; filter: saturate(.85); cursor: pointer; }
.seg-slide.is-next { z-index: 2; transform: translateX(64%) scale(.76) rotateY(-16deg); opacity: .6; filter: saturate(.85); cursor: pointer; }
.seg-slide:not(.is-active):hover { opacity: .8; }
.seg-slide__media { position: absolute; inset: 0; }
.seg-slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.8s var(--ease); pointer-events: none; }
.seg-slide.is-active .seg-slide__media img { transform: scale(1.02); }
.seg-slide::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(20deg, rgba(18,15,12,.82) 0%, rgba(18,15,12,.35) 34%, rgba(18,15,12,0) 60%); }
/* reflexo de sol atravessando a foto a cada troca */
.seg-slide::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 226, 170, .38) 50%, transparent 65%); }
.seg-slide.is-active::after { animation: glint 1.7s .25s var(--ease); }
@keyframes glint { to { transform: translateX(110%); } }
.seg-slide__body { position: absolute; left: 0; bottom: 0; z-index: 3; padding: clamp(24px, 4vw, 48px); max-width: 560px; }
.seg-slide__body > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.seg-slide.is-active .seg-slide__body > * { opacity: 1; transform: none; }
.seg-slide.is-active .seg-slide__body > :nth-child(1) { transition-delay: .35s; }
.seg-slide.is-active .seg-slide__body > :nth-child(2) { transition-delay: .43s; }
.seg-slide.is-active .seg-slide__body > :nth-child(3) { transition-delay: .51s; }
.seg-slide.is-active .seg-slide__body > :nth-child(4) { transition-delay: .59s; }
.seg-slide__tag { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #F8AE4E; }
.seg-slide h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1; margin: 12px 0 10px; }
.seg-slide p { color: rgba(247,241,232,.85); font-size: 1rem; margin-bottom: 26px; }
.seg-anchor { position: absolute; top: -120px; }

/* ---------- Em campo ---------- */
.field__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.field__main { position: relative; aspect-ratio: 4 / 4.9; max-width: 100%; overflow: hidden; border-radius: var(--radius); box-shadow: 0 40px 80px -50px rgba(120,60,20,.5); }
.field__main img, .field__pair img { width: 100%; height: 100%; object-fit: cover; }
.field__main img { transform: scale(1.1); }
.field__main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(248,174,78,.22), transparent 45%); mix-blend-mode: screen; pointer-events: none; }
.field__copy { min-width: 0; }
.field__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.field__facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--gold-2); }
.field__facts span { color: var(--muted); font-size: .9rem; }
.field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field__pair figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.field__pair img { transition: transform 1.2s var(--ease); }
.field__pair figure:hover img { transform: scale(1.06); }

/* ---------- Tech (pinned 3D) ---------- */
.tech { position: relative; height: 560vh; background: radial-gradient(ellipse at 72% 45%, #3a2414 0%, #1d140d 35%, var(--bg) 70%); }
.tech__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.tech__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tech__layout {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr; grid-template-rows: auto 1fr auto;
  padding-top: 130px; padding-bottom: 60px; pointer-events: none;
}
.tech__head { grid-column: 1; }
.tech__layers { grid-column: 1; grid-row: 2; align-self: center; display: grid; gap: 0; }
.tech__layer {
  display: flex; gap: 22px; padding: 12px 0; border-top: 1px solid var(--line);
  opacity: .32; transition: opacity .6s var(--ease);
}
.tech__layer:last-child { border-bottom: 1px solid var(--line); }
.tech__layer span { font-size: .74rem; letter-spacing: .18em; color: var(--gold); padding-top: 6px; }
.tech__layer h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.tech__layer p { color: var(--muted); font-size: .9rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .6s, margin .6s; }
.tech__layer.is-active { opacity: 1; }
.tech__layer.is-active p { max-height: 40px; opacity: 1; margin-top: 4px; }
.tech__progress { grid-column: 1; grid-row: 3; height: 1px; background: var(--line); position: relative; }
.tech__progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ---------- Method ---------- */
.method__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 56px; }
.method__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.method__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transform-origin: left; transform: scaleX(0); }
.step { position: relative; }
.step::before { content: ''; position: absolute; top: -61px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); transition: background .5s, box-shadow .5s; }
.step.is-lit::before { background: var(--gold); box-shadow: 0 0 22px var(--gold); }
.step__num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Simulator ---------- */
.sim.theme-light { background: radial-gradient(60% 70% at 85% 40%, rgba(248,174,78,.30), transparent 70%), linear-gradient(180deg, var(--paper) 0%, #FBEBDA 100%); }
.sim__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.sim__control { margin-top: 56px; }
.sim__control-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.sim__control-head label { color: var(--muted); font-size: .9rem; }
.sim__control-head output { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-2); }
.sim__ticks { display: flex; justify-content: space-between; color: var(--subtle); font-size: .76rem; margin-top: 14px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) var(--p, 10%), var(--line-strong) var(--p, 10%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-2); border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(236,122,44,.6); transition: transform .3s var(--ease); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold-2); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }

.sim__panel {
  position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line); transform-style: preserve-3d;
  box-shadow: 0 50px 100px -60px rgba(150,70,20,.5); transition: transform .6s var(--ease);
}
.theme-light .sim__panel { background: #FFFDF9; }
.sim__panel::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(236,122,44,.6), transparent 40%, transparent 70%, rgba(236,122,44,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.sim__label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.sim__big { display: block; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; margin-top: 12px; color: var(--text); }
.sim__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.sim__row strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-top: 6px; color: var(--gold-2); }
.sim__bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-bottom: 30px; }
.sim__bars i { flex: 1; background: linear-gradient(0deg, var(--gold-deep), var(--gold-2)); border-radius: 1px; transform-origin: bottom; transition: height .7s var(--ease); opacity: .85; }
.sim__note { font-size: .74rem; color: var(--subtle); margin-top: 16px; text-align: center; }

/* ---------- Gallery ---------- */
.gallery { overflow: hidden; cursor: grab; outline: none; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.gallery.is-dragging { cursor: grabbing; }
.gallery__track { display: flex; gap: 22px; width: max-content; will-change: transform; padding-right: var(--gutter); }
.gallery__item { position: relative; width: clamp(280px, 34vw, 520px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); flex-shrink: 0; box-shadow: 0 30px 60px -40px rgba(120,60,20,.45); }
.gallery__item:nth-child(even) { aspect-ratio: 4 / 3.6; margin-top: 70px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; transform: scale(1.15); }
.gallery__item figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.gallery__label { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--text); }
.gallery__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18,15,12,.8)); pointer-events: none; }

/* ---------- Perks ---------- */
.perks__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.perk {
  display: flex; align-items: center; gap: 22px; padding: 38px 8px; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; transition: padding .5s var(--ease);
}
.perk:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); padding-left: 32px; }
.perk::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,174,78,.22), transparent); transform: translateX(-100%); transition: transform .7s var(--ease); }
.perk:hover::before { transform: none; }
.perk svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.perk:hover svg { transform: rotateY(180deg); }
.perk h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; position: relative; }

/* ---------- Final CTA ---------- */
.final { position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.final__bg { position: absolute; inset: -10% 0; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) saturate(1.1); }
.final::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--sand) 0%, rgba(18,15,12,.2) 22%, rgba(18,15,12,.45) 70%, var(--bg) 100%), radial-gradient(50% 45% at 50% 55%, rgba(236,122,44,.25), transparent 70%); }
.final__inner { position: relative; z-index: 2; }
.final__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 7.4rem); line-height: .98; letter-spacing: -.02em; max-width: 12ch; margin: 0 auto; }
.final__sub { color: rgba(247,241,232,.85); margin-top: 24px; font-size: 1.1rem; }
.final__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 28px; font-size: .88rem; color: var(--muted); }
.footer__links a:hover, .footer small a:hover { color: var(--gold-2); }
.footer small { color: var(--subtle); font-size: .76rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 20px;
  background: rgba(29,24,19,.45); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card { position: relative; width: 100%; max-width: 620px; max-height: calc(100svh - 40px); overflow-y: auto;
  padding: clamp(28px, 5vw, 52px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 60px 120px -40px rgba(60,30,10,.5); border-radius: var(--radius);
  transform: translateY(30px) scale(.98); transition: transform .6s var(--ease); }
.modal.is-open .modal__card { transform: none; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .5s var(--ease), border-color .3s; }
.modal__close:hover { transform: rotate(90deg); border-color: var(--gold); }
.modal__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; margin: 16px 0 32px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form__field { display: flex; flex-direction: column; gap: 10px; }
.form__field--full { grid-column: 1 / -1; }
.form__field label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); display: flex; justify-content: space-between; }
.form__field label output { color: var(--gold-2); font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0; text-transform: none; }
.form__field input:not([type="range"]), .form__field select {
  height: 50px; padding: 0 2px; background: transparent; color: var(--text); font: inherit; font-size: 1rem;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; outline: none; transition: border-color .3s;
}
.form__field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EC7A2C' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px; cursor: pointer; }
.form__field select option { background: var(--bg-2); }
.form__field input:focus, .form__field select:focus { border-color: var(--gold); }
.form__field input::placeholder { color: var(--subtle); }
.form__hint { font-size: .82rem; color: var(--muted); }
.form__hint strong { color: var(--gold-2); font-weight: 500; }
.form__submit { grid-column: 1 / -1; margin-top: 10px; }
.form__legal { grid-column: 1 / -1; text-align: center; font-size: .74rem; color: var(--subtle); }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 14px 40px -12px rgba(236,122,44,.6);
  transition: transform .5s var(--ease); }
.wa:hover { transform: scale(1.08) rotate(-6deg); }
.wa svg { width: 26px; height: 26px; }

/* ---------- Initial states for JS animations ---------- */
.js .hero__title .line > span { transform: translateY(105%); }
.js .reveal-line { opacity: 0; transform: translateY(18px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__link { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); }
  .nav__cta-mobile { display: inline-flex; margin-top: 20px; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .sim__grid { grid-template-columns: 1fr; }
  .field__grid { grid-template-columns: 1fr; }
  .field__main { aspect-ratio: 4 / 3.4; }
}

@media (max-width: 760px) {
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 18px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .seg-carousel__bar { margin-bottom: 24px; }
  .seg-tabs { gap: 18px; }
  .seg-tabs__tab { font-size: 1.15rem; padding-bottom: 10px; }
  .seg-arrows { display: none; }
  .seg-stage { aspect-ratio: 4 / 5; }
  .seg-slide { left: 5%; width: 90%; }
  .seg-slide.is-prev { transform: translateX(-100%) scale(.88) rotateY(10deg); }
  .seg-slide.is-next { transform: translateX(100%) scale(.88) rotateY(-10deg); }
  .seg-slide::before { background: linear-gradient(0deg, rgba(18,15,12,.88) 0%, rgba(18,15,12,.3) 50%, rgba(18,15,12,0) 75%); }
  .hero__content { align-self: flex-end; padding-bottom: 110px; }
  .hero__title { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .hero__title .line { white-space: normal; }
  .hero__veil { background: linear-gradient(0deg, rgba(18,15,12,.97) 8%, rgba(18,15,12,.55) 55%, rgba(18,15,12,.35) 100%); }
  .field__facts { grid-template-columns: 1fr; gap: 16px; }
  .gallery__item figcaption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tech { height: 480vh; }
  .tech__layout { grid-template-columns: 1fr; padding-top: 100px; grid-template-rows: auto 1fr auto auto; }
  .tech__layers { grid-row: 3; align-self: end; }
  .tech__layer { padding: 12px 0; }
  .tech__layer:not(.is-active) { display: none; }
  .tech__layer h3 { font-size: 1.5rem; }
  .tech__progress { grid-row: 4; margin-top: 16px; }
  .method__track { grid-template-columns: 1fr; gap: 44px; padding-top: 0; padding-left: 36px; }
  .method__line { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .method__line i { transform-origin: top; transform: scaleY(0); }
  .step::before { top: 8px; left: -36px; }
  .sim__row { grid-template-columns: 1fr 1fr; }
  .sim__row div:last-child { grid-column: 1 / -1; }
  .gallery__item:nth-child(even) { margin-top: 40px; }
  .perks__grid { grid-template-columns: 1fr; }
  .perk:not(:nth-child(3n+1)) { border-left: 0; padding-left: 8px; }
  .form { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .hero__title .line > span, .js .reveal-line { transform: none; opacity: 1; }
}
