/* ==========================================================================
   Dr. Vinícius Januário — site público
   Conceito "Linha da vida": navy tonal, uma linha dourada contínua,
   serifa editorial oversized, grain de filme. Mobile-first.
   Cores e fontes vêm de :root (injetado pelo template a partir do painel).
   ========================================================================== */

:root {
  --navy: #101D40;
  --navy-deep: #0A1330;
  --navy-surface: #182A58;
  --gold: #C9A24A;
  --gold-2: #E7D29A;
  --ink: #F3EEE2;
  --ink-2: color-mix(in srgb, var(--ink) 72%, var(--navy));
  --ink-3: color-mix(in srgb, var(--ink) 58%, var(--navy));
  --gold-dim: color-mix(in srgb, var(--gold) 28%, transparent);
  --line: color-mix(in srgb, var(--gold-2) 16%, transparent);
  --wa: #25D366;
  --wa-ink: #042b14;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --gutter: clamp(18px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

/* ---------- fontes (self-hosted) ---------- */
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/instrumentserif-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/instrumentserif-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/instrumentserif-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/instrumentserif-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:300 800;font-display:swap;src:url(/fonts/manrope-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:300 800;font-display:swap;src:url(/fonts/manrope-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ---------- lenis ---------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
em { font-style: italic; color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy-deep); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; padding-block: clamp(80px, 11vw, 150px); }

.display { font-size: clamp(2.5rem, 5.6vw, 5rem); }
.display-2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.lead { color: var(--ink-2); font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 60ch; }
.eyebrow {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  font-weight: 600; display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); flex: none; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .eyebrow { margin-bottom: 0; }
.law {
  display: inline-block; margin-top: 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); padding: 6px 12px; border-radius: 2px; font-weight: 600;
}
.bullets { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; font-size: .97rem; }
.bullets li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 10px; background: var(--gold); transform: rotate(45deg); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border: 1px solid var(--gold);
  color: var(--gold-2); text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 2px; background: transparent; cursor: pointer; position: relative;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--gold); color: #1a1405; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); background: transparent; color: var(--gold-2); }
.btn-ghost svg { transition: transform .3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 30px -12px rgba(37, 211, 102, .55); }
.btn-wa:hover { background: #2ee676; border-color: #2ee676; color: var(--wa-ink); }
.btn-sm { padding: 11px 18px; font-size: .76rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 90; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 300px 300px;
  mix-blend-mode: overlay;
}
html[data-motion="full"] .grain.animate { animation: grain 1.2s steps(6) infinite; }
@media (hover: none) { .grain { mix-blend-mode: normal; opacity: .035; } }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--navy-deep); display: grid; place-items: center;
}
.intro .mono { width: clamp(90px, 18vw, 150px); color: var(--gold); fill: transparent; stroke: var(--gold); stroke-width: 6; }
html:not(.js) .intro { display: none; }
@media (hover: none), (max-width: 1023px) { .intro { display: none; } }

/* ---------- linha da vida ---------- */
.lifeline { position: fixed; top: 0; bottom: 0; left: max(10px, calc((100vw - var(--maxw)) / 2 - 40px)); width: 2px; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .8s; }
.lifeline.on { opacity: 1; }
.lifeline svg { width: 2px; height: 100%; overflow: visible; }
.lifeline-bg { stroke: var(--line); stroke-width: 2; }
.lifeline-fg { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px var(--gold-dim)); }
@media (max-width: 760px) { .lifeline { left: 8px; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--navy-deep) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.nav.hide { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.mono { display: block; fill: currentColor; }
.brand-mark { width: 30px; height: 33px; color: var(--gold); flex: none; }
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-text b { font-family: var(--display); font-weight: 400; font-size: 1.12rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.nav-links ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .82rem; letter-spacing: .06em; color: var(--ink-2); transition: color .2s; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { padding: 10px var(--gutter) 24px; border-top: 1px solid var(--line); background: var(--navy-deep); }
.mobile-nav ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; }
.mobile-nav a:not(.btn) { display: block; padding: 14px 0; text-decoration: none; font-family: var(--display); font-size: 1.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) {
  .nav-links, .nav .btn-wa { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 8vw, 110px) clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.rays { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2s; mix-blend-mode: screen; }
.rays.on { opacity: 1; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 560px at 78% 8%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%),
    radial-gradient(700px 500px at 8% 95%, color-mix(in srgb, var(--navy-surface) 90%, transparent), transparent 65%);
}
.hero-grid { position: relative; display: grid; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hero h1 { margin-top: 10px; }
.hero .lead { margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px 40px; margin: 48px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; gap: 4px; }
.hero-stats dt { font-family: var(--display); font-size: 1.45rem; color: var(--gold-2); letter-spacing: .02em; }
.hero-stats dd { margin: 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--navy-surface) 60%, transparent), transparent); overflow: hidden; }
.portrait-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to right, transparent 54%, color-mix(in srgb, var(--navy-deep) 50%, transparent) 72%, color-mix(in srgb, var(--navy-deep) 95%, transparent) 92%), linear-gradient(to bottom, transparent 58%, var(--navy-deep) 100%); }
.portrait-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-dim); pointer-events: none; z-index: 2; }
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: 30% 12%; filter: saturate(.92) contrast(1.04); transform: scale(1.1); transform-origin: 32% 22%; }
.portrait-mono { width: 52%; margin: 18% auto; color: var(--gold); }
.portrait-badge { position: absolute; z-index: 2; left: 24px; bottom: 22px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.clock {
  position: absolute; z-index: 3; right: -14px; bottom: 34px; background: var(--navy-deep); border: 1px solid var(--gold-dim); padding: 14px 18px;
  display: grid; gap: 2px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}
.clock-time { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.clock-label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px; display: none; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--gold); border-radius: 2px; animation: hint 1.8s infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr .85fr; }
  .scroll-hint { display: block; }
}
@media (max-width: 899px) {
  .hero-visual { width: min(78%, 340px); margin-top: 8px; }
  .clock { right: -8px; bottom: 18px; padding: 10px 14px; }
  .clock-time { font-size: 1.7rem; }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--navy); overflow: hidden; padding-block: 14px; }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: ticker 60s linear infinite; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ticker-track span::before { content: "◆"; color: var(--gold); margin-right: 56px; font-size: .55rem; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
html[data-motion="off"] .ticker-track { animation: none; }

/* ---------- capítulos ---------- */
.chapter { background: var(--navy-deep); }
.chapter:nth-of-type(even) { background: var(--navy); }
.chapter-head { position: relative; display: grid; gap: 18px; margin-bottom: clamp(48px, 7vw, 96px); padding-left: clamp(0px, 4vw, 40px); }
.chapter-num {
  font-family: var(--display); font-size: clamp(6rem, 18vw, 15rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim); position: absolute; left: -.06em; top: -.35em; z-index: 0; pointer-events: none; user-select: none;
}
.chapter-head > div { position: relative; z-index: 1; }
.chapter-name { display: none; }
@media (max-width: 760px) { .chapter-num { top: -.62em; } }
@media (min-width: 1100px) {
  .chapter-name {
    display: block; position: absolute; right: -10px; top: 0; writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
  }
}

/* estações (linha local) */
.line-stage { display: grid; gap: clamp(32px, 5vw, 64px); margin-bottom: clamp(56px, 8vw, 110px); }
.stations { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: clamp(26px, 4vw, 40px); }
.stations::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.station { position: relative; }
.station .station-label, .station-body h3, .station-body p { transition: color .6s var(--ease); }
.station:not(.active):not(.passed) .station-label { color: var(--ink-3); }
.station:not(.active):not(.passed) .station-body h3 { color: var(--ink-2); }
.station-dot { position: absolute; left: -34px; top: 10px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--gold-dim); background: var(--navy-deep); transition: all .5s var(--ease); }
.station-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .5s var(--ease); }
.station.active .station-dot { border-color: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 14%, transparent), 0 0 24px var(--gold-dim); }
.station.active .station-dot::after, .station.passed .station-dot::after { transform: scale(1); }
.station-label { display: inline-block; font-family: var(--display); font-size: 1.6rem; color: var(--gold-2); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.station-body h3 { font-size: 1.45rem; }
.station-body p { color: var(--ink-2); margin-top: 12px; max-width: 56ch; font-size: .98rem; }
.station-body .law { margin-top: 10px; }

/* jornada: relógio */
.dial { position: relative; width: min(100%, 320px); margin: 0 auto; aspect-ratio: 1; }
.dial-svg { width: 100%; height: 100%; }
.dial-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.dial-progress { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 578; stroke-dashoffset: 578; transform: rotate(-90deg); transform-origin: 50% 50%; filter: drop-shadow(0 0 6px var(--gold-dim)); }
.dial-tick { stroke: var(--gold-dim); stroke-width: 1; }
.dial-hand { stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; transform-origin: 100px 100px; transform: rotate(210deg); transition: transform .9s var(--ease); }
.dial-center { fill: var(--gold); }
.dial-time { position: absolute; inset: 0; display: grid; place-items: center; }
.dial-time span { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold-2); font-variant-numeric: tabular-nums; margin-top: 56%; }

/* anos: linha de contribuições */
.years { display: grid; gap: 12px; align-content: start; padding-top: 10px; }
.years-track { display: grid; grid-template-columns: repeat(36, 1fr); gap: 3px; height: 72px; align-items: end; }
.yr { display: block; height: 100%; background: var(--line); transform: scaleY(.35); transform-origin: bottom; transition: transform .6s var(--ease), background .6s; transition-delay: calc(var(--i) * 25ms); }
.yr.gap { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.years.on .yr { transform: scaleY(1); background: color-mix(in srgb, var(--gold-2) 70%, var(--navy)); }
.years.on .yr.gap { background: transparent; outline: 1px dashed var(--gold); outline-offset: -1px; transform: scaleY(.5); }
.years-caption { display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.years-caption .gap-label { color: var(--gold); }

/* família: árvore */
.tree { width: min(100%, 320px); margin: 0 auto; }
.tree-svg { width: 100%; height: auto; overflow: visible; }
.tree-path { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.tree-node { fill: var(--navy-deep); stroke: var(--gold); stroke-width: 1.5; }
html.js .tree:not(.on) .tree-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .tree:not(.on) .tree-node { transform: scale(0); transform-origin: center; transform-box: fill-box; }
html.js .tree.on .tree-path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
html.js .tree.on .tree-node { transform: scale(1); transform-origin: center; transform-box: fill-box; transition: transform .5s cubic-bezier(.3,1.6,.5,1) .6s; }
html.js .tree.on .tree-path:nth-child(2) { transition-delay: .15s; } html.js .tree.on .tree-path:nth-child(3) { transition-delay: .3s; } html.js .tree.on .tree-path:nth-child(4) { transition-delay: .45s; }

@media (min-width: 900px) {
  .line-stage { grid-template-columns: 320px 1fr; align-items: start; }
  .line-stage > .dial, .line-stage > .years, .line-stage > .tree { position: sticky; top: calc(var(--nav-h) + 40px); }
  .stations { padding-left: 48px; }
  .station-dot { left: -48px; }
}

/* serviços (abas) */
.services { display: grid; gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(56px, 8vw, 110px); }
.services-list { display: flex; overflow-x: auto; gap: 2px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.services-list::-webkit-scrollbar { display: none; }
.service-tab {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink-2); font-family: var(--display);
  font-size: 1.05rem; position: relative; flex: none; transition: color .2s, background .2s; white-space: nowrap;
}
.service-tab .n { font-family: var(--body); font-size: .66rem; letter-spacing: .16em; color: var(--ink-3); }
.service-tab svg { display: none; }
.service-tab::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; transition: background .2s; }
.service-tab:hover { color: var(--ink); }
.service-tab[aria-selected="true"] { color: var(--gold-2); }
.service-tab[aria-selected="true"]::before { background: var(--gold); }
.service-panel { padding: clamp(26px, 3.5vw, 46px); border: 1px solid var(--line); background: linear-gradient(170deg, color-mix(in srgb, var(--navy-surface) 55%, transparent), transparent); }
.service-panel.on { animation: fade .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.service-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.service-panel p { margin-top: 18px; color: var(--ink-2); max-width: 64ch; }
.panel-foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.panel-foot span { color: var(--ink-3); font-size: .9rem; }
.panel-foot a { color: var(--gold-2); text-decoration: none; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.panel-foot a svg { width: 18px; height: 18px; transition: transform .25s; }
.panel-foot a:hover svg { transform: translateX(4px); }
@media (min-width: 900px) {
  .services { grid-template-columns: 300px 1fr; align-items: start; }
  .services-list { flex-direction: column; overflow: visible; border-bottom: 0; border-left: 1px solid var(--line); gap: 2px; position: sticky; top: calc(var(--nav-h) + 40px); }
  .service-tab { white-space: normal; justify-content: space-between; padding: 16px 20px; font-size: 1.25rem; }
  .service-tab .t { flex: 1; }
  .service-tab svg { display: block; width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: all .25s var(--ease); }
  .service-tab[aria-selected="true"] svg { opacity: 1; transform: none; color: var(--gold); }
  .service-tab::before { left: -1px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .service-tab[aria-selected="true"] { background: color-mix(in srgb, var(--gold) 6%, transparent); }
}

/* triagem */
.triage { display: grid; gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); background: color-mix(in srgb, var(--navy-surface) 35%, transparent); position: relative; overflow: hidden; }
.triage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 100% 100%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 60%); pointer-events: none; }
.triage > * { position: relative; }
.triage-copy .lead { margin-top: 16px; }
.note { margin-top: 24px; padding: 16px 18px; border-left: 2px solid var(--gold); color: var(--ink-2); font-size: .9rem; background: color-mix(in srgb, var(--gold) 5%, transparent); }
.triage-form { display: grid; gap: 10px; }
.q { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); background: var(--navy-deep); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; user-select: none; position: relative; }
.q:hover { border-color: var(--gold-dim); }
.q input { position: absolute; opacity: 0; pointer-events: none; }
.q .box { flex: none; width: 22px; height: 22px; border: 1px solid var(--ink-3); border-radius: 2px; display: grid; place-items: center; transition: all .2s; color: #1a1405; }
.q .box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: all .2s; }
.q:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--navy-deep)); }
.q:has(input:checked) .box { background: var(--gold); border-color: var(--gold); }
.q:has(input:checked) .box svg { opacity: 1; transform: none; }
.q:has(input:focus-visible) { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.q-text { font-size: .97rem; }
.triage-result { margin-top: 14px; padding: 26px 28px; border: 1px solid var(--gold-dim); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 12%, transparent), color-mix(in srgb, var(--gold) 3%, transparent)); display: grid; gap: 14px; animation: fade .4s var(--ease) both; }
.score { display: flex; align-items: baseline; gap: 14px; }
.score b { font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--gold-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.score span { color: var(--ink-2); font-size: .95rem; }
.bar { height: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .6s var(--ease); }
.triage-result p { color: var(--ink-2); font-size: .98rem; }
.triage-result .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 900px) { .triage { grid-template-columns: .9fr 1.1fr; align-items: start; } .triage-copy { position: sticky; top: calc(var(--nav-h) + 40px); } }

/* ---------- situações ilustrativas ---------- */
.examples { background: var(--navy); border-block: 1px solid var(--line); }
.cards-scroll { display: grid; gap: 18px; }
.ex-card { position: relative; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--navy-deep); display: grid; gap: 12px; align-content: start; transform-style: preserve-3d; transition: border-color .3s; }
.ex-card:hover { border-color: var(--gold-dim); }
.ex-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--gold) 10%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ex-card:hover::after { opacity: 1; }
.ex-area { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ex-card h3 { font-size: 1.6rem; }
.ex-card p { color: var(--ink-2); font-size: .97rem; }
.ex-card .bullets { margin-top: 8px; }
.ex-disclaimer { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 760px) { .cards-scroll { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

/* ---------- como funciona ---------- */
.process-grid { display: grid; gap: clamp(32px, 6vw, 90px); }
.process-counter { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border: 1px solid var(--line); background: var(--line); }
.step { background: var(--navy-deep); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; transition: background .3s; position: relative; }
.step.active { background: var(--navy); }
.step .k { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.5rem; }
.step p { color: var(--ink-2); font-size: .96rem; max-width: 52ch; }
@media (min-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .process-sticky { position: sticky; top: calc(var(--nav-h) + 48px); }
  .process-counter { display: flex; align-items: baseline; gap: 14px; margin-top: 40px; font-family: var(--display); color: var(--gold); }
  .process-counter span { font-size: 6rem; line-height: 1; }
  .process-counter small { font-family: var(--body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
  .steps { gap: 0; background: transparent; border: 0; }
  .step { border-top: 1px solid var(--line); padding-left: 0; padding-right: 0; grid-template-columns: 80px 1fr; column-gap: 24px; }
  .step .k { grid-row: span 2; }
  .step.active .k { color: var(--gold-2); }
}

/* ---------- prazos ---------- */
.deadlines { background: var(--navy); border-block: 1px solid var(--line); }
.deadlines-grid { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
.rings { display: flex; gap: clamp(20px, 4vw, 40px); justify-content: center; flex-wrap: wrap; }
.ring { position: relative; width: clamp(150px, 20vw, 210px); display: grid; place-items: center; text-align: center; }
.ring svg { width: 100%; height: auto; grid-area: 1 / 1; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 1; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring b { grid-area: 1 / 1; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 6vw, 4.6rem); color: var(--gold-2); line-height: 1; margin-top: -14px; }
.ring small { position: absolute; bottom: 14%; left: 14%; right: 14%; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); line-height: 1.4; }
@media (min-width: 900px) { .deadlines-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- em números ---------- */
.num-grid { display: grid; gap: 2px; border: 1px solid var(--line); background: var(--line); }
.num { background: var(--navy-deep); padding: clamp(22px, 3vw, 36px); display: grid; gap: 10px; align-content: start; }
.num b { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 3.8rem); color: var(--gold-2); line-height: 1; }
.num p { color: var(--ink-2); font-size: .94rem; }
.num small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.num small a { color: var(--gold); text-decoration: none; }
@media (min-width: 640px) { .num-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .num-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sobre ---------- */
.about { background: var(--navy); }
.about-grid { display: grid; gap: clamp(32px, 6vw, 90px); align-items: center; }
.plate { position: relative; aspect-ratio: 4 / 5; max-width: 460px; border: 1px solid var(--line); overflow: hidden; background: var(--navy-deep); }
html.js .plate.clip { clip-path: inset(0 100% 0 0); }
html.js .plate.clip.revealed { clip-path: inset(0 0% 0 0); transition: clip-path 1.4s cubic-bezier(.7,0,.2,1); }
.plate::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold-dim); pointer-events: none; }
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 42%; filter: saturate(.9); transform: scale(1.06); transition: transform 1.2s var(--ease); }
.plate:hover img { transform: scale(1); }
.plate-mono { width: 52%; margin: 24% auto; color: var(--gold); }
.plate .tag { position: absolute; left: 28px; bottom: 26px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.about-text { display: grid; gap: 16px; margin-top: 22px; color: var(--ink-2); max-width: 58ch; }
.values { margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.values div { border-top: 1px solid var(--line); padding-top: 14px; }
.values dt { font-family: var(--display); font-size: 1.3rem; }
.values dd { margin: 4px 0 0; font-size: .9rem; color: var(--ink-3); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.2fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-list { display: grid; border-top: 1px solid var(--line); max-width: 880px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-family: var(--display); font-size: 1.35rem; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--gold-2); }
summary .pl { flex: none; width: 28px; height: 28px; border: 1px solid var(--gold-dim); border-radius: 50%; position: relative; transition: transform .3s var(--ease); }
summary .pl::before, summary .pl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: var(--gold); transform: translate(-50%, -50%); }
summary .pl::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] summary .pl { transform: rotate(45deg); }
details[open] summary { color: var(--gold-2); }
details .a { padding: 0 4px 26px; color: var(--ink-2); max-width: 66ch; animation: fade .35s var(--ease) both; display: grid; gap: 12px; }

/* ---------- contato ---------- */
.contact { background: var(--navy); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: clamp(32px, 6vw, 80px); }
.social { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .84rem; letter-spacing: .06em; transition: all .2s; }
.social a:hover { border-color: var(--gold); color: var(--gold-2); }
.social svg { width: 18px; height: 18px; }
.cards { display: grid; gap: 2px; border: 1px solid var(--line); background: var(--line); }
.card { background: var(--navy-deep); padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; min-width: 0; }
.card small { grid-column: 1 / -1; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.card .v { font-size: 1.02rem; word-break: break-word; font-variant-numeric: tabular-nums; }
.card .v a { text-decoration: none; }
.card .v a:hover { color: var(--gold-2); }
.copy { all: unset; cursor: pointer; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dim); padding: 7px 12px; transition: all .2s; white-space: nowrap; }
.copy:hover, .copy.ok { background: var(--gold); color: #1a1405; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.footer { padding-block: 40px; border-top: 1px solid var(--line); background: var(--navy-deep); }
.footer .wrap { display: grid; gap: 18px; font-size: .82rem; color: var(--ink-3); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 30px; color: var(--gold); }
.footer-brand div { display: grid; }
.footer-brand b { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-admin { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.footer-admin::before { content: ""; width: 9px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 0 -5px 0 -2.5px var(--navy-deep), 0 -6px 0 -1px currentColor; }
.footer-admin:hover { border-color: var(--gold); color: var(--gold-2); }
@media (min-width: 900px) { .footer-admin { grid-column: 1 / -1; } }
@media (min-width: 900px) { .footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; } .footer-note { text-align: right; } }

/* ---------- flutuantes ---------- */
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 95; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); transition: transform .25s; color: var(--wa-ink); }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 30px; height: 30px; fill: currentColor; }
.fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.preview-badge { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 96; background: var(--gold); color: #1a1405; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 8px 14px; }

/* ---------- animação / reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); }
html.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-split]:not(.in):not(.split) { opacity: 0; transform: translateY(18px); }
html.js [data-split].in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-split] .line { overflow: hidden; display: block; }
html.js [data-split] .line > div { display: block; }
.split-mask { overflow: hidden; }
html[data-motion="off"] [data-reveal], html[data-motion="off"] [data-split] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track, .fab::after, .scroll-hint span, .grain { animation: none !important; }
  .rays { display: none; }
}
