:root {
  --bg: #090a12;
  --panel: #10121e;
  --panel-2: #141626;
  --text: #f5f6ff;
  --muted: #b9bdcf;
  --line: rgba(255, 255, 255, 0.1);
  --purple: #8b5cf6;
  --blue: #4f8cff;
  --pink: #d36bff;
  --font: "DM Sans", sans-serif;
  --display: "Space Grotesk", sans-serif;
  --max: 1160px;
  --header-h: 82px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 140ms;
  --dur-ui: 220ms;
  --dur-section: 520ms;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(79, 140, 255, 0.14), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: var(--safe-top);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

button,
a,
[role="button"],
.menu-toggle,
.faq-item summary {
  touch-action: manipulation;
}

button,
.menu-toggle,
.button,
.nav-cta,
.floating-whatsapp {
  -webkit-user-select: none;
  user-select: none;
}

:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: transparent;
}

.page-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.028;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: #8757f5;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.11;
  pointer-events: none;
  will-change: auto;
  contain: strict;
}

.ambient-one { background: #702cf5; top: 100px; left: -220px; }
.ambient-two { background: #1765e9; top: 750px; right: -300px; }
.ambient-three {
  background: #5b21b6;
  width: 320px;
  height: 320px;
  top: 42%;
  left: 42%;
  opacity: 0.08;
}

.section-wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 10, 18, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(9, 10, 18, 0.9);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 5px 24px #7948f433;
  color: #fff;
  font-size: 13px;
  letter-spacing: -1px;
}

.brand-accent { color: #a78bfa; }
.brand small {
  font-size: 9px;
  color: #9aa0b8;
  letter-spacing: 1px;
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: #c5c8d8;
}

.nav a {
  position: relative;
  transition: color var(--dur-ui) var(--ease-out);
}

.nav a.is-active { color: #fff; }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.nav .nav-cta {
  border: 1px solid #8b5cf655;
  background: #8b5cf612;
  color: #e7ddff;
  padding: 10px 15px;
  border-radius: 9px;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out),
    background var(--dur-ui) var(--ease-out);
}

.nav .nav-cta.is-active::after { display: none; }

.nav .nav-cta:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: #fff; }
  .nav .nav-cta:hover {
    border-color: #8b5cf688;
    background: #8b5cf622;
  }
}

.menu-toggle { display: none; }

.hero {
  min-height: min(680px, 100svh);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "copy visual"
    "proof visual";
  align-items: center;
  gap: 18px 30px;
  position: relative;
  padding-top: 35px;
  padding-bottom: 70px;
}

.hero-copy { grid-area: copy; }
.hero-visual { grid-area: visual; }
.hero-proof { grid-area: proof; }

.eyebrow,
.section-index {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c0c4d8;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
}

.status-dot,
.mini-status {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 12px #8b5cf6;
}

.status-dot { animation: status-pulse 1.8s ease-in-out infinite; }

.hero h1 {
  font: 600 clamp(39px, 5.1vw, 65px) / 1.12 var(--display);
  letter-spacing: -2.8px;
  margin: 0;
  max-width: 660px;
}

.gradient-text {
  background: linear-gradient(100deg, #b7a0ff 0%, #8b5cf6 48%, #65a6ff 100%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 7s ease infinite;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.2px #c4b5fd;
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
  paint-order: stroke fill;
}

@supports not (-webkit-text-stroke: 1px black) {
  .outline-text {
    color: #d4c8ff;
    text-shadow: none;
  }
}

.hero h1 {
  perspective: 700px;
}

.hero-word {
  display: inline-block;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
}

.hero-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 530px;
  margin: 25px 0 27px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 46px;
  padding: 0 19px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 700;
  font-size: 13px;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out),
    background var(--dur-ui) var(--ease-out);
}

.button:active { transform: scale(0.97); }
.button:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}
.button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #8757f5, #586ff3);
  color: white;
  box-shadow: 0 9px 30px #7551f52a;
}
.button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover::before { transform: translateX(120%); }
}

.contact-panel .button-primary {
  animation: cta-glow 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel .button-primary { animation: none; }
}

.button-ghost {
  border: 1px solid var(--line);
  color: #e0e2ef;
  background: #ffffff03;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .button:active:hover { transform: scale(0.97); }
  .button-primary:hover { box-shadow: 0 12px 34px #7551f54a; }
  .button-ghost:hover { border-color: #8b5cf688; background: #ffffff08; }
}

.hero-proof {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-proof li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.proof-mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25213d;
  color: #c7b8ff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #8b5cf633;
  animation: icon-bob 3.8s ease-in-out infinite;
}

.hero-proof li:nth-child(2) .proof-mark { animation-delay: 0.45s; }
.hero-proof li:nth-child(3) .proof-mark { animation-delay: 0.9s; animation-name: icon-sway; }

.hero-proof p {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  color: var(--muted);
  display: grid;
}

.hero-proof strong {
  color: #e8eaf6;
  font-size: 13px;
}

.hero-visual {
  min-height: 470px;
  position: relative;
  display: grid;
  place-items: center;
}

.avatar-card {
  width: min(320px, 75%);
  position: relative;
  z-index: 3;
  border: 1px solid #ffffff19;
  background: linear-gradient(145deg, #191a2b, #0e101b);
  border-radius: 25px;
  padding: 12px;
  box-shadow: 0 25px 80px #0008, 0 0 55px #7551f51c;
  transform: rotate(2deg);
  animation: avatar-think 4.8s ease-in-out infinite;
}

.avatar-card img,
.avatar-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 341;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 17px;
  background: #111322;
}

.avatar-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 7px 7px;
}

.avatar-caption > div { display: grid; line-height: 1.45; }
.avatar-caption strong { font-size: 12px; }
.avatar-caption small { font-size: 10px; color: #b0b5c9; }

.mini-status {
  width: 7px;
  height: 7px;
  background: #60e6b0;
  box-shadow: 0 0 10px #60e6b0;
  animation: status-pulse 1.8s ease-in-out infinite;
}

.caption-code {
  margin-left: auto;
  color: #a78bfa;
  font: 700 12px var(--display);
}

.code-cursor {
  display: inline-block;
  animation: blink-cursor 1s step-end infinite;
}

.thought {
  position: absolute;
  top: 22px;
  right: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #10121ef2;
  border: 1px solid #ffffff22;
  box-shadow: 0 10px 24px #0006;
}

.thought span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4b5fd;
  animation: think-dot 1.25s ease-in-out infinite;
}

.thought span:nth-child(2) { animation-delay: 0.16s; }
.thought span:nth-child(3) { animation-delay: 0.32s; }

.orbit {
  position: absolute;
  border: 1px solid #8b5cf628;
  border-radius: 50%;
  aspect-ratio: 1;
  pointer-events: none;
}

.orbit-a {
  width: 410px;
  transform: rotate(-25deg) scaleY(0.72);
  animation: orbit-drift-a 22s ease-in-out infinite alternate;
}

.orbit-b {
  width: 330px;
  border-color: #4f8cff2b;
  transform: rotate(40deg) scaleY(0.78);
  animation: orbit-drift-b 28s ease-in-out infinite alternate;
}

@keyframes orbit-drift-a {
  from { transform: rotate(-25deg) scaleY(0.72); }
  to { transform: rotate(-8deg) scaleY(0.72); }
}

@keyframes orbit-drift-b {
  from { transform: rotate(40deg) scaleY(0.78); }
  to { transform: rotate(22deg) scaleY(0.78); }
}

.visual-grid {
  position: absolute;
  width: 90%;
  height: 85%;
  background-image: radial-gradient(#8580b733 1px, transparent 1px);
  background-size: 17px 17px;
  mask-image: radial-gradient(ellipse, black, transparent 70%);
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid #ffffff17;
  border-radius: 13px;
  background: #10121ee8;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px #0004;
}

.floating-chip div { display: grid; line-height: 1.4; }
.floating-chip b { font-size: 11px; }
.floating-chip small { font-size: 9px; color: #b0b5c9; }

.typewriter {
  min-width: 11.2em;
  min-height: 1.2em;
  display: inline-block;
}

.typewriter.is-typing::after {
  content: "▌";
  margin-left: 2px;
  color: #a78bfa;
  animation: blink-cursor 0.9s step-end infinite;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #8358f326;
  color: #b7a1ff;
  font: 700 12px var(--display);
  animation: icon-sway 3.4s ease-in-out infinite;
}

@keyframes icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes icon-sway {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-7deg); }
}

.chip-code {
  top: 78px;
  right: -4px;
  animation: chip-float 3.6s ease-in-out infinite;
}

.chip-tech {
  bottom: 112px;
  left: -36px;
  animation: chip-float 4.2s ease-in-out infinite reverse;
}

.chip-tech .chip-icon { background: #3278ed22; color: #80b2ff; }

@keyframes avatar-think {
  0%, 100% {
    transform: rotate(2deg) translateY(0);
    box-shadow: 0 25px 80px #0008, 0 0 55px #7551f51c;
  }
  50% {
    transform: rotate(1deg) translateY(-9px);
    box-shadow: 0 32px 90px #0008, 0 0 72px #8b5cf64d;
  }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes think-dot {
  0%, 80%, 100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #60e6b0; }
  50% { opacity: 0.45; box-shadow: 0 0 16px #60e6b0; }
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa0b8;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.scroll-cue span {
  height: 28px;
  width: 17px;
  border: 1px solid #7c82a0;
  border-radius: 10px;
  position: relative;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 6px;
  background: #a78bfa;
  top: 5px;
  left: 6px;
  border-radius: 2px;
}

.section-block {
  padding-top: 88px;
  padding-bottom: 32px;
}

#sobre.section-block {
  padding-top: 72px;
}

.section-heading { margin-bottom: 37px; }

.section-heading h2,
.contact-panel h2 {
  font: 600 clamp(32px, 4vw, 47px) / 1.17 var(--display);
  letter-spacing: -1.8px;
  margin: 15px 0;
}

.section-heading > p {
  max-width: 550px;
  color: var(--muted);
  font-size: 14px;
  margin: 13px 0 0;
}

.muted-heading { color: #c0c4d4; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  font-size: 15px;
}

.about-copy .large-copy {
  font: 500 21px / 1.55 var(--display);
  color: #e7e8f4;
  max-width: 570px;
  margin-top: 0;
}

.inline-link {
  color: #c7b5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-copy .note {
  border-left: 2px solid var(--purple);
  padding-left: 15px;
  color: #d4c8f5;
  margin-top: 25px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff06, #ffffff01);
  transition:
    transform var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    transform: translateY(-4px);
    border-color: #8b5cf655;
    box-shadow: 0 12px 28px #0005;
  }
}

.stat-symbol {
  display: inline-block;
  color: #a78bfa;
  font-size: 22px;
  margin-bottom: 10px;
  animation: icon-bob 3.6s ease-in-out infinite;
}

.stat-card:nth-child(2) .stat-symbol { animation-delay: 0.4s; animation-name: icon-sway; }
.stat-card:nth-child(3) .stat-symbol { animation-delay: 0.8s; }
.stat-card:nth-child(4) .stat-symbol { animation-delay: 1.2s; animation-name: icon-sway; }

.stat-card strong {
  display: block;
  font: 600 18px var(--display);
}

.stat-card small {
  color: #b0b5c9;
  font-size: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 22px 19px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(150deg, rgba(20, 22, 38, 0.88), rgba(13, 15, 24, 0.9)),
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 40%);
  transition:
    transform var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    border-color: #8b5cf655;
    box-shadow: 0 16px 36px #0006;
  }

  .service-card:hover .service-icon {
    transform: scale(1.08) rotate(-8deg);
  }
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}

.service-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #8654f52b, #4f8cff1d);
  color: #b6a0ff;
  font: 700 15px var(--display);
  transition: transform var(--dur-ui) var(--ease-out);
  animation: icon-bob 3.2s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon { animation-delay: 0.35s; animation-name: icon-sway; }
.service-card:nth-child(3) .service-icon { animation-delay: 0.7s; }
.service-card:nth-child(4) .service-icon { animation-delay: 1.05s; animation-name: icon-sway; }

.service-number {
  font: 500 11px var(--display);
  color: #9aa0b8;
}

.service-card h3 {
  font: 600 16px / 1.35 var(--display);
  margin: 0 0 11px;
}

.service-card p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 16px;
}

.service-card .tag-row {
  margin-bottom: 14px;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #c7b5ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-top: 1px solid #ffffff10;
  padding-top: 12px;
  margin-top: auto;
  transition: color var(--dur-fast) var(--ease-out);
}

.service-cta span {
  transition: transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .service-cta:hover { color: #e4dbff; }
  .service-cta:hover span { transform: translate(2px, -2px); }
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.skill-pills span {
  border: 1px solid #ffffff13;
  border-radius: 6px;
  padding: 5px 8px;
  color: #c5c8d8;
  font-size: 10px;
  white-space: nowrap;
  background: #ffffff03;
}

.project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  background: linear-gradient(120deg, #111321, #0d0e17);
  margin-bottom: 16px;
  transition:
    border-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    border-color: #8b5cf655;
    box-shadow: 0 18px 50px #0006;
  }
}

.project-art {
  min-height: 340px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, #4d26a333, transparent 58%),
    linear-gradient(140deg, #16142a, #0c1020);
}

.project-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(black, transparent);
}

.project-art-site {
  background:
    radial-gradient(ellipse at 50% 60%, #2646a333, transparent 58%),
    linear-gradient(140deg, #14182a, #0c1020);
}

.project-art-uise {
  background:
    radial-gradient(ellipse at 70% 40%, #7c3aed44, transparent 55%),
    linear-gradient(140deg, #1a1028, #0c0814);
}

.project-window {
  position: relative;
  width: min(92%, 520px);
  border: 1px solid #8b5cf64c;
  border-radius: 12px;
  overflow: hidden;
  transform: perspective(900px) rotateY(6deg) rotateX(2deg);
  box-shadow: 0 30px 70px #0008, 0 0 45px #7445e71b;
  background: #0e101c;
  animation: window-float 6s ease-in-out infinite;
}

.project-card-alt .project-window {
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
  animation-name: window-float-alt;
}

.window-bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #17182a;
  border-bottom: 1px solid #ffffff0d;
}

.window-bar > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8757f5;
}

.window-bar > span:nth-child(2) { background: #6f91f4; }
.window-bar > span:nth-child(3) { background: #d36bff; }

.window-bar b {
  margin-left: 8px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #b0b5c9;
}

.mock-interface {
  display: flex;
  min-height: 190px;
}

.mock-interface aside {
  width: 35px;
  border-right: 1px solid #ffffff0d;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  padding-top: 17px;
}

.mock-interface aside i {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: #7c56db66;
}

.mock-content { padding: 20px 16px; flex: 1; }

.mock-title {
  height: 9px;
  width: 48%;
  background: linear-gradient(90deg, #b5a2ff, #4f8cff);
  border-radius: 4px;
}

.mock-subtitle {
  height: 5px;
  width: 70%;
  background: #ffffff18;
  border-radius: 4px;
  margin-top: 8px;
}

.mock-panels {
  display: flex;
  gap: 8px;
  margin-top: 19px;
}

.mock-panels span {
  height: 47px;
  flex: 1;
  border: 1px solid #8b5cf62e;
  border-radius: 6px;
  background: linear-gradient(140deg, #7c3aed18, #4f8cff0b);
}

.mock-list {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.mock-list i {
  height: 5px;
  border-radius: 3px;
  background: #ffffff12;
  width: 100%;
}

.mock-list i:nth-child(2) { width: 82%; }
.mock-list i:nth-child(3) { width: 91%; }

.site-preview {
  min-height: 210px;
  padding: 10px 12px 14px;
  background:
    radial-gradient(ellipse at 80% 20%, #5140b540, transparent 45%),
    linear-gradient(160deg, #121428, #090a12);
}

.site-preview-shot {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  background: #090a12;
}

.site-preview-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  vertical-align: top;
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.sp-nav > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8b5cf6, #4f8cff);
  color: #fff;
  font: 700 7px var(--display);
}

.sp-nav i {
  height: 4px;
  width: 22px;
  border-radius: 4px;
  background: #ffffff18;
}

.sp-nav i:last-child {
  margin-left: auto;
  width: 36px;
  background: #8b5cf633;
  border: 1px solid #8b5cf644;
}

.sp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  align-items: center;
}

.sp-copy strong,
.sp-copy em {
  display: block;
  border-radius: 4px;
}

.sp-copy strong {
  height: 10px;
  width: 78%;
  background: linear-gradient(90deg, #d4c8ff, #8b5cf6 55%, #65a6ff);
  margin-bottom: 6px;
}

.sp-copy em {
  height: 6px;
  width: 92%;
  background: #ffffff1a;
  margin-bottom: 5px;
}

.sp-copy em + em,
.sp-copy strong + em {
  width: 70%;
}

.sp-copy span {
  display: inline-block;
  height: 12px;
  width: 52px;
  margin-top: 8px;
  border-radius: 5px;
  background: linear-gradient(110deg, #8757f5, #586ff3);
}

.sp-hero img {
  width: 72%;
  max-width: 92px;
  height: auto;
  margin-left: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #ffffff22;
  background: #111322;
  transform: rotate(2deg);
}

.uise-preview {
  background:
    linear-gradient(180deg, #1b1028ee 0%, #120c1ccc 42%, #0b0814aa 100%),
    radial-gradient(ellipse at 80% 60%, #6d28d980, transparent 50%),
    #140c1c;
}

.uise-mark {
  background: linear-gradient(135deg, #a855f7, #ec4899) !important;
  font-size: 6px !important;
}

.uise-login {
  margin-left: auto;
  font-size: 6px;
  color: #fff;
  background: #7c3aed;
  border-radius: 8px;
  padding: 3px 7px;
  font-weight: 700;
}

.uise-preview .sp-nav i:last-child {
  margin-left: 0;
  width: 22px;
  background: #ffffff18;
  border: 0;
}

.uise-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  align-items: end;
}

.uise-copy small {
  display: block;
  font-size: 5px;
  letter-spacing: 1.2px;
  color: #c4b5fd;
  margin-bottom: 7px;
  font-weight: 700;
}

.uise-copy strong {
  display: block;
  height: 8px;
  width: 88%;
  border-radius: 3px;
  background: #f5f3ff;
  margin-bottom: 5px;
}

.uise-copy .uise-accent {
  width: 62%;
  height: 9px;
  background: linear-gradient(90deg, #c084fc, #e879f9);
}

.uise-copy span {
  display: inline-block;
  height: 12px;
  width: 58px;
  margin-top: 8px;
  border-radius: 8px;
  background: linear-gradient(110deg, #a855f7, #ec4899);
}

.uise-covers {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 5px;
  height: 92px;
}

.uise-covers i {
  display: block;
  width: 34px;
  border-radius: 6px;
  border: 1px solid #ffffff22;
  box-shadow: 0 8px 16px #0006;
}

.uise-covers i:nth-child(1) {
  height: 62px;
  background: linear-gradient(160deg, #38bdf8, #1d4ed8 55%, #0f172a);
}

.uise-covers i:nth-child(2) {
  height: 74px;
  background: linear-gradient(160deg, #22d3ee, #2563eb 50%, #111827);
}

.uise-covers i:nth-child(3) {
  height: 86px;
  background: linear-gradient(160deg, #7c3aed, #1f2937 60%, #111827);
}

.art-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  background: #7c3aed;
  filter: blur(100px);
  opacity: 0.16;
  bottom: -100px;
}

.project-info {
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.project-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #c4b5fd;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.project-info h3 {
  font: 700 clamp(26px, 3vw, 32px) / 1.15 var(--display);
  letter-spacing: -1px;
  margin: 14px 0 10px;
}

.project-summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 42ch;
}

.project-highlights {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 44ch;
}

.project-highlights li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #d2d5e4;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.project-meta {
  margin: 0 0 18px;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 8px;
}

.project-meta > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid #ffffff0a;
}

.project-meta > div:last-child { border-bottom: 0; padding-bottom: 0; }

.project-meta dt {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa0b8;
  font-weight: 700;
}

.project-meta dd {
  margin: 0;
  font-size: 13px;
  color: #d8dbe8;
  line-height: 1.4;
}

.project-info .tag-row { margin-bottom: 4px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c7b5ff;
  font-size: 13px;
  font-weight: 700;
  margin-top: 18px;
  min-height: 44px;
}

.text-link span { transition: transform var(--dur-fast) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .text-link:hover span { transform: translate(3px, -3px); }
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
}

.skills-intro > p {
  color: var(--muted);
  font-size: 14px;
  max-width: 440px;
  margin-top: 0;
}

.skill-group { margin-top: 26px; }

.skill-group h3 {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #c0c4d4;
  margin: 0 0 13px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pills span {
  font-size: 11px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #e0e2ef;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out),
    color var(--dur-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .skill-pills span:hover {
    transform: translateY(-2px);
    border-color: #8b5cf655;
    color: #fff;
  }
}

.skills-footnote {
  font-size: 12px;
  color: #a4a9bd;
  margin-top: 28px;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, #141626ad, #0d0f18ad);
  padding: 4px 18px;
  transition: border-color var(--dur-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover { border-color: #8b5cf644; }
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font: 600 16px / 1.4 var(--display);
  padding: 16px 28px 16px 0;
  position: relative;
}

.faq-item summary:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: #a78bfa;
  font-weight: 500;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.faq-item .text-link { margin: 0 0 16px; }

.contact-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #8b5cf63b;
  border-radius: 22px;
  padding: 56px 60px;
  background:
    radial-gradient(ellipse at 90% 0%, #5140b52a, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(79, 140, 255, 0.1), transparent 45%),
    linear-gradient(120deg, #151426, #10121e 65%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-orb {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  right: 6%;
  top: 15%;
  background: #5e38df;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
  animation: orb-drift 9s ease-in-out infinite;
}

.contact-panel h2 {
  font-size: clamp(36px, 5vw, 53px);
  margin: 17px 0;
}

.contact-panel > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 25px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-large { min-height: 51px; }

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  position: relative;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d5d8e8;
  font-size: 11px;
  transition:
    border-color var(--dur-ui) var(--ease-out),
    color var(--dur-ui) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.social-links a > span { font-weight: 700; color: #a78bfa; }
.social-links a > b { font-size: 10px; color: #9aa0b8; margin-left: 7px; }
.social-links a:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .social-links a:hover { border-color: #8b5cf655; color: #fff; }
}

.site-footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 23px;
  padding-bottom: 23px;
}

.footer-brand { font-size: 16px; }
.footer-brand .brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 11px;
}

.site-footer p,
.copyright {
  font-size: 12px;
  color: #9aa0b8;
}

.floating-whatsapp {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: calc(22px + var(--safe-bottom));
  z-index: 9;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(18, 140, 64, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out),
    background var(--dur-ui) var(--ease-out);
  animation: wa-pulse 2.6s ease-in-out infinite;
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  display: block;
}

.floating-whatsapp:active { transform: scale(0.95); }

@media (hover: hover) and (pointer: fine) {
  .floating-whatsapp:hover {
    transform: translateY(-2px);
    background: #1ebe5d;
    box-shadow: 0 12px 28px rgba(18, 140, 64, 0.42);
  }
}

.floating-whatsapp:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}

html.motion-on .reveal {
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.28s var(--ease-out);
  will-change: auto;
}

html.motion-on .reveal:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

html.motion-on .reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.motion-on .section-heading .line-inner {
  transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
}

html.motion-on .section-heading:not(.is-lined) .line-inner {
  opacity: 0;
  transform: translate3d(0, 100%, 0);
}

html.motion-on .section-heading.is-lined .line-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes window-float {
  0%, 100% { transform: perspective(900px) rotateY(8deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(5deg) rotateX(5deg) translateY(-8px); }
}

@keyframes window-float-alt {
  0%, 100% { transform: perspective(900px) rotateY(-8deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-5deg) rotateX(5deg) translateY(-8px); }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 9px 30px #7551f52a; }
  50% { box-shadow: 0 12px 38px #8b5cf66a; }
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(18, 140, 64, 0.35); }
  50% { box-shadow: 0 8px 24px rgba(18, 140, 64, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 18px); }
}

@media (max-width: 1080px) {
  .nav { gap: 16px; }
}

@media (max-width: 950px) {
  .hero {
    grid-template-columns: 1.05fr 0.9fr;
    gap: 12px 16px;
    min-height: unset;
    align-items: center;
  }

  .hero h1 { font-size: clamp(34px, 4.6vw, 52px); }
  .hero-visual {
    min-height: 340px;
    margin-top: 0;
  }
  .avatar-card { width: min(240px, 78%); }
  .orbit-a { width: 300px; }
  .orbit-b { width: 240px; }
  .chip-code { top: 36px; right: -10px; }
  .chip-tech { bottom: 64px; left: -32px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 35px; }
  .project-info { padding: 30px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e6e7f3;
    border-radius: 2px;
  }

  .nav {
    position: absolute;
    top: calc(var(--header-h) - 8px);
    left: 0;
    right: 0;
    padding: 14px;
    background: #11121ff5;
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 13px;
    align-items: stretch;
    gap: 4px;
    flex-direction: column;
  }

  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .nav-cta { margin-top: 5px; text-align: center; }
}

@media (max-width: 700px) {
  :root { --header-h: 70px; }

  .section-wrap,
  .header-inner { width: min(100% - 34px, var(--max)); }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(148px, 0.9fr);
    grid-template-areas:
      "copy visual"
      "proof proof";
    padding-top: 22px;
    padding-bottom: 48px;
    min-height: unset;
    gap: 14px 8px;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: -1.4px;
  }

  .hero-lead {
    font-size: 13px;
    margin: 12px 0 16px;
    line-height: 1.65;
  }

  .hero-visual {
    width: 100%;
    min-height: 220px;
    margin: 0;
  }

  .avatar-card {
    width: min(168px, 88%);
    padding: 7px;
    border-radius: 16px;
  }

  .avatar-card img { border-radius: 11px; }
  .avatar-caption { padding: 8px 3px 3px; gap: 5px; }
  .avatar-caption strong { font-size: 11px; }
  .orbit-a { width: 190px; }
  .orbit-b { width: 150px; }
  .floating-chip {
    padding: 7px 8px;
    gap: 6px;
    border-radius: 10px;
  }
  .chip-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .floating-chip b { font-size: 9px; }
  .floating-chip small { font-size: 8px; }
  .chip-code { right: -6px; top: 12px; }
  .chip-tech { left: -28px; bottom: 68px; }
  .thought { top: 8px; right: 8px; padding: 5px 7px; }
  .thought span { width: 4px; height: 4px; }
  .typewriter { min-width: 8.4em; }
  .hero-actions { gap: 8px; }
  .hero-actions .button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
    gap: 8px;
  }
  .scroll-cue {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 18px;
    justify-content: center;
    width: 100%;
    grid-column: 1 / -1;
  }
  .section-block { padding-top: 64px; }
  #sobre.section-block { padding-top: 56px; }
  .section-heading h2 { font-size: 32px; }
  .about-grid,
  .skills-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-copy .large-copy { font-size: 19px; }
  .service-grid { gap: 10px; }
  .service-card { padding: 17px 14px; }
  .service-card h3 { font-size: 15px; }
  .service-card p { font-size: 13px; }
  .service-cta { min-height: 44px; }
  .project-card,
  .project-card-alt { grid-template-columns: 1fr; }
  .project-art { min-height: 270px; }
  .project-window {
    width: 82%;
    transform: none;
    animation: none;
  }
  .project-card-alt .project-window { transform: none; }

  .service-card:active,
  .stat-card:active,
  .project-card:active {
    transform: scale(0.985);
  }
  .project-info { padding: 28px 22px 30px; }
  .project-summary { max-width: none; }
  .project-meta > div { grid-template-columns: 56px 1fr; gap: 8px; }
  .contact-section { padding-top: 75px; padding-bottom: 70px; }
  .contact-panel { padding: 36px 24px; }
  .contact-panel h2 { font-size: 34px; }
  .social-links { gap: 8px; }
  .social-links a {
    flex: 1;
    justify-content: center;
    padding: 9px 7px;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .site-footer p { margin: 0; }
  .copyright { margin-top: 3px; }
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + var(--safe-bottom));
  }

  .nav a.is-active::after { display: none; }
  .noise { opacity: 0.02; }
  .ambient-three { display: none; }

  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "proof";
    gap: 18px;
  }

  .hero-visual {
    min-height: 260px;
    max-width: 280px;
    margin-inline: auto;
  }

  .avatar-card { width: min(200px, 72%); }
  .chip-code { right: 0; top: 18px; }
  .chip-tech { left: -22px; bottom: 72px; }
  .orbit-a { width: 230px; }
  .orbit-b { width: 180px; }
  .hero-actions .button { width: auto; }
}

@media (max-width: 380px) {
  .contact-actions .button { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 21px; }
  .social-links { flex-direction: column; }
  .social-links a { justify-content: space-between; }
  .hero-visual { min-height: 230px; }
  .avatar-card { width: min(180px, 78%); }
  .floating-chip { padding: 6px 7px; }
}

/* —— Motion Experience 2.0 —— */
.hero-visual {
  perspective: 900px;
  transform-style: preserve-3d;
}

.hero-3d {
  position: absolute;
  inset: 6% 2% auto auto;
  width: min(280px, 68%);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.28));
}

.hero-3d canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: min(340px, 88%);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.hero-ring-track {
  stroke: rgba(139, 92, 246, 0.18);
  stroke-width: 1.2;
}

.hero-ring-draw {
  stroke: url(#none);
  stroke: #8b5cf6;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 490;
  stroke-dashoffset: 490;
  filter: drop-shadow(0 0 6px rgba(79, 140, 255, 0.55));
}

.hero-word {
  display: inline-block;
}

.section-heading h2 {
  overflow: hidden;
}

.section-heading .line-mask {
  display: block;
  overflow: hidden;
}

.section-heading .line-inner {
  display: block;
  will-change: transform;
}

[data-tilt] {
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
  outline: none;
}

[data-tilt].is-tilting {
  will-change: transform;
}

[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(183, 160, 255, 0.2),
    transparent 42%
  );
  transition: opacity var(--dur-ui) var(--ease-out);
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  [data-tilt]:hover::after,
  [data-tilt].is-tilting::after { opacity: 1; }
}

[data-tilt]:focus-visible,
[data-tilt]:focus-within {
  border-color: #8b5cf688;
}

[data-tilt]:focus-visible {
  box-shadow: 0 0 0 2px #a78bfa55, 0 14px 36px #0006;
}

[data-tilt]:focus-visible::after,
[data-tilt]:focus-within::after {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  [data-tilt]::after { display: none; }
  [data-tilt].is-tilting { transform: none !important; }
}

.projects-stage {
  display: grid;
  gap: 20px;
}

.featured-project {
  overflow-x: clip;
  overflow-y: visible;
}

.projects-stage .project-card {
  width: 100%;
  margin-bottom: 0;
}

/* Mobile-first for Instagram bio traffic: keep motion visible */
@media (max-width: 980px) {
  .hero-3d {
    opacity: 0.62;
    width: min(200px, 56%);
    inset: 4% auto auto 48%;
  }
}

@media (max-width: 700px) {
  .ambient {
    filter: blur(70px);
    opacity: 0.14;
  }

  .ambient-three { opacity: 0.1; }

  .noise { opacity: 0.02; }

  .hero-3d {
    display: block;
    opacity: 0.7;
    width: min(160px, 46%);
    inset: 2% 0 auto auto;
    z-index: 1;
  }

  .orbit-a {
    animation: orbit-drift-a 22s ease-in-out infinite alternate;
  }

  .orbit-b {
    animation: orbit-drift-b 28s ease-in-out infinite alternate;
  }

  .gradient-text {
    animation: gradient-shift 7s ease infinite;
  }

  .contact-panel .button-primary {
    animation: cta-glow 3.2s ease-in-out infinite;
  }

  .floating-whatsapp {
    animation: wa-pulse 2.6s ease-in-out infinite;
  }

  .contact-orb {
    animation: orb-drift 9s ease-in-out infinite;
  }

  .avatar-card {
    animation: avatar-think 4.8s ease-in-out infinite;
  }

  .chip-code {
    animation: chip-float 3.6s ease-in-out infinite;
  }

  .chip-tech {
    animation: chip-float 4.2s ease-in-out infinite reverse;
  }

  .thought span {
    animation: think-dot 1.25s ease-in-out infinite;
  }

  .mini-status,
  .status-dot {
    animation: status-pulse 1.8s ease-in-out infinite;
  }

  .code-cursor,
  .typewriter.is-typing::after {
    animation: blink-cursor 0.9s step-end infinite;
  }

  .project-window {
    animation: window-float 7s ease-in-out infinite;
  }

  .project-card-alt .project-window {
    animation: window-float-alt 7s ease-in-out infinite;
  }

  .site-header {
    backdrop-filter: blur(12px) saturate(1.1);
    background: rgba(9, 10, 18, 0.86);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .service-icon,
  .stat-symbol,
  .proof-mark,
  .chip-icon {
    animation: none !important;
  }

  html.motion-on .reveal:not(.is-in) {
    opacity: 1;
    transform: none;
  }

  .page-progress-bar { transform: none; }
  .hero-3d,
  .hero-ring { display: none; }
  [data-tilt]::after { display: none; }
}
