/* Grupo R Silva — v3 · paleta alinhada à logo (azul aço + grafite) */
:root {
  --ink: #030d18;
  --navy-950: #041222;
  --navy-900: #061726;
  --navy-800: #0b2f55;
  --navy-700: #12406f;
  --brand-blue: #426986;
  --graphite: #393e41;
  --accent: #3f8fd6;
  --accent-soft: #8cc2f0;
  --accent-deep: #2f6a9e;
  --ivory: #f3f1ea;
  --ivory-2: #e9e5da;
  --mist: #88b9cb;
  --text: #dfe5ec;
  --muted: rgba(223, 229, 236, 0.64);
  --line: rgba(243, 241, 234, 0.14);
  --line-dark: rgba(6, 23, 38, 0.14);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1360px;
  --header-h: 84px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; color: var(--text); background: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body.is-loading { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--accent); color: var(--ink); font-weight: 700; border-radius: 999px; transition: top .3s; }
.skip-link:focus { top: 16px; }
.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--accent-soft); }

/* Marca */
.mark-letters { fill: currentColor; }
.mark-block { fill: var(--mark-block, var(--brand-blue)); }

/* Rótulos */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); }
.eyebrow--dark { color: var(--accent-deep); }
.eyebrow-line { width: 36px; height: 1px; background: currentColor; }

/* Botões */
.btn { --bg: transparent; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em; border: 1px solid transparent; background: var(--bg); cursor: pointer; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ivory); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover svg { transform: translateX(4px); }
.btn--accent { --bg: linear-gradient(135deg, #4a98dc, #2f6fa8 55%, #1f4f7d); color: var(--ivory); box-shadow: 0 10px 40px -12px rgba(63, 143, 214, .7); }
.btn--accent:hover { color: var(--ink); }
.btn--ghost { border-color: rgba(243, 241, 234, .35); color: var(--ivory); backdrop-filter: blur(8px); background: rgba(3, 13, 24, .2); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ivory); }
.btn--pill { min-height: 46px; padding: 0 20px; font-size: 14px; border-color: var(--line); color: var(--ivory); background: rgba(3, 13, 24, .25); backdrop-filter: blur(10px); }
.btn--pill::before { background: var(--accent); }
.btn--pill:hover { color: var(--ink); border-color: var(--accent); }
.btn--pill:hover svg { transform: translate(2px, -2px); }
.btn--block { width: 100%; }
.rot { transform: rotate(-45deg); }
.btn:hover .rot { transform: rotate(-45deg) translateX(3px); }

/* Carregamento */
.loader { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; pointer-events: none; }
.loader-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.loader-panel--top { top: 0; }
.loader-panel--bottom { bottom: 0; }
.loader-inner { position: relative; width: min(320px, 70vw); color: var(--ivory); }
.loader-logo { position: relative; }
.loader-logo svg { width: 100%; height: auto; }
.loader-ghost { opacity: .12; }
.loader-fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.loader-meta { display: flex; justify-content: space-between; margin-top: 28px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.loader-count b { font-weight: 600; color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.loader-bar { display: block; height: 1px; margin-top: 12px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.is-ready .loader { visibility: hidden; transition: visibility 0s 1.4s; }
.no-js .loader { display: none; }

/* Cursor */
.cursor { position: fixed; inset: 0; z-index: 140; pointer-events: none; display: none; opacity: 0; transition: opacity .3s; }
.cursor.is-active { opacity: 1; }
.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(140, 194, 240, .5); display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s; }
.cursor-ring em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(63, 143, 214, .08); }
.cursor.is-label .cursor-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor-ring em { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }

/* Granulado */
.grain { position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: .06; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* Cabeçalho */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 32px; height: var(--header-h); padding: 0 var(--gutter); transition: transform .6s var(--ease), background .5s, height .5s var(--ease); }
.header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3, 13, 24, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .5s; }
.header.is-scrolled { --header-h: 70px; }
.header.is-scrolled::after { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header-brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); flex-shrink: 0; }
.header-brand svg { width: 116px; height: auto; transition: transform .6s var(--ease); }
.header-brand span { font-size: 10px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.header-brand:hover svg { transform: scale(1.04); }
.header-nav { display: flex; gap: 6px; margin: 0 auto; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(3, 13, 24, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-nav a { position: relative; padding: 9px 16px; font-size: 14px; font-weight: 500; color: rgba(243, 241, 234, .78); border-radius: 999px; transition: color .3s, background .3s; }
.header-nav a:hover { color: var(--ivory); background: rgba(243, 241, 234, .06); }
.header-nav a.is-active { color: var(--ink); background: var(--ivory); }
.header-burger { display: none; width: 48px; height: 48px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: rgba(3, 13, 24, .3); backdrop-filter: blur(10px); cursor: pointer; position: relative; }
.header-burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ivory); transition: transform .5s var(--ease); }
.header-burger span:first-child { top: 19px; }
.header-burger span:last-child { top: 27px; }
.menu-open .header-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .header-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 32px) var(--gutter) 32px; background: radial-gradient(120% 80% at 100% 0%, var(--navy-800), var(--ink) 60%); clip-path: circle(0 at calc(100% - 44px) 42px); transition: clip-path .8s var(--ease); }
.menu:not([hidden]) { display: flex; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 42px); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font-size: clamp(34px, 9vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--ivory); border-bottom: 1px solid var(--line); }
.menu nav a small { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.menu-foot { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.menu-foot a { color: var(--accent-soft); }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-dim { position: absolute; inset: 0; background: var(--ink); opacity: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(1.05) contrast(1.05); }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(3, 13, 24, .92) 0%, rgba(3, 13, 24, .7) 30%, rgba(3, 13, 24, .25) 52%, rgba(3, 13, 24, 0) 70%),
  linear-gradient(0deg, rgba(3, 13, 24, .95) 0%, rgba(3, 13, 24, .2) 38%, rgba(3, 13, 24, 0) 60%),
  linear-gradient(180deg, rgba(3, 13, 24, .6) 0%, rgba(3, 13, 24, 0) 22%); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: calc(var(--header-h) + 24px) var(--gutter) clamp(96px, 14vh, 140px); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.hero-eyebrow { margin-bottom: clamp(20px, 3vh, 32px); }
.hero-title { font-size: clamp(56px, 11.2vw, 196px); font-weight: 700; line-height: .88; letter-spacing: -.055em; color: var(--ivory); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line-inner { display: block; }
.hero-title .serif { font-size: 1.08em; letter-spacing: -.035em; background: linear-gradient(100deg, #cfe6fb 10%, var(--accent-soft) 40%, #ffffff 58%, var(--accent) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(28px, 4.5vh, 48px); }
.hero-lead { max-width: 440px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: rgba(243, 241, 234, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-rail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-scroll { display: flex; align-items: center; gap: 12px; }
.hero-scroll i { position: relative; width: 1px; height: 28px; background: var(--line); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: scrolldrop 2s var(--ease) infinite; }
@keyframes scrolldrop { to { top: 100%; } }
.hero-modes { display: flex; gap: 14px; }
.hero-modes svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-soft); stroke-width: 1.6; }

/* Faixa */
.marquee { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 38px) 0; background: var(--ink); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: clamp(32px, 5vw, 78px); font-weight: 600; letter-spacing: -.04em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 234, .35); }
.marquee-track .serif { color: var(--accent-soft); -webkit-text-stroke: 0; font-size: clamp(36px, 5.5vw, 86px); }
.marquee-track svg { width: clamp(18px, 2vw, 28px); height: auto; fill: var(--accent); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Seções */
.section-head { margin-bottom: clamp(40px, 6vw, 88px); }
.section-head--split { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px; }
.section-head h2, .connections h2, .contact h2 { margin-top: 22px; font-size: clamp(38px, 5.4vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--ivory); }
.section-head .serif, .connections h2 .serif, .contact h2 .serif { font-size: 1.1em; }
.section-lead { max-width: 460px; font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); }

/* O Grupo */
.about { position: relative; padding: clamp(96px, 13vw, 200px) 0 clamp(80px, 9vw, 140px); background: var(--ivory); color: var(--graphite); border-radius: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) 0 0; margin-top: -1px; }
.about .section-head { margin-bottom: 32px; }
.about-statement { max-width: 1200px; font-size: clamp(28px, 3.9vw, 62px); font-weight: 500; line-height: 1.14; letter-spacing: -.035em; color: var(--graphite); }
.about-statement em { font-family: var(--serif); font-weight: 400; font-size: 1.08em; color: var(--accent-deep); }
.about-statement .word { display: inline-block; opacity: .14; transition: none; }
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; margin-top: clamp(64px, 9vw, 140px); }
.about-figure { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; border-radius: var(--radius); background: var(--navy-900); }
.about-figure img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.about-figure figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory); }
.pillars { display: flex; flex-direction: column; }
.pillars li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line-dark); }
.pillars li:last-child { border-bottom: 1px solid var(--line-dark); }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--accent-deep); }
.pillars h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; }
.pillars p { color: rgba(6, 23, 38, .66); max-width: 420px; }

/* Jornada */
.journey { position: relative; background: var(--ink); }
.journey-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.journey-head { position: absolute; top: calc(var(--header-h) + 12px); left: var(--gutter); z-index: 5; pointer-events: none; }
.journey-head h2 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.03em; color: var(--ivory); }
.journey-track { display: flex; height: 100%; width: 300%; will-change: transform; }
.chapter { position: relative; flex: 0 0 calc(100% / 3); height: 100%; overflow: hidden; }
.chapter-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.chapter-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 13, 24, .82) 0%, rgba(3, 13, 24, .35) 45%, rgba(3, 13, 24, 0) 70%), linear-gradient(0deg, rgba(3, 13, 24, .85) 0%, rgba(3, 13, 24, 0) 45%); }
.chapter-body { position: absolute; left: var(--gutter); bottom: clamp(110px, 16vh, 170px); max-width: 560px; z-index: 2; }
.chapter-num { position: absolute; left: -.04em; bottom: 100%; font-size: clamp(120px, 20vw, 320px); font-weight: 700; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2.5px rgba(140, 194, 240, .75); paint-order: stroke fill; margin-bottom: 8px; }
.chapter-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 18px; }
.chapter-kicker svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.chapter h3 { font-size: clamp(36px, 4.6vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--ivory); margin-bottom: 20px; }
.chapter-body > p:last-child { font-size: clamp(16px, 1.2vw, 18px); color: rgba(243, 241, 234, .78); max-width: 440px; }
.journey-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.journey-progress span { padding-bottom: 12px; }
.journey-bar { grid-column: 1 / -1; display: block; height: 1px; background: var(--line); }
.journey-bar b { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Soluções */
.solutions { position: relative; padding: clamp(96px, 12vw, 190px) 0; background: radial-gradient(90% 60% at 85% 0%, rgba(18, 64, 111, .45), transparent 60%), var(--navy-950); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; display: flex; flex-direction: column; min-height: 520px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: rgba(243, 241, 234, .02); isolation: isolate; transition: border-color .6s var(--ease), transform .6s var(--ease); }
.service-media { position: absolute; inset: 0; z-index: -1; }
.service-media video { width: 100%; height: 100%; object-fit: cover; opacity: .6; transform: scale(1.08); filter: saturate(.8); transition: opacity .8s var(--ease), transform 1.2s var(--ease), filter .8s; }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 18, 34, .05) 0%, rgba(4, 18, 34, .35) 40%, rgba(4, 18, 34, .95) 78%); }
.service-body { display: flex; flex-direction: column; height: 100%; margin-top: auto; padding: 32px; }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(140, 194, 240, .35); margin-bottom: auto; background: rgba(3, 13, 24, .4); backdrop-filter: blur(8px); transition: background .5s, border-color .5s; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-soft); stroke-width: 1.5; transition: stroke .5s; }
.service h3 { margin-top: 180px; font-size: clamp(26px, 2.3vw, 36px); font-weight: 600; letter-spacing: -.035em; color: var(--ivory); }
.service p { margin-top: 12px; color: var(--muted); }
.service-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--accent-soft); }
.service-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.service:hover, .service:focus-visible { border-color: rgba(140, 194, 240, .5); }
.service:hover .service-media video, .service:focus-visible .service-media video { opacity: .85; transform: scale(1); filter: saturate(1.05); }
.service:hover .service-icon { background: var(--accent); border-color: var(--accent); }
.service:hover .service-icon svg { stroke: var(--ink); }
.service:hover .service-link svg { transform: translateX(6px); }

.process { position: relative; margin-top: clamp(80px, 10vw, 150px); }
.process-title { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.03em; color: var(--ivory); margin-bottom: 44px; }
/* Linha do 1º ao 4º ponto (centro dos marcadores); --p (0→1) é preenchido pela rolagem */
.process-line { --p: 1; position: relative; width: 100%; height: 2px; }
.process-line::before { content: ""; position: absolute; top: 0; left: 6px; right: calc((100% - 84px) / 4 - 6px); height: 2px; background: rgba(63, 143, 214, .18); }
.process-wave { position: absolute; top: 50%; left: 6px; right: calc((100% - 84px) / 4 - 6px); height: 22px; margin-top: -11px; clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='22' viewBox='0 0 56 22'%3E%3Cpath d='M0 11C7 1 21 1 28 11S49 21 56 11' fill='none' stroke='%238cc2f0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 50% / 56px 22px;
  filter: drop-shadow(0 0 6px rgba(63, 143, 214, .65)); animation: waveflow 1.8s linear infinite; }
.process-wave--back { opacity: .38; transform: scaleY(-.7); animation-duration: 2.7s; animation-direction: reverse; filter: none; }
.process-wave::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--accent); }
.process-wave--back::after { display: none; }
@keyframes waveflow { to { background-position-x: 56px; } }
.process-steps li::before { transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.process-steps li.is-lit::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(63, 143, 214, .18); }
@media (prefers-reduced-motion: reduce) { .process-wave { animation: none; } }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-steps li { position: relative; padding-top: 36px; }
.process-steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-950); border: 2px solid var(--accent); }
.process-steps span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent-soft); }
.process-steps h4 { margin: 10px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ivory); }
.process-steps p { font-size: 15px; color: var(--muted); max-width: 280px; }

/* Conexões */
.connections { position: relative; padding: clamp(96px, 11vw, 170px) 0; background: var(--ink); overflow: hidden; }
.connections::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 72% 50%, rgba(18, 64, 111, .5), transparent 70%); }
.connections-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(32px, 5vw, 80px); }
.connections .section-lead { margin-top: 28px; }
.connections-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.connections-facts strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 4vw, 60px); line-height: 1; color: var(--accent-soft); }
.connections-facts span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.globe-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 720px; justify-self: end; }
.globe { position: relative; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe.is-dragging { cursor: grabbing; }
.globe-halo { position: absolute; inset: 9%; border-radius: 50%; box-shadow: 0 0 120px 10px rgba(63, 143, 214, .16), inset 0 0 80px rgba(63, 143, 214, .1); border: 1px solid rgba(140, 194, 240, .14); }
.globe-tag { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(3, 13, 24, .6); backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); white-space: nowrap; }
.globe-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(63, 143, 214, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(63, 143, 214, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 143, 214, 0); } }

/* Para empresas */
.audiences { padding: clamp(96px, 12vw, 190px) 0; background: var(--ivory); color: var(--graphite); }
.audiences .section-head h2 { color: var(--graphite); }
.audiences .section-head .serif { color: var(--accent-deep); }
.audiences .section-lead { color: rgba(6, 23, 38, .66); }
.panels { display: flex; gap: 14px; height: clamp(480px, 62vh, 640px); }
.panel { position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: flex 1s var(--ease); background: var(--navy-900); }
.panel.is-open { flex: 2.6; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.4s var(--ease); }
.panel.is-open img { transform: scale(1); }
.panel-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 13, 24, .92) 0%, rgba(3, 13, 24, .2) 55%, rgba(3, 13, 24, .1) 100%); }
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.4vw, 36px); color: var(--ivory); }
.panel-num { display: block; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--accent-soft); margin-bottom: 8px; }
.panel h3 { font-size: clamp(26px, 2.6vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; }
.panel p { max-width: 380px; margin-top: 12px; color: rgba(243, 241, 234, .8); opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .7s var(--ease); }
.panel.is-open p { opacity: 1; transform: none; transition-delay: .35s; }

/* Contato */
.contact { position: relative; padding: clamp(110px, 12vw, 190px) 0; overflow: hidden; background: var(--ink); }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 120%; object-fit: cover; opacity: .32; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 15%, rgba(3, 13, 24, .75) 55%, rgba(3, 13, 24, .55)), linear-gradient(0deg, var(--ink), transparent 30%, transparent 70%, var(--ink)); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.contact .section-lead { margin-top: 28px; }
.contact-channels { display: grid; gap: 14px; margin-top: 44px; }
.contact-channels li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(3, 13, 24, .45); backdrop-filter: blur(10px); }
.contact-channels svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--accent-soft); stroke-width: 1.5; }
.contact-channels small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-channels a, .contact-channels span { color: var(--ivory); font-weight: 500; overflow-wrap: anywhere; }
.contact-channels a:hover { color: var(--accent-soft); }

.form { padding: clamp(28px, 3.4vw, 48px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(18, 64, 111, .35), rgba(3, 13, 24, .72)); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.form-title { font-size: clamp(24px, 2vw, 32px); font-weight: 600; letter-spacing: -.03em; color: var(--ivory); }
.form-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 24px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; padding: 26px 18px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 13, 24, .45); color: var(--ivory); font-size: 16px; outline: none; transition: border-color .3s, box-shadow .3s, background .3s; appearance: none; }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23e8c98a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.field select option { background: var(--navy-900); }
.field textarea { resize: vertical; min-height: 120px; }
.field label { position: absolute; left: 19px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.is-static { transform: translateY(-10px) scale(.78); color: var(--accent-soft); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(63, 143, 214, .14); background: rgba(3, 13, 24, .65); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e2867a; }
.field-error { display: block; min-height: 0; font-size: 12px; color: #f0a497; margin-top: 6px; }
.field-error:empty { display: none; }
.form-status { margin-top: 16px; font-size: 14px; color: var(--accent-soft); }
.form-status:empty { display: none; }
.form-status.is-error { color: #ffb4a8; }
.form-status.is-ok { color: #9be3b8; }
.form-status a { color: inherit; text-decoration: underline; }
.form .btn[disabled] { opacity: .65; cursor: progress; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Rodapé */
.footer { position: relative; padding: clamp(80px, 9vw, 130px) 0 32px; background: var(--ink); border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-claim { font-size: clamp(40px, 6vw, 96px); font-weight: 600; line-height: 1; letter-spacing: -.05em; color: var(--ivory); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 56px 0; }
.footer-cols h4 { margin-bottom: 18px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); }
.footer-cols a, .footer-cols span { display: block; padding: 4px 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; transition: color .3s; }
.footer-cols a:hover { color: var(--ivory); }
.footer-word { width: 100%; height: auto; color: var(--ivory); margin: 24px 0 40px; filter: drop-shadow(0 20px 60px rgba(63, 143, 214, .2)); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: rgba(223, 229, 236, .42); }
.footer-credit { transition: color .4s var(--ease); }
.footer-credit strong { font-weight: 600; }
.footer-credit:hover, .footer-credit:focus-visible { color: var(--ivory); }

/* Navegação flutuante */
.float-nav { position: fixed; right: clamp(16px, 2.2vw, 32px); bottom: clamp(16px, 2.2vw, 32px); z-index: 95; display: flex; flex-direction: column; gap: 10px; }
.float-btn { position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-soft); background: rgba(4, 18, 34, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); transition: opacity .5s var(--ease), transform .5s var(--ease), background .4s, color .4s, border-color .4s; }
.float-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease); }
.float-btn:hover, .float-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.float-btn--top svg { transform: rotate(180deg); }
.float-btn--top:hover svg { transform: rotate(180deg) translateY(2px); }
.float-btn--next:hover svg { transform: translateY(2px); }
.float-btn--next svg { animation: nudge 2.4s var(--ease) infinite; }
.float-ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(140, 194, 240, .6); animation: ringpulse 2.4s var(--ease) infinite; pointer-events: none; }
.float-btn.is-off { opacity: 0; transform: scale(.6); pointer-events: none; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }
@keyframes ringpulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.is-loading .float-nav { opacity: 0; }
.menu-open .float-nav { opacity: 0; pointer-events: none; }

/* Estados iniciais das animações (só com JS e movimento permitido) */
.js-motion [data-reveal] { opacity: 0; transform: translateY(40px); }
.js-motion [data-hero-in] { opacity: 0; transform: translateY(24px); }
.js-motion .hero-eyebrow { transform: translateY(16px); }

/* Responsivo */
@media (max-width: 1180px) {
  .header-nav a { padding: 9px 12px; font-size: 13px; }
  .header-brand span { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .header-nav, .header-cta { display: none; }
  .header-burger { display: block; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-coords { display: none; }
  .section-head--split, .about-grid, .connections-grid, .contact-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 420px; }
  .service h3 { margin-top: 120px; }
  .process-steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .process-line { display: none; }
  .globe-wrap { justify-self: center; max-width: 560px; }
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.is-open { flex: none; height: 380px; }
  .panel p { opacity: 1; transform: none; }
  .panel img { transform: none; }
  /* Jornada vira pilha vertical */
  .journey-pin { height: auto; }
  .journey-head { position: relative; top: auto; left: auto; padding: 96px var(--gutter) 40px; }
  .journey-track { flex-direction: column; width: 100%; }
  .chapter { flex: none; height: 88svh; min-height: 560px; }
  .journey-progress { display: none; }
}
@media (max-width: 640px) {
  .hero { min-height: 600px; }
  .hero-title { font-size: clamp(54px, 17vw, 96px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-rail { justify-content: center; }
  .hero-modes { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .connections-facts { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .about-figure figcaption { flex-direction: column; gap: 4px; }
  .chapter-num { font-size: 120px; }
  .float-btn { width: 46px; height: 46px; }
  .hide-sm { display: none; }
  .process-line { display: none; }
  .process-steps { gap: 0; border-left: 1px solid rgba(63, 143, 214, .45); margin-left: 6px; }
  .process-steps li { padding: 0 0 36px 28px; }
  .process-steps li:last-child { padding-bottom: 0; }
  .process-steps li::before { top: 6px; left: -7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .about-statement .word { opacity: 1; }
}
