:root {
  --bg: #020605;
  --bg-soft: #07100d;
  --panel: rgba(9, 22, 17, 0.78);
  --panel-solid: #0a1712;
  --white: #f5fff9;
  --muted: #9fb5aa;
  --emerald: #28f589;
  --emerald-2: #00b968;
  --emerald-dark: #087343;
  --line: rgba(111, 255, 181, 0.18);
  --line-strong: rgba(111, 255, 181, 0.42);
  --danger: #ff7474;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 8%, rgba(0, 185, 104, 0.17), transparent 25rem),
    radial-gradient(circle at 8% 52%, rgba(40, 245, 137, 0.07), transparent 27rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(92, 255, 170, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 255, 170, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  animation: gridDrift 22s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0 45%, rgba(40,245,137,.028) 48%, transparent 51% 100%);
  background-size: 250% 100%;
  animation: ambientSweep 12s ease-in-out infinite;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

::selection { color: #00160b; background: var(--emerald); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 16px;
  color: #00160b;
  background: var(--emerald);
  border-radius: 10px;
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.container { width: var(--container); margin-inline: auto; }
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 76px 0; }
.section-line { border-top: 1px solid var(--line); }
.narrow { max-width: 850px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(2, 6, 5, 0.88);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 26px rgba(40,245,137,.15); }
.brand:hover img { animation: brandPulse .9s ease both; }
.brand-copy { display: grid; gap: 1px; line-height: 1; }
.brand-copy strong { font-size: .98rem; letter-spacing: .11em; }
.brand-copy small { color: var(--emerald); font-size: .64rem; letter-spacing: .34em; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { padding: 11px 14px; color: var(--muted); text-decoration: none; border-radius: 99px; font-size: .91rem; font-weight: 700; transition: color .2s ease, background .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(40, 245, 137, 0.08); }
.main-nav .nav-cta { margin-left: 8px; color: #002d17; background: var(--emerald); }
.main-nav .nav-cta:hover, .main-nav .nav-cta.active { color: #00170c; background: #71ffb2; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; margin: 4px auto; display: block; background: var(--white); transition: .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero { min-height: calc(100svh - 82px); display: grid; align-items: center; padding: 68px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(50px, 7vw, 110px); align-items: center; }
.hero-copy h1, .page-hero h1 {
  margin: 0 0 28px;
  max-width: 900px;
  font-size: clamp(3.5rem, 7vw, 7.1rem);
  line-height: .92;
  letter-spacing: -.072em;
}
.hero-copy h1 span, .page-hero h1 span { color: var(--emerald); text-shadow: 0 0 34px rgba(40,245,137,.22); }
.hero-copy > p, .page-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--emerald); font-size: .76rem; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn { min-height: 52px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: -40% auto -40% -45%; width: 30%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transition: left .55s ease; }
.btn:hover::after { left: 118%; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: #001d0f; background: var(--emerald); box-shadow: 0 12px 34px rgba(40,245,137,.18); }
.btn-primary:hover { background: #78ffb7; box-shadow: 0 17px 42px rgba(40,245,137,.28); }
.btn-secondary { color: var(--white); border-color: var(--line-strong); background: rgba(255,255,255,.025); }
.btn-secondary:hover { border-color: var(--emerald); background: rgba(40,245,137,.07); }
.btn.full { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #c7d8cf; font-size: .84rem; }
.trust-row span::before { content: "•"; margin-right: 8px; color: var(--emerald); }

.hero-visual { position: relative; min-height: 590px; display: grid; place-items: center; }
.logo-orbit {
  width: min(480px, 100%);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 255, 136, .12), rgba(1, 10, 6, .72) 60%, transparent 61%);
  box-shadow: inset 0 0 80px rgba(28, 255, 137, .08), 0 0 80px rgba(10, 170, 92, .08);
  animation: orbitFloat 6s ease-in-out infinite;
}
.logo-orbit::before, .logo-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); animation: spin 18s linear infinite; }
.logo-orbit::before { inset: -22px; border-style: dashed; }
.logo-orbit::after { inset: 50px; border-color: rgba(40,245,137,.12); animation-direction: reverse; animation-duration: 12s; }
.hero-logo { width: 61%; aspect-ratio: 1; border-radius: 24%; object-fit: cover; filter: drop-shadow(0 0 30px rgba(40,245,137,.18)); z-index: 2; }
.hero-logo { animation: logoBreathe 4.6s ease-in-out infinite; }
.orbit-node { position: absolute; z-index: 3; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: #dffff0; background: rgba(3, 13, 8, .88); box-shadow: var(--shadow); font-size: .78rem; font-weight: 800; backdrop-filter: blur(10px); }
.node-web { left: -22px; top: 23%; }
.node-3d { right: -14px; bottom: 22%; }
.node-web { animation: nodeFloat 4s ease-in-out infinite; }
.node-3d { animation: nodeFloat 4s ease-in-out -2s infinite; }
.status-pulse { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 5px rgba(40,245,137,.1), 0 0 18px var(--emerald); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes gridDrift { to { background-position: 72px 72px; } }
@keyframes ambientSweep { 0%, 100% { background-position: 130% 0; } 50% { background-position: -50% 0; } }
@keyframes orbitFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes logoBreathe { 0%,100% { filter: drop-shadow(0 0 24px rgba(40,245,137,.18)); transform: scale(1); } 50% { filter: drop-shadow(0 0 46px rgba(40,245,137,.38)); transform: scale(1.025); } }
@keyframes nodeFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes brandPulse { 50% { transform: scale(1.08); box-shadow: 0 0 36px rgba(40,245,137,.38); } }

.metric-strip { border-block: 1px solid var(--line); background: rgba(5, 15, 10, .58); }
.metric-grid { min-height: 88px; display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-grid div { padding: 22px 24px; display: flex; align-items: center; justify-content: center; gap: 12px; border-right: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.metric-grid div:last-child { border-right: 0; }
.metric-grid strong { color: var(--white); font-size: 1rem; }

.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow::before { display: none; }
.section-heading h2, .split-copy h2, .cta-box h2, .contact-info h2 { margin: 0 0 20px; font-size: clamp(2.2rem, 4vw, 4.3rem); line-height: 1.03; letter-spacing: -.052em; }
.section-heading p, .split-copy p, .contact-info > p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

.service-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-pillar { min-height: 520px; padding: clamp(30px, 4vw, 50px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(12, 29, 22, .92), rgba(3, 10, 7, .94)); box-shadow: var(--shadow); }
.service-pillar { transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s ease, box-shadow .4s ease; transform-style: preserve-3d; }
.service-pillar:hover { transform: translateY(-9px); border-color: var(--line-strong); box-shadow: 0 34px 100px rgba(0,0,0,.52), 0 0 46px rgba(40,245,137,.07); }
.service-pillar::after { content: ""; position: absolute; width: 240px; height: 240px; top: -110px; right: -80px; border-radius: 50%; background: rgba(40,245,137,.1); filter: blur(10px); }
.service-pillar::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(110deg, transparent 25%, rgba(40,245,137,.08) 45%, transparent 65%); background-size: 260% 100%; animation: cardSweep 7s ease-in-out infinite; }
.pillar-number { color: rgba(170,255,210,.45); font: 700 .73rem ui-monospace, monospace; letter-spacing: .16em; }
.service-icon { width: 64px; height: 64px; margin: 55px 0 24px; display: grid; place-items: center; color: var(--emerald); border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(40,245,137,.06); }
.service-icon svg { width: 30px; height: 30px; }
.service-pillar:hover .service-icon { animation: iconSignal .8s ease both; }
.service-pillar h3 { margin: 0 0 16px; font-size: clamp(2rem, 3.4vw, 3.4rem); letter-spacing: -.05em; }
.service-pillar p { margin: 0 0 26px; max-width: 530px; color: var(--muted); line-height: 1.75; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 28px; padding: 0; list-style: none; }
.tag-list li { padding: 8px 11px; color: #c8e2d4; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.02); font-size: .76rem; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--emerald); text-decoration: none; font-weight: 800; }
.text-link:hover { gap: 14px; }

.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 8vw, 110px); align-items: start; }
.process-list { border-top: 1px solid var(--line); }
.process-item { padding: 26px 0; display: grid; grid-template-columns: 50px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.process-item > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--emerald); border: 1px solid var(--line-strong); border-radius: 10px; font: 700 .74rem ui-monospace, monospace; }
.process-item h3 { margin: 2px 0 8px; font-size: 1.18rem; }
.process-item p { margin: 0; color: var(--muted); line-height: 1.65; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-card { min-height: 390px; padding: 28px; grid-column: span 5; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #07110d; text-decoration: none; box-shadow: var(--shadow); }
.project-card { transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease; }
.project-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: 0 34px 90px rgba(0,0,0,.52), 0 0 38px rgba(40,245,137,.08); }
.project-card.wide { grid-column: span 7; }
.project-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(1,6,4,.94) 90%); z-index: 1; }
.project-card::after { content: ""; position: absolute; width: 280px; height: 280px; right: -40px; top: -65px; border: 1px solid var(--line-strong); border-radius: 34% 66% 64% 36% / 40% 40% 60% 60%; transform: rotate(25deg); box-shadow: inset 0 0 70px rgba(40,245,137,.13), 0 0 55px rgba(40,245,137,.08); transition: transform .5s ease; }
.project-card:nth-child(2)::after { border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, rgba(40,245,137,.07) 19px 20px); }
.project-card:nth-child(3)::after { border-radius: 18px; transform: perspective(400px) rotateX(58deg) rotateZ(42deg); background: linear-gradient(135deg, rgba(40,245,137,.18), transparent); }
.project-card:hover::after { transform: rotate(45deg) scale(1.07); }
.project-card > div { position: relative; z-index: 2; }
.project-card small { color: var(--emerald); letter-spacing: .15em; font-weight: 800; }
.project-card h3 { margin: 10px 0 9px; font-size: 1.55rem; }
.project-card p { margin: 0; max-width: 470px; color: var(--muted); line-height: 1.55; }

.cta-box { padding: clamp(36px, 6vw, 74px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: radial-gradient(circle at 88% 22%, rgba(40,245,137,.18), transparent 24rem), var(--panel-solid); box-shadow: var(--shadow); }
.cta-box h2 { max-width: 760px; margin-bottom: 0; }

.site-footer { padding: 70px 0 28px; border-top: 1px solid var(--line); background: #010302; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 50px; }
.footer-brand p { max-width: 390px; margin: 20px 0 0; color: var(--muted); line-height: 1.7; }
.footer-column { display: grid; align-content: start; gap: 12px; }
.footer-column h3 { margin: 0 0 8px; color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-column a { color: var(--muted); text-decoration: none; }
.footer-column a:hover { color: var(--emerald); }
.footer-bottom { margin-top: 52px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; color: #6f8479; border-top: 1px solid var(--line); font-size: .78rem; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; color: #00190c; background: var(--emerald); border-radius: 50%; box-shadow: 0 12px 34px rgba(40,245,137,.26); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); }
.whatsapp-float svg { width: 27px; height: 27px; }

.page-hero { min-height: 540px; display: grid; align-items: end; padding-top: 140px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -150px; bottom: -260px; border-radius: 50%; border: 1px solid var(--line-strong); box-shadow: inset 0 0 90px rgba(40,245,137,.08); }
.page-hero h1 { font-size: clamp(3.4rem, 6vw, 6rem); }

.service-detail-list { display: grid; gap: 26px; }
.service-detail { padding: clamp(30px, 5vw, 58px); display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.detail-label { color: var(--emerald); font: 700 .74rem ui-monospace, monospace; letter-spacing: .16em; }
.service-detail h2 { margin: 18px 0 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }
.service-detail p { margin: 0 0 24px; color: var(--muted); line-height: 1.75; }
.clean-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.clean-list li { padding-left: 27px; position: relative; color: #d8e7df; line-height: 1.5; }
.clean-list li::before { content: "↗"; position: absolute; left: 0; color: var(--emerald); }

.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.material-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.022); }
.material-card { transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.material-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: rgba(40,245,137,.045); }
.material-card strong { display: block; margin-bottom: 12px; color: var(--emerald); font-size: 1.3rem; }
.material-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn { padding: 11px 16px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; }
.filter-btn:hover, .filter-btn.active { color: #001d0f; border-color: var(--emerald); background: var(--emerald); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card { min-height: 360px; padding: 30px; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #0c1d16, #030806); }
.work-card { transition: transform .35s ease, border-color .35s ease; }
.work-card:hover { transform: translateY(-7px); border-color: var(--line-strong); }
.work-card[hidden] { display: none; }
.work-visual { position: absolute; inset: 24px 24px 145px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.35); }
.work-visual::after { content: ""; position: absolute; inset: -30% 0 auto; height: 32%; background: linear-gradient(to bottom, transparent, rgba(40,245,137,.22), transparent); filter: blur(4px); animation: scanProject 4.5s ease-in-out infinite; }
.work-visual::before { content: ""; position: absolute; inset: 18%; border: 1px solid var(--line-strong); border-radius: 20px; transform: rotate(-8deg); box-shadow: inset 0 0 50px rgba(40,245,137,.12); }
.work-card[data-category="3d"] .work-visual::before { border-radius: 50% 50% 18% 18%; transform: perspective(300px) rotateX(55deg) rotateZ(35deg); background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(40,245,137,.07) 11px 12px); }
.work-card small { position: relative; color: var(--emerald); font-weight: 800; letter-spacing: .13em; }
.work-card h2 { margin: 8px 0 0; position: relative; font-size: 1.45rem; }

.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.story-logo { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(40,245,137,.035); }
.story-logo img { width: 100%; border-radius: 20px; }
.story-copy p { margin: 0 0 24px; color: var(--muted); font-size: 1.08rem; line-height: 1.82; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
.value-card { transition: transform .3s ease, border-color .3s ease; }
.value-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.value-card span { color: var(--emerald); font: 700 .74rem ui-monospace, monospace; }
.value-card h3 { margin: 42px 0 13px; font-size: 1.3rem; }
.value-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(45px, 8vw, 100px); align-items: start; }
.contact-points { margin-top: 38px; display: grid; gap: 12px; }
.contact-point { padding: 20px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: rgba(255,255,255,.02); }
.contact-point svg { width: 22px; color: var(--emerald); }
.contact-point small, .contact-point strong { display: block; }
.contact-point small { margin-bottom: 3px; color: var(--muted); }
.quote-form { padding: clamp(26px, 5vw, 50px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid label { display: grid; gap: 8px; color: #d9e9e0; font-size: .88rem; font-weight: 750; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 14px 15px; color: var(--white); border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #040c08; }
.form-grid select { color-scheme: dark; }
.form-grid textarea { min-height: 145px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(40,245,137,.08); }
.form-grid .invalid { border-color: var(--danger); }
.field-error { min-height: 16px; color: var(--danger); font-size: .74rem; font-weight: 600; }
.form-actions { margin-top: 23px; }
.form-note { margin: 13px 0 0; color: #779083; font-size: .76rem; text-align: center; }

.install-banner { display: none; position: fixed; left: 50%; bottom: 22px; z-index: 120; width: min(560px, calc(100% - 28px)); padding: 16px; transform: translateX(-50%); align-items: center; gap: 15px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(4, 14, 9, .96); box-shadow: 0 22px 70px rgba(0,0,0,.5); backdrop-filter: blur(16px); }
.install-banner.show { display: flex; animation: slideUp .35s ease both; }
.install-banner img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.install-banner div { flex: 1; }
.install-banner strong, .install-banner small { display: block; }
.install-banner small { margin-top: 3px; color: var(--muted); }
.install-banner button { padding: 10px 13px; border: 0; border-radius: 9px; cursor: pointer; font-weight: 800; }
.install-accept { color: #00170c; background: var(--emerald); }
.install-close { color: var(--muted); background: transparent; }

.reveal { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(6px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1), filter .75s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.visible { filter: blur(0); }

.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 180; width: 100%; height: 2px; pointer-events: none; transform: scaleX(0); transform-origin: left; background: var(--emerald); box-shadow: 0 0 15px var(--emerald); }
.cursor-glow { position: fixed; z-index: 0; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%; pointer-events: none; opacity: .12; background: radial-gradient(circle, var(--emerald), transparent 66%); filter: blur(26px); transform: translate3d(-100vw,-100vh,0); transition: opacity .25s ease; }

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(40,245,137,.14), transparent 28rem),
    #010403;
}
.page-transition::before { content: ""; position: absolute; inset: -20%; opacity: .28; background-image: linear-gradient(rgba(40,245,137,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(40,245,137,.18) 1px, transparent 1px); background-size: 52px 52px; transform: perspective(560px) rotateX(58deg) scale(1.4); animation: transitionGrid 1.4s linear infinite; }
.page-transition::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0 43%, rgba(40,245,137,.2) 49%, rgba(40,245,137,.55) 50%, rgba(40,245,137,.2) 51%, transparent 57% 100%); transform: translateY(-100%); }
.transition-core { position: relative; z-index: 2; display: grid; place-items: center; gap: 18px; }
.transition-logo-wrap { width: 146px; height: 146px; display: grid; place-items: center; position: relative; }
.transition-logo-wrap::before, .transition-logo-wrap::after { content: ""; position: absolute; inset: -18px; border: 1px solid rgba(40,245,137,.45); border-radius: 50%; }
.transition-logo-wrap::before { border-style: dashed; animation: spin 5s linear infinite; }
.transition-logo-wrap::after { inset: -34px; border-color: rgba(40,245,137,.16); animation: spin 8s linear reverse infinite; }
.transition-logo { width: 118px; height: 118px; border-radius: 25px; object-fit: cover; box-shadow: 0 0 45px rgba(40,245,137,.32); }
.transition-name { display: grid; gap: 5px; text-align: center; letter-spacing: .2em; }
.transition-name strong { font-size: 1.2rem; }
.transition-name small { color: var(--emerald); font-size: .68rem; letter-spacing: .42em; }
.transition-status { width: 220px; height: 2px; overflow: hidden; background: rgba(40,245,137,.13); }
.transition-status::after { content: ""; display: block; width: 42%; height: 100%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); animation: loadingLine .9s ease-in-out infinite; }
.page-transition.enter { visibility: visible; animation: transitionEnter 1.12s cubic-bezier(.77,0,.18,1) both; }
.page-transition.enter::after { animation: scanScreen .72s ease .12s both; }
.page-transition.enter .transition-core { animation: coreBoot .92s cubic-bezier(.2,.8,.2,1) both; }
.page-transition.exit { visibility: visible; animation: transitionExit .7s cubic-bezier(.77,0,.18,1) both; }
.page-transition.exit::after { animation: scanScreen .6s ease both; }
.page-transition.exit .transition-core { animation: coreExit .65s cubic-bezier(.2,.8,.2,1) both; }

@keyframes cardSweep { 0%, 30% { background-position: 130% 0; } 65%, 100% { background-position: -80% 0; } }
@keyframes iconSignal { 0%,100% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-4deg); box-shadow: 0 0 34px rgba(40,245,137,.28); } }
@keyframes scanProject { 0%,15% { transform: translateY(-120%); opacity: 0; } 35%,75% { opacity: 1; } 90%,100% { transform: translateY(430%); opacity: 0; } }
@keyframes transitionGrid { to { background-position: 0 52px, 52px 0; } }
@keyframes loadingLine { 0% { transform: translateX(-110%); } 100% { transform: translateX(345%); } }
@keyframes scanScreen { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes coreBoot { 0% { opacity: 0; transform: scale(.65) rotate(-8deg); filter: blur(18px); } 38% { opacity: 1; } 72% { transform: scale(1); filter: blur(0); } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes coreExit { 0% { opacity: 0; transform: scale(.72); filter: blur(14px); } 55%,100% { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes transitionEnter { 0%,72% { opacity: 1; } 99% { opacity: 0; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes transitionExit { 0% { opacity: 0; clip-path: circle(0 at 50% 50%); } 100% { opacity: 1; clip-path: circle(150% at 50% 50%); } }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 24px); } }

@media (max-width: 980px) {
  .hero-grid, .split-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 500px; }
  .service-duo { grid-template-columns: 1fr; }
  .service-pillar { min-height: 470px; }
  .service-detail { grid-template-columns: 1fr; gap: 30px; }
  .materials-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1180px); }
  .section { padding: 82px 0; }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 42px; height: 42px; }
  .brand-copy strong { font-size: .84rem; }
  .brand-copy small { font-size: .56rem; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 70px 0 auto; padding: 22px 20px 28px; display: grid; gap: 5px; background: rgba(2,6,5,.98); border-bottom: 1px solid var(--line); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: .3s ease; }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 14px; }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { padding-top: 46px; }
  .hero-grid { gap: 30px; }
  .hero-copy h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
  .hero-visual { min-height: 410px; }
  .logo-orbit { width: min(350px, 88vw); }
  .node-web { left: -5px; }
  .node-3d { right: -2px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid div:nth-child(2) { border-right: 0; }
  .metric-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-card, .project-card.wide { grid-column: 1 / -1; }
  .cta-box { grid-template-columns: 1fr; }
  .page-hero { min-height: 480px; padding-top: 105px; }
  .page-hero h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .transition-logo-wrap { width: 120px; height: 120px; }
  .transition-logo { width: 96px; height: 96px; border-radius: 21px; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .hero-copy > p, .page-hero p { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .trust-row { display: grid; gap: 10px; }
  .hero-visual { min-height: 360px; }
  .orbit-node { font-size: .68rem; }
  .service-pillar { min-height: 440px; padding: 28px 24px; }
  .service-icon { margin-top: 38px; }
  .materials-grid, .values-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .install-banner { align-items: flex-start; flex-wrap: wrap; }
  .install-banner div { min-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow, .page-transition { display: none !important; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
  .service-pillar:hover, .project-card:hover, .work-card:hover, .material-card:hover, .value-card:hover { transform: none; }
}

@media (display-mode: standalone) {
  .install-banner { display: none !important; }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .32s ease both fade-out; }
::view-transition-new(root) { animation: .48s ease both fade-in; }
@keyframes fade-out { to { opacity: 0; transform: scale(.985); } }
@keyframes fade-in { from { opacity: 0; transform: scale(1.012); } }
