/* =========================================================
   Leonardo Alves · Portfólio full-stack
   Tokens
   ========================================================= */
:root {
  --ink: #0d0909;
  --ink-2: #161010;
  --ink-3: #201716;
  --line: rgba(242, 236, 230, .11);
  --line-2: rgba(242, 236, 230, .2);
  --bone: #f2ece6;
  --mute: #9d918c;
  --red: #ff2d1f;
  --red-2: #ff5a3c;
  --red-deep: #9e120b;
  --display: "Anton", "Impact", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 3.2vw, 52px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* grão de filme */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, li, dd { text-wrap: pretty; } /* evita palavra sozinha na última linha */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--red); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--pad); }

.display {
  font: 400 clamp(56px, 8.4vw, 132px)/.9 var(--display);
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0;
}

/* ---------- botões ---------- */
.btn-red, .btn-line {
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 24px;
  border-radius: 4px;
  font-weight: 700; font-size: 15px;
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--out);
}
.btn-red { background: var(--red); color: #160302; }
.btn-red:hover { background: var(--bone); }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--red); color: var(--red); }

/* =========================================================
   Header (mesma estrutura da versão anterior)
   ========================================================= */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 74px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--pad);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(13, 9, 9, .72); backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.brand { font: 400 30px/1 var(--display); letter-spacing: .01em; justify-self: start; }
.brand span { color: var(--red); display: inline-block; margin-left: 2px; transition: transform .8s var(--out); }
.brand:hover span { transform: rotate(180deg); }
.top nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; }
.top nav a { position: relative; color: rgba(242, 236, 230, .78); transition: color .2s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--out); }
.top nav a:hover { color: var(--bone); }
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { justify-self: end; font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; }
.nav-contact span { color: var(--red); transition: transform .3s var(--out); }
.nav-contact:hover span { transform: translate(3px, -3px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: max(100svh, 760px);
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute; z-index: -1;
  left: 50%; bottom: -20%;
  width: 90vw; height: 90vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 45, 31, .26), rgba(158, 18, 11, .08) 55%, transparent 75%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: .55;
}

.hero-role, .hero-status {
  position: absolute; top: 96px; z-index: 6;
  margin: 0; font-size: 14px; line-height: 1.45;
}
.hero-role { left: var(--pad); color: var(--mute); }
.hero-role strong { color: var(--red); font-weight: 700; }
.hero-status { right: var(--pad); display: flex; align-items: center; gap: 10px; color: rgba(242, 236, 230, .8); }
.hero-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 45, 31, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 45, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 31, 0); } }

/* palavra gigante */
.giant {
  position: absolute; left: 0; right: 0;
  top: clamp(104px, 15vh, 150px);
  z-index: 1;
  display: flex; justify-content: center;
  pointer-events: none;
}
.giant span {
  display: block;
  font: 400 19.6vw/.8 var(--display);
  letter-spacing: -.005em;
  white-space: nowrap;
}
.giant-fill {
  background: linear-gradient(180deg, #ff3d2b 0%, #d71d12 45%, #6d0b06 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.giant-front { z-index: 3; }
.giant-line {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 236, 230, .22);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}

/* retrato */
.portrait {
  position: absolute; z-index: 2;
  left: 50%; bottom: 0;
  height: min(78svh, 800px, 58vw);
  aspect-ratio: 900 / 1125;
  margin: 0;
  transform: translateX(-50%);
}
.portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
/* Integra a base do retrato ao fundo sem cortar a roupa. */
.portrait {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 98%);
}
.portrait-rim { /* linhas de varredura recortadas na silhueta */
  position: absolute; inset: 0;
  -webkit-mask: url("../img/leo-portrait-v3.webp") bottom / contain no-repeat;
  mask: url("../img/leo-portrait-v3.webp") bottom / contain no-repeat;
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(255, 45, 31, .28) 50%, transparent 54%) 0 var(--scan, -60%) / 100% 220% no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 45, 31, .06) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  animation: scan 6s linear infinite;
}
@keyframes scan { from { background-position: 0 -120%, 0 0; } to { background-position: 0 220%, 0 0; } }

/* coluna esquerda */
.hero-intro {
  position: absolute; z-index: 5;
  left: var(--pad); bottom: 120px;
  width: min(410px, 31vw);
}
.hello { margin: 0 0 -4px; font: italic 600 clamp(28px, 2.6vw, 40px)/1 var(--body); color: rgba(242, 236, 230, .92); letter-spacing: -.01em; }
.hero h1 { margin: 0; font: 400 clamp(96px, 10.4vw, 176px)/.9 var(--display); letter-spacing: .005em; }
.hero h1 .dot { color: var(--red); }
.hero-tag { margin: 18px 0 14px; color: var(--red); font: 700 clamp(19px, 1.6vw, 24px)/1.15 var(--body); letter-spacing: -.01em; }
.hero-copy { margin: 0 0 26px; color: rgba(242, 236, 230, .72); font-size: 16px; line-height: 1.6; max-width: 38ch; }
.hero-place { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13px; color: var(--mute); }
.hero-place svg { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2; }

/* coluna direita */
.hero-side {
  position: absolute; z-index: 5;
  right: var(--pad); bottom: 120px;
  width: min(330px, 26vw);
}
.side-quote { display: flex; gap: 16px; align-items: center; margin: 0 0 26px; font-size: 17px; line-height: 1.35; }
.side-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font-size: 20px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stats { margin: 0; }
.stats div { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.stats div:last-child { border-bottom: 1px solid var(--line-2); }
.stats dt { font: 400 58px/1 var(--display); color: var(--red); }
.stats dt em { font-style: normal; }
.stats dd { margin: 0; font-size: 13px; line-height: 1.35; color: rgba(242, 236, 230, .78); }

/* barra inferior */
.hero-bar {
  position: absolute; z-index: 6;
  left: 0; right: 0; bottom: 0;
  height: 84px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-inline: var(--pad);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(13, 9, 9, .7));
}
.case-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; font-size: 14px; justify-self: start; }
.play { width: 44px; height: 44px; border: 1px solid var(--red); border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.play svg { width: 14px; fill: var(--red); transition: fill .3s; }
.case-link:hover .play { background: var(--red); }
.case-link:hover .play svg { fill: var(--ink); }
.hero-years { justify-self: end; font-size: 13px; color: var(--mute); }

.build-hud {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 6px 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(22, 16, 16, .82); backdrop-filter: blur(10px);
  font: 500 12px/1 var(--mono);
  color: rgba(242, 236, 230, .8);
  white-space: nowrap;
}
.hud-avatars { display: flex; }
.hud-avatars i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-2); margin-left: -5px; }
.hud-avatars i:first-child { margin-left: 0; }
.hud-text b { color: var(--bone); }
.hud-track { width: 88px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.hud-track i { display: block; height: 100%; width: 0; background: var(--red); transition: width .4s var(--out); }
.hud-state { padding: 6px 10px; border-radius: 999px; background: var(--red); color: #160302; font-weight: 700; min-width: 76px; text-align: center; }
.hud-state.done { background: var(--bone); }
.hud-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.hud-btn:hover { background: var(--line-2); }
.hud-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#hud-swarm svg { fill: currentColor; stroke: none; }
#hud-swarm[aria-pressed="false"] { opacity: .45; }

/* ---------- enxame de cursores ---------- */
.swarm { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.swarm.off { display: none; }
.cur { position: absolute; left: 0; top: 0; will-change: transform; }
.cur svg { width: 20px; height: 20px; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); transition: transform .15s; }
.cur.press svg { transform: scale(.82); }
.cur b {
  position: absolute; left: 16px; top: 18px;
  padding: 3px 7px; border-radius: 4px;
  font: 700 10.5px/1.2 var(--mono); color: #140504;
  white-space: nowrap;
}
.sel {
  position: absolute; pointer-events: none;
  border: 1px solid var(--c, var(--red));
  background: color-mix(in srgb, var(--c, var(--red)) 7%, transparent);
  transition: opacity .5s;
}
.sel::before, .sel::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--ink); border: 1px solid var(--c, var(--red)); }
.sel::before { left: -4px; top: -4px; }
.sel::after { right: -4px; bottom: -4px; }
.sel span { position: absolute; left: -1px; bottom: calc(100% + 4px); padding: 2px 6px; border-radius: 3px; background: var(--c, var(--red)); color: #140504; font: 700 10px/1.3 var(--mono); white-space: nowrap; }
.sel.fade { opacity: 0; }

/* ---------- estado de montagem ---------- */
.build-on [data-build] {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .75s var(--ease), opacity .15s;
}
.build-on [data-build].built { opacity: 1; clip-path: inset(-40% -40% -40% -40%); }
.build-on [data-build="wide"] { transition-duration: 1.3s, .15s; }
.build-on [data-build="portrait"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s var(--ease), opacity .15s, filter 1.4s; filter: brightness(3) saturate(0); }
.build-on [data-build="portrait"].built { clip-path: inset(-10% -10% 0 -10%); filter: none; }

/* =========================================================
   Ticker
   ========================================================= */
.ticker { background: var(--red); color: #160302; overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg) scale(1.02); margin-top: -10px; position: relative; z-index: 7; }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-track span { font: 400 clamp(26px, 3vw, 40px)/1 var(--display); letter-spacing: .02em; padding-right: 28px; white-space: nowrap; }
.ticker i { font-style: normal; margin: 0 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Sobre: a foto abre com a rolagem
   ========================================================= */
.about { position: relative; padding-bottom: clamp(90px, 11vw, 160px); }
.about-scene { position: relative; height: 230vh; }
.about-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.about-frame { --ct: 0%; --cr: 0%; --cb: 0%; --cl: 0%; --rad: 0px; --is: 1; --ui: 0; position: absolute; inset: 0; margin: 0; }
.af-clip { position: absolute; inset: 0; overflow: hidden; background: var(--ink-2); clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--rad)); }
.af-clip img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform: scale(var(--is)); transform-origin: 68% 26%; }
.af-clip::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 9, 9, .86) 0%, rgba(13, 9, 9, .45) 34%, transparent 58%),
    linear-gradient(0deg, rgba(13, 9, 9, .85) 0%, transparent 34%);
}
.af-box { position: absolute; top: var(--ct); right: var(--cr); bottom: var(--cb); left: var(--cl); border: 1px solid var(--red); border-radius: var(--rad); opacity: var(--ui); pointer-events: none; }
.af-label { position: absolute; left: -1px; top: calc(100% + 6px); padding: 3px 7px; border-radius: 3px; background: var(--red); color: #140504; font: 700 10.5px/1.3 var(--mono); white-space: nowrap; }
.af-label b { font-weight: 500; margin-left: 4px; }
.af-h { position: absolute; width: 8px; height: 8px; background: var(--ink); border: 1px solid var(--red); }
.af-h.tl { left: -5px; top: -5px; } .af-h.tr { right: -5px; top: -5px; }
.af-h.bl { left: -5px; bottom: -5px; } .af-h.br { right: -5px; bottom: -5px; }
.about-statement {
  position: absolute; z-index: 2;
  left: var(--pad); bottom: clamp(40px, 8vh, 100px);
  width: min(7.6em, 42vw);
  margin: 0;
  font: 400 clamp(50px, 6.2vw, 112px)/.9 var(--display);
  text-transform: uppercase; letter-spacing: .005em;
}
.about-statement .w { opacity: .16; transition: opacity .35s; }
.about-statement .w.on { opacity: 1; }

.about-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 110px); align-items: start; padding-top: clamp(80px, 10vw, 150px); }
.about-approach { min-width: 0; }
.approach-label { margin: 0 0 10px; color: var(--red); font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.approach-title { margin: 0 0 22px; max-width: 25ch; font: 600 clamp(22px, 1.85vw, 28px)/1.2 var(--body); letter-spacing: -.025em; }
.approach-title span { color: var(--red); }
.approach-list { list-style: none; margin: 0; padding: 0; }
.approach-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.approach-list svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.approach-list strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.approach-list p { margin: 3px 0 0; color: var(--mute); font-size: 14px; line-height: 1.5; }
.about-code { margin: 0; padding: clamp(22px, 2.4vw, 34px); border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-2); font: 500 clamp(11.5px, .98vw, 14px)/2 var(--mono); color: rgba(242, 236, 230, .82); overflow-x: auto; }
.about-code .k { color: var(--red); }
.about-code .s { color: #ffb59e; }
.about-code .ln { display: inline-block; }
.about-code.armed .ln { opacity: 0; transform: translateX(-10px); transition: opacity .45s, transform .6s var(--out); transition-delay: calc(var(--i, 0) * 110ms); }
.about-code.armed.on .ln { opacity: 1; transform: none; }

/* =========================================================
   Projetos
   ========================================================= */
.work { padding: clamp(60px, 8vw, 120px) 0 clamp(90px, 12vw, 170px); position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(50px, 6vw, 90px); }
.section-head p { margin: 0; max-width: 40ch; color: rgba(242, 236, 230, .7); }
.section-head p a { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 700; }

.case {
  display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(30px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4vw, 56px) 0;
  border-top: 1px solid var(--line-2);
}
.case-alt { grid-template-columns: 1.25fr .9fr; }
.case-alt .case-copy { order: 2; }
.case-kicker { font: 500 12px/1 var(--mono); color: var(--red-2); }
.case h3 { margin: 16px 0 16px; font: 400 clamp(48px, 5.6vw, 86px)/.92 var(--display); text-transform: uppercase; }
.case p { margin: 0 0 22px; color: rgba(242, 236, 230, .74); max-width: 48ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; }
.tags li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: rgba(242, 236, 230, .8); }

.case-visual {
  position: relative;
  min-height: 380px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.case-visual::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(255, 45, 31, .18), transparent); }

@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* laboratório */
.lab-title { margin: clamp(80px, 10vw, 140px) 0 8px; font: 400 clamp(40px, 4.4vw, 64px)/1 var(--display); text-transform: uppercase; }
.lab-sub { margin: 0 0 34px; color: var(--mute); }
.lab { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: lab; }
.lab li { border-bottom: 1px solid var(--line); }
.lab a, .lab button {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: minmax(220px, 1.1fr) 1.4fr 160px 32px; align-items: center; gap: 24px;
  padding: 22px 0;
  transition: padding .45s var(--out), color .3s;
}
.lab-name { font: 400 clamp(26px, 2.6vw, 38px)/1 var(--display); text-transform: uppercase; transition: color .3s; }
.lab-desc { color: rgba(242, 236, 230, .66); font-size: 15px; }
.lab-tech { font: 500 12px/1.3 var(--mono); color: var(--mute); }
.lab-go { color: var(--red); font-size: 20px; transition: transform .35s var(--out); }
.lab a:hover, .lab button:hover, .lab a:focus-visible, .lab button:focus-visible { padding-left: 18px; }
.lab a:hover .lab-name, .lab button:hover .lab-name { color: var(--red); }
.lab a:hover .lab-go, .lab button:hover .lab-go { transform: translate(4px, -4px); }

.peek {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 300px; height: 210px;
  pointer-events: none;
  opacity: 0; transform: scale(.85);
  transition: opacity .25s, transform .35s var(--out);
}
.peek.show { opacity: 1; transform: scale(1); }
.peek-inner { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--ink-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); rotate: -3deg; }
.peek-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.art { width: 100%; height: 100%; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 50% 60%, rgba(255, 45, 31, .25), transparent 60%), var(--ink-2); font: 400 22px/1 var(--display); text-transform: uppercase; }
.art small { position: absolute; bottom: 14px; left: 16px; font: 500 11px/1 var(--mono); color: var(--mute); text-transform: none; }
.art-rings { width: 110px; height: 110px; border-radius: 50%; border: 1px solid var(--red); box-shadow: 0 0 0 16px rgba(255, 45, 31, .12), 0 0 0 34px rgba(255, 45, 31, .06); display: grid; place-items: center; font-size: 30px; color: var(--red); }
.art-bars { display: flex; gap: 5px; align-items: center; height: 70px; }
.art-bars i { width: 6px; border-radius: 4px; background: var(--red); animation: bar 1s ease-in-out infinite alternate; }
@keyframes bar { from { height: 12%; } to { height: 100%; } }

/* =========================================================
   Stack
   ========================================================= */
.stack { padding: clamp(90px, 12vw, 170px) 0; background: var(--ink-2); border-block: 1px solid var(--line); }
.stack-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: end; margin-bottom: clamp(60px, 7vw, 110px); }
.stack-intro p { margin: 0 0 26px; max-width: 46ch; color: rgba(242, 236, 230, .7); }
.terminal { margin: 0; padding: 22px 24px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line-2); font: 500 13px/1.85 var(--mono); color: rgba(242, 236, 230, .85); overflow-x: auto; }
.t-dim { color: var(--mute); } .t-red { color: var(--red); } .t-ok { color: #3ddc84; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--red); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.stack-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(44px, 5vw, 72px); }
.stack-col { padding-top: 18px; border-top: 1px solid var(--line-2); }
.stack-col h3 { display: flex; justify-content: space-between; margin: 0 0 16px; font: 500 12px/1 var(--mono); color: var(--red-2); }
.stack-col h3 span { color: var(--mute); }
.stack-col ul { list-style: none; margin: 0; padding: 0; }
.stack-col li { width: fit-content; font: 600 clamp(17px, 1.45vw, 21px)/1.65 var(--body); letter-spacing: -.01em; transition: color .2s, transform .3s var(--out); }
.stack-col li:hover { color: var(--red); transform: translateX(6px); }

/* =========================================================
   Trajetória
   ========================================================= */
.journey { padding: clamp(90px, 12vw, 170px) 0; }
.timeline { list-style: none; margin: clamp(40px, 5vw, 70px) 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 30px; padding: 30px 0; border-top: 1px solid var(--line-2); }
.timeline li:last-child { border-bottom: 1px solid var(--line-2); }
.timeline time { font: 400 clamp(34px, 3.6vw, 54px)/1 var(--display); color: var(--red); }
.timeline li:nth-child(n+3) time { color: rgba(242, 236, 230, .32); }
.timeline h3 { margin: 4px 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.timeline p { margin: 0; color: rgba(242, 236, 230, .68); max-width: 62ch; }

/* =========================================================
   Contato
   ========================================================= */
.contact { position: relative; padding-top: clamp(90px, 11vw, 160px); overflow: hidden; }
.contact-glow { position: absolute; left: 50%; top: 42%; width: 80vw; height: 70vh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 45, 31, .2), transparent); pointer-events: none; }
.contact-top { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; font: 500 13px/1 var(--mono); color: var(--mute); }
.contact-top p { margin: 0; display: flex; align-items: center; gap: 10px; }
.contact-status { color: var(--bone); }
.contact-status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: live 2s ease-out infinite; }
@keyframes live { from { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } to { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); } }
.contact-clock b { color: var(--bone); font-weight: 500; }

.contact-stage { position: relative; margin-top: clamp(28px, 4vw, 60px); padding-inline: var(--pad); }
.contact-title { margin: 0; font: 400 clamp(56px, 17.4vw, 330px)/.8 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.ct-line { display: block; width: max-content; max-width: 100%; }
.ct-line:first-child { color: transparent; -webkit-text-stroke: 2px rgba(242, 236, 230, .82); transition: color .5s; }
.ct-line:last-child { color: var(--red); }
.contact-title:hover .ct-line:first-child { color: var(--bone); }
.ct-armed .ct-line { clip-path: inset(0 100% 0 0); }
.ct-armed .ct-line.built { clip-path: inset(-20% -20% -20% -20%); transition: clip-path 1.1s var(--ease), color .5s; }

.contact-seal { position: absolute; right: var(--pad); top: 0; width: clamp(104px, 12.5vw, 190px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.contact-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 18s linear infinite; }
.contact-seal text { font: 700 13.4px var(--mono); letter-spacing: 3.2px; fill: var(--bone); }
.seal-core { width: 50%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #160302; font-size: clamp(24px, 2.8vw, 42px); transition: background .3s, transform .5s var(--out); }
.contact-seal:hover .seal-core { background: var(--bone); transform: rotate(45deg) scale(1.08); }

.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 60px; margin-top: clamp(40px, 5vw, 72px); }
.contact-pre { margin: 0; max-width: 40ch; font-size: clamp(18px, 1.6vw, 22px); color: rgba(242, 236, 230, .74); }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.btn-big { height: 64px; padding: 0 30px; font-size: 17px; }
.contact-copy { display: inline-flex; align-items: center; gap: 16px; max-width: 100%; height: 64px; padding: 0 10px 0 22px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 16px; transition: border-color .25s; }
.contact-copy:hover { border-color: var(--bone); }
.cc-mail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-act { flex: none; padding: 9px 12px; border-radius: 3px; background: var(--ink-3); font: 700 11.5px/1 var(--mono); color: var(--bone); transition: background .25s, color .25s; }
.contact-copy:hover .cc-act { background: var(--red); color: #160302; }
.contact-copy.copied .cc-act { background: #3ddc84; color: #06200f; }

.foot { position: relative; margin-top: clamp(80px, 10vw, 150px); border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-block: 26px; }
.foot nav { display: flex; gap: 24px; }
.foot nav a:hover, .to-top:hover { color: var(--red); }
.foot .brand { color: var(--bone); font-size: 26px; }
@property --fx { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }
@property --fy { syntax: "<length-percentage>"; inherits: false; initial-value: 20%; }
.foot-name {
  margin-bottom: -.12em;
  font: 400 13.1vw/.86 var(--display);
  text-transform: uppercase; text-align: center; white-space: nowrap; letter-spacing: -.005em;
  color: transparent;
  background: radial-gradient(26vw circle at var(--fx) var(--fy), var(--red) 0%, rgba(255, 45, 31, .4) 42%, transparent 72%), #261b19;
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
  animation: sweep 11s ease-in-out infinite alternate;
}
.foot-name.track { animation: none; }
@keyframes sweep { from { --fx: 6%; } to { --fx: 94%; } }

/* =========================================================
   Dialog
   ========================================================= */
dialog { width: min(560px, calc(100% - 32px)); padding: 38px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--ink-2); color: var(--bone); }
dialog::backdrop { background: rgba(5, 2, 2, .72); backdrop-filter: blur(6px); }
dialog[open] { animation: pop .4s var(--out); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
dialog h2 { margin: 0 0 12px; font: 400 44px/1 var(--display); text-transform: uppercase; }
dialog p { color: rgba(242, 236, 230, .74); margin: 0 0 18px; }
dialog ul { margin: 0 0 24px; padding: 0; list-style: none; }
dialog li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
dialog li::before { content: "✳"; position: absolute; left: 0; color: var(--red); }
#dialog-links { display: flex; flex-wrap: wrap; gap: 10px; }
#dialog-links a { padding: 10px 16px; border-radius: 4px; background: var(--red); color: #160302; font-weight: 700; font-size: 14px; }
.dialog-close { position: absolute; right: 14px; top: 10px; font-size: 30px; line-height: 1; color: var(--mute); padding: 4px 10px; }
.dialog-close:hover { color: var(--red); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .hero-years { display: none; }
  .hero-bar { grid-template-columns: auto 1fr; }
  .build-hud { justify-self: end; }
  .hud-mods { display: none; }
  .lab a, .lab button { grid-template-columns: 1fr 1.2fr 28px; }
  .lab-tech { display: none; }
}

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .top nav { display: none; }

  .hero { min-height: 0; display: flex; flex-direction: column; padding: 92px var(--pad) 0; }
  .hero-role, .hero-status { position: static; }
  .hero-status { margin-top: 6px; }
  .giant { position: relative; top: auto; margin: 28px calc(var(--pad) * -1) 0; }
  .giant span { font-size: 21vw; }
  .giant-front { display: none; }
  .portrait { position: relative; left: auto; transform: none; height: auto; width: min(78vw, 420px); margin: -16vw auto 0; }
  .portrait-rim { display: none; }
  .hero-intro, .hero-side { position: static; width: auto; }
  .hero-intro { margin-top: -60px; position: relative; z-index: 5; }
  .hero-side { margin-top: 44px; }
  .hero-bar { position: static; height: auto; padding: 18px 0 26px; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; background: none; }
  .hud-track { display: none; }

  .about-scene { height: auto; }
  .about-sticky { position: relative; height: auto; overflow: visible; }
  .about-frame { position: relative; aspect-ratio: 4 / 3.6; }
  .af-clip { clip-path: none; }
  .af-clip img { transform: none; object-position: 74% 30%; }
  .af-box { display: none; }
  .about-statement { position: relative; left: auto; bottom: auto; width: auto; margin: -22vw var(--pad) 0; font-size: clamp(46px, 13vw, 84px); }
  .about-body { grid-template-columns: 1fr; padding-top: 56px; }
  .stack-intro { grid-template-columns: 1fr; align-items: start; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .section-head { flex-direction: column; align-items: start; }
  .case, .case-alt { grid-template-columns: 1fr; }
  .case-alt .case-copy { order: 0; }
  .stack-cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .peek { display: none; }
}

@media (max-width: 560px) {
  .about-code { white-space: pre-wrap; font-size: 12px; }
  .stack-col li { font-size: 16px; }
  .contact-seal { width: 88px; top: -10px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn-big { justify-content: space-between; }
  .contact-copy { justify-content: space-between; font-size: 14.5px; padding-left: 16px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .lab a, .lab button { grid-template-columns: 1fr 24px; gap: 6px 14px; }
  .lab-desc { grid-row: 2; font-size: 14px; }
  .lab-go { grid-row: 1 / 3; grid-column: 2; }
  .build-hud { gap: 8px; }
  .hud-avatars { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .about-scene { height: auto; }
  .about-sticky { position: relative; }
  .foot-name { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

.stack .display { font-size: clamp(48px, 5.4vw, 92px); }
