/* ==========================================================================
   NEXUS DESIGN — portfólio
   ========================================================================== */

@property --accent {
    syntax: '<color>';
    inherits: true;
    initial-value: #d8ff3c;
}

:root {
    --bg: #06080a;
    --bg2: #0b0e11;
    --panel: #0d1114;
    --line: rgba(255, 255, 255, .08);
    --line2: rgba(255, 255, 255, .15);
    --text: #eef1ea;
    --muted: #8d949a;
    --dim: #4c5358;
    --lime: #d8ff3c;
    --lime-rgb: 216, 255, 60;
    --accent: #d8ff3c;
    --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --gutter: clamp(16px, 4.2vw, 72px);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
/* nada pode ficar mais largo do que o ecrã (evita o "zoom out" esquisito no telemóvel) */
main > section, .footer { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-display);
    font-variation-settings: "wdth" 100;
    line-height: 1.5;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }
::selection { background: var(--lime); color: #000; }

img, svg { 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; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* Grão de filme por cima de tudo (imagem leve, sem animação contínua) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: .07;
    background: url("../img/fx/grain.webp") repeat;
    background-size: 160px 160px;
}

/* ---------- utilitários ---------- */
.label {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}
.lime { color: var(--lime); }
.dim { color: var(--dim); }
.dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px var(--lime), 0 0 22px rgba(var(--lime-rgb), .6);
    margin-right: 12px;
    vertical-align: middle;
    animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.sec-label { display: flex; align-items: center; margin-bottom: 28px; color: var(--lime); }
.sec-title {
    font-size: clamp(40px, 6.4vw, 108px);
    font-weight: 900;
    font-variation-settings: "wdth" 112;
    line-height: .92;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

/* ---------- botões ---------- */
.btn {
    --bh: 60px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: var(--bh);
    padding: 0 26px;
    background: var(--lime);
    color: #0a0c05;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 0 0 0 rgba(var(--lime-rgb), .0), 0 10px 40px -10px rgba(var(--lime-rgb), .55);
    transition: box-shadow .5s var(--ease), color .4s var(--ease);
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateY(101%);
    transition: transform .55s var(--ease);
    z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 0 0 1px rgba(var(--lime-rgb), .6), 0 16px 60px -8px rgba(var(--lime-rgb), .8); }
.btn svg { transition: transform .5s var(--ease); flex: none; }
.btn:hover svg { transform: translate(3px, -3px) rotate(45deg); }
.btn--sm { --bh: 44px; font-size: 13px; padding: 0 18px; gap: 22px; }
.btn--full { width: 100%; }

.link-arrow {
    display: inline-flex; gap: 14px; align-items: center;
    font-size: 14px; font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid var(--line2);
    transition: color .3s, border-color .3s;
}
.link-arrow:hover { color: var(--lime); border-color: var(--lime); }

/* ==========================================================================
   INTRO / PORTA DE ENTRADA
   ========================================================================== */
.intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    color: var(--text);
    overflow: hidden;
    /* segurança: se o JavaScript falhar, a intro desaparece sozinha */
    animation: introFailsafe .4s 9s forwards;
}
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }
.intro-door {
    position: absolute;
    left: 0; right: 0;
    height: 50.5%;
    background: #040506;
}
.intro-door--top { top: 0; border-bottom: 1px solid rgba(var(--lime-rgb), .0); }
.intro-door--bot { bottom: 0; }
.intro-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}
.intro-scan {
    position: absolute; left: 0; right: 0; top: 0;
    height: 140px;
    background: linear-gradient(180deg, transparent, rgba(var(--lime-rgb), .07), transparent);
    animation: scan 3.2s linear infinite;
}
@keyframes scan { from { transform: translateY(-140px); } to { transform: translateY(100vh); } }
.intro-beam {
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2px;
    margin-top: -1px;
    background: var(--lime);
    box-shadow: 0 0 20px var(--lime), 0 0 60px var(--lime), 0 0 140px rgba(var(--lime-rgb), .8);
    transform: scaleX(0);
    z-index: 3;
}
.intro-content { position: absolute; inset: 0; z-index: 2; }
.intro-hud {
    position: absolute; top: 24px;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; color: var(--muted);
}
.intro-hud--tl { left: var(--gutter); }
.intro-hud--tr { right: var(--gutter); display: flex; align-items: center; gap: 10px; }
.intro-blink { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; animation: blink 1s steps(2) infinite; box-shadow: 0 0 10px var(--lime); }
@keyframes blink { 50% { opacity: 0; } }

.intro-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 26px;
    padding-bottom: 40px;
}
.intro-logo { width: clamp(110px, 16vw, 168px); height: auto; overflow: visible; }
.intro-logo .il-ring { transform-origin: 80px 80px; animation: spin 14s linear infinite; }
.intro-logo .il-ring2 { transform-origin: 80px 80px; animation: spin 9s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro-word { text-align: center; }
.intro-nexus {
    position: relative;
    font-size: clamp(54px, 10vw, 148px);
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    line-height: .85;
    letter-spacing: .02em;
    font-family: var(--f-display);
}
.intro-nexus.is-glitch::before,
.intro-nexus.is-glitch::after {
    content: attr(data-text);
    position: absolute; inset: 0;
}
.intro-nexus.is-glitch::before { color: var(--lime); transform: translate(-4px, 0); clip-path: inset(10% 0 55% 0); mix-blend-mode: screen; }
.intro-nexus.is-glitch::after { color: #3fe0ff; transform: translate(4px, 0); clip-path: inset(60% 0 8% 0); mix-blend-mode: screen; }
.intro-design {
    margin-top: 14px;
    font-family: var(--f-mono);
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: .9em;
    padding-left: .9em;
    color: var(--muted);
}
.intro-enter {
    display: inline-flex; align-items: center; gap: 16px;
    margin-top: 10px;
    padding: 16px 28px;
    border: 1px solid rgba(var(--lime-rgb), .55);
    border-radius: 100px;
    color: var(--lime);
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: background .35s, color .35s, box-shadow .35s;
}
.intro-enter::after {
    content: ''; position: absolute; inset: -1px; border-radius: inherit;
    border: 1px solid var(--lime);
    animation: ring 1.8s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35, 1.6); opacity: 0; } }
.intro-enter:hover { background: var(--lime); color: #000; box-shadow: 0 0 40px rgba(var(--lime-rgb), .6); }
.intro-hint { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; opacity: 0; }
.intro-hint kbd { font-family: inherit; color: var(--muted); border: 1px solid var(--line2); padding: 2px 6px; border-radius: 4px; }

.intro-log {
    position: absolute; left: var(--gutter); bottom: 56px;
    font-family: var(--f-mono); font-size: 11px; line-height: 1.9; color: var(--muted);
    letter-spacing: .06em;
}
.intro-log li { opacity: 0; }
.intro-log b { color: var(--lime); font-weight: 500; }
.intro-count {
    position: absolute; right: var(--gutter); bottom: 40px;
    font-family: var(--f-display);
    font-size: clamp(56px, 9vw, 140px);
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    line-height: .8;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.intro-count small { font-size: .3em; color: var(--lime); margin-left: 4px; }
.intro-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.05); }
.intro-bar i { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 16px var(--lime); }

@media (max-width: 640px) {
    .intro-log { bottom: 120px; font-size: 10px; }
    .intro-count { bottom: 28px; }
    .intro-hud--tl { max-width: 60%; }
}

/* ==========================================================================
   CURSOR / HUD / PROGRESSO
   ========================================================================== */
.cursor { display: none; }
@media (pointer: fine) {
    .has-cursor .cursor { display: block; }
    .has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
    .has-cursor input, .has-cursor textarea { cursor: text; }
}
.cur-dot, .cur-ring {
    position: fixed; top: 0; left: 0; z-index: 9500;
    pointer-events: none;
    border-radius: 50%;
}
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.cur-ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 1px solid rgba(255,255,255,.35);
    display: flex; align-items: center; justify-content: center;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
}
.cur-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--lime); background: rgba(var(--lime-rgb), .08); }
.cur-ring.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--lime); border-color: var(--lime); box-shadow: 0 0 40px rgba(var(--lime-rgb), .5); }
.cur-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #000; font-weight: 700; opacity: 0; transition: opacity .2s; }
.cur-ring.is-label .cur-label { opacity: 1; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--lime); }

.hud {
    position: fixed; bottom: 22px; z-index: 90;
    font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--muted);
    pointer-events: none;
    display: flex; align-items: center; gap: 10px;
    text-shadow: 0 0 8px #000;
}
.hud--l { left: var(--gutter); }
.hud--r { right: var(--gutter); }
.hud-dot { width: 5px; height: 5px; background: var(--lime); border-radius: 50%; }
@media (max-width: 899px) { .hud { display: none; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 18px var(--gutter);
    transition: transform .6s var(--ease), background .4s, border-color .4s, padding .4s;
    border-bottom: 1px solid transparent;
}
.hdr.is-scrolled {
    background: rgba(6, 8, 10, .9);
    border-color: var(--line);
    padding-top: 12px; padding-bottom: 12px;
}
.hdr.is-hidden { transform: translateY(-110%); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 14px rgba(var(--lime-rgb), .45)); transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-90deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 18px; letter-spacing: .04em; }
.logo-text small { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .58em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
    position: relative;
    font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
    color: #c9cec8;
    padding: 6px 0;
}
.nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--lime); box-shadow: 0 0 8px var(--lime);
    transform: scaleX(0); transform-origin: right;
    transition: transform .5s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn i:first-child { top: 17px; }
.menu-btn i:last-child { top: 25px; }
.menu-open .menu-btn i:first-child { top: 21px; transform: rotate(45deg); background: var(--lime); }
.menu-open .menu-btn i:last-child { top: 21px; transform: rotate(-45deg); background: var(--lime); }

.mnav {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(4, 5, 6, .97);
    display: flex; flex-direction: column; justify-content: center;
    padding: 100px var(--gutter) 40px;
    clip-path: circle(0% at calc(100% - 40px) 40px);
    transition: clip-path .9s var(--ease);
    visibility: hidden;
}
.menu-open .mnav { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mnav nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 40px; }
.mnav a {
    font-size: clamp(42px, 12vw, 80px);
    font-weight: 900; font-variation-settings: "wdth" 115;
    text-transform: uppercase; line-height: 1.02;
    display: flex; align-items: flex-start; gap: 14px;
}
.mnav a small { font-family: var(--f-mono); font-size: 11px; color: var(--lime); margin-top: 12px; font-weight: 500; }

@media (max-width: 899px) {
    .nav, .hdr-cta { display: none; }
    .menu-btn { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 130px var(--gutter) 34px;
    overflow: hidden;
    isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-glow {
    position: absolute; inset: 0; z-index: -4; pointer-events: none;
    background:
        radial-gradient(60% 55% at 50% 60%, rgba(var(--lime-rgb), .2), rgba(var(--lime-rgb), .05) 35%, transparent 70%),
        linear-gradient(90deg, transparent 38%, rgba(var(--lime-rgb), .05) 50%, transparent 62%) 0 0 / 100% 60% no-repeat;
}
.hero-horizon {
    position: absolute; left: 0; right: 0; top: 60%; z-index: -3; pointer-events: none;
    height: 2px; margin-top: -1px;
    background: linear-gradient(90deg, transparent, rgba(var(--lime-rgb), .95) 50%, transparent);
    box-shadow: 0 0 18px rgba(var(--lime-rgb), .55);
}
.hero-fade {
    position: absolute; left: 0; right: 0; top: 60%; height: 18%; z-index: -3; pointer-events: none;
    background: linear-gradient(180deg, var(--bg), rgba(6,8,10,0));
}
.hero-spot {
    position: absolute; left: 0; top: 0; z-index: -2; pointer-events: none;
    width: 1240px; height: 1240px; margin: -620px 0 0 -620px;
    background: radial-gradient(closest-side, rgba(var(--lime-rgb), .09), transparent);
    transform: translate3d(70vw, 35vh, 0);
    will-change: transform;
}
.hero-vignette {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6,8,10,.75) 0%, rgba(6,8,10,0) 26%, rgba(6,8,10,0) 70%, var(--bg) 100%),
        radial-gradient(ellipse at 50% 120%, transparent 40%, rgba(6,8,10,.5) 100%);
}
.hero-inner {
    will-change: transform, opacity;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: end;
    gap: 28px 64px;
}
.hero-title { grid-column: 1 / -1; }
.hero-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 560px) 1fr;
    column-gap: 40px;
}
.hero-side .hero-lead { grid-column: 1; }
.hero-side .hero-sub { grid-column: 1; margin-bottom: 0; }
.hero-side .hero-ctas { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end; }
@media (max-width: 899px) {
    .hero-side { grid-template-columns: 1fr; }
    .hero-side .hero-sub { margin-bottom: 26px; }
    .hero-side .hero-ctas { grid-column: 1; grid-row: auto; justify-self: start; }
}
.hero-kicker { grid-column: 1 / -1; display: flex; align-items: center; color: var(--lime); }
.hero-title {
    font-size: clamp(44px, min(9.1vw, 16.5vh), 184px);
    font-weight: 900;
    font-variation-settings: "wdth" 118;
    line-height: .86;
    letter-spacing: -.025em;
    text-transform: uppercase;
    perspective: 900px;
}
.hero-title .line { display: block; position: relative; clip-path: inset(-0.5em -0.5em 0 -0.5em); padding-bottom: .02em; }
.hero-title .line.is-open { clip-path: none; }
.hero-title .split { display: inline-block; }
.hero-title .wd { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.hero-title .lime {
    color: var(--lime);
    text-shadow: 0 0 30px rgba(var(--lime-rgb), .45), 0 0 90px rgba(var(--lime-rgb), .3);
    animation: flicker 6s infinite 4s;
}
@keyframes flicker {
    0%, 100%, 43%, 47% { opacity: 1; }
    44% { opacity: .55; }
    45% { opacity: 1; }
    46% { opacity: .75; }
}
.hero-arrow {
    position: absolute;
    width: .26em; height: .26em;
    display: inline-block;
    top: .02em;
    margin-left: .04em;
    color: var(--lime);
    filter: drop-shadow(0 0 12px rgba(var(--lime-rgb), .7));
}
.hero-side { padding-left: 24px; border-left: 1px solid var(--line2); }
.hero-lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; font-weight: 500; margin-bottom: 16px; }
.hero-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }

.hero-foot {
    margin-top: clamp(36px, 7vh, 80px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: clamp(20px, 5vw, 80px);
}
.stat { display: flex; align-items: baseline; gap: 12px; }
.stat b { font-size: 26px; font-weight: 800; font-variation-settings: "wdth" 115; color: var(--text); }
.stat span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { margin-left: auto; margin-right: 84px; display: flex; align-items: center; gap: 14px; }
.scroll-cue .label { color: var(--lime); }
.scroll-cue i { width: 1px; height: 34px; background: var(--line2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: var(--lime); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(220%); } }

@media (max-width: 899px) {
    .hero-side { padding-left: 18px; }
    .hero-foot { flex-wrap: wrap; gap: 16px 28px; }
    .scroll-cue { display: none; }
}
@media (max-width: 480px) {
    .stat b { font-size: 20px; }
    .stat span { font-size: 9px; }
}

/* ==========================================================================
   PORTAL — voo através das letras
   ========================================================================== */
.portal { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.portal-stage { position: absolute; inset: 0; isolation: isolate; overflow: hidden; }
.portal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.5); will-change: transform; }
.portal-mask {
    position: absolute; inset: -2px;
    display: grid; place-items: center;
    background: var(--bg);
    color: #fff;
    mix-blend-mode: multiply;
    will-change: transform, opacity;
}
.pm-word {
    font-size: clamp(96px, 21vw, 460px);
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    line-height: .8;
    letter-spacing: -.035em;
    padding-top: .06em;
    white-space: nowrap;
}
.pm-x { display: inline-block; }
html:not(.cinema) .portal-mask, html:not(.cinema) .portal-pre { display: none; }
html:not(.cinema) .portal-img { transform: none; }
.portal-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,10,.35), transparent 30%, transparent 45%, rgba(6,8,10,.92) 100%); }
.cinema .portal-shade, .cinema .portal-hud, .cinema .portal-copy-k { opacity: 0; }
.portal-sweep {
    position: absolute; top: -20%; bottom: -20%; width: 34%; left: 33%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), rgba(var(--lime-rgb), .12), transparent);
    transform: translateX(-300%) skewX(-16deg);
    will-change: transform;
    pointer-events: none;
}
.portal-hud { position: absolute; top: 96px; color: rgba(255,255,255,.85); }
.portal-hud--tl { left: var(--gutter); }
.portal-hud--tr { right: var(--gutter); }
.portal-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 8vh, 90px); }
.portal-copy-k { color: rgba(255,255,255,.85); margin-bottom: 14px; }
.portal-copy h2 {
    font-size: clamp(52px, 10.5vw, 190px);
    font-weight: 900; font-variation-settings: "wdth" 120;
    line-height: .86; letter-spacing: -.02em; text-transform: uppercase;
}
.portal-copy .pl { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .16em .04em .06em; margin-top: -.16em; }
.portal-copy .pl > span { display: inline-block; }
.portal-copy .serif { color: var(--lime); text-shadow: 0 0 50px rgba(var(--lime-rgb), .55); }
.portal-pre {
    position: absolute; left: 0; right: 0;
    text-align: center;
    font-size: clamp(22px, 3.4vw, 56px);
    font-weight: 800; font-variation-settings: "wdth" 112;
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
}
.portal-pre em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; text-transform: none; color: var(--lime); font-size: 1.18em; letter-spacing: 0; }
.portal-pre--top { top: 15%; }
.portal-pre--bot { bottom: 15%; }
@media (max-width: 899px) {
    .portal-pre--top { top: 24%; }
    .portal-pre--bot { bottom: 24%; }
    .portal-hud--tr { display: none; }
    .portal-hud { top: 84px; }
}

/* serifa editorial */
.serif {
    font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-variation-settings: normal;
    text-transform: none;
    letter-spacing: -.01em;
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { padding: clamp(100px, 22vh, 240px) var(--gutter) clamp(80px, 16vh, 180px); }
.manifesto-text {
    font-size: clamp(30px, 4.7vw, 82px);
    font-weight: 700;
    font-variation-settings: "wdth" 104;
    line-height: 1.06;
    letter-spacing: -.02em;
    max-width: 22ch;
}
.manifesto-text .w { display: inline-block; opacity: .13; }
.manifesto-text .w.hl { color: var(--lime); text-shadow: 0 0 30px rgba(var(--lime-rgb), .35); }
.manifesto-text strong { font-weight: inherit; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
    padding: clamp(24px, 5vh, 60px) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
}
.mq-row { display: flex; width: max-content; white-space: nowrap; align-items: center; will-change: transform; }
.mq-item {
    font-size: clamp(54px, 9vw, 160px);
    font-weight: 900; font-variation-settings: "wdth" 125;
    line-height: 1; text-transform: uppercase; letter-spacing: -.01em;
    padding: 0 .28em;
}
.mq-item.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.32); }
.mq-star { color: var(--lime); font-size: clamp(30px, 4vw, 70px); text-shadow: 0 0 24px var(--lime); }
.mq-row--rev { margin-top: 10px; }
.mq-row--rev .mq-item { font-size: clamp(34px, 5vw, 86px); color: var(--dim); }
.mq-row--rev .mq-item.o { color: transparent; -webkit-text-stroke: 1px rgba(var(--lime-rgb), .45); }
.mq-row--rev .mq-star { font-size: clamp(20px, 2.4vw, 40px); }

/* ==========================================================================
   PROJETOS — showroom cinematográfico
   ========================================================================== */
.work { position: relative; }
.show { display: none; }
.cinema .show { display: block; }
.cinema .work-list { display: none; }

.show { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #040506; }
.show-viewport { position: absolute; inset: 0; overflow: hidden; }
.show-stage {
    position: absolute; left: 0; top: 0;
    width: 3200px; height: 1800px;
    transform-origin: 0 0;
}
.show-stage.is-moving { will-change: transform; }
.show-wall {
    position: absolute; inset: -1400px -3200px 0;
    background:
        radial-gradient(1800px 900px at 50% 38%, rgba(255,255,255,.045), transparent 70%),
        url("../img/fx/stone.webp"),
        #07080a;
    background-size: auto, 1024px 1024px, auto;
    background-position: center, 0 0, 0 0;
}
.niche {
    position: absolute;
    top: 240px;
    left: calc(200px + var(--i) * 960px);
    width: 880px; height: 880px;
    border-radius: 4px;
}
.niche-inner {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(18,20,23,.55), rgba(8,9,10,.92) 70%),
        url("../img/fx/stone.webp") 0 0 / 700px 700px;
    box-shadow: inset 0 40px 80px rgba(0,0,0,.9), inset 0 0 50px rgba(0,0,0,.7), 0 0 0 2px rgba(255,255,255,.04);
}
.niche-fixture {
    position: absolute; top: 0; left: 50%; width: 260px; height: 12px; margin-left: -130px;
    background: #fff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 0 30px #fff, 0 0 80px color-mix(in srgb, var(--p) 80%, #fff);
    opacity: .08;
}
.niche-cone {
    position: absolute; top: 6px; left: 50%; width: 900px; height: 820px; margin-left: -450px;
    clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, color-mix(in srgb, var(--p) 40%, rgba(255,255,255,.55)) 0%, color-mix(in srgb, var(--p) 14%, transparent) 45%, transparent 85%);
    opacity: 0;
}
.niche-screen {
    position: absolute; left: 40px; top: 210px; width: 800px;
    border-radius: 10px; overflow: hidden;
    background: #090b0d;
    border: 2px solid rgba(255,255,255,.14);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,.95), 0 0 60px -10px color-mix(in srgb, var(--p) 45%, transparent);
}
.ns-dim { position: absolute; inset: 0; background: #050607; opacity: .8; pointer-events: none; }
.ns-bar { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #101315; border-bottom: 1px solid rgba(255,255,255,.08); }
.ns-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c3236; }
.ns-bar i:first-child { background: var(--p); }
.ns-bar span { margin: 0 auto; transform: translateX(-24px); font-family: var(--f-mono); font-size: 11px; color: #7c858a; letter-spacing: .06em; padding: 3px 20px; border-radius: 99px; background: rgba(255,255,255,.04); }
.niche-screen img { display: block; width: 100%; height: auto; aspect-ratio: 1900 / 900; object-fit: cover; }
.ns-glare { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.2) 47%, rgba(255,255,255,.04) 55%, transparent 70%); transform: translateX(-130%); }
.niche-plinth {
    position: absolute; left: 70px; right: 70px; top: 700px; height: 180px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.09), transparent 8%),
        linear-gradient(180deg, #17191b, #0a0b0c);
    box-shadow: 0 -2px 0 rgba(255,255,255,.12), inset 0 20px 40px rgba(0,0,0,.4);
}
.niche-plinth span { position: absolute; right: 26px; bottom: 20px; font-family: var(--f-mono); font-size: 18px; color: rgba(255,255,255,.18); letter-spacing: .2em; }
.niche-pool {
    position: absolute; left: 50%; top: 640px; width: 900px; height: 180px; margin-left: -450px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--p) 45%, rgba(255,255,255,.3)), transparent);
    opacity: 0;
}
.niche-dark { position: absolute; inset: -40px; background: #040506; opacity: 0; pointer-events: none; }
.reflect {
    position: absolute;
    top: 1150px;
    left: calc(240px + var(--i) * 960px);
    width: 800px;
    opacity: .0;
    transform: scaleY(-1);
    -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%);
    mask-image: linear-gradient(0deg, rgba(0,0,0,.45), transparent 50%);
}
.reflect img { width: 100%; display: block; }
.show-floor {
    position: absolute; left: -3200px; right: -3200px; top: 1120px; bottom: -1400px;
    background: linear-gradient(180deg, rgba(4,5,6,.2), #040506 70%);
    border-top: 2px solid rgba(255,255,255,.05);
}
.show-shade {
    position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0;
    background: linear-gradient(90deg, rgba(4,5,6,.96) 0%, rgba(4,5,6,.8) 30%, rgba(4,5,6,0) 52%);
}
@media (max-width: 899px) { .show-shade { background: linear-gradient(0deg, rgba(4,5,6,.98) 0%, rgba(4,5,6,.85) 42%, rgba(4,5,6,0) 62%); } }
.show-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(4,5,6,.85) 100%); }

.show-head { position: absolute; top: 110px; left: var(--gutter); right: var(--gutter); z-index: 3; pointer-events: none; }
.show-title {
    font-size: clamp(40px, 5.6vw, 104px);
    font-weight: 900; font-variation-settings: "wdth" 118;
    line-height: .9; letter-spacing: -.025em; text-transform: uppercase;
}
.show-title .serif { font-size: 1.12em; text-shadow: 0 0 40px rgba(var(--lime-rgb), .45); }
.show-title sup { font-family: var(--f-mono); font-size: .16em; color: var(--muted); vertical-align: top; margin-left: .4em; letter-spacing: .1em; font-weight: 500; }

.show-info {
    position: absolute; z-index: 4;
    left: var(--gutter); top: 50%;
    transform: translateY(-50%);
    width: min(34vw, 500px);
    opacity: 0; visibility: hidden;
}
.si-index { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 20px; }
.si-index span { color: var(--p); }
.si-name {
    font-size: clamp(46px, 5.6vw, 104px);
    font-weight: 900; font-variation-settings: "wdth" 112;
    line-height: .9; letter-spacing: -.02em; text-transform: uppercase;
}
.si-name .serif { display: inline-block; color: var(--p); font-size: 1.14em; text-shadow: 0 0 50px color-mix(in srgb, var(--p) 55%, transparent); }
.si-sub { margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #c9cec8; }
.si-desc { margin-top: 22px; color: #aab0ac; font-size: 15.5px; line-height: 1.65; max-width: 42ch; }
.badge-new {
    font-style: normal; margin-left: 12px; padding: 5px 9px;
    background: var(--lime); color: #000; font-weight: 700; letter-spacing: .16em;
    box-shadow: 0 0 24px rgba(var(--lime-rgb), .6);
    animation: pulse 1.8s ease-in-out infinite;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.proj-tags li { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 11px; border: 1px solid var(--line2); color: #c5cac6; border-radius: 100px; background: rgba(4,5,6,.5); }
.proj-link {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 50px;
    min-width: 260px; padding: 16px 0;
    border-bottom: 1px solid var(--line2);
    font-weight: 700; font-size: 15px; color: var(--p);
    transition: gap .5s var(--ease), border-color .3s;
}
.proj-link:hover { gap: 70px; border-color: var(--p); }
.proj-link svg { transition: transform .5s var(--ease); }
.proj-link:hover svg { transform: rotate(45deg); }

.show-end {
    position: absolute; z-index: 4; inset: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 34px;
    text-align: center; padding: 0 var(--gutter);
    opacity: 0; visibility: hidden;
    background: radial-gradient(ellipse at center, rgba(4,5,6,.75), rgba(4,5,6,.3) 70%);
}
.show-end h3 {
    font-size: clamp(44px, 7vw, 132px);
    font-weight: 900; font-variation-settings: "wdth" 118;
    line-height: .9; letter-spacing: -.025em; text-transform: uppercase;
}
.show-end .serif { font-size: 1.12em; text-shadow: 0 0 50px rgba(var(--lime-rgb), .55); }
.show-end .label { display: flex; align-items: center; }

.show-dots { position: absolute; z-index: 4; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.show-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); transition: all .4s var(--ease); }
.show-dots i.on { background: var(--p); border-color: var(--p); box-shadow: 0 0 14px var(--p); transform: scale(1.4); }
.work-progress { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: 30px; height: 1px; background: var(--line); }
.work-progress i { display: block; height: 100%; background: var(--lime); box-shadow: 0 0 12px var(--lime); transform-origin: left; transform: scaleX(0); }

@media (max-width: 899px) {
    .show-head { top: 84px; }
    .show-info { top: auto; bottom: 64px; transform: none; width: auto; right: var(--gutter); }
    .si-name { font-size: clamp(40px, 12vw, 64px); }
    .si-desc { font-size: 14px; margin-top: 12px; }
    .si-desc, .show-info .proj-tags { display: none; }
    .show-info .proj-link { min-width: 0; width: 100%; }
    .show-dots { top: auto; bottom: 40px; transform: none; flex-direction: row; right: auto; left: var(--gutter); }
    .work-progress { display: none; }
}
@media (max-width: 899px) and (min-height: 760px) {
    .si-desc { display: block; }
}

/* lista simples (sem animação) */
.work-list { padding: clamp(80px, 14vh, 160px) var(--gutter) 40px; }
.work-intro { margin-bottom: 60px; }
.proj { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px 60px; align-items: center; padding: 50px 0; border-top: 1px solid var(--line); }
.proj-media { position: relative; }
.browser { position: relative; border-radius: 12px; overflow: hidden; background: #0a0c0f; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 50px 120px -40px color-mix(in srgb, var(--p) 55%, transparent); }
.browser-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #101315; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a3035; }
.browser-bar i:first-child { background: var(--p); }
.browser-url { margin: 0 auto; font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
.browser-view { aspect-ratio: 1900 / 900; overflow: hidden; }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 899px) { .proj { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.services { padding: clamp(100px, 18vh, 200px) var(--gutter) clamp(60px, 10vh, 120px); }
.sec-head { margin-bottom: clamp(48px, 8vh, 90px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.svc {
    --mx: 50%; --my: 0%;
    position: relative;
    display: flex; flex-direction: column;
    min-height: 470px;
    padding: 32px 30px 30px;
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 60%), var(--bg2);
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    transition: transform .6s var(--ease);
}
.svc::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(480px circle at var(--mx) var(--my), rgba(var(--lime-rgb), .11), transparent 45%);
    opacity: 0; transition: opacity .4s;
}
.svc::after {
    content: ''; position: absolute; inset: 0; padding: 1px; pointer-events: none;
    background: radial-gradient(300px circle at var(--mx) var(--my), var(--lime), transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0; transition: opacity .4s;
}
.svc:hover::before, .svc:hover::after { opacity: 1; }
.svc:hover { transform: translateY(-6px); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 60px; }
.svc-icon svg { width: 46px; height: 46px; fill: none; stroke: var(--lime); stroke-width: 1.6; filter: drop-shadow(0 0 10px rgba(var(--lime-rgb), .5)); transition: transform .6s var(--ease); }
.svc:hover .svc-icon svg { transform: scale(1.12) rotate(-6deg); }
.svc h3 { font-size: clamp(24px, 2.1vw, 32px); font-weight: 800; font-variation-settings: "wdth" 110; line-height: 1.04; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 14px; }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.svc ul { border-top: 1px solid var(--line); margin-bottom: 26px; }
.svc li { font-size: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; color: #cfd4cf; }
.svc li::before { content: ''; width: 14px; height: 1px; background: var(--lime); flex: none; }
.svc-more { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.svc-more span { display: inline-block; transition: transform .4s var(--ease); }
.svc-more:hover span { transform: translate(4px, -4px); }
@media (max-width: 1023px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc { min-height: 0; }
    .svc-top { padding-bottom: 40px; }
}

/* ==========================================================================
   PROCESSO
   ========================================================================== */
.process {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 60px clamp(40px, 7vw, 140px);
    padding: clamp(80px, 14vh, 160px) var(--gutter);
    border-top: 1px solid var(--line);
}
.process-head { position: sticky; top: 120px; align-self: start; }
.process .sec-title { font-size: clamp(30px, 4.4vw, 80px); }
@media (max-width: 899px) { .process .sec-title { font-size: min(8.4vw, 64px); } }
.process-note { margin-top: 28px; color: var(--muted); max-width: 34ch; }
.steps { position: relative; padding-left: 64px; }
.beam { position: absolute; left: 14px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.beam-fill {
    position: absolute; left: 0; top: 0; width: 100%; height: 0%;
    background: linear-gradient(180deg, rgba(var(--lime-rgb), .2), var(--lime));
    box-shadow: 0 0 14px var(--lime), 0 0 40px rgba(var(--lime-rgb), .6);
}
.beam-fill::after {
    content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px;
    border-radius: 50%; background: #fff;
    box-shadow: 0 0 12px #fff, 0 0 30px var(--lime), 0 0 70px var(--lime);
}
.step { position: relative; padding: clamp(40px, 8vh, 80px) 0; border-bottom: 1px solid var(--line); opacity: .28; transition: opacity .6s var(--ease); }
.step:last-child { border-bottom: 0; }
.step.is-lit { opacity: 1; }
.step-node {
    position: absolute; left: -57px; top: calc(clamp(40px, 8vh, 80px) + 14px);
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--dim); background: var(--bg);
    transition: all .5s var(--ease);
}
.step.is-lit .step-node { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 16px var(--lime), 0 0 40px rgba(var(--lime-rgb), .6); }
.step-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); transition: color .5s; }
.step.is-lit .step-n { color: var(--lime); }
.step h3 { margin: 12px 0 12px; font-size: clamp(30px, 3.6vw, 58px); font-weight: 900; font-variation-settings: "wdth" 115; line-height: .95; text-transform: uppercase; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 16px; max-width: 42ch; }
@media (max-width: 899px) {
    .process { grid-template-columns: minmax(0, 1fr); }
    .process-head { position: static; }
    .steps { padding-left: 46px; }
    .beam { left: 6px; }
    .step-node { left: -47px; }
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact { padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px); border-top: 1px solid var(--line); position: relative; }
.cta-big {
    font-size: clamp(46px, 10.4vw, 200px);
    font-weight: 900; font-variation-settings: "wdth" 120;
    line-height: .86; letter-spacing: -.03em; text-transform: uppercase;
    margin-bottom: clamp(60px, 12vh, 140px);
}
.cta-line {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255,255,255,.28);
    background-image: linear-gradient(90deg, var(--lime) 0 50%, transparent 50% 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 0 transparent);
}
.cta-line:nth-child(2) { padding-left: 8vw; }
.cta-line:nth-child(3) { padding-left: 16vw; }
.cta-big.is-lit .cta-line { filter: drop-shadow(0 0 30px rgba(var(--lime-rgb), .35)); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px clamp(40px, 7vw, 120px); align-items: start; }
.contact-info h3 { font-size: clamp(30px, 3.3vw, 52px); font-weight: 800; font-variation-settings: "wdth" 110; line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 40px; }
.contact-list li { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list b { min-width: 64px; font-size: 22px; font-weight: 800; color: var(--lime); font-variation-settings: "wdth" 115; }
.contact-list span { color: #c4c9c4; font-size: 15px; }

.form-wrap {
    position: relative;
    padding: clamp(26px, 4vw, 52px);
    background: var(--bg2);
    border: 1px solid var(--line);
    isolation: isolate;
}
.form-glow {
    position: absolute; inset: -1px; z-index: -1;
    background: conic-gradient(from var(--ga, 0deg), transparent 0 70%, var(--lime) 85%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    padding: 1px;
    animation: orbit 5s linear infinite paused;
    opacity: .9;
}
.form-wrap.in-view .form-glow { animation-play-state: running;
}
@property --ga { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --ga: 360deg; } }
.form { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; display: block; }
.field input, .field textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line2);
    color: var(--text);
    font: inherit;
    font-size: 17px;
    padding: 30px 0 12px;
    outline: none;
    border-radius: 0;
    resize: vertical;
}
.field span {
    position: absolute; left: 0; top: 30px;
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .45s var(--ease), color .3s, top .45s var(--ease);
}
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span {
    top: 6px;
    transform: scale(.72);
    color: var(--lime);
    font-family: var(--f-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.field::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--lime); box-shadow: 0 0 12px var(--lime);
    transform: scaleX(0); transform-origin: left;
    transition: transform .6s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.form .btn { margin-top: 30px; }
.form-success {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px; margin-bottom: 20px;
    border: 1px solid rgba(var(--lime-rgb), .45);
    background: rgba(var(--lime-rgb), .07);
    color: var(--text);
}
.fs-icon { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; font-weight: 900; box-shadow: 0 0 20px rgba(var(--lime-rgb), .6); }
@media (max-width: 899px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; overflow: hidden; padding: clamp(70px, 12vh, 140px) var(--gutter) 28px; border-top: 1px solid var(--line); isolation: isolate; }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; gap: 40px 80px; align-items: start; margin-bottom: clamp(40px, 8vh, 100px); }
.footer-tag { font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; font-variation-settings: "wdth" 112; line-height: 1.04; text-transform: uppercase; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.footer-nav a:hover { color: var(--lime); }
.to-top { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 20px; transition: background .3s, color .3s, box-shadow .3s; }
.to-top:hover { background: var(--lime); color: #000; box-shadow: 0 0 40px rgba(var(--lime-rgb), .6); }
.footer-mark {
    display: flex; justify-content: space-between;
    font-size: clamp(80px, 18.6vw, 380px);
    font-weight: 900; font-variation-settings: "wdth" 125;
    line-height: .78;
    letter-spacing: -.03em;
    overflow: hidden;
    padding-top: .04em;
    background: linear-gradient(180deg, var(--text) 30%, rgba(238,241,234,.06) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-mark span { display: inline-block; }
.footer-glow {
    position: absolute; left: 50%; bottom: -30%; width: 90%; height: 70%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(var(--lime-rgb), .2), rgba(var(--lime-rgb), .06) 60%, transparent);
    z-index: -1;
    pointer-events: none;
}
.footer-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; }
@media (max-width: 899px) {
    .footer-top { grid-template-columns: 1fr auto; }
    .footer-nav { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 12px 22px; }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    position: fixed; inset: 0; z-index: 9600;
    background: rgba(3, 4, 5, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: grid; place-items: center;
    padding: 70px var(--gutter) 40px;
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line2); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); transform: scale(.94); transition: transform .6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lb-close { position: absolute; top: 18px; right: var(--gutter); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2); font-size: 26px; line-height: 1; }
.lb-close:hover { background: var(--lime); color: #000; }

/* ==========================================================================
   WHATSAPP
   ========================================================================== */
.wa {
    position: fixed;
    right: var(--gutter);
    bottom: 22px;
    z-index: 95;
    display: flex; align-items: center;
    height: 60px;
    padding-left: 0;
    border-radius: 100px;
    background: #25d366;
    color: #06200f;
    box-shadow: 0 12px 40px -8px rgba(37, 211, 102, .65), 0 0 0 1px rgba(255,255,255,.12) inset;
    transition: box-shadow .4s var(--ease), background .3s;
}
.wa::before {
    content: ''; position: absolute; right: 0; top: 0; width: 60px; height: 60px; border-radius: 50%;
    border: 2px solid #25d366;
    animation: waPulse 2.2s var(--ease) infinite;
    pointer-events: none;
}
@keyframes waPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.wa-icon { width: 60px; height: 60px; flex: none; display: grid; place-items: center; }
.wa-icon svg { width: 30px; height: 30px; }
.wa svg .wa-bubble { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.wa svg .wa-phone { fill: currentColor; }
.wa-label {
    max-width: 0; overflow: hidden; white-space: nowrap;
    font-weight: 800; font-size: 14px; letter-spacing: .01em;
    padding-left: 0;
    transition: max-width .6s var(--ease), padding .6s var(--ease);
}
.wa:hover { box-shadow: 0 16px 60px -6px rgba(37, 211, 102, .9), 0 0 0 1px rgba(255,255,255,.2) inset; }
.wa:hover .wa-label { max-width: 200px; padding-left: 22px; }
.hud--r { right: calc(var(--gutter) + 80px); }
@media (max-width: 640px) {
    .wa { right: 16px; bottom: 16px; height: 56px; }
    .wa::before, .wa-icon { width: 56px; height: 56px; }
}
.menu-open .wa { opacity: 0; pointer-events: none; }

.wa-mini { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #25d366; color: #06200f; flex: none; box-shadow: 0 0 20px rgba(37, 211, 102, .45); }
.wa-mini svg { width: 21px; height: 21px; }
.wa-mini svg .wa-bubble { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; }
.wa-mini svg .wa-phone { fill: currentColor; }
.contact-list li.contact-wa { padding: 0; }
.contact-wa a { display: flex; align-items: center; gap: 20px; width: 100%; padding: 16px 0; transition: color .3s; }
.contact-wa a > span:nth-child(2) { display: flex; flex-direction: column; font-size: 20px; font-weight: 800; font-variation-settings: "wdth" 112; color: var(--text); letter-spacing: .02em; }
.contact-wa small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #25d366; font-weight: 500; margin-bottom: 4px; }
.contact-wa i { margin-left: auto; font-style: normal; color: #25d366; font-size: 20px; transition: transform .4s var(--ease); }
.contact-wa a:hover i { transform: translate(4px, -4px); }
.mnav-wa { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; font-weight: 700; font-size: 18px; }

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    body::after { animation: none; }
    .manifesto-text .w { opacity: 1; }
    .step { opacity: 1; }
    .cta-line { background-position: 0 0; }
    .portal-mask { opacity: 0; }
    .portal-img { transform: none; }
    .portal-shade, .portal-hud, .portal-copy-k { opacity: 1; }
    .portal-copy .pl > span { transform: none; }
    .portal-pre { display: none; }
}

/* formulário: estados extra */
.form-success[hidden] { display: none; }
.form-success.is-error { border-color: rgba(255, 110, 90, .5); background: rgba(255, 110, 90, .07); }
.form-success.is-error .fs-icon { background: #ff6e5a; box-shadow: 0 0 20px rgba(255, 110, 90, .5); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: .6; pointer-events: none; }
