/* ==========================================================================
   Hugo Lopes — Portfólio
   Folha de estilo autoral (recriação fiel do site de referência)
   ========================================================================== */

/* ---------- Reset base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; }
small { font-size: 80%; }
ol, ul, menu { list-style: none; }
img, svg, video, canvas, audio, iframe, embed, object { vertical-align: middle; display: block; }
img, video { max-width: 100%; height: auto; }
button, input, select, optgroup, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 1;
  background-color: transparent;
  border-radius: 0;
}
button, input:where([type="button"], [type="reset"], [type="submit"]) { appearance: button; }
[hidden]:where(:not([hidden="until-found"])) { display: none !important; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.sr-only {
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #070708;
  --ink-soft: #0f0f11;
  --paper: #f3f0e8;
  --paper-muted: #aaa8a2;
  --line: #ffffff21;
  --red: #ff4054;
  --red-bright: #ff6271;
  --acid: #dfff45;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  background: radial-gradient(circle at 80% 15%, #ff405414, transparent 26rem), var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a, button { -webkit-tap-highlight-color: transparent; }
button, a { font: inherit; }

/* Acessibilidade: foco visível consistente */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: .35rem;
}

/* ---------- Camadas de atmosfera ---------- */
.noise {
  z-index: 90;
  pointer-events: none;
  opacity: .055;
  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='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  position: fixed;
  inset: 0;
}

.ambient {
  z-index: -1;
  filter: blur(100px);
  pointer-events: none;
  opacity: .1;
  border-radius: 50%;
  width: 32rem;
  height: 32rem;
  position: fixed;
}
.ambient-one { background: var(--red); top: 32%; right: -14rem; }
.ambient-two { background: #7e56ff; top: 68%; left: -17rem; }

/* ---------- Intro ---------- */
.intro {
  z-index: 1000;
  background: #050506;
  align-content: center;
  place-items: center;
  gap: 2.3rem;
  animation: .45s cubic-bezier(.77, 0, .18, 1) .95s forwards intro-out;
  display: grid;
  position: fixed;
  inset: 0;
}
.intro-mark {
  border: 1px solid var(--red);
  color: #fff;
  letter-spacing: -.12em;
  border-radius: 50%;
  place-items: center;
  width: 7rem;
  height: 7rem;
  font-size: 2rem;
  font-weight: 900;
  animation: .8s cubic-bezier(.2, .8, .2, 1) both intro-mark;
  display: grid;
}
.intro-copy {
  text-align: center;
  color: #929298;
  letter-spacing: .18em;
  text-transform: uppercase;
  width: min(18rem, 75vw);
  font-size: .62rem;
  font-weight: 800;
}
.intro-line { background: #222226; height: 1px; margin-top: 1rem; overflow: hidden; }
.intro-line i {
  background: var(--red);
  transform-origin: 0;
  width: 100%;
  height: 100%;
  animation: .85s ease-out .1s both intro-line;
  display: block;
}

/* ---------- Barra de progresso ---------- */
.progress-track {
  z-index: 300;
  background: 0 0;
  height: 2px;
  position: fixed;
  inset: 0 0 auto;
}
.progress-track div {
  background: linear-gradient(90deg, var(--red), #ff9b57);
  height: 100%;
  box-shadow: 0 0 20px #ff4054cc;
}

/* ---------- Header ---------- */
.site-header {
  z-index: 200;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: #08080ac2;
  border: 1px solid #ffffff1c;
  border-radius: 1.2rem;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(94%, 92rem);
  padding: .7rem .8rem;
  display: grid;
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 15px 60px #0000004d;
}

.brand {
  color: #fff;
  align-items: center;
  gap: .8rem;
  width: max-content;
  text-decoration: none;
  display: inline-flex;
}
.brand > span {
  background: var(--paper);
  width: 2.7rem;
  height: 2.7rem;
  color: var(--ink);
  letter-spacing: -.08em;
  border-radius: .82rem;
  place-items: center;
  font-size: .88rem;
  font-weight: 950;
  transition: color .3s, background .3s, transform .3s;
  display: grid;
}
.brand:hover > span { background: var(--red); color: #fff; transform: rotate(-6deg); }
.brand > .brand-avatar { background: #f5f5f3; border: 1px solid #ffffff38; overflow: hidden; }
.brand-avatar img {
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: 100%;
  display: block;
}
.brand div { flex-direction: column; gap: .1rem; display: flex; }
.brand strong { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; line-height: 1; }
.brand small { color: #7f7f86; text-transform: uppercase; letter-spacing: .12em; font-size: .61rem; line-height: 1; }

.desktop-nav {
  background: #ffffff0a;
  border-radius: .85rem;
  align-items: center;
  gap: .1rem;
  padding: .28rem;
  display: flex;
}
.desktop-nav a {
  color: #8c8c91;
  letter-spacing: .05em;
  border-radius: .65rem;
  padding: .72rem 1rem;
  font-size: .7rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .25s, background .25s;
  position: relative;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: #fff; background: #ffffff0f; }
.desktop-nav a.active::after {
  content: "";
  background: var(--red);
  border-radius: 50%;
  width: .24rem;
  height: .24rem;
  position: absolute;
  bottom: .28rem;
  left: 50%;
  transform: translate(-50%);
}

.header-status {
  color: #d8d8d2;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #dfff450a;
  border: 1px solid #dfff452b;
  border-radius: .75rem;
  justify-self: end;
  align-items: center;
  gap: .55rem;
  padding: .75rem .9rem;
  font-size: .65rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s;
  display: inline-flex;
}
.header-status:hover { background: #dfff4517; border-color: #dfff457a; transform: translateY(-2px); }
.header-status i,
.security-pulse i {
  background: var(--acid);
  border-radius: 50%;
  width: .46rem;
  height: .46rem;
  animation: 2s infinite pulse;
  box-shadow: 0 0 #dfff4566;
}

.menu-button, .mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  isolation: isolate;
  grid-template-columns: minmax(0, 1.25fr) minmax(24rem, .75fr);
  align-items: center;
  min-height: 100svh;
  padding: 8.5rem max(4vw, 2rem) 4rem;
  display: grid;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  z-index: -3;
  background: radial-gradient(circle, #ff405429, #ff405405 48%, #0000 70%);
  border-radius: 50%;
  width: 36rem;
  height: 36rem;
  animation: 6s ease-in-out infinite breathe;
  position: absolute;
  top: 9%;
  right: 5%;
}
.hero::after {
  content: "";
  z-index: -2;
  background: linear-gradient(transparent, var(--ink));
  height: 35%;
  position: absolute;
  inset: auto 0 0;
}
.hero-grid {
  z-index: -4;
  opacity: .34;
  background-image: linear-gradient(#ffffff09 1px, #0000 1px), linear-gradient(90deg, #ffffff09 1px, #0000 1px);
  background-size: 5rem 5rem;
  animation: 18s linear infinite hero-grid-drift;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(#000, #0000 92%);
  mask-image: linear-gradient(#000, #0000 92%);
}
.hero-copy { z-index: 2; position: relative; }

.eyebrow {
  color: #9b9ba2;
  text-transform: uppercase;
  letter-spacing: .16em;
  align-items: center;
  gap: .85rem;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
}
.eyebrow i { background: var(--red); width: 2rem; height: 1px; }
.hero-eyebrow { opacity: 0; animation: .8s 1.1s forwards rise; }

.hero-title-stage {
  --hero-lap: 8.5s;
  isolation: isolate;
  margin: 1.8rem 0 2.4rem;
  position: relative;
}
.hero-title-stage::before {
  content: "";
  z-index: 0;
  opacity: 0;
  filter: blur(18px);
  will-change: transform, opacity;
  width: 38%;
  height: 86%;
  animation: hero-light-pass var(--hero-lap) 1.15s infinite linear;
  background: radial-gradient(circle, #ff304a4d, #ff304a0f 42%, #0000 72%);
  border-radius: 50%;
  position: absolute;
  top: 4%;
  left: -22%;
}
.hero h1 {
  z-index: 1;
  letter-spacing: -.055em;
  will-change: filter;
  animation: hero-title-react var(--hero-lap) 1.15s infinite linear;
  margin: 0;
  font-family: Impact, Haettenschweiler, Arial Narrow Bold, sans-serif;
  font-size: clamp(6.4rem, 13.2vw, 13.5rem);
  font-weight: 900;
  line-height: .72;
  position: relative;
}
.hero-line { padding: .08em .04em .08em 0; display: block; overflow: hidden; }
.hero-line b {
  opacity: 0;
  animation: 1.05s cubic-bezier(.16, 1, .3, 1) .58s forwards hero-word;
  display: block;
  transform: translateY(120%);
}
.hero-line:nth-child(2) b { animation-delay: .72s; }
.hero h1 .outline { color: #0000; -webkit-text-stroke: 1.5px #f3f0e8b8; }

/* Faixa do carro */
.hero-car-track {
  z-index: 4;
  pointer-events: none;
  position: absolute;
  inset: 0 -4% -8% -8%;
  overflow: hidden;
}
.hero-car-track::before {
  content: "";
  z-index: 0;
  opacity: .42;
  will-change: transform;
  background:
    linear-gradient(90deg, #0000 0 7%, #ffffff47 8%, #0000 15%) 0 18% / 26% 1px no-repeat,
    linear-gradient(90deg, #0000 0 11%, #ff4054a6 12%, #0000 20%) 0 42% / 34% 1px no-repeat,
    linear-gradient(90deg, #0000 0 4%, #fff3 5%, #0000 12%) 0 66% / 22% 1px no-repeat,
    linear-gradient(90deg, #0000 0 8%, #ff40546b 9%, #0000 18%) 0 82% / 30% 1px no-repeat;
  width: 220%;
  animation: .85s linear infinite hero-speed-lines;
  position: absolute;
  inset: 8% auto 4% -105%;
}
.hero-car-track::after {
  content: "";
  z-index: 0;
  opacity: .48;
  background: linear-gradient(90deg, #0000, #ff4054b8, #ffffff38, #0000);
  height: 1px;
  animation: 1.4s ease-in-out infinite hero-road-pulse;
  position: absolute;
  bottom: 18%;
  left: 0;
  right: 0;
  transform: scaleX(.35);
  box-shadow: 0 0 18px #ff405457;
}
.hero-car-driver {
  filter: drop-shadow(0 1.2rem 1rem #0009);
  will-change: transform;
  width: clamp(20rem, 34vw, 36rem);
  animation: hero-car-drive var(--hero-lap) 1.15s infinite linear;
  position: absolute;
  top: 10%;
  left: 0;
}
.hero-car-driver::before {
  content: "";
  z-index: 3;
  opacity: .72;
  filter: blur(3px);
  background: radial-gradient(#fffffff2, #bee1ff57 35%, #0000 72%);
  border-radius: 50%;
  width: 4.8rem;
  height: 1rem;
  animation: .28s infinite alternate headlight-flicker;
  position: absolute;
  top: 52%;
  right: 3%;
  transform: rotate(-4deg);
}
.hero-car-driver::after {
  content: "";
  z-index: 0;
  opacity: .8;
  filter: blur(15px);
  background: #ff254094;
  border-radius: 50%;
  height: 10%;
  animation: .7s ease-in-out infinite underglow;
  position: absolute;
  bottom: 14%;
  left: 7%;
  right: 8%;
  transform: scaleX(.82);
}
.hero-car-driver img {
  z-index: 2;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  height: auto;
  animation: .7s ease-in-out infinite car-bob;
  display: block;
  position: relative;
  background: 0 0 !important;
}
.hero-car-trail {
  z-index: 1;
  opacity: .55;
  filter: blur(10px);
  background: linear-gradient(90deg, #0000, #ff40541a, #ff4054b8);
  width: 13rem;
  height: 1.8rem;
  position: absolute;
  top: 52%;
  right: 78%;
  transform: skew(-18deg);
}
.hero-car-trail::before,
.hero-car-trail::after {
  content: "";
  transform-origin: 100%;
  background: linear-gradient(90deg, #0000, #ffffffb3);
  width: 85%;
  height: 1px;
  animation: .42s ease-in-out infinite alternate trail-breathe;
  position: absolute;
  right: 6%;
}
.hero-car-trail::before { top: 18%; }
.hero-car-trail::after { animation-delay: -.2s; bottom: 10%; }

.hero-bottom {
  opacity: 0;
  align-items: flex-end;
  gap: 3rem;
  animation: .8s 1.05s forwards rise;
  display: flex;
}
.hero-bottom p {
  color: #99999f;
  max-width: 34rem;
  margin: 0;
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}
.hero-bottom p strong { color: var(--paper); font-weight: 700; }
.hero-actions { flex: none; align-items: center; gap: .75rem; display: flex; }

.primary-action {
  background: var(--paper);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: 999px;
  flex: none;
  align-items: center;
  gap: 1.4rem;
  padding: 1.05rem 1.1rem 1.05rem 1.4rem;
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
  transition: color .35s, transform .35s;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}
.primary-action::before {
  content: "";
  background: var(--red);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  position: absolute;
  inset: 0;
  transform: translateY(102%);
}
.primary-action span, .primary-action svg { z-index: 1; position: relative; }
.primary-action:hover { color: #fff; transform: translateY(-3px); }
.primary-action:hover::before { transform: translateY(0); }

.certificate-action {
  color: var(--acid);
  background: #dfff450e;
  border: 1px solid #dfff4540;
  border-radius: 999px;
  align-items: center;
  gap: .72rem;
  padding: .72rem .82rem;
  text-decoration: none;
  transition: border-color .3s, background .3s, transform .3s;
  display: inline-flex;
}
.certificate-action > span { flex-direction: column; min-width: 6.7rem; display: flex; }
.certificate-action strong {
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .67rem;
  line-height: 1.1;
}
.certificate-action small { color: #808087; letter-spacing: .03em; margin-top: .2rem; font-size: .54rem; }
.certificate-action:hover { background: #dfff451a; border-color: #dfff458c; transform: translateY(-3px); }

/* Painel técnico do hero */
.hero-system {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  background: linear-gradient(150deg, #ffffff13, #ffffff04);
  border: 1px solid #ffffff21;
  border-radius: 1.7rem;
  width: min(100%, 28rem);
  margin-left: auto;
  animation: 1.1s cubic-bezier(.16, 1, .3, 1) .9s forwards system-in;
  position: relative;
  overflow: hidden;
  transform: translate(4rem) rotate(2deg);
  box-shadow: 0 40px 100px #0000006b, inset 0 1px #ffffff0f;
}
.hero-system::before {
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, #0000 35%, #ffffff14 50%, #0000 65%);
  animation: 5s 2s infinite system-shine;
  position: absolute;
  inset: 0;
  transform: translate(-100%);
}
.system-top {
  border-bottom: 1px solid var(--line);
  color: #a1a1a7;
  letter-spacing: .08em;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .62rem;
  display: flex;
}
.system-top div { gap: .35rem; display: flex; }
.system-top i, .browser-bar i {
  background: #46464c;
  border-radius: 50%;
  width: .42rem;
  height: .42rem;
  display: block;
}
.system-top i:first-child, .browser-bar i:first-child { background: var(--red); }

.system-orbit {
  aspect-ratio: 1.08;
  background:
    radial-gradient(circle, #ff40541f, #0000 48%),
    linear-gradient(#ffffff06 1px, #0000 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, #ffffff06 1px, #0000 1px) 0 0 / 2.5rem 2.5rem;
  place-items: center;
  min-height: 20rem;
  display: grid;
  position: relative;
  overflow: hidden;
}
.core {
  z-index: 3;
  letter-spacing: -.1em;
  background: #0d0d10;
  border: 1px solid #ff40548c;
  border-radius: 50%;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  font-size: 1.6rem;
  font-weight: 950;
  display: grid;
  position: relative;
  box-shadow: 0 0 4rem #ff405440, inset 0 0 2rem #ff405417;
}
.core::after {
  content: "";
  border: 1px dashed #ff405461;
  border-radius: 50%;
  animation: 12s linear infinite spin;
  position: absolute;
  inset: -.5rem;
}
.orbit { border: 1px solid #ffffff1a; border-radius: 50%; position: absolute; }
.orbit-one { width: 14rem; height: 14rem; animation: 18s linear infinite spin; }
.orbit-two { border-style: dashed; width: 19rem; height: 19rem; animation: 28s linear infinite spin-reverse; }
.orbit-icon {
  z-index: 4;
  color: #b9b9bf;
  background: #111115;
  border: 1px solid #ffffff24;
  border-radius: .75rem;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  animation: 3.5s ease-in-out infinite icon-float;
  display: grid;
  position: absolute;
  box-shadow: 0 10px 25px #00000059;
}
.orbit-icon-1 { top: 22%; left: 19%; }
.orbit-icon-2 { animation-delay: -.6s; top: 18%; right: 17%; }
.orbit-icon-3 { animation-delay: -1.2s; top: 51%; right: 9%; }
.orbit-icon-4 { animation-delay: -1.8s; bottom: 10%; right: 25%; }
.orbit-icon-5 { animation-delay: -2.4s; bottom: 12%; left: 20%; }
.orbit-icon-6 { animation-delay: -3s; top: 50%; left: 8%; }

.system-console {
  border-top: 1px solid var(--line);
  color: #a4a4aa;
  background: #00000040;
  gap: .5rem;
  padding: 1.15rem 1.35rem 1.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  display: grid;
}
.system-console p { margin: 0; }
.system-console span { color: #49494f; width: 1.7rem; display: inline-block; }
.system-console b { color: #a98bff; }
.system-console em { color: #eec175; font-style: normal; }
.system-console i { color: var(--acid); font-style: normal; }

.hero-index {
  color: #55555b;
  letter-spacing: .13em;
  transform-origin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .62rem;
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  transform: rotate(-90deg);
}
.hero-pointer {
  width: 1.4rem;
  color: var(--red);
  filter: drop-shadow(0 0 12px #ff405499);
  animation: 4s ease-in-out infinite pointer-move;
  position: absolute;
  bottom: 9%;
  right: 37%;
}

/* ---------- Marquee ---------- */
.marquee {
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  border-block: 1px solid #ffffff1a;
  position: relative;
  overflow: hidden;
  transform: rotate(-1.5deg) scale(1.02);
}
.marquee div { width: max-content; animation: 24s linear infinite marquee; display: flex; }
.marquee span {
  letter-spacing: .05em;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.8rem;
  font-family: Impact, Haettenschweiler, Arial Narrow Bold, sans-serif;
  font-size: 1.5rem;
  display: flex;
}
.marquee i { color: var(--red); font-family: serif; font-size: 1rem; font-style: normal; }

/* ---------- Shell de seção ---------- */
.section-shell {
  width: min(100%, 96rem);
  margin: 0 auto;
  padding: 9rem max(5vw, 2rem);
}
.section-index {
  color: var(--red-bright);
  letter-spacing: .15em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  font-weight: 700;
}

/* ---------- Sobre ---------- */
.about { position: relative; }
.about-heading {
  grid-template-columns: .45fr 1.55fr;
  align-items: start;
  gap: 4rem;
  margin: 3.5rem 0 6rem;
  display: grid;
}
.about-heading > p {
  color: #73737a;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: .7rem 0 0;
  font-size: .78rem;
  font-weight: 750;
}
.about-heading h2,
.projects-head h2,
.capabilities-intro h2,
.certificates-head h2,
.finale h2 {
  letter-spacing: -.025em;
  text-transform: uppercase;
  max-width: 68rem;
  margin: 0;
  font-family: Impact, Haettenschweiler, Arial Narrow Bold, sans-serif;
  font-size: clamp(3.7rem, 7vw, 7.8rem);
  font-weight: 900;
  line-height: .91;
}
.about-heading h2 em,
.projects-head h2 em,
.capabilities-intro h2 em,
.certificates-head h2 em,
.finale h2 em {
  color: #0000;
  -webkit-text-stroke: 1px #f3f0e88c;
  font-style: normal;
}

.about-grid {
  grid-template-columns: minmax(18rem, .78fr) minmax(28rem, 1.22fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  display: grid;
}
.about-portrait { position: relative; }
.portrait-frame {
  background: linear-gradient(150deg, #ffffff14, #ffffff05);
  border: 1px solid #ffffff26;
  border-radius: 1.6rem;
  padding: .65rem;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), border-color .35s;
  position: relative;
  overflow: hidden;
  transform: rotate(-2.5deg);
}
.portrait-frame:hover { border-color: #ff40548c; transform: rotate(0) scale(1.02); }
.portrait-frame img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.1rem;
  width: 100%;
  display: block;
}
.portrait-frame > span {
  color: #ffffffa6;
  text-align: right;
  letter-spacing: .05em;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 1.1rem;
  line-height: .9;
  position: absolute;
  bottom: .8rem;
  right: 1.2rem;
}
.portrait-note {
  color: #c7c7ca;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #0b0b0de0;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1rem;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  position: absolute;
  bottom: 11%;
  right: -1.5rem;
  box-shadow: 0 15px 40px #00000059;
}
.portrait-note svg { color: var(--red); }

.about-copy { padding-top: 1rem; }
.about-copy > p { color: #838389; max-width: 46rem; margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.85; }
.about-copy .lead {
  color: #d7d5cf;
  letter-spacing: -.02em;
  font-size: clamp(1.25rem, 2.15vw, 2rem);
  font-weight: 520;
  line-height: 1.5;
}

.stats-row {
  border-block: 1px solid #ffffff1c;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.5rem;
  display: grid;
}
.stats-row > div {
  border-right: 1px solid #ffffff1c;
  flex-direction: column;
  gap: .4rem;
  padding: 1.6rem 1.3rem;
  display: flex;
}
.stats-row > div:first-child { padding-left: 0; }
.stats-row > div:last-child { border-right: 0; }
.stats-row strong {
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
}
.stats-row strong span { color: var(--red); }
.stats-row small { color: #77777d; text-transform: uppercase; letter-spacing: .07em; font-size: .67rem; }

/* ---------- Workana ---------- */
.workana-card {
  color: var(--paper);
  background: linear-gradient(120deg, #dfff4513, #ffffff06);
  border: 1px solid #dfff4533;
  border-radius: 1.25rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  display: grid;
}
.workana-card:hover {
  border-color: #dfff4580;
  transform: translateY(-4px);
  box-shadow: 0 1.25rem 3.5rem #0000004d, 0 0 2.5rem #dfff450d;
}
.workana-icon {
  background: var(--acid);
  width: 3.25rem;
  height: 3.25rem;
  color: var(--ink);
  border-radius: 1rem;
  place-items: center;
  display: grid;
}
.workana-copy { flex-direction: column; display: flex; }
.workana-copy small {
  color: var(--acid);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .56rem;
  font-weight: 850;
}
.workana-copy strong { letter-spacing: -.02em; margin-top: .28rem; font-size: 1rem; }
.workana-copy p { color: #7d7d83; margin: .35rem 0 0; font-size: .68rem; line-height: 1.45; }
.workana-open {
  color: #d9d9d4;
  text-transform: uppercase;
  letter-spacing: .07em;
  align-items: center;
  gap: .45rem;
  font-size: .65rem;
  font-weight: 800;
  display: inline-flex;
}

/* ---------- Stack ---------- */
.stack-strip {
  color: #b4b4b8;
  text-transform: uppercase;
  letter-spacing: .09em;
  border-block: 1px solid #ffffff1c;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  margin-top: 7rem;
  padding: 1.35rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
}
.stack-strip i { background: var(--red); border-radius: 50%; width: .25rem; height: .25rem; }

/* ---------- Projetos ---------- */
.projects {
  background: radial-gradient(circle at 85% 18%, var(--project-accent), transparent 28rem), #0b0b0d;
  width: 100%;
  max-width: none;
  transition: background .5s;
}
@supports (color: color-mix(in lab, red, red)) {
  .projects {
    background: radial-gradient(circle at 85% 18%, color-mix(in srgb, var(--project-accent) 13%, transparent), transparent 28rem), #0b0b0d;
  }
}
.projects-head, .project-stage, .project-selector { width: min(100%, 86rem); margin-inline: auto; }
.projects-head {
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 4.5rem;
  display: flex;
}
.projects-head .section-index { margin-bottom: 2rem; }
.projects-head > p { color: #808087; max-width: 27rem; margin: 0 0 .8rem; font-size: .95rem; line-height: 1.75; }

.project-stage {
  grid-template-columns: minmax(0, 1.3fr) minmax(22rem, .7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  display: grid;
}
.project-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --spot-x: 50%;
  --spot-y: 50%;
  transform: perspective(1200px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  background: #101014;
  border: 1px solid #ffffff21;
  border-radius: 1.6rem;
  transition: transform .25s ease-out, border-color .4s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 35px 90px #0000006b;
}
.project-visual:hover { border-color: var(--project-accent); }
@supports (color: color-mix(in lab, red, red)) {
  .project-visual:hover { border-color: color-mix(in srgb, var(--project-accent) 60%, transparent); }
}
.visual-spot {
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), #ffffff1f, transparent 24%);
  transition: opacity .3s;
  position: absolute;
  inset: 0;
}
.project-visual:hover .visual-spot { opacity: 1; }

.browser-bar {
  color: #77777d;
  background: #151519;
  border-bottom: 1px solid #ffffff1a;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: .85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
  display: grid;
}
.browser-bar > div { gap: .35rem; display: flex; }
.browser-bar svg { color: var(--acid); justify-self: end; }

.browser-screen {
  aspect-ratio: 1.5;
  background: #eef1f4;
  animation: .65s cubic-bezier(.2, .8, .2, 1) image-enter;
  position: relative;
  overflow: hidden;
}
.browser-screen img {
  object-fit: cover;
  object-position: top center;
  width: 100%;
  height: 100%;
  display: block;
}

.visual-caption {
  background: #111115;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 6rem;
  padding: 1rem 1.2rem;
  display: flex;
}
.visual-caption > div:first-child { align-items: center; gap: 1rem; display: flex; }
.visual-caption > div > span {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--project-accent);
  border: 1px solid #ffffff21;
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .65rem;
  font-weight: 800;
  display: grid;
}
.visual-caption p {
  color: #77777d;
  flex-direction: column;
  gap: .25rem;
  max-width: 28rem;
  margin: 0;
  font-size: .67rem;
  line-height: 1.45;
  display: flex;
}
.visual-caption strong { color: #dad8d2; font-size: .78rem; }

.visual-controls { gap: .5rem; display: flex; }
.visual-controls button {
  color: #b4b4b9;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
  display: grid;
}
.visual-controls button:hover {
  border-color: var(--project-accent);
  background: var(--project-accent);
  color: #fff;
  transform: scale(1.08);
}

.project-visual-poster { min-height: 34rem; }
.project-visual-poster > img {
  object-fit: cover;
  width: 100%;
  min-height: 34rem;
  animation: .65s cubic-bezier(.2, .8, .2, 1) image-enter;
  display: block;
}
.poster-chip {
  z-index: 5;
  color: #c4c4c8;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #050507bf;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  align-items: center;
  gap: .5rem;
  padding: .75rem .95rem;
  font-size: .66rem;
  font-weight: 700;
  display: flex;
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
}
.poster-chip svg { color: var(--project-accent); }

.project-details { animation: .55s cubic-bezier(.2, .8, .2, 1) details-enter; }
.project-meta { align-items: center; gap: 1rem; margin-bottom: 1.6rem; display: flex; }
.project-meta > span {
  border: 1px solid var(--project-accent);
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  color: var(--project-accent);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
}
@supports (color: color-mix(in lab, red, red)) {
  .project-meta > span { border: 1px solid color-mix(in srgb, var(--project-accent) 45%, transparent); }
}
.project-meta p {
  color: #d2d0ca;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-direction: column;
  gap: .22rem;
  margin: 0;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
}
.project-meta small { color: #66666d; font-size: .58rem; font-weight: 700; }
.project-details h3 {
  letter-spacing: -.055em;
  margin: 0 0 1.4rem;
  font-size: clamp(2.5rem, 4.3vw, 5rem);
  line-height: .95;
}
.project-description { color: #8b8b91; margin: 0; font-size: .9rem; line-height: 1.75; }
.project-details ul {
  grid-template-columns: 1fr 1fr;
  gap: .8rem 1rem;
  margin: 1.8rem 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.project-details li { color: #aaa9ad; align-items: center; gap: .55rem; font-size: .7rem; line-height: 1.4; display: flex; }
.project-details li svg { color: var(--project-accent); flex: none; }
.project-tags { flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; display: flex; }
.project-tags span {
  color: #8b8b91;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  padding: .55rem .75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
  font-weight: 700;
}
.project-link {
  border-bottom: 1px solid var(--project-accent);
  color: #f4f1e9;
  text-transform: uppercase;
  letter-spacing: .08em;
  align-items: center;
  gap: .8rem;
  padding-bottom: .5rem;
  font-size: .72rem;
  font-weight: 850;
  text-decoration: none;
  transition: color .25s, gap .25s;
  display: inline-flex;
}
.project-link:hover { color: var(--project-accent); gap: 1.15rem; }
.project-link-disabled { color: #77777d; border-color: #ffffff29; }

.project-selector {
  border-top: 1px solid #ffffff1f;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 5rem;
  display: grid;
}
.project-selector button {
  color: #66666c;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-right: 1px solid #ffffff1a;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: 1.5rem 1.2rem;
  transition: color .3s, background .3s;
  display: grid;
  position: relative;
}
.project-selector button:last-child { border-right: 0; }
.project-selector button::before {
  content: "";
  background: var(--project-accent);
  width: 0;
  height: 1px;
  transition: width .45s;
  position: absolute;
  top: -1px;
  left: 0;
}
.project-selector button:hover,
.project-selector button.active { color: #fff; background: #ffffff06; }
.project-selector button.active::before { width: 100%; }
.project-selector button > span {
  color: #55555c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
}
.project-selector strong {
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  font-size: .76rem;
  overflow: hidden;
}
.project-selector small { display: none; }
.project-selector button.active > span,
.project-selector button.active svg { color: var(--project-accent); }

/* ---------- Capacidades ---------- */
.capabilities { padding-bottom: 5rem; }
.capabilities-intro {
  grid-template-columns: 1fr 2fr;
  align-items: end;
  gap: 2rem 5rem;
  margin-bottom: 5rem;
  display: grid;
}
.capabilities-intro .section-index { align-self: start; }
.capabilities-intro h2 { grid-column: 2; }
.capabilities-intro > p {
  color: #7e7e85;
  grid-column: 2;
  max-width: 35rem;
  margin: 0;
  font-size: .95rem;
  line-height: 1.75;
}
.capabilities-list {
  border: 1px solid #ffffff1c;
  border-radius: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  overflow: hidden;
}
.capability-card {
  min-height: 22rem;
  transition: background .4s, transform .4s;
  transition-delay: var(--delay);
  background: #ffffff05;
  border-right: 1px solid #ffffff1c;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
}
.capability-card:last-child { border-right: 0; }
.capability-card::before {
  content: "";
  background: var(--red);
  transition: inset .45s cubic-bezier(.2, .8, .2, 1);
  position: absolute;
  inset: 100% 0 0;
}
.capability-card:hover::before { inset: 0; }
.capability-number,
.capability-icon,
.capability-card h3,
.capability-card p,
.capability-card > span { z-index: 1; position: relative; }
.capability-number { color: #55555c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; }
.capability-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--red);
  background: #ffffff09;
  border: 1px solid #ffffff21;
  border-radius: 1rem;
  place-items: center;
  margin: 3.4rem 0 2.2rem;
  transition: color .35s, background .35s, transform .35s;
  display: grid;
}
.capability-card:hover .capability-icon { color: var(--red); background: #fff; transform: rotate(-6deg); }
.capability-card h3 { letter-spacing: -.03em; margin: 0 0 1rem; font-size: 1.25rem; }
.capability-card p { color: #77777e; margin: 0; font-size: .76rem; line-height: 1.7; transition: color .35s; }
.capability-card > span {
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}
.capability-card:hover .capability-number,
.capability-card:hover p { color: #ffffffbf; }

.security-banner {
  background: linear-gradient(110deg, #ff405414, #ffffff06);
  border: 1px solid #ffffff1c;
  border-radius: 1.35rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  display: grid;
}
.security-icon {
  width: 4.6rem;
  height: 4.6rem;
  color: var(--red);
  background: #ff405414;
  border: 1px solid #ff405440;
  border-radius: 1.1rem;
  place-items: center;
  display: grid;
}
.security-banner span {
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .59rem;
  font-weight: 850;
}
.security-banner h3 { letter-spacing: -.03em; margin: .45rem 0 0; font-size: clamp(1.1rem, 2vw, 1.65rem); }
.security-pulse {
  color: #a8a8aa;
  border: 1px solid #dfff4526;
  border-radius: 999px;
  align-items: center;
  gap: .55rem;
  padding: .65rem .8rem;
  font-size: .62rem;
  font-weight: 700;
  display: flex;
}

/* ---------- Certificados ---------- */
.certificates { border-top: 1px solid #ffffff14; position: relative; overflow: hidden; }
.certificates::before {
  content: "";
  opacity: .22;
  pointer-events: none;
  background-image: linear-gradient(#ffffff06 1px, #0000 1px), linear-gradient(90deg, #ffffff06 1px, #0000 1px);
  background-size: 4rem 4rem;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(#000, #0000 72%);
  mask-image: linear-gradient(#000, #0000 72%);
}
.certificates-glow {
  opacity: .16;
  background: var(--red);
  filter: blur(110px);
  pointer-events: none;
  border-radius: 50%;
  width: 38rem;
  height: 22rem;
  animation: 6s ease-in-out infinite alternate certificates-glow;
  position: absolute;
  top: -10rem;
  left: 38%;
}
.certificates-head {
  z-index: 1;
  grid-template-columns: .55fr 1.55fr auto;
  align-items: end;
  gap: 3rem;
  margin-bottom: 4.5rem;
  display: grid;
  position: relative;
}
.certificates-head .section-index { align-self: start; }
.certificates-head h2 { margin: 0; }
.certificates-head > div:nth-child(2) > p {
  color: #7e7e85;
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: .92rem;
  line-height: 1.75;
}
.certificates-total {
  color: var(--acid);
  background: #dfff450b;
  border: 1px solid #dfff4533;
  border-radius: 1rem;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1rem;
  display: flex;
}
.certificates-total span {
  color: #87878c;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-direction: column;
  font-size: .59rem;
  display: flex;
}
.certificates-total strong { color: var(--paper); letter-spacing: 0; font-size: 1rem; }

.certificates-grid {
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  display: grid;
  position: relative;
}
.certificate-card {
  color: var(--paper);
  transition-delay: var(--delay);
  background: #ffffff06;
  border: 1px solid #ffffff1f;
  border-radius: 1.5rem;
  text-decoration: none;
  transition-property: opacity, transform, border-color, box-shadow;
  display: block;
  overflow: hidden;
}
.certificate-card:hover {
  border-color: #ff405473;
  transform: translateY(-.45rem);
  box-shadow: 0 1.6rem 4rem #00000052, 0 0 2.5rem #ff405414;
}
.certificate-preview {
  aspect-ratio: 1.414;
  background: #f4f4f2;
  border-bottom: 1px solid #ffffff1a;
  position: relative;
  overflow: hidden;
}
.certificate-preview::after {
  content: "";
  opacity: 0;
  background: linear-gradient(130deg, #0000 35%, #ffffff57 48%, #0000 61%);
  transition: opacity .35s, transform .75s ease-out;
  position: absolute;
  inset: 0;
  transform: translate(-80%);
}
.certificate-preview img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: filter .5s, transform .7s cubic-bezier(.2, .8, .2, 1);
  display: block;
}
.certificate-card:hover .certificate-preview img { filter: brightness(.58) saturate(.8); transform: scale(1.035); }
.certificate-card:hover .certificate-preview::after { opacity: 1; transform: translate(80%); }
.certificate-open {
  z-index: 3;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .09em;
  opacity: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #09090acc;
  border: 1px solid #ffffff38;
  border-radius: 999px;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  font-size: .67rem;
  font-weight: 800;
  transition: opacity .35s, transform .35s;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%);
}
.certificate-card:hover .certificate-open,
.certificate-card:focus-visible .certificate-open { opacity: 1; transform: translate(-50%, -50%); }
.certificate-scan {
  z-index: 2;
  opacity: .45;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  height: 2px;
  animation: certificate-scan 5.4s calc(.8s + var(--delay)) infinite ease-in-out;
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  box-shadow: 0 0 1.25rem #ff40548c;
}
.certificate-info {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 8rem;
  padding: 1.35rem 1.4rem;
  display: grid;
}
.certificate-info > span {
  color: var(--red-bright);
  letter-spacing: .1em;
  align-self: start;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .62rem;
}
.certificate-info h3 {
  letter-spacing: -.035em;
  margin: 0 0 .45rem;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.08;
}
.certificate-info p { color: #74747a; margin: 0; font-size: .65rem; }
.certificate-meta { flex-direction: column; align-items: flex-end; gap: .25rem; display: flex; }
.certificate-meta strong {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
}
.certificate-meta small { color: #66666c; text-transform: uppercase; letter-spacing: .08em; font-size: .59rem; }

/* ---------- Finale ---------- */
.finale {
  text-align: center;
  flex-direction: column;
  align-items: center;
  min-height: 85vh;
  display: flex;
  position: relative;
  overflow: hidden;
}
.finale .section-index { margin: auto 0 2.5rem; }
.finale h2 { z-index: 2; position: relative; }
.finale-link {
  z-index: 2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  align-items: center;
  gap: 2rem;
  margin: 3.5rem 0 auto;
  padding: 1.1rem 1.1rem 1.1rem 1.7rem;
  font-size: .73rem;
  font-weight: 850;
  text-decoration: none;
  transition: background .35s, border-color .35s, transform .35s;
  display: inline-flex;
  position: relative;
}
.finale-link svg { background: var(--red); border-radius: 50%; width: 2.8rem; height: 2.8rem; padding: .45rem; }
.finale-link:hover { border-color: var(--red); background: #ff405414; transform: translateY(-4px); }
.finale-orbit {
  aspect-ratio: 1;
  border: 1px solid #ffffff0e;
  border-radius: 50%;
  width: min(72vw, 62rem);
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.finale-orbit::before,
.finale-orbit::after {
  content: "";
  border: 1px dashed #ff405421;
  border-radius: 50%;
  animation: 35s linear infinite spin;
  position: absolute;
  inset: 14%;
}
.finale-orbit::after { border-style: solid; animation: 25s linear infinite spin-reverse; inset: 31%; }
.finale-orbit i {
  background: var(--red);
  border-radius: 50%;
  width: .55rem;
  height: .55rem;
  position: absolute;
  box-shadow: 0 0 2rem #ff4054bf;
}
.finale-orbit i:first-child { top: 21%; left: 17%; }
.finale-orbit i:nth-child(2) { background: var(--acid); bottom: 13%; right: 23%; }
.finale-orbit span {
  color: #ffffff05;
  letter-spacing: -.1em;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 30vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Footer ---------- */
footer {
  color: #66666c;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-top: 1px solid #ffffff1a;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: min(100%, 96rem);
  margin: 0 auto;
  padding: 2rem max(5vw, 2rem);
  font-size: .63rem;
  display: grid;
}
.footer-brand > span { width: 2.2rem; height: 2.2rem; font-size: .68rem; }
footer p { margin: 0; }
footer > span { justify-self: end; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transition: opacity .85s cubic-bezier(.2, .8, .2, 1), transform .85s cubic-bezier(.2, .8, .2, 1);
  transform: translateY(2.5rem);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Keyframes ---------- */
@keyframes intro-mark {
  0% { opacity: 0; transform: scale(.72) rotate(-14deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes intro-line { 0% { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-out { to { opacity: 0; transform: translateY(-100%); } }
@keyframes hero-word { to { opacity: 1; transform: translateY(0); } }
@keyframes rise {
  0% { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes system-in { to { opacity: 1; transform: translate(0) rotate(0); } }
@keyframes system-shine {
  0%, 30% { transform: translate(-100%); }
  55%, to { transform: translate(100%); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes icon-float {
  0%, to { transform: translateY(-3px); }
  50% { transform: translateY(5px); }
}
@keyframes pointer-move {
  0%, to { transform: translate(0) rotate(-18deg); }
  45% { transform: translate(2rem, -1.5rem) rotate(-8deg); }
}
@keyframes breathe {
  0%, to { opacity: .65; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes pulse { 50% { opacity: .5; } }
@keyframes marquee { to { transform: translate(-50%); } }
@keyframes hero-grid-drift { to { background-position: 5rem 2.5rem; } }
@keyframes hero-light-pass {
  0%, 10% { opacity: 0; transform: translate(0) scale(.7); }
  22% { opacity: .3; }
  48% { opacity: 1; transform: translate(148%) scale(1.08); }
  76% { opacity: .24; }
  84%, to { opacity: 0; transform: translate(310%) scale(.78); }
}
@keyframes hero-title-react {
  0%, 25%, 78%, to { filter: brightness(); }
  42%, 58% { filter: brightness(1.14) drop-shadow(0 0 .32rem #ff405433); }
}
@keyframes hero-speed-lines { to { transform: translate(48%); } }
@keyframes hero-road-pulse {
  0%, to { opacity: .2; transform: scaleX(.25); }
  50% { opacity: .62; transform: scaleX(.92); }
}
@keyframes hero-car-drive {
  0% { transform: translate(calc(-100% - 8vw)); }
  12% { transform: translate(calc(-100% - 8vw)); }
  82% { transform: translate(calc(78vw + 10%)); }
  to { transform: translate(calc(78vw + 10%)); }
}
@keyframes car-bob {
  0%, to { transform: translateY(0) rotate(0); }
  42% { transform: translateY(-3px) rotate(-.14deg); }
  68% { transform: translateY(1px) rotate(.08deg); }
}
@keyframes headlight-flicker {
  0% { opacity: .55; transform: rotate(-4deg) scaleX(.82); }
  to { opacity: .9; transform: rotate(-4deg) scaleX(1.08); }
}
@keyframes underglow {
  0%, to { opacity: .48; transform: scaleX(.76); }
  50% { opacity: .86; transform: scaleX(.92); }
}
@keyframes trail-breathe {
  0% { opacity: .3; transform: scaleX(.62); }
  to { opacity: .9; transform: scaleX(1); }
}
@keyframes certificates-glow {
  0% { opacity: .1; transform: translate(-8%) scale(.9); }
  to { opacity: .22; transform: translate(10%) scale(1.12); }
}
@keyframes certificate-scan {
  0%, 18% { opacity: 0; transform: translateY(-1rem); }
  28% { opacity: .5; }
  70% { opacity: .32; }
  82%, to { opacity: 0; transform: translateY(27rem); }
}
@keyframes image-enter {
  0% { opacity: 0; filter: blur(8px); transform: scale(1.04); }
  to { opacity: 1; filter: blur(); transform: scale(1); }
}
@keyframes details-enter {
  0% { opacity: 0; transform: translateY(1.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr); }
  .hero h1 { font-size: clamp(6rem, 12.5vw, 10rem); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.7rem; }
  .project-stage { grid-template-columns: 1fr; }
  .project-details { grid-template-columns: 1fr 1fr; gap: 0 2rem; display: grid; }
  .project-meta, .project-details h3, .project-details .project-description { grid-column: 1; }
  .project-details ul, .project-details .project-tags, .project-details .project-link { grid-column: 2; }
  .project-details ul { grid-row: 1 / 3; margin-top: 0; }
  .project-details .project-tags { grid-row: 3; align-self: start; }
  .project-details .project-link { grid-row: 4; place-self: start; }
  .capabilities-list { grid-template-columns: 1fr 1fr; }
  .capability-card:nth-child(2) { border-right: 0; }
  .capability-card:nth-child(-n + 2) { border-bottom: 1px solid #ffffff1c; }
  .certificates-head { grid-template-columns: .45fr 1.55fr; }
  .certificates-total { grid-column: 2; justify-self: start; }
  .certificates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .site-header { grid-template-columns: 1fr auto; width: calc(100% - 1.2rem); top: .6rem; }
  .desktop-nav, .header-status { display: none; }
  .menu-button {
    color: #fff;
    background: 0 0;
    border: 1px solid #ffffff1f;
    border-radius: .8rem;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
  }
  .mobile-menu {
    z-index: 180;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    background: #070708f7;
    flex-direction: column;
    justify-content: center;
    gap: .3rem;
    padding: 6rem 2rem 2rem;
    transition: opacity .35s, transform .35s;
    display: flex;
    position: fixed;
    inset: 0;
    transform: translateY(-1rem);
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-menu a {
    color: #fff;
    text-transform: uppercase;
    border-bottom: 1px solid #ffffff1a;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-family: Impact, Haettenschweiler, sans-serif;
    font-size: 2.6rem;
    text-decoration: none;
    display: flex;
  }
  .mobile-menu span { color: var(--red); font-family: ui-monospace, monospace; font-size: .65rem; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8.5rem; }
  .hero h1 { font-size: clamp(5.7rem, 24vw, 10rem); }
  .hero-title-stage { margin-block: 2rem; }
  .hero-car-track { inset: 0 -3% -8%; }
  .hero-car-driver { width: clamp(20rem, 58vw, 31rem); }
  .hero-system { width: min(100%, 34rem); margin: 4rem auto 1rem; }
  .hero-index, .hero-pointer { display: none; }

  .about-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { width: min(100%, 28rem); margin: 0 auto; }
  .stack-strip { flex-wrap: wrap; justify-content: center; }

  .projects-head { flex-direction: column; align-items: flex-start; }
  .project-details { display: block; }
  .project-details ul { margin: 1.8rem 0; }
  .project-selector { border-bottom: 1px solid #ffffff1f; grid-template-columns: 1fr; }
  .project-selector button { border-bottom: 1px solid #ffffff14; border-right: 0; }
  .project-selector small { color: #55555c; grid-column: 2; font-size: .58rem; display: block; }
  .project-selector svg { grid-area: 1 / 3 / 3; }

  .capabilities-intro { grid-template-columns: 1fr; }
  .capabilities-intro h2, .capabilities-intro > p { grid-column: 1; }
  .certificates-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .certificates-total { grid-column: 1; }
  .certificates-grid { grid-template-columns: 1fr; }
  .security-banner { grid-template-columns: auto 1fr; }
  .security-pulse { grid-column: 2; justify-self: start; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (max-width: 560px) {
  .brand div { display: none; }
  .section-shell { padding: 6.5rem 1.15rem; }
  .hero { padding: 7.5rem 1.15rem 4rem; }
  .hero h1 { font-size: clamp(5.1rem, 25.5vw, 8rem); }
  .hero-bottom { gap: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .primary-action { justify-content: space-between; width: 100%; }
  .certificate-action { justify-content: space-between; width: 100%; padding: .9rem 1rem; }
  .system-orbit { min-height: 17rem; }
  .orbit-one { width: 12rem; height: 12rem; }
  .orbit-two { width: 16rem; height: 16rem; }
  .core { width: 5.4rem; height: 5.4rem; }
  .system-console { font-size: .59rem; overflow-x: auto; }
  .marquee span { padding-inline: 1.2rem; font-size: 1.2rem; }
  .hero-title-stage { --hero-lap: 6.8s; }
  .hero-car-driver { width: 23rem; top: 8%; }
  .hero-car-track::before { opacity: .25; }
  .hero-car-driver::before { width: 3.3rem; }

  .about-heading { margin-bottom: 3.5rem; }
  .about-heading h2,
  .projects-head h2,
  .capabilities-intro h2,
  .certificates-head h2,
  .finale h2 { font-size: clamp(3.2rem, 17vw, 5.4rem); }
  .portrait-note { bottom: .9rem; right: .4rem; }
  .about-copy .lead { font-size: 1.2rem; }
  .stats-row { grid-template-columns: 1fr; }
  .stats-row > div,
  .stats-row > div:first-child { border-bottom: 1px solid #ffffff17; border-right: 0; padding: 1.2rem 0; }
  .stats-row > div:last-child { border-bottom: 0; }
  .stats-row strong { font-size: 3rem; }
  .workana-card { grid-template-columns: auto 1fr; align-items: start; }
  .workana-open { grid-column: 2; margin-top: .2rem; }
  .stack-strip { margin-top: 4rem; }

  .projects { padding-inline: 1.15rem; }
  .projects-head { margin-bottom: 3rem; }
  .browser-bar { grid-template-columns: 1fr auto; }
  .browser-bar > span { display: none; }
  .browser-screen { aspect-ratio: .92; }
  .browser-screen img { object-position: top left; }
  .visual-caption { align-items: flex-end; }
  .visual-caption p { font-size: .6rem; }
  .visual-caption p:not(strong) { max-width: 12rem; }
  .project-visual-poster,
  .project-visual-poster > img { min-height: 22rem; }
  .project-details h3 { font-size: 2.6rem; }
  .project-details ul, .capabilities-list { grid-template-columns: 1fr; }
  .capability-card { border-bottom: 1px solid #ffffff1c; border-right: 0; min-height: 19rem; }
  .capability-card:last-child { border-bottom: 0; }
  .security-banner { grid-template-columns: 1fr; }
  .security-icon { width: 3.8rem; height: 3.8rem; }
  .security-pulse { grid-column: 1; }

  .certificates-grid { gap: 1.2rem; }
  .certificate-info { grid-template-columns: auto 1fr; }
  .certificate-meta { flex-direction: row; grid-column: 2; align-items: flex-start; gap: .7rem; }
  .certificate-open { opacity: 1; transform: translate(-50%, -50%); }

  .finale { min-height: 75vh; }
  .finale-orbit { width: 135vw; }
  footer { text-align: center; grid-template-columns: 1fr; }
  .footer-brand, footer > span { justify-self: center; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .intro { display: none; }
  .reveal { opacity: 1; transform: none; }
  .hero-grid,
  .hero-title-stage::before,
  .hero h1,
  .hero-car-track::before,
  .hero-car-track::after,
  .hero-car-driver::before,
  .hero-car-driver::after,
  .hero-car-trail::before,
  .hero-car-trail::after { animation: none !important; }
  .hero-car-driver { left: 50%; transform: translate(-50%); animation: none !important; }
}
