/* Portfolio Neo 2026 — camada visual exclusiva da home */
:root {
  --bg: #05060b;
  --bg-soft: #090b13;
  --panel: rgba(13, 16, 29, .72);
  --panel-solid: #0d101d;
  --line: rgba(197, 209, 255, .14);
  --line-strong: rgba(86, 228, 255, .45);
  --ink: #f7f8ff;
  --soft: #c9cce0;
  --muted: #8d93aa;
  --cyan: #56e4ff;
  --blue: #6078ff;
  --violet: #a66cff;
  --pink: #ff5ebc;
  --green: #61f6a4;
  --deep: #6078ff;
  --radius: 26px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 4%, rgba(86, 228, 255, .11), transparent 25%),
    radial-gradient(circle at 82% 9%, rgba(166, 108, 255, .13), transparent 27%),
    #05060b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 88%);
}
body::after {
  content: "";
  position: fixed;
  width: 38rem;
  height: 38rem;
  left: calc(var(--cursor-x, 50vw) - 19rem);
  top: calc(var(--cursor-y, 20vh) - 19rem);
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86,228,255,.075), transparent 66%);
  pointer-events: none;
}
::selection { color: #05060b; background: var(--cyan); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; }
.container { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 16px; border-radius: 10px; color: #05060b; background: var(--cyan); font-weight: 800; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.scroll-progress { height: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); }
nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; background: rgba(5,6,11,.68); backdrop-filter: blur(22px); transition: border-color .25s, background .25s; }
nav.nav-scrolled { border-color: var(--line); background: rgba(5,6,11,.9); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.nav-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.logo-glyph { width: 40px; height: 40px; display: grid; place-items: center; position: relative; border: 1px solid rgba(86,228,255,.42); border-radius: 13px; background: #0c1020; box-shadow: inset 0 0 18px rgba(86,228,255,.1), 0 0 30px rgba(86,228,255,.08); color: var(--cyan); font: 700 .82rem/1 "Fira Code", monospace; }
.logo-glyph::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(166,108,255,.25); border-radius: 16px; clip-path: polygon(0 0, 45% 0, 45% 5%, 0 5%, 0 100%, 5% 100%, 5% 55%, 0 55%); }
.nav-logo small { display: block; color: var(--muted); font: 400 .62rem/1.2 "Fira Code", monospace; letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .84rem; font-weight: 700; }
.nav-links a { position: relative; text-decoration: none; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: -8px; background: var(--cyan); transition: right .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; color: var(--ink); background: none; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .22s, box-shadow .22s, border-color .22s, background .22s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cyan), #7c7cff 54%, var(--violet)); color: #070812; box-shadow: 0 14px 40px rgba(96,120,255,.22); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 48%, transparent 75%); transform: translateX(-120%); transition: transform .65s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-soft { border-color: var(--line); background: rgba(255,255,255,.035); }
.btn-soft:hover { border-color: var(--line-strong); background: rgba(86,228,255,.07); }
.btn-small { min-height: 40px; padding-inline: 15px; font-size: .82rem; }
.btn svg { width: 19px; height: 19px; }

.mobile-nav { top: 76px; background: rgba(5,6,11,.98); }
.mobile-nav-link, .mobile-nav-cta { color: var(--soft); }
.mobile-nav-cta { background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #05060b; }
.nav-hamburger span { background: var(--ink); }

/* O HTML desta proposta preserva a estrutura SaaS; estes ajustes mantêm o hero
   compacto enquanto a camada Neo cuida apenas da direção visual e do Three.js. */
#hero { min-height: auto; display: block; padding: 78px 0 72px; }
.hero-grid { grid-template-columns: minmax(0, .94fr) minmax(420px, .86fr); gap: 36px; }
.hero-title { max-width: 18ch; margin: 20px 0 18px; font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.035em; }
.hero-desc { max-width: 680px; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { margin: 26px 0 18px; }
.hero-proof-grid { max-width: 640px; margin-top: 28px; }
.hero-visual { min-height: 500px; }

#hero { position: relative; min-height: calc(100svh - 76px); display: grid; align-items: center; padding: 68px 0 76px; isolation: isolate; overflow: hidden; }
.hero-noise { position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E"); mask-image: linear-gradient(#000, transparent 92%); }
.hero-beam { position: absolute; left: 51%; top: -22%; width: 1px; height: 135%; background: linear-gradient(transparent, rgba(86,228,255,.8), transparent); box-shadow: 0 0 45px 9px rgba(86,228,255,.12); transform: rotate(24deg); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(430px, .8fr); gap: clamp(38px, 7vw, 94px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); font: 600 .76rem/1.2 "Fira Code", monospace; text-transform: uppercase; letter-spacing: .1em; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(97,246,164,.1), 0 0 18px rgba(97,246,164,.65); animation: statusPulse 2s ease infinite; }
.hero-title { max-width: 12ch; margin: 22px 0; font-size: clamp(3.7rem, 7.6vw, 7.5rem); line-height: .83; letter-spacing: -.075em; font-weight: 800; text-wrap: balance; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(247,248,255,.7); }
.hero-title .gradient-text { display: inline; background: linear-gradient(100deg, var(--cyan), #99a5ff 38%, var(--violet) 68%, var(--pink)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradientTravel 6s ease infinite alternate; }
.hero-role { min-height: 31px; margin-bottom: 18px; color: var(--cyan); font: 600 clamp(.9rem, 1.5vw, 1.08rem)/1.5 "Fira Code", monospace; }
.hero-role::before { content: "> "; color: var(--violet); }
.hero-role::after { content: "_"; animation: blink .9s steps(1) infinite; }
.hero-desc { max-width: 650px; color: var(--soft); font-size: clamp(1rem, 1.55vw, 1.15rem); }
.hero-desc strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 29px 0 25px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.hero-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; max-width: 650px; }
.proof-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.proof-card strong { display: block; font-size: 1.55rem; line-height: 1; letter-spacing: -.06em; }
.proof-card span { display: block; margin-top: 7px; color: var(--muted); font-size: .7rem; font-weight: 700; }

.hero-network { --pointer-x: 72%; --pointer-y: 42%; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-network::before { content: ""; position: absolute; width: 280px; height: 280px; left: calc(var(--pointer-x) - 140px); top: calc(var(--pointer-y) - 140px); z-index: 2; border-radius: 50%; background: radial-gradient(circle, rgba(86,228,255,.22), rgba(166,108,255,.09) 34%, transparent 70%); opacity: .35; transform: scale(.7); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.hero-network.is-pointer-active::before { opacity: .58; transform: scale(.86); }
.hero-network::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,6,11,.5) 0%, rgba(5,6,11,.24) 38%, rgba(5,6,11,.02) 72%, transparent 100%); pointer-events: none; }
.hero-particle-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; transition: opacity .7s ease; mask-image: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.8) 40%, #000 100%); }
.hero-network[data-fx-state="ready"] .hero-particle-canvas { opacity: .96; }
.hero-network[data-fx-state="error"] .hero-particle-canvas { display: none; }
#hero > .container { position: relative; z-index: 2; }
.hero-copy { max-width: 760px; }

.audience-switcher { padding: 22px 0 0; }
.audience-shell { display: grid; grid-template-columns: .82fr 1.18fr; gap: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.025); }
.audience-copy { padding: 25px; }
.audience-copy .kicker { margin: 0 0 8px; }
.audience-copy h2 { margin: 0 0 9px; font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.05em; }
.audience-copy p { margin: 0; color: var(--muted); }
.audience-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.audience-tab { position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--soft); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.audience-tab:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.audience-tab.active { border-color: rgba(86,228,255,.45); background: linear-gradient(135deg, rgba(86,228,255,.1), rgba(166,108,255,.08)); }
.audience-tab small { display: block; margin-bottom: 12px; color: var(--cyan); font: 600 .66rem/1 "Fira Code", monospace; letter-spacing: .1em; }
.audience-tab strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 1.05rem; }
.audience-tab span { display: block; font-size: .82rem; }

.trust-strip { margin-top: 72px; border-color: var(--line); background: rgba(255,255,255,.018); transform: rotate(-1deg) scale(1.02); }
.trust-track { padding: 17px 0; gap: 42px; color: var(--soft); font-family: "Fira Code", monospace; }
.trust-track span::before { content: "✦"; margin-right: 42px; color: var(--violet); }

section { position: relative; padding: 108px 0; }
section[id] { content-visibility: auto; contain-intrinsic-size: auto 780px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 390px); gap: 50px; align-items: end; margin-bottom: 44px; }
.kicker { margin: 0; color: var(--cyan); font: 600 .7rem/1.2 "Fira Code", monospace; letter-spacing: .13em; text-transform: uppercase; }
.section-title { max-width: 16ch; margin: 13px 0 0; font-size: clamp(2.5rem, 5.6vw, 5.6rem); line-height: .91; letter-spacing: -.067em; text-wrap: balance; }
.section-copy { margin: 0; color: var(--muted); }
.section-index { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font: 500 .68rem/1 "Fira Code", monospace; }
.section-index::after { content: ""; width: 56px; height: 1px; background: var(--line-strong); }

#services::before, #about::before, #contact::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(166,108,255,.08); filter: blur(80px); pointer-events: none; }
#services::before { right: -180px; top: 4%; }
#about::before { left: -220px; top: 12%; background: rgba(86,228,255,.07); }
#contact::before { right: -200px; bottom: 0; background: rgba(255,94,188,.07); }

.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 15px; }
.service-card { min-height: 470px; grid-column: span 4; padding: 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.052), rgba(255,255,255,.015)); box-shadow: none; isolation: isolate; }
.service-card:nth-child(2) { transform: translateY(34px); }
.service-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -95px; top: -100px; border-radius: 50%; background: var(--accent, var(--cyan)); opacity: .09; filter: blur(10px); transition: transform .5s, opacity .5s; z-index: -1; }
.service-card:hover::before { transform: scale(1.4); opacity: .16; }
.service-card:nth-child(2) { --accent: var(--violet); }
.service-card:nth-child(3) { --accent: var(--pink); }
.service-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.service-num { color: var(--muted); font: 500 .7rem/1 "Fira Code", monospace; }
.service-icon { width: 62px; height: 62px; margin: 0; border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 40%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--accent, var(--cyan)) 10%, transparent); color: var(--accent, var(--cyan)); font: 700 .72rem/1 "Fira Code", monospace; }
.service-card h3 { margin: 28px 0 13px; font-size: 1.65rem; line-height: 1.05; letter-spacing: -.05em; }
.service-card > p { margin: 0; color: var(--muted); }
.service-list { margin: 22px 0 26px; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--soft); font-size: .85rem; }
.service-list li::before { content: "+"; margin-right: 9px; color: var(--accent, var(--cyan)); }
.service-card .btn { width: 100%; margin-top: auto; }

#projects { padding-top: 145px; }
.project-showcase { display: grid; gap: 22px; }
.project-card { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 530px; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,.025); }
.project-card:nth-child(even) .project-media { order: 2; }
.project-media { position: relative; overflow: hidden; min-height: 420px; background: #090b11; }
.project-media video { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.78); transition: filter .5s, transform .7s; }
.project-card:hover video { filter: saturate(1); transform: scale(1.025); }
.project-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 55%, rgba(5,6,11,.35)); }
.project-card:nth-child(even) .project-media::after { background: linear-gradient(-90deg, transparent 55%, rgba(5,6,11,.35)); }
.project-body { padding: clamp(30px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; }
.project-label { color: var(--cyan); font: 600 .68rem/1 "Fira Code", monospace; letter-spacing: .13em; text-transform: uppercase; }
.project-body h3 { margin: 18px 0 14px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .96; letter-spacing: -.06em; }
.project-body p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.tag { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font: 500 .65rem/1 "Fira Code", monospace; }
.project-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 26px; }
.project-metrics span { padding: 12px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: .69rem; }
.project-metrics strong { display: block; color: var(--ink); font-size: 1.08rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; }

.confidential-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 22px; }
.confidential-card { position: relative; overflow: hidden; min-height: 305px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.confidential-card::after { content: attr(data-code); position: absolute; right: -8px; bottom: -30px; color: rgba(255,255,255,.025); font-size: 8rem; font-weight: 800; letter-spacing: -.1em; }
.confidential-card small { color: var(--violet); font: 600 .65rem/1 "Fira Code", monospace; text-transform: uppercase; letter-spacing: .12em; }
.confidential-card h3 { margin: 62px 0 12px; font-size: 1.4rem; letter-spacing: -.04em; }
.confidential-card p { position: relative; z-index: 1; color: var(--muted); font-size: .9rem; }

#about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 68px; align-items: start; }
.about-sticky { position: sticky; top: 112px; }
.about-portrait { position: relative; min-height: 570px; overflow: hidden; border: 1px solid var(--line); border-radius: 180px 180px 28px 28px; background: linear-gradient(160deg, rgba(86,228,255,.1), rgba(166,108,255,.1)); }
.about-portrait img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center top; filter: grayscale(.1) contrast(1.04); }
.about-portrait::after { content: "FULLSTACK / CREATIVE DEVELOPER"; position: absolute; left: 26px; bottom: 25px; color: #fff; font: 600 .64rem/1 "Fira Code", monospace; letter-spacing: .1em; text-shadow: 0 2px 12px #000; }
.about-copy .section-title { max-width: 13ch; }
.about-lead { max-width: 680px; color: var(--soft); font-size: clamp(1.18rem, 2.1vw, 1.55rem); line-height: 1.5; }
.about-lead strong { color: var(--cyan); }
.timeline { display: grid; gap: 0; margin: 48px 0; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 155px 1fr; gap: 25px; padding: 27px 0; padding-left: 15px; border-bottom: 1px solid var(--line); background: none; }
.timeline-period { color: var(--cyan); font: 500 .68rem/1.5 "Fira Code", monospace; }
.timeline-role { font-size: 1.08rem; font-weight: 800; }
.timeline-company { grid-column: 2; color: var(--muted); margin-top: -18px; font-size: .9rem; }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.stack-card { min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.stack-card h3 { margin: 0 0 18px; color: var(--soft); font: 600 .7rem/1 "Fira Code", monospace; text-transform: uppercase; letter-spacing: .1em; }
.pill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { padding: 6px 8px; border-radius: 7px; background: rgba(86,228,255,.07); color: var(--soft); font-size: .7rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

#processo { overflow: hidden; }
.process-shell { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: rgba(255,255,255,.02); }
.process-step { position: relative; min-height: 330px; padding: 28px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.process-step:last-child { border-right: 0; }
.process-step::before { content: ""; position: absolute; left: 0; right: 100%; top: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: right .8s ease; }
.process-step.visible::before { right: 0; }
.step-num { margin: 0 0 96px; color: var(--cyan); font: 500 .72rem/1 "Fira Code", monospace; }
.process-step h3 { margin: 0 0 12px; font-size: 1.25rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .9rem; }

.proof-section { padding-bottom: 70px; }
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.testimonial-card { position: relative; overflow: hidden; min-height: 360px; padding: 34px; border: 1px solid var(--line); border-radius: 25px; background: rgba(255,255,255,.027); }
.testimonial-card::before { content: "“"; position: absolute; right: 25px; top: 0; color: rgba(166,108,255,.12); font: 800 11rem/1 Georgia, serif; }
.testimonial-top { color: var(--green); font: 600 .66rem/1 "Fira Code", monospace; letter-spacing: .1em; text-transform: uppercase; }
.testimonial-card blockquote { position: relative; margin: 54px 0 18px; font-size: clamp(1.35rem, 2.6vw, 2.2rem); line-height: 1.16; letter-spacing: -.045em; }
.testimonial-author { color: var(--muted); font-size: .82rem; }
.testimonial-card picture { display: block; margin-top: 24px; }
.testimonial-card img { width: 100%; height: auto; border-radius: 9px; opacity: .76; }

#blog { padding-top: 75px; }
.blog-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.blog-card { min-height: 310px; padding: 25px; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: rgba(255,255,255,.025); color: var(--ink); text-decoration: none; }
.blog-card::after { content: "↗"; position: absolute; right: 23px; top: 20px; color: var(--cyan); font-size: 1.4rem; transition: transform .25s; }
.blog-card:hover::after { transform: translate(4px,-4px); }
.blog-card small { color: var(--violet); font: 600 .65rem/1 "Fira Code", monospace; text-transform: uppercase; letter-spacing: .1em; }
.blog-card h3 { margin: auto 0 12px; max-width: 14ch; font-size: 1.45rem; line-height: 1.06; letter-spacing: -.045em; }
.blog-card p { margin: 0 0 18px; color: var(--muted); font-size: .85rem; }
.blog-card span { color: var(--cyan); font-size: .82rem; font-weight: 800; }

#faq { padding-top: 72px; }
.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; }
.faq-intro { position: sticky; top: 112px; align-self: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.faq-item summary { position: relative; padding: 25px 48px 25px 0; cursor: pointer; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 3px; top: 22px; color: var(--cyan); font: 400 1.4rem/1 "Fira Code", monospace; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: -5px 0 24px; padding-right: 50px; color: var(--muted); }
.faq-cta { margin-top: 25px; }

#agenda { padding: 75px 0; }
.agenda-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; padding: clamp(32px, 6vw, 72px); border: 1px solid rgba(86,228,255,.27); border-radius: 30px; background: linear-gradient(135deg, rgba(86,228,255,.09), rgba(166,108,255,.08)); }
.agenda-card::after { content: "30"; position: absolute; right: 16%; top: -70px; color: rgba(255,255,255,.025); font-size: 15rem; font-weight: 800; }
.agenda-card h2 { position: relative; z-index: 1; max-width: 12ch; margin: 10px 0 12px; font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: .93; letter-spacing: -.065em; }
.agenda-card p { position: relative; z-index: 1; max-width: 590px; color: var(--soft); }
.agenda-card .btn { position: relative; z-index: 1; }

#contact { padding-bottom: 70px; overflow: hidden; }
.final-cta { position: relative; padding: clamp(34px, 6vw, 78px); border: 1px solid var(--line); border-radius: 34px; background: rgba(255,255,255,.025); text-align: left; overflow: hidden; }
.final-cta::before { content: "LET'S BUILD"; position: absolute; left: -10px; top: -15px; color: rgba(255,255,255,.018); font-size: clamp(7rem, 16vw, 13rem); font-weight: 800; white-space: nowrap; line-height: 1; }
.contact-heading { position: relative; display: grid; grid-template-columns: 1fr .7fr; gap: 50px; align-items: end; margin-bottom: 50px; }
.contact-heading h2 { max-width: 12ch; margin: 10px 0 0; font-size: clamp(2.8rem, 7vw, 6.8rem); line-height: .86; letter-spacing: -.07em; }
.contact-heading p { margin: 0; color: var(--soft); }
.contact-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 900px; margin: 0; }
.form-field { min-width: 0; border: 0; padding: 0; margin: 0; }
.form-field.full, .contact-form .full { grid-column: 1/-1; }
.form-field label, .form-field legend { display: block; margin-bottom: 8px; color: var(--soft); font-size: .75rem; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; color: var(--ink); background: rgba(0,0,0,.22); transition: border-color .2s, box-shadow .2s; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(86,228,255,.08); outline: 0; }
.hero-intent-options { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-intent-opt { cursor: pointer; }
.hero-intent-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hero-intent-opt span { display: block; min-width: 110px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; text-align: center; color: var(--muted); transition: .2s; }
.hero-intent-opt input:checked + span { border-color: var(--cyan); color: var(--ink); background: rgba(86,228,255,.09); }
.hero-intent-opt input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.form-honeypot { position: absolute!important; left: -9999px!important; width: 1px!important; height: 1px!important; opacity: 0!important; }
.form-status { min-height: 24px; grid-column: 1/-1; margin: 0; font-size: .82rem; }
.form-privacy, .form-noscript { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.form-privacy a, .form-noscript a { color: var(--cyan); }
.contact-links { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 900px; margin-top: 18px; }
.contact-link { padding: 17px; border: 1px solid var(--line); border-radius: 14px; color: var(--soft); text-decoration: none; }
.contact-link-label { margin-bottom: 3px; color: var(--muted); font: 500 .63rem/1 "Fira Code", monospace; text-transform: uppercase; letter-spacing: .1em; }

footer { padding: 55px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr .8fr; gap: 38px; }
.footer-brand p { max-width: 330px; }
.footer-col-title { color: var(--ink); font-size: .78rem; font-weight: 800; }
.footer-links { padding: 0; list-style: none; display: grid; gap: 8px; font-size: .82rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 13px; }
.footer-social-link { color: var(--cyan); text-decoration: none; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 40px; padding-top: 19px; border-top: 1px solid var(--line); font: 500 .7rem/1.5 "Fira Code", monospace; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.js .reveal.visible { opacity: 1; transform: none; }
.card-spotlight::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(280px circle at var(--spot-x) var(--spot-y), rgba(86,228,255,.12), transparent 70%); }
.scroll-top { right: 28px; bottom: 91px; border-color: var(--line); background: rgba(8,10,18,.85); backdrop-filter: blur(10px); }
.floating-whatsapp { right: 22px; bottom: 21px; }
.floating-whatsapp-menu { border-color: var(--line); background: rgba(5,6,11,.97); }
.floating-whatsapp-btn { background: #25d366; color: #06140c; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes gradientTravel { to { background-position: 100% center; } }
@keyframes statusPulse { 50% { box-shadow: 0 0 0 10px rgba(97,246,164,0), 0 0 24px rgba(97,246,164,.8); } }
@keyframes scrollCue { 50% { transform: scaleY(.45); transform-origin: top; opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes waRing { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(1.45); opacity: 0; } }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  #hero { padding: 48px 0 40px; }
  .hero-title { max-width: 18ch; }
  .hero-visual { min-height: 510px; }
  .audience-shell, .about-grid, .faq-layout { grid-template-columns: 1fr; }
  .about-sticky, .faq-intro { position: relative; top: auto; }
  .about-portrait { max-width: 520px; min-height: 650px; margin: 0 auto; }
  .service-card { grid-column: span 6; }
  .service-card:nth-child(2) { transform: none; }
  .service-card:nth-child(3) { grid-column: 4/span 6; }
  .process-shell { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card:first-child { grid-column: 1/-1; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1220px); }
  .nav-logo > span:last-child { display: none; }
  #hero { min-height: auto; padding: 26px 0 36px; }
  .hero-title { max-width: 18ch; margin: 16px 0 14px; font-size: 2.15rem; line-height: 1.1; letter-spacing: -.015em; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { display: grid; margin: 16px 0 0; }
  .hero-actions .btn { width: 100%; }
  .hero-proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-card { padding: 12px 8px; text-align: center; }
  .proof-card strong { font-size: 1.2rem; }
  .proof-card span { font-size: .61rem; }
  .hero-visual { min-height: 440px; margin-top: 15px; }
  .orbit-stage { width: 430px; max-width: 118vw; }
  .profile-core { width: 184px; height: 238px; }
  .floating-code { min-width: 132px; padding: 10px; font-size: .58rem; }
  .fc-1 { left: 7%; top: 7%; }
  .fc-2 { right: 5%; top: 32%; }
  .fc-3 { left: 8%; bottom: 10%; }
  .availability-card { right: 6%; width: 158px; font-size: .7rem; }
  .scroll-cue { display: none; }
  .audience-tabs { grid-template-columns: 1fr; }
  .trust-strip { margin-top: 50px; }
  section { padding: 76px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 31px; }
  .section-title { font-size: clamp(2.5rem, 12vw, 4.1rem); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(3) { grid-column: auto; min-height: 435px; }
  .project-card, .project-card:nth-child(even) { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-media { order: initial; }
  .project-media { min-height: 290px; }
  .project-body { padding: 29px; }
  .project-metrics { grid-template-columns: 1fr; }
  .confidential-grid, .testimonials, .stack-grid, .blog-grid { grid-template-columns: 1fr; }
  .blog-card:first-child { grid-column: auto; }
  .about-grid { gap: 42px; }
  .about-portrait { min-height: 500px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-company { grid-column: auto; margin-top: 0; }
  .process-shell { grid-template-columns: 1fr; }
  .process-step { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .step-num { margin-bottom: 55px; }
  .testimonial-card { min-height: 320px; padding: 25px; }
  .faq-layout { gap: 35px; }
  .agenda-card, .contact-heading, .contact-form, .contact-links { grid-template-columns: 1fr; }
  .agenda-card .btn { width: 100%; }
  .contact-heading { gap: 19px; }
  .contact-form .form-field, .contact-form .full { grid-column: auto; }
  .hero-intent-options { display: grid; grid-template-columns: repeat(3,1fr); }
  .hero-intent-opt span { min-width: 0; padding-inline: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { display: grid; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(1.9rem, 9.5vw, 2.3rem); }
  .hero-meta { display: grid; }
  .orbit-stage { --stage-scale: .88; }
  .about-portrait { min-height: 440px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* Primeira dobra determinística em desktop landscape. O modo não depende da
   altura reportada pelo DevTools: nav + hero + faixa sempre fecham em 100svh. */
@media (min-width: 721px) and (orientation: landscape) {
  .nav-inner { min-height: clamp(56px, 7.2svh, 72px); }
  .mobile-nav { top: clamp(56px, 7.2svh, 72px); }

  #hero {
    min-height: 0;
    height: calc(100svh - clamp(56px, 7.2svh, 72px) - clamp(38px, 5svh, 48px));
    padding: clamp(12px, 2.1svh, 24px) 0;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(290px, .72fr);
    gap: clamp(18px, 3vw, 42px);
    height: 100%;
  }
  .hero-copy { min-width: 0; }
  .badge { padding: clamp(5px, .75svh, 8px) 10px; font-size: clamp(.58rem, .78vw, .72rem); }
  .badge-dot { width: 6px; height: 6px; }
  .hero-title {
    max-width: none;
    margin: clamp(8px, 1.5svh, 16px) 0;
    font-size: clamp(2.35rem, min(5vw, 7.1svh), 5rem);
    line-height: .93;
    letter-spacing: -.055em;
  }
  .hero-title .gradient-text { white-space: normal; }
  .hero-desc { max-width: 650px; font-size: clamp(.78rem, min(1.35vw, 1.65svh), 1.05rem); line-height: 1.4; }
  .hero-actions { margin: clamp(9px, 1.7svh, 18px) 0 clamp(7px, 1.3svh, 13px); gap: 8px; }
  .hero-actions .btn { min-height: clamp(38px, 5svh, 48px); padding-inline: 15px; font-size: clamp(.72rem, .9vw, .88rem); }
  .intent-row { gap: 6px; font-size: clamp(.65rem, .78vw, .8rem); }
  .wa-intent-pill, .intent-pill { min-height: 30px; padding: 4px 10px; font-size: inherit; }
  .hero-proof-grid { margin-top: clamp(8px, 1.5svh, 16px); gap: 7px; }
  .proof-card { padding: clamp(7px, 1.1svh, 12px) 10px; border-radius: 12px; }
  .proof-card strong { font-size: clamp(1rem, min(1.6vw, 2.4svh), 1.4rem); }
  .proof-card span { margin-top: 3px; font-size: clamp(.54rem, .65vw, .68rem); line-height: 1.15; }

  .hero-visual { min-height: 0; height: min(100%, 500px); margin: 0; }
  .orbit-stage { width: min(100%, calc(100svh - 128px), 480px); }
  .profile-core { width: clamp(162px, 20svh, 216px); height: clamp(208px, 26svh, 276px); }
  .floating-code { min-width: 128px; padding: 8px 10px; font-size: clamp(.52rem, .65vw, .67rem); }
  .availability-card { width: 150px; padding: 9px; font-size: clamp(.6rem, .72vw, .72rem); }

  .trust-strip { height: clamp(38px, 5svh, 48px); margin-top: 0; transform: none; }
  .trust-track { height: 100%; align-items: center; padding: 0; gap: 30px; font-size: clamp(.57rem, .68vw, .72rem); }
  .trust-track span::before { margin-right: 30px; }
}

/* Em larguras intermediárias, conserva as duas colunas quando há espaço
   horizontal real, mesmo que o breakpoint estrutural anterior tenha empilhado. */
@media (min-width: 721px) and (max-width: 1040px) and (orientation: landscape) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr); }
  .hero-title { font-size: clamp(2rem, min(4.7vw, 6.6svh), 3.15rem); }
  .hero-desc { font-size: clamp(.72rem, 1.25vw, .9rem); }
  .orbit-stage { width: min(100%, calc(100svh - 122px), 390px); }
}

/* Em celular vertical, conteúdo e legibilidade têm prioridade. O 3D continua
   disponível a partir do tablet, mas sai da primeira dobra em telas estreitas. */
@media (max-width: 720px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .container { width: auto; max-width: none; margin-inline: 14px; }
  .nav-inner { min-width: 0; min-height: 60px; }
  .nav-logo { min-width: 0; font-size: .84rem; }
  .nav-logo span { flex: 0 0 36px; }
  .nav-actions { min-width: 42px; }
  .mobile-nav { top: 60px; }

  #hero { min-height: 0; height: auto; padding: 18px 0 22px; }
  .hero-grid,
  .hero-grid > *,
  .hero-copy,
  .hero-title,
  .hero-desc,
  .hero-actions,
  .intent-row,
  .hero-proof-grid { min-width: 0; max-width: 100%; }
  .hero-grid { width: auto; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { width: 100%; }
  .badge { max-width: 100%; padding: 6px 9px; font-size: .61rem; line-height: 1.2; white-space: normal; }
  .hero-title { width: 100%; max-width: none; margin: 12px 0 10px; font-size: clamp(1.88rem, 8.3vw, 2.35rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: pretty; overflow-wrap: anywhere; hyphens: auto; }
  .hero-title .desktop-break { display: none; }
  .hero-title .gradient-text { white-space: normal; overflow-wrap: anywhere; }
  .hero-desc { width: 100%; font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }

  .hero-toast { min-width: 0; max-width: 100%; margin-top: 12px; padding: 9px 10px; }
  .hero-toast-icon { width: 32px; height: 32px; }
  .hero-toast-body,
  .hero-toast-body b,
  .hero-toast-msg { min-width: 0; max-width: 100%; }
  .hero-toast-body b { font-size: .64rem; }
  .hero-toast-msg { font-size: .78rem; }

  .hero-actions { width: 100%; margin: 12px 0 0; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero-actions .btn { width: 100%; min-width: 0; max-width: 100%; }
  .hero-actions .btn-wa { min-height: 48px; padding: 7px 10px; font-size: .82rem; line-height: 1.18; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .hero-actions .btn-wa svg { width: 19px; height: 19px; flex: 0 0 19px; }
  .hero-actions .btn-soft { min-height: 36px; }

  .hero-proof-grid { order: 1; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
  .proof-card { min-width: 0; padding: 8px 4px; border-radius: 11px; }
  .proof-card strong { font-size: 1rem; }
  .proof-card span { min-width: 0; margin-top: 2px; font-size: .55rem; line-height: 1.15; overflow-wrap: anywhere; }

  .intent-row { order: 2; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
  .intent-row > span { min-width: 0; grid-column: 1 / -1; font-size: .7rem; }
  .wa-intent-pill { min-width: 0; min-height: 36px; max-width: 100%; padding: 6px 3px; font-size: .72rem; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; text-align: center; }

  .hero-visual { display: none; }
  .trust-strip { margin-top: 0; transform: none; }
  .floating-whatsapp { right: 10px; bottom: 10px; }
  .scroll-top { right: 16px; }
}

@media (max-width: 420px) {
  .container { margin-inline: 12px; }
  #hero { padding-top: 14px; padding-bottom: 18px; }
  .hero-title { font-size: clamp(1.72rem, 8vw, 2rem); line-height: 1.03; }
  .hero-desc { font-size: .84rem; }
  .hero-actions .btn-wa { font-size: .78rem; }
  .hero-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-proof-grid .proof-card:last-child { grid-column: 1 / -1; }
  .proof-card span { font-size: .58rem; }
  .wa-intent-pill { font-size: .68rem; }
}

@media (hover: none), (pointer: coarse) { body::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
  .reveal { opacity: 1; transform: none; }
  .hero-network { display: none; }
  body::after { display: none; }
}

/* Rede ambiente: o conteúdo sempre ocupa a camada superior. */
@media (min-width: 721px) {
  #hero .hero-grid { grid-template-columns: minmax(0, 760px); justify-content: start; }
}
@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  .hero-network { display: none; }
}

/* Ideia 5 — sequência cinematográfica sem competir com o reveal do container. */
.reveal[data-cinematic-group="true"] {
  opacity: 1;
  transform: none;
  transition: none;
}
[data-cinematic-ready="true"] {
  transform-origin: left bottom;
  will-change: transform, opacity, clip-path;
}
[data-cinematic-done="true"] { will-change: auto; }
@media (max-width: 720px) {
  [data-cinematic-ready="true"] { clip-path: none!important; }
}
@media (prefers-reduced-motion: reduce) {
  [data-cinematic-ready="true"] { opacity: 1!important; transform: none!important; clip-path: none!important; }
}

/* Ideia 6 — jornada simples do projeto, animada uma vez na viewport. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.process-journey { position: relative; margin-bottom: 20px; padding: 20px 24px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(circle at 50% 35%, rgba(96,120,255,.1), transparent 48%), rgba(255,255,255,.02); }
.process-journey-top { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: -10px; }
.process-journey-top span { color: var(--ink); font-size: .82rem; font-weight: 700; }
.process-journey-top small { color: var(--muted); font-size: .72rem; }
.process-journey-svg { display: block; width: 100%; height: auto; }
.process-journey-track, .process-journey-progress { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.process-journey-track { stroke: rgba(197,209,255,.14); stroke-dasharray: 4 8; }
.process-journey-progress { stroke: url(#processJourneyGradient); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.process-journey-node { opacity: .3; transform-box: fill-box; transform-origin: center; }
.process-journey-node circle { fill: #080a12; stroke: rgba(197,209,255,.32); stroke-width: 2; vector-effect: non-scaling-stroke; }
.process-journey-node text { fill: var(--ink); font: 700 18px "Inter", sans-serif; text-anchor: middle; }
.process-journey-pulse { opacity: 0; }
.process-journey-pulse circle { fill: var(--cyan); }
.process-journey-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: -62px 0 0; padding: 0; list-style: none; }
.process-journey-list li { opacity: .45; text-align: center; }
.process-journey-list strong, .process-journey-list span { display: block; }
.process-journey-list strong { color: var(--ink); font-size: .84rem; }
.process-journey-list span { max-width: 21ch; margin: 5px auto 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.process-journey.is-active .process-journey-progress { animation: processJourneyDraw 2.15s cubic-bezier(.2,.75,.2,1) forwards; }
.process-journey.is-active .process-journey-node { animation: processJourneyNode .42s ease forwards; animation-delay: calc(.16s + var(--i) * .56s); }
.process-journey.is-active .process-journey-list li { animation: processJourneyText .4s ease forwards; animation-delay: calc(.26s + var(--i) * .56s); }
.process-journey.is-active .process-journey-pulse { opacity: 1; offset-path: path("M105 82 C260 28 340 136 500 82 S740 28 895 82"); animation: processJourneyPulse 2.15s cubic-bezier(.2,.75,.2,1) forwards; }
.process-journey.is-static .process-journey-progress { stroke-dashoffset: 0; }
.process-journey.is-static .process-journey-node, .process-journey.is-static .process-journey-list li { opacity: 1; }
@keyframes processJourneyDraw { to { stroke-dashoffset: 0; } }
@keyframes processJourneyNode { 55% { opacity: 1; filter: drop-shadow(0 0 12px rgba(86,228,255,.75)); } 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(86,228,255,.4)); } }
@keyframes processJourneyText { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes processJourneyPulse { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (max-width: 720px) {
  .process-journey { padding: 18px 16px; }
  .process-journey-top { display: block; margin: 0 0 18px; }
  .process-journey-top span, .process-journey-top small { display: block; }
  .process-journey-top small { margin-top: 4px; }
  .process-journey-svg { display: none; }
  .process-journey-list { grid-template-columns: 1fr; gap: 8px; margin: 0; counter-reset: journey; }
  .process-journey-list li { position: relative; padding: 12px 12px 12px 46px; border: 1px solid rgba(86,228,255,.12); border-radius: 13px; background: rgba(86,228,255,.035); text-align: left; }
  .process-journey-list li::before { content: counter(journey); counter-increment: journey; position: absolute; left: 12px; top: 50%; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(86,228,255,.45); border-radius: 50%; color: var(--cyan); font-size: .7rem; font-weight: 700; transform: translateY(-50%); }
  .process-journey-list span { max-width: none; margin: 3px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .process-journey-progress { stroke-dashoffset: 0; }
  .process-journey-node, .process-journey-list li { opacity: 1; filter: none; transform: none; }
  .process-journey-pulse { display: none; }
}


/* Ideia 7 — terminal interativo para navegar pelo portfólio. */
.portfolio-terminal { overflow: hidden; border: 1px solid rgba(86,228,255,.24); border-radius: 24px; background: linear-gradient(145deg, rgba(12,15,27,.98), rgba(5,6,11,.98)); box-shadow: 0 28px 70px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.04); }
.terminal-bar { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot-red { background: #ff6680; }
.terminal-dot-yellow { background: #ffd166; }
.terminal-dot-green { background: #61f6a4; }
.terminal-title { margin-left: 8px; color: var(--muted); font: 500 .7rem/1 "Fira Code", monospace; letter-spacing: .04em; }
.terminal-body { padding: clamp(18px, 3vw, 32px); font-family: "Fira Code", monospace; }
.terminal-output { min-height: 132px; max-height: 280px; margin-bottom: 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(86,228,255,.35) transparent; }
.terminal-line { margin: 0 0 10px; color: var(--soft); font-size: clamp(.76rem, 1.3vw, .9rem); line-height: 1.65; overflow-wrap: anywhere; }
.terminal-system { color: var(--cyan); }
.terminal-hint, .terminal-result { color: var(--muted); }
.terminal-command { color: var(--ink); }
.terminal-command::before { content: "visitor@portfolio:~$ "; color: var(--green); }
.terminal-error { color: #ff8da1; }
.terminal-form { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(86,228,255,.22); border-radius: 14px; background: rgba(86,228,255,.035); transition: border-color .2s ease, box-shadow .2s ease; }
.terminal-form:focus-within { border-color: rgba(86,228,255,.7); box-shadow: 0 0 0 3px rgba(86,228,255,.09), 0 0 28px rgba(86,228,255,.08); }
.terminal-prompt { flex: 0 0 auto; color: var(--green); font-size: clamp(.68rem, 1.2vw, .82rem); }
.terminal-input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); caret-color: var(--cyan); font: 500 .88rem/1.5 "Fira Code", monospace; }
.terminal-input::placeholder { color: rgba(197,209,255,.42); }
.terminal-submit { flex: 0 0 auto; padding: 8px 12px; border: 1px solid rgba(86,228,255,.28); border-radius: 9px; background: rgba(86,228,255,.09); color: var(--cyan); cursor: pointer; font: 700 .7rem/1 "Fira Code", monospace; text-transform: uppercase; letter-spacing: .06em; }
.terminal-submit:hover { background: rgba(86,228,255,.16); }
.terminal-help { margin: 11px 2px 0; color: var(--muted); font: 400 .66rem/1.5 "Fira Code", monospace; }
.terminal-fallback { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.terminal-fallback a { color: var(--cyan); font-family: "Fira Code", monospace; }
kbd { padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: rgba(255,255,255,.04); color: var(--ink); font: 600 .72em "Fira Code", monospace; }
@media (max-width: 720px) {
  .terminal-body { padding: 16px; }
  .terminal-form { align-items: stretch; flex-wrap: wrap; }
  .terminal-prompt { display: flex; align-items: center; }
  .terminal-input { min-height: 34px; }
  .terminal-submit { width: 100%; min-height: 40px; }
  .terminal-help { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .terminal-form, .terminal-submit { transition: none; }
}

/* Ideia 8 — cursor magnético, links responsivos e estado de abertura dos cases. */
[data-magnetic] {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --button-lift: 0px;
  --button-scale: 1;
  transform: translate3d(var(--magnet-x), calc(var(--magnet-y) + var(--button-lift)), 0) scale(var(--button-scale));
  will-change: transform;
}
[data-magnetic]:hover { --button-lift: -3px; }
[data-magnetic]:active { --button-scale: .97; }
[data-magnetic].is-magnetic { transition-duration: .12s; }
[data-magnetic].is-magnetic-reset { transition-duration: .42s; transition-timing-function: cubic-bezier(.2,.8,.2,1); }

.nav-links a:focus-visible::after { right: 0; }
.case-links a,
.agenda-card p a,
.contact-link,
.footer-links a,
.footer-social-link,
.footer-bottom a,
.form-status-link {
  background-image: linear-gradient(90deg, var(--cyan), var(--violet));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color .2s, background-size .28s cubic-bezier(.2,.8,.2,1);
}
.case-links a:hover,
.case-links a:focus-visible,
.agenda-card p a:hover,
.agenda-card p a:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-social-link:hover,
.footer-social-link:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible,
.form-status-link:hover,
.form-status-link:focus-visible {
  background-size: 100% 1px;
}

[data-case-card] { position: relative; transition: border-color .25s, box-shadow .25s; }
[data-case-card]:hover,
[data-case-card]:focus-within {
  border-color: rgba(86,228,255,.48);
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 0 0 1px rgba(86,228,255,.08);
}
.case-open-cue {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(86,228,255,.34);
  border-radius: 999px;
  background: rgba(5,6,11,.84);
  color: var(--soft);
  font: 700 .68rem/1 "Fira Code", monospace;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .25s, transform .25s, border-color .25s;
  pointer-events: none;
  backdrop-filter: blur(12px);
}
.case-open-cue b { color: var(--cyan); font-size: .85rem; transition: transform .25s; }
[data-case-card]:hover .case-open-cue,
[data-case-card]:focus-within .case-open-cue { opacity: 1; transform: none; border-color: rgba(86,228,255,.64); }
[data-case-card]:hover .case-open-cue b,
[data-case-card]:focus-within .case-open-cue b { transform: translate(2px,-2px); }

/* Ideia 9 — confirmação vetorial leve do formulário, sem runtime externo. */
.form-feedback {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 28px;
}
.form-feedback .form-status { min-height: 0; }
.form-success-visual {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #5eead4;
  filter: drop-shadow(0 0 10px rgba(94,234,212,.25));
}
.form-success-visual svg { display: block; width: 100%; height: 100%; overflow: visible; }
.form-success-ring,
.form-success-check {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success-ring { stroke-width: 2.5; stroke-dasharray: 145; stroke-dashoffset: 145; }
.form-success-check { stroke-width: 4; stroke-dasharray: 31; stroke-dashoffset: 31; }
.form-feedback.is-success .form-success-visual { display: block; animation: formSuccessPop .5s cubic-bezier(.2,.9,.3,1.3) both; }
.form-feedback.is-success .form-success-ring { animation: formSuccessDraw .55s ease-out forwards; }
.form-feedback.is-success .form-success-check { animation: formSuccessDraw .38s .38s ease-out forwards; }
@keyframes formSuccessDraw { to { stroke-dashoffset: 0; } }
@keyframes formSuccessPop { from { opacity: 0; transform: scale(.72) rotate(-8deg); } to { opacity: 1; transform: none; } }

@media (hover: none), (pointer: coarse) {
  [data-magnetic] { will-change: auto; }
  .case-open-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-magnetic] { --magnet-x: 0px!important; --magnet-y: 0px!important; --button-lift: 0px!important; --button-scale: 1!important; will-change: auto; }
  .case-open-cue { opacity: 1; transform: none; }
  .form-feedback.is-success .form-success-visual { display: block; opacity: 1; transform: none; }
  .form-feedback.is-success .form-success-ring,
  .form-feedback.is-success .form-success-check { stroke-dashoffset: 0; }
}


/* Pausa efeitos decorativos contínuos fora da viewport do hero. */
#hero.is-animation-paused::before,
#hero.is-animation-paused::after,
#hero.is-animation-paused .badge-dot,
#hero.is-animation-paused .gradient-text,
#hero.is-animation-paused .btn-wa,
#hero.is-animation-paused .btn-wa::after,
body.is-page-hidden .trust-track,
body.is-page-hidden .badge-dot,
body.is-page-hidden .gradient-text,
body.is-page-hidden .btn-wa,
body.is-page-hidden .btn-wa::after { animation-play-state: paused!important; }
@media (max-width: 720px) {
  nav { backdrop-filter: none; background: rgba(5,6,11,.96); }
  #services::before, #about::before, #contact::before { display: none; }
}


/* Ideia 4 — profundidade 3D leve, somente no card de projeto sob o ponteiro. */
@media (hover: hover) and (pointer: fine) {
  #projects .case-grid { perspective: 1200px; }
  #projects .case-card {
    transform-style: preserve-3d;
    transform-origin: center;
  }
  #projects .case-card.visible { transform: translateY(0) rotateX(0) rotateY(0); }
  #projects .case-card.visible.is-tilting {
    transform: translateY(-4px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 70ms linear, border-color .25s ease, box-shadow .25s ease;
    border-color: rgba(86,228,255,.28);
    box-shadow: 0 22px 55px rgba(0,0,0,.24);
    will-change: transform;
  }
  #projects .case-card.visible:not(.is-tilting) {
    transition: transform .45s cubic-bezier(.2,.75,.2,1), border-color .25s ease, box-shadow .25s ease;
  }
  #projects .case-card .case-media,
  #projects .case-card .case-body { transform: translateZ(0); }
  #projects .case-card.is-tilting .case-media { transform: translateZ(8px); }
  #projects .case-card.is-tilting .case-body { transform: translateZ(14px); }
}
@media (prefers-reduced-motion: reduce) {
  #projects .case-card { transform: none!important; will-change: auto!important; }
}

/* Revisão de composição — ritmo, alinhamento e densidade da home */
:root {
  --section-space: clamp(76px, 7.2vw, 104px);
  --section-space-compact: clamp(60px, 5.6vw, 78px);
  --content-measure: 68ch;
}

section { padding-block: var(--section-space); }
#projects,
#blog,
#faq { padding-top: var(--section-space); }
#agenda { padding-block: var(--section-space-compact); }
#contact { padding-top: var(--section-space-compact); padding-bottom: var(--section-space); }

.section-head {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(30px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 48px);
}
.section-title {
  max-width: 18ch;
  font-size: clamp(2.35rem, 4.65vw, 4.75rem);
  line-height: .96;
  letter-spacing: -.058em;
}
.section-copy { max-width: 38ch; line-height: 1.65; }

.problem-grid { gap: 18px; }
.problem-card { min-height: 220px; padding: 26px; }
.problem-card h3 { margin-top: 38px; }

.services-grid { gap: 18px; align-items: stretch; }
.service-card,
.service-card:nth-child(2),
.service-card:nth-child(3) {
  min-height: 0;
  transform: none;
}
.service-card { padding: 28px; }
.service-card.featured {
  border-color: rgba(86, 228, 255, .42);
  box-shadow: inset 0 0 0 1px rgba(86, 228, 255, .06);
}
.service-badge { margin-bottom: 22px; }
.service-icon { margin-bottom: 26px; }
.service-card h3 { margin: 0 0 12px; }
.price { margin: 16px 0; }
.service-list { margin-top: 20px; }
.compare { margin-top: 28px; }

.process-journey { margin-bottom: 0; padding: 24px 28px 28px; }

.case-grid { gap: 18px; }
.case-body { padding: 28px; }
.case-body h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.case-card.wide .case-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }

.roi { gap: 18px; align-items: stretch; }
.roi-panel { padding: clamp(26px, 3vw, 36px); }
.roi-panel .section-title { font-size: clamp(2.2rem, 4vw, 4rem); }

.testimonials { gap: 18px; }
.testimonial-card { min-height: 0; padding: clamp(26px, 3vw, 36px); }
.testimonial-card blockquote { margin-top: 42px; }

.hire-grid { gap: clamp(28px, 4vw, 52px); align-items: start; }
.hire-card { padding: clamp(28px, 4vw, 44px); }
.hire-card .section-title { font-size: clamp(2.25rem, 4.3vw, 4.4rem); }
.hire-card > p { max-width: var(--content-measure); line-height: 1.7; }
.timeline { margin: 0 0 22px; }
.stack-grid { margin-top: 0; }

.portfolio-terminal { max-width: 1040px; margin-inline: auto; }
.blog-grid { gap: 18px; }
.blog-card { min-height: 290px; padding: 28px; }

.faq-list {
  display: block;
  max-width: 900px;
  margin-inline: auto;
}
.faq-item summary { padding-block: 23px; font-size: 1rem; }
.faq-item p { max-width: 72ch; line-height: 1.7; }
.faq-cta { margin-top: 30px; }

.agenda-card {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px);
}
.agenda-card h2 { max-width: 14ch; }
.agenda-card > p:not(.kicker) { max-width: 620px; }
.agenda-perks { max-width: 760px; }
.agenda-card > .btn { margin-top: 2px; }
.agenda-fallback { margin-top: 16px; margin-bottom: 0; }

.final-cta { padding: clamp(36px, 6vw, 72px); }
.final-cta > .kicker,
.final-cta > h2,
.final-cta > p,
.final-cta > .hero-actions,
.final-cta > .contact-form,
.final-cta > .contact-links {
  width: min(900px, 100%);
  margin-inline: auto;
}
.final-cta > h2 {
  max-width: 15ch;
  margin-top: 12px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5.1vw, 5rem);
  line-height: .96;
  letter-spacing: -.058em;
}
.final-cta > p { max-width: 760px; margin-bottom: 0; color: var(--soft); line-height: 1.7; }
.final-cta > .hero-actions { justify-content: flex-start; margin-top: 26px; margin-bottom: 34px; }
.contact-form { margin-top: 0; padding-top: 34px; border-top: 1px solid var(--line); }
.form-project-legend { margin-bottom: 12px; }
.contact-links { margin-top: 18px; }

@media (max-width: 1040px) {
  section { padding-block: clamp(68px, 8vw, 84px); }
  #projects,
  #blog,
  #faq { padding-top: clamp(68px, 8vw, 84px); }
  #agenda,
  #contact { padding-block: clamp(60px, 7vw, 76px); }
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); }
  .service-card { grid-column: span 6; }
  .service-card:nth-child(3) { grid-column: 4 / span 6; }
}

@media (max-width: 980px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .section-copy { max-width: 62ch; margin-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(3) { grid-column: auto; }
  .case-grid,
  .roi,
  .testimonials,
  .hire-grid { grid-template-columns: 1fr; }
  .case-card.wide { grid-template-columns: 1fr; }
  .timeline { margin-top: 0; }
}

@media (max-width: 720px) {
  section,
  #projects,
  #blog,
  #faq,
  #agenda,
  #contact { padding-block: 64px; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: clamp(2.05rem, 10.5vw, 3.35rem); line-height: .98; }
  .problem-card,
  .service-card,
  .case-body,
  .roi-panel,
  .testimonial-card,
  .hire-card,
  .blog-card { padding: 22px; }
  .problem-card { min-height: 0; }
  .problem-card h3 { margin-top: 30px; }
  .service-card { min-height: 0; }
  .process-journey { padding: 18px 16px; }
  .case-card.wide .case-body { padding: 24px; }
  .case-media { height: 210px; }
  .case-card.wide .case-media { min-height: 220px; }
  .hire-grid { gap: 24px; }
  .stack-grid { grid-template-columns: 1fr; }
  .blog-card { min-height: 250px; }
  .faq-list { max-width: none; }
  .faq-item summary { padding: 20px 42px 20px 0; }
  .faq-item p { padding-right: 16px; }
  .agenda-card,
  .final-cta { padding: 28px 22px; border-radius: 24px; }
  .agenda-perks { display: grid; gap: 8px; }
  .agenda-perks li { width: fit-content; }
  .agenda-card .btn { width: auto; }
  .final-cta > h2 { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .final-cta > .hero-actions { margin-bottom: 28px; }
  .contact-form { padding-top: 28px; }
  .contact-links { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  section,
  #projects,
  #blog,
  #faq,
  #agenda,
  #contact { padding-block: 54px; }
  .section-title { font-size: clamp(1.9rem, 10vw, 2.65rem); }
  .problem-card,
  .service-card,
  .case-body,
  .roi-panel,
  .testimonial-card,
  .hire-card,
  .blog-card { padding: 20px; }
  .agenda-card,
  .final-cta { padding: 24px 18px; }
  .agenda-card .btn { width: 100%; }
  .hero-intent-options { grid-template-columns: 1fr; }
}

/* Correção da faixa intermediária — evita o layout híbrido entre tablet e desktop */
#about .hire-grid,
#about .hire-grid > *,
#contact .final-cta,
#contact .final-cta > * { min-width: 0; }

#about .hire-card .hero-actions { margin-bottom: 0; }
#about .timeline-item { min-width: 0; }
#about .timeline-role,
#about .timeline-company,
#about .pill { overflow-wrap: anywhere; }

#contact .hero-intent-opt {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#contact .hero-intent-opt:has(input:checked) {
  border-color: transparent;
  background: transparent;
}
#contact .hero-intent-opt span {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
}
#contact .form-field label,
#contact .form-field legend { font-size: .84rem; line-height: 1.35; }
#contact .form-field input,
#contact .form-field textarea { padding: 16px 18px; }
#contact .form-privacy,
#contact .form-noscript { font-size: .78rem; }
#contact .contact-link { min-width: 0; padding: 19px 20px; }
#contact .contact-link > div { min-width: 0; }
#contact .contact-link div:last-child { overflow-wrap: anywhere; }
#contact .contact-link-label { font-size: .72rem; line-height: 1.25; }

@media (min-width: 1101px) {
  #about .hire-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(32px, 3.5vw, 48px);
  }
  #about .hire-card .section-title {
    max-width: 15ch;
    font-size: clamp(2.5rem, 3.7vw, 3.9rem);
    line-height: .98;
  }
  #about .stack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  #about .stack-card { min-height: 0; padding: 22px; }
  #about .stack-card h3 { font-size: .76rem; line-height: 1.3; }
  #about .pill { font-size: .75rem; }

  #contact .final-cta { padding: clamp(48px, 5vw, 68px); }
  #contact .final-cta > .kicker,
  #contact .final-cta > h2,
  #contact .final-cta > p,
  #contact .final-cta > .hero-actions,
  #contact .final-cta > .contact-form,
  #contact .final-cta > .contact-links { width: min(980px, 100%); }
  #contact .final-cta > h2 {
    max-width: 17ch;
    font-size: clamp(3rem, 4.3vw, 4.5rem);
  }
  #contact .contact-form { gap: 18px; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  #about .hire-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  #about .hire-card { padding: clamp(32px, 4.5vw, 44px); }
  #about .hire-card .section-title {
    max-width: 16ch;
    font-size: clamp(2.5rem, 5vw, 3.45rem);
    line-height: 1;
  }
  #about .hire-card > p { max-width: 76ch; }
  #about .timeline-item {
    grid-template-columns: minmax(140px, 168px) minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 8px;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
  }
  #about .timeline { gap: 14px; border-top: 0; }
  #about .timeline-company { margin-top: 0; }
  #about .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  #about .stack-card {
    min-height: 0;
    padding: 22px;
  }
  #about .stack-card h3 { font-size: .78rem; line-height: 1.3; }
  #about .pill { font-size: .76rem; line-height: 1.25; }

  #contact .final-cta { padding: clamp(38px, 4.5vw, 50px); }
  #contact .final-cta > .kicker,
  #contact .final-cta > h2,
  #contact .final-cta > p,
  #contact .final-cta > .hero-actions,
  #contact .final-cta > .contact-form,
  #contact .final-cta > .contact-links {
    width: 100%;
    max-width: none;
  }
  #contact .final-cta > h2 {
    max-width: 18ch;
    font-size: clamp(2.55rem, 4.7vw, 3.4rem);
    line-height: 1;
  }
  #contact .final-cta > p { max-width: 72ch; }
  #contact .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 32px;
  }
  #contact .hero-intent-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  #contact .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 721px) and (max-width: 840px) {
  #about .timeline-item { grid-template-columns: 1fr; gap: 7px; }
  #about .timeline-company { grid-column: auto; }
  #about .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #about .stack-card:last-child { grid-column: 1 / -1; }

  #contact .contact-form,
  #contact .contact-links { grid-template-columns: 1fr; }
  #contact .contact-form .form-field,
  #contact .contact-form .full { grid-column: auto; }
}

@media (max-width: 720px) {
  #about .hire-card .section-title { font-size: clamp(2.15rem, 10vw, 3rem); }
  #about .hire-card > p { line-height: 1.65; }
  #about .timeline { gap: 12px; border-top: 0; }
  #about .timeline-item {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
  }
  #about .stack-card { min-height: 0; padding: 20px; }
  #about .stack-card h3 { font-size: .78rem; line-height: 1.3; }
  #about .pill { font-size: .76rem; }

  #contact .final-cta > h2 { max-width: none; }
  #contact .final-cta > .hero-actions { gap: 10px; }
  #contact .contact-form { gap: 16px; }
  #contact .hero-intent-options { gap: 8px; }
  #contact .contact-link { padding: 18px; }
}

/* Eixo visual único no contato e remoção da linha excedente da timeline */
#contact .final-cta > .kicker,
#contact .final-cta > h2,
#contact .final-cta > p,
#contact .final-cta > .hero-actions,
#contact .final-cta > .contact-form,
#contact .final-cta > .contact-links {
  margin-left: 0;
  margin-right: auto;
}

#about .timeline { border-top: 0; }
