@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --color-bg: #020202;
  --color-bg-soft: #060608;
  --color-surface: rgba(12, 12, 15, 0.92);
  --color-surface-soft: rgba(20, 21, 25, 0.9);
  --color-surface-strong: #0c0d11;
  --color-text: #f5f7fb;
  --color-muted: #a6b0c0;
  --color-muted-strong: #d7deea;
  --color-accent: #60a5fa;
  --color-accent-strong: #3b82f6;
  --color-accent-soft: #e6f1ff;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 24px 54px rgba(0, 0, 0, 0.34);
  --shadow-premium: 0 34px 72px rgba(0, 0, 0, 0.42);
  --radius-sm: 0.95rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.65rem;
  --radius-xl: 2rem;
  --container-width: 1180px;
  --container-gutter: 1rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html.is-loading,
body.is-loading,
body.preload-lock {
  overflow: hidden;
}

body {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(
      960px 640px at 50% 0%,
      rgba(96, 165, 250, 0.08),
      transparent 52%
    ),
    linear-gradient(180deg, #040404 0%, #020202 38%, #000000 100%);
  color: var(--color-text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

section {
  scroll-margin-top: 5.75rem;
}

.container {
  width: min(100% - (var(--container-gutter) * 2), var(--container-width));
  margin-inline: auto;
}

.page-content {
  opacity: 0;
  transform: translateY(18px);
  overflow-x: clip;
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.page-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 3px;
  border-radius: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* =========================
   Preloader
========================= */

.preloader {
  --bg: #030303;
  --bg-2: #09090c;
  --text-soft: rgba(255, 255, 255, 0.58);
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform, opacity;
  background:
    radial-gradient(
      680px 680px at 50% 46%,
      rgba(96, 165, 250, 0.15),
      transparent 42%
    ),
    radial-gradient(
      920px 920px at 50% 48%,
      rgba(255, 255, 255, 0.06),
      transparent 58%
    ),
    linear-gradient(180deg, var(--bg) 0%, #010101 42%, #000000 100%);
}

.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.03),
      transparent 34%
    ),
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size:
    auto,
    40px 40px,
    40px 40px;
  opacity: 0.32;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.98) 34%,
    rgba(0, 0, 0, 0.62) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.preloader::after {
  content: "";
  position: absolute;
  inset: 18% 24%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.16) 0%,
    rgba(96, 165, 250, 0.05) 36%,
    transparent 72%
  );
  opacity: 0.82;
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: min(92vw, 880px);
  aspect-ratio: 1 / 1;
  will-change: transform, opacity;
  animation: preloaderStageIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.preloader__svg {
  width: 100%;
  height: auto;
  overflow: hidden;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.28));
}

.preloader__hint {
  position: absolute;
  bottom: clamp(18px, 3.6vw, 34px);
  left: 50%;
  color: var(--text-soft);
  font-size: clamp(10px, 0.92vw, 11px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.16);
  transform: translate(-50%, 8px);
  animation: preloaderHintIn 0.7s ease 1.05s both;
}

.preloader.is-hidden {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: preloaderOut 0.85s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 4, 6, 0.82);
  backdrop-filter: blur(16px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.85rem;
  position: relative;
}

.logo {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.03em;
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 3.1rem;
  height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(8, 10, 14, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 28px rgba(0, 0, 0, 0.22);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  transition:
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.nav-toggle__line {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.2s ease;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  color: rgba(245, 247, 251, 0.74);
  font-size: 0.94rem;
  transition: color 0.22s ease;
}

.main-nav a:hover {
  color: var(--color-text);
}

/* =========================
   Hero
========================= */

.hero.hero--stage {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: calc(100svh - 4.85rem);
  overflow: clip;
  background:
    radial-gradient(
      1080px 680px at 50% 46%,
      rgba(96, 165, 250, 0.14),
      transparent 54%
    ),
    radial-gradient(
      860px 520px at 50% 28%,
      rgba(255, 255, 255, 0.06),
      transparent 58%
    ),
    linear-gradient(180deg, #050506 0%, #030304 38%, #010101 100%);
}

.hero.hero--stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.18;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.94),
    rgba(0, 0, 0, 0.25)
  );
  pointer-events: none;
}

.hero.hero--stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(180px, 30vh, 280px);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.94) 100%
  );
  pointer-events: none;
}

.hero__stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: inherit;
  padding: clamp(5.75rem, 10vw, 7.85rem) 0 clamp(4.2rem, 7vw, 5.8rem);
}

.hero__meta {
  position: absolute;
  top: clamp(1rem, 2.8vh, 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: min(100% - 2rem, 760px);
  padding-inline: 0.2rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 247, 251, 0.78);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 100%;
  text-wrap: balance;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero__badge--floating {
  background: rgba(5, 7, 12, 0.42);
}

.hero__name {
  color: rgba(245, 247, 251, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  max-width: 100%;
  text-wrap: balance;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.78rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  font-size: 0.96rem;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.hero__btn--primary {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-strong) 100%
  );
  color: #020305;
  box-shadow:
    0 14px 30px rgba(59, 130, 246, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(59, 130, 246, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero__btn--secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero__btn--secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(96, 165, 250, 0.08);
}

.hero__visual-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 940px);
  min-height: clamp(420px, 72vh, 780px);
  padding: clamp(2rem, 6vw, 4rem) 0;
  contain: paint;
}

.hero__visual-shell::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(96, 165, 250, 0.12) 0%,
    rgba(96, 165, 250, 0.04) 38%,
    transparent 72%
  );
  filter: blur(22px);
  opacity: 0.72;
  pointer-events: none;
}

.hero__visual-shell::after {
  content: "";
  position: absolute;
  inset: auto 50% 10%;
  width: min(78vw, 640px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(96, 165, 250, 0.42),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.5;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__hero-bg-glow {
  position: absolute;
  inset: 5% 8%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(96, 165, 250, 0.28) 0%,
    rgba(96, 165, 250, 0.1) 32%,
    rgba(96, 165, 250, 0) 72%
  );
  filter: blur(34px);
  opacity: 0.78;
  pointer-events: none;
}

.hero__visual-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  opacity: 0.36;
  pointer-events: none;
}

.hero__visual-orbit--outer {
  width: min(74vw, 780px);
  aspect-ratio: 1;
  animation: heroOrbitField 18s linear infinite;
}

.hero__visual-orbit--inner {
  width: min(58vw, 620px);
  aspect-ratio: 1;
  border-style: dashed;
  border-width: 1px;
  border-color: rgba(96, 165, 250, 0.18);
  opacity: 0.3;
  animation: heroOrbitFieldReverse 24s linear infinite;
}

.hero-system {
  position: relative;
  z-index: 2;
  width: min(78vw, 760px);
  height: auto;
  margin: 0 auto;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 34px 68px rgba(0, 0, 0, 0.42));
}

.hero-system__glow {
  transform-origin: center;
  animation: heroCorePulse 5.2s ease-in-out infinite;
}

.hero-system__grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.35;
  opacity: 0.72;
}

.hero-system__orbit {
  fill: none;
  stroke: url(#heroOrbitStroke);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform-origin: 350px 350px;
  opacity: 0.9;
}

.hero-system__orbit--1 {
  stroke-dasharray: 12 10;
  animation: heroOrbitRotate 18s linear infinite;
}

.hero-system__orbit--2 {
  stroke-dasharray: 8 12;
  animation: heroOrbitRotateReverse 24s linear infinite;
}

.hero-system__orbit--3 {
  stroke-dasharray: 10 14;
  opacity: 0.55;
  animation: heroOrbitRotate 30s linear infinite;
}

.hero-system__particles {
  fill: #f5faff;
  opacity: 0.92;
}

.hero-system__particle {
  transform-box: fill-box;
  transform-origin: center;
  animation: heroParticleFloat 4.2s ease-in-out infinite;
}

.hero-system__particle--1 {
  animation-duration: 3.6s;
}

.hero-system__particle--2 {
  animation-duration: 4.3s;
  animation-delay: -0.8s;
}

.hero-system__particle--3 {
  animation-duration: 4s;
  animation-delay: -1.2s;
}

.hero-system__particle--4 {
  animation-duration: 4.5s;
  animation-delay: -0.6s;
}

.hero-system__particle--5 {
  animation-duration: 3.8s;
  animation-delay: -1.5s;
}

.hero-system__particle--6 {
  animation-duration: 4.4s;
  animation-delay: -0.9s;
}

.hero-system__particle--7 {
  animation-duration: 4.8s;
  animation-delay: -1.3s;
}

.hero-system__particle--8 {
  animation-duration: 3.9s;
  animation-delay: -1.1s;
}

.hero-system__logo {
  transform-origin: center;
  animation: heroLogoFloat 5.6s ease-in-out infinite;
}

.hero-system__logo path {
  vector-effect: non-scaling-stroke;
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vh, 1.8rem);
  z-index: 4;
  width: 1rem;
  height: 3.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.72;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px rgba(96, 165, 250, 0.08);
}

.hero__scroll-cue::after {
  content: "";
  position: absolute;
  top: 0.78rem;
  left: 50%;
  width: 3px;
  height: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--color-accent-soft) 0%,
    rgba(216, 234, 255, 0.08) 100%
  );
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.42);
  transform: translateX(-50%);
}

/* =========================
   Intro
========================= */

.intro {
  --intro-overlap: clamp(3.8rem, 8vw, 7.4rem);
  position: relative;
  z-index: 3;
  margin-top: calc(var(--intro-overlap) * -1);
  padding: calc(clamp(4.8rem, 8vw, 6.8rem) + var(--intro-overlap)) 0
    clamp(4.8rem, 8vw, 6.4rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      920px 320px at 50% 0%,
      rgba(96, 165, 250, 0.14),
      transparent 62%
    ),
    linear-gradient(180deg, #020304 0%, #050506 34%, #050506 100%);
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.14;
  mask-image: radial-gradient(
    circle at top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.18)
  );
  pointer-events: none;
}

.intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--intro-overlap) * -1);
  height: calc(var(--intro-overlap) + clamp(8rem, 18vw, 13rem));
  background:
    radial-gradient(
      74% 58% at 50% 18%,
      rgba(96, 165, 250, 0.14),
      transparent 68%
    ),
    linear-gradient(
      180deg,
      rgba(1, 1, 1, 0) 0%,
      rgba(2, 3, 4, 0.34) 18%,
      rgba(2, 3, 4, 0.82) 54%,
      rgba(2, 3, 4, 0.98) 78%,
      #020304 100%
    );
  pointer-events: none;
}

.intro__container {
  position: relative;
  z-index: 1;
  overflow: clip;
}

.intro__glow {
  position: absolute;
  inset: calc(var(--intro-overlap) * -0.72) 14% auto;
  height: 320px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(96, 165, 250, 0.14) 0%,
    rgba(96, 165, 250, 0.04) 42%,
    transparent 72%
  );
  filter: blur(22px);
  opacity: 0.85;
  pointer-events: none;
}

.intro__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: clamp(0.9rem, 2vw, 1.7rem);
}

.intro__shell > *,
.skills__milestones > *,
.project-case__inner > *,
.project-case__system-shell > *,
.project-case__system-grid > *,
.projects__secondary-grid > *,
.contact__panel > *,
.contact-primary__grid > * {
  min-width: 0;
}

.intro__header {
  display: grid;
  gap: 1rem;
  max-width: 620px;
}

.intro__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.25rem;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 247, 251, 0.76);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro__name {
  color: rgba(245, 247, 251, 0.88);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.intro__title {
  max-width: 12ch;
  color: var(--color-text);
  font-size: clamp(2.45rem, 4.6vw, 4.25rem);
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.intro__body {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  justify-self: end;
  padding-top: clamp(0.6rem, 2vw, 1.2rem);
}

.intro__lead {
  color: var(--color-accent-soft);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 500;
  line-height: 1.7;
}

.intro__text {
  color: var(--color-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.05rem);
  line-height: 1.82;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.4rem;
}

.intro__tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.intro__tech-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.52rem 0.8rem;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(235, 243, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.35rem;
}

.intro__links a {
  position: relative;
  color: rgba(245, 247, 251, 0.74);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.intro__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.24rem;
  width: 100%;
  height: 1px;
  background: rgba(96, 165, 250, 0.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.intro__links a:hover {
  color: var(--color-text);
}

.intro__links a:hover::after {
  transform: scaleX(1);
}

/* =========================
   Skills
========================= */

.skills {
  position: relative;
  padding: clamp(5.4rem, 9vw, 7.8rem) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(
      900px 560px at 14% 14%,
      rgba(96, 165, 250, 0.08),
      transparent 58%
    ),
    radial-gradient(
      860px 540px at 84% 82%,
      rgba(255, 255, 255, 0.04),
      transparent 62%
    ),
    linear-gradient(180deg, #050506 0%, #020202 100%);
}

.skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.18;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.3)
  );
  pointer-events: none;
}

.skills__container {
  position: relative;
  z-index: 1;
}

.skills__header,
.skills__journey,
.tools-support {
  position: relative;
  z-index: 1;
}

.skills__beam {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.32;
}

.skills__beam--1 {
  top: 8%;
  left: 6%;
  width: min(42vw, 460px);
  height: 160px;
  background: linear-gradient(
    90deg,
    rgba(96, 165, 250, 0),
    rgba(96, 165, 250, 0.22),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(-8deg);
  animation: skillsBeamDrift 13s ease-in-out infinite;
}

.skills__beam--2 {
  right: 5%;
  bottom: 10%;
  width: min(36vw, 400px);
  height: 132px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(196, 181, 253, 0.12),
    rgba(96, 165, 250, 0)
  );
  transform: rotate(11deg);
  animation: skillsBeamDriftAlt 15s ease-in-out infinite;
}

.skills__drift {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  opacity: 0.26;
  pointer-events: none;
}

.skills__drift--1 {
  top: 14%;
  right: 8%;
  width: min(34vw, 360px);
  height: 120px;
  border-color: rgba(96, 165, 250, 0.16);
  transform: rotate(18deg);
  animation: heroOrbitField 26s linear infinite;
}

.skills__drift--2 {
  bottom: 14%;
  left: 12%;
  width: min(28vw, 280px);
  height: 100px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  transform: rotate(-12deg);
  animation: heroOrbitFieldReverse 22s linear infinite;
}

.skills__header,
.projects__header,
.contact__header {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.skills__eyebrow,
.projects__eyebrow,
.contact__eyebrow,
.projects__section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(235, 240, 248, 0.68);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skills__title,
.projects__title,
.contact__title {
  margin-top: 1rem;
  color: var(--color-text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.skills__intro,
.projects__intro,
.contact__intro {
  margin: 1rem auto 0;
  max-width: 68ch;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.28vw, 1.08rem);
  line-height: 1.82;
}

.skills__header {
  max-width: 920px;
}

.skills__eyebrow {
  background: rgba(5, 8, 14, 0.42);
  color: rgba(235, 243, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.skills__title {
  max-width: 14ch;
  margin-inline: auto;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(218, 231, 247, 0.88) 58%,
    rgba(191, 219, 254, 0.76) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skills__intro {
  max-width: 72ch;
}

.skills__journey {
  position: relative;
  margin-top: clamp(2.6rem, 5vw, 3.8rem);
  padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(2.4rem, 4vw, 3.8rem);
  overflow: clip;
  isolation: isolate;
  contain: paint;
}

.skills__journey::before {
  content: "";
  position: absolute;
  inset: 8% 14% 12%;
  border-radius: 2.4rem;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(96, 165, 250, 0.12),
      transparent 46%
    ),
    radial-gradient(
      circle at 50% 76%,
      rgba(196, 181, 253, 0.08),
      transparent 54%
    );
  filter: blur(12px);
  opacity: 0.82;
  pointer-events: none;
}

.skills__trail-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}

.skills__trail {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.skills__trail-orbit,
.skills__trail-detail,
.skills__trail-main,
.skills__trail-shadow,
.skills__trail-branch {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skills__trail-orbit {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.15;
  stroke-dasharray: 8 14;
  opacity: 0.78;
}

.skills__trail-orbit--2 {
  stroke: rgba(96, 165, 250, 0.12);
  stroke-dasharray: 10 18;
}

.skills__trail-orbit--3 {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-dasharray: 6 16;
}

.skills__trail-shadow {
  stroke: rgba(96, 165, 250, 0.24);
  stroke-width: 28;
  opacity: 0.22;
  filter: url(#skillsTrailBlur);
}

.skills__trail-main {
  stroke: url(#skillsTrailGradient);
  stroke-width: 2.45;
  opacity: 0.94;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.1));
}

.skills__trail-detail {
  stroke: url(#skillsTrailSoft);
  stroke-width: 1.15;
  stroke-dasharray: 4 11;
  opacity: 0.8;
}

.skills__trail-branch {
  stroke: color-mix(
    in srgb,
    var(--trail-node-color, var(--color-accent)) 28%,
    rgba(255, 255, 255, 0.18)
  );
  stroke-width: 1.2;
  opacity: 0.46;
  transition:
    opacity 0.28s ease,
    stroke 0.28s ease,
    filter 0.28s ease;
}

.skills__trail-branch.is-active {
  opacity: 0.74;
}

.skills__trail-branch.is-focused {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.18));
}

.skills__trail-node {
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.skills__trail-node-aura {
  fill: url(#skillsNodeGlow);
  opacity: 0.18;
}

.skills__trail-node-ring {
  fill: rgba(255, 255, 255, 0.02);
  stroke: color-mix(
    in srgb,
    var(--trail-node-color, var(--color-accent)) 26%,
    rgba(255, 255, 255, 0.18)
  );
  stroke-width: 1.25;
  opacity: 0.7;
}

.skills__trail-node-core {
  fill: var(--trail-node-color, var(--color-accent));
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.1;
}

.skills__trail-node-pulse {
  fill: none;
  stroke: color-mix(
    in srgb,
    var(--trail-node-color, var(--color-accent)) 38%,
    rgba(255, 255, 255, 0.2)
  );
  stroke-width: 1.15;
  opacity: 0.42;
  animation: skillsNodeHalo 3.6s ease-in-out infinite;
}

.skills__trail-node.is-active .skills__trail-node-aura {
  opacity: 0.28;
}

.skills__trail-node.is-active .skills__trail-node-ring {
  opacity: 0.9;
}

.skills__trail-node.is-focused {
  transform: scale(1.08);
}

.skills__trail-node.is-focused .skills__trail-node-aura {
  opacity: 0.42;
}

.skills__trail-node.is-focused .skills__trail-node-ring,
.skills__trail-node.is-focused .skills__trail-node-pulse {
  opacity: 1;
}

.skills__trail-energy {
  fill: #f8fbff;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.2;
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.46))
    drop-shadow(0 0 28px rgba(196, 181, 253, 0.24));
  animation: skillsEnergyPulse 1.8s ease-in-out infinite;
}

.skills__milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(4rem, 9vw, 8.4rem);
  row-gap: clamp(1rem, 2.8vw, 2rem);
  position: relative;
  z-index: 1;
}

.tech-card {
  --tech-accent: var(--color-accent);
  --tech-accent-soft: var(--color-accent-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(100%, 470px);
  min-height: 220px;
  padding: 1.35rem 1.45rem 1.55rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.55rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.014) 100%
    ),
    linear-gradient(
      145deg,
      rgba(14, 17, 24, 0.96) 0%,
      rgba(9, 10, 14, 0.98) 54%,
      rgba(4, 4, 6, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--shadow-card);
  backdrop-filter: blur(12px);
  transition:
    transform 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease,
    background-color 0.34s ease;
}

.tech-card:nth-child(odd) {
  justify-self: start;
}

.tech-card:nth-child(even) {
  justify-self: end;
}

.tech-card:nth-child(2) {
  margin-top: clamp(3.6rem, 7vw, 5.1rem);
}

.tech-card:nth-child(3) {
  margin-top: clamp(1rem, 2vw, 1.4rem);
}

.tech-card:nth-child(4) {
  margin-top: clamp(4.6rem, 8vw, 6rem);
}

.tech-card:nth-child(5) {
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
}

.tech-card:nth-child(6) {
  margin-top: clamp(4.8rem, 8vw, 6.4rem);
}

.tech-card:nth-child(7) {
  margin-top: clamp(1.8rem, 3vw, 2.4rem);
}

.tech-card:nth-child(8) {
  margin-top: clamp(5.2rem, 8vw, 6.8rem);
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 84% 16%,
      color-mix(in srgb, var(--tech-accent) 18%, transparent) 0%,
      transparent 44%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 26%,
      transparent 100%
    );
  opacity: 0.92;
  pointer-events: none;
}

.tech-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 88px;
  height: 88px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top-right-radius: 1rem;
  opacity: 0.6;
  pointer-events: none;
}

.tech-card:hover,
.tech-card.is-focused {
  transform: translateY(-8px);
  border-color: color-mix(
    in srgb,
    var(--tech-accent) 40%,
    rgba(255, 255, 255, 0.12)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 34px 62px rgba(0, 0, 0, 0.42),
    0 0 0 1px color-mix(in srgb, var(--tech-accent) 14%, transparent);
}

.tech-card.is-active {
  border-color: color-mix(
    in srgb,
    var(--tech-accent) 26%,
    rgba(255, 255, 255, 0.12)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 56px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, var(--tech-accent) 10%, transparent);
}

.tech-card:focus-visible {
  outline: none;
}

.tech-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-card__step {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 243, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-card__label {
  color: color-mix(in srgb, var(--tech-accent-soft) 86%, #ffffff);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tech-card__name {
  margin-top: 1rem;
  color: var(--color-text);
  font-size: clamp(1.26rem, 2vw, 1.72rem);
  letter-spacing: -0.03em;
}

.tech-card__text {
  margin-top: 0.7rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.78;
}

.tech-card--html {
  --tech-accent: #f97316;
  --tech-accent-soft: #fff1e9;
}

.tech-card--css {
  --tech-accent: #38bdf8;
  --tech-accent-soft: #effbff;
}

.tech-card--javascript {
  --tech-accent: #facc15;
  --tech-accent-soft: #fffceb;
}

.tech-card--python {
  --tech-accent: #22c55e;
  --tech-accent-soft: #f0fff6;
}

.tech-card--flask {
  --tech-accent: #d1d5db;
  --tech-accent-soft: #ffffff;
}

.tech-card--postgresql {
  --tech-accent: #60a5fa;
  --tech-accent-soft: #ecf5ff;
}

.tech-card--git {
  --tech-accent: #fb7185;
  --tech-accent-soft: #fff0f4;
}

.tech-card--deploy {
  --tech-accent: #2dd4bf;
  --tech-accent-soft: #edfffd;
}

.tools-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.018)
    ),
    linear-gradient(145deg, rgba(13, 15, 21, 0.94) 0%, rgba(5, 6, 8, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--shadow-soft);
}

.tools-support__title {
  color: rgba(233, 240, 248, 0.76);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tools-support__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tools-support__item {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.36rem 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 244, 249, 0.78);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   Projects
========================= */

.projects {
  position: relative;
  padding: clamp(5.8rem, 9vw, 8.6rem) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(
      980px 560px at 82% 8%,
      rgba(96, 165, 250, 0.1),
      transparent 62%
    ),
    radial-gradient(
      760px 420px at 18% 18%,
      rgba(245, 158, 11, 0.08),
      transparent 60%
    ),
    radial-gradient(
      840px 520px at 12% 94%,
      rgba(255, 255, 255, 0.04),
      transparent 64%
    ),
    linear-gradient(180deg, #050506 0%, #010101 100%);
}

.projects::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.2;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.24)
  );
  pointer-events: none;
}

.projects__container,
.contact__container {
  position: relative;
  z-index: 1;
}

.projects__header {
  max-width: 920px;
  margin: 0 auto clamp(4rem, 7vw, 5.8rem);
  text-align: left;
}

.projects__section-title {
  margin-top: 0.95rem;
  color: var(--color-text);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.projects__eyebrow {
  background: rgba(8, 10, 16, 0.44);
  color: rgba(235, 243, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.projects__title {
  max-width: 11ch;
  margin-top: 1.1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(229, 237, 246, 0.92) 58%,
    rgba(191, 219, 254, 0.78) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.projects__intro {
  max-width: 64ch;
  margin: 1.15rem 0 0;
}

.projects__header-line {
  display: flex;
  align-items: center;
  margin-top: 1.8rem;
}

.projects__header-line span {
  width: min(100%, 420px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(245, 158, 11, 0.28),
    rgba(96, 165, 250, 0.32),
    rgba(255, 255, 255, 0)
  );
}

.project-case {
  --project-accent: #60a5fa;
  --project-accent-soft: #eaf4ff;
  position: relative;
  min-height: clamp(780px, 112vh, 1040px);
  padding-block: clamp(1rem, 3vw, 1.8rem);
  overflow: clip;
}

.project-case + .project-case {
  margin-top: clamp(4.2rem, 7vw, 6.8rem);
}

.project-case--marquina {
  --project-accent: #f59e0b;
  --project-accent-soft: #fff1df;
}

.project-case--system {
  --project-accent: #60a5fa;
  --project-accent-soft: #eaf4ff;
}

.project-case__backdrop {
  position: absolute;
  inset: 10% 8%;
  border-radius: 2.4rem;
  opacity: 0.8;
  filter: blur(26px);
  pointer-events: none;
}

.project-case--marquina .project-case__backdrop {
  background:
    radial-gradient(
      circle at 32% 42%,
      rgba(245, 158, 11, 0.2),
      transparent 42%
    ),
    radial-gradient(
      circle at 78% 24%,
      rgba(255, 255, 255, 0.08),
      transparent 32%
    );
}

.project-case--system .project-case__backdrop {
  background:
    radial-gradient(
      circle at 74% 28%,
      rgba(96, 165, 250, 0.22),
      transparent 44%
    ),
    radial-gradient(circle at 24% 72%, rgba(45, 212, 191, 0.1), transparent 34%);
}

.project-case__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: start;
}

.project-case__inner--reverse {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.project-case__media-column {
  position: relative;
  min-width: 0;
}

.project-case__media {
  position: sticky;
  top: clamp(5.8rem, 10vh, 7rem);
  transform-origin: 50% 50%;
  min-width: 0;
}

.project-case__media-frame {
  position: relative;
  min-height: clamp(420px, 72vh, 760px);
  padding: 1.2rem;
  overflow: hidden;
  contain: paint;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.9rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    linear-gradient(
      145deg,
      rgba(14, 16, 22, 0.96) 0%,
      rgba(7, 8, 12, 0.98) 62%,
      rgba(4, 4, 6, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 34px 72px rgba(0, 0, 0, 0.42);
}

.project-case__media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 22%,
      transparent 100%
    ),
    radial-gradient(
      circle at 78% 12%,
      color-mix(in srgb, var(--project-accent) 18%, transparent),
      transparent 38%
    );
  pointer-events: none;
}

.project-case__media-frame::after {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.35rem;
  pointer-events: none;
}

.project-case--marquina .project-case__media-frame {
  border-color: rgba(245, 158, 11, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    linear-gradient(
      155deg,
      rgba(22, 16, 10, 0.94) 0%,
      rgba(10, 8, 6, 0.98) 58%,
      rgba(4, 4, 6, 1) 100%
    );
}

.project-case__media-topline,
.project-case__media-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.project-case__media-topline {
  justify-content: space-between;
}

.project-case__media-topline span,
.project-case__media-caption span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 245, 250, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  max-width: 100%;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.project-case__browser {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.42rem;
  margin: 1rem 0 1.05rem;
}

.project-case__browser span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.project-case__browser span:first-child {
  background: rgba(245, 158, 11, 0.8);
}

.project-case__browser span:nth-child(2) {
  background: rgba(251, 191, 36, 0.56);
}

.project-case__browser span:nth-child(3) {
  background: rgba(255, 255, 255, 0.32);
}

.project-case__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: clamp(360px, 58vh, 600px);
  object-fit: cover;
  border-radius: 1.35rem;
  box-shadow: 0 32px 52px rgba(0, 0, 0, 0.32);
}

.project-case__media-caption {
  margin-top: 1rem;
}

.project-case__content {
  position: relative;
  align-self: center;
  display: grid;
  gap: 1rem;
  max-width: 520px;
  padding-top: clamp(0.8rem, 3vh, 1.6rem);
  min-width: 0;
}

.project-case--marquina .project-case__content {
  padding-left: 1.2rem;
}

.project-case--marquina .project-case__content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(245, 158, 11, 0) 0%,
    rgba(245, 158, 11, 0.48) 22%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.project-case--system .project-case__content {
  max-width: none;
  padding: 1.75rem;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 1.65rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    linear-gradient(
      145deg,
      rgba(11, 15, 23, 0.96) 0%,
      rgba(5, 7, 10, 0.98) 68%,
      rgba(4, 4, 6, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 60px rgba(0, 0, 0, 0.34);
}

.project-case__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.project-case__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2rem;
  padding: 0.34rem 0.64rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 245, 250, 0.8);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-case__label {
  color: color-mix(in srgb, var(--project-accent-soft) 86%, #ffffff);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-case__name {
  color: var(--color-text);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.project-case__description {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.16vw, 1.08rem);
  line-height: 1.82;
}

.project-case__stack,
.project-mini__stack {
  color: rgba(226, 237, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project-case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-case__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.68rem;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
  color: rgba(230, 241, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  max-width: 100%;
  text-align: center;
  text-transform: uppercase;
}

.project-case__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.15rem;
  padding: 0;
  list-style: none;
}

.project-case__list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(233, 239, 248, 0.84);
  font-size: 0.92rem;
  line-height: 1.72;
}

.project-case__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 0 14px
    color-mix(in srgb, var(--project-accent) 36%, transparent);
}

.project-case__actions,
.project-mini__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  padding-top: 0.35rem;
}

.project-link,
.contact-link,
.contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.88rem;
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 100%;
  text-align: center;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease;
}

.project-link--primary,
.contact-link--primary,
.contact__cta {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-strong) 100%
  );
  color: #020305;
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.26);
}

.project-link--primary:hover,
.contact__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(59, 130, 246, 0.34);
}

.project-link--secondary,
.contact-link--secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
}

.project-link--secondary:hover,
.contact-link--secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(96, 165, 250, 0.08);
  color: #eff6ff;
}

.project-case--marquina .project-link--primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1b1202;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.26);
}

.project-case--marquina .project-link--primary:hover {
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.34);
}

.project-case--marquina .project-link--secondary:hover {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.08);
}

.project-case__media-frame--system {
  border-color: rgba(96, 165, 250, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    linear-gradient(
      150deg,
      rgba(10, 14, 22, 0.96) 0%,
      rgba(4, 7, 11, 0.98) 62%,
      rgba(4, 4, 6, 1) 100%
    );
}

.project-case__image--system {
  object-position: center top;
  background: linear-gradient(180deg, #080b11 0%, #020304 100%);
}

.project-case__system-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  min-height: clamp(430px, 66vh, 700px);
}

.project-case__system-sidebar {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
}

.project-case__system-sidebar span {
  display: block;
  width: 100%;
  height: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(96, 165, 250, 0.12),
    rgba(255, 255, 255, 0.22)
  );
}

.project-case__system-main {
  display: grid;
  gap: 1rem;
}

.project-case__system-toolbar,
.project-case__system-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.project-case__system-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
  color: rgba(230, 241, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-case__system-metric {
  flex: 1 1 140px;
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.project-case__system-metric strong {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.project-case__system-metric small {
  color: rgba(220, 230, 242, 0.64);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-case__system-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.9rem;
}

.project-case__system-panel {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 168px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.015)
    ),
    linear-gradient(145deg, rgba(18, 22, 30, 0.92), rgba(8, 9, 12, 0.98));
}

.project-case__system-panel--wide {
  grid-row: span 2;
}

.project-case__system-panel span {
  display: block;
  width: 100%;
  height: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(96, 165, 250, 0.24),
    rgba(255, 255, 255, 0.05)
  );
}

.project-case__system-panel span:nth-child(2n) {
  width: 82%;
}

.project-case__system-panel span:nth-child(3n) {
  width: 64%;
}

.project-case__system-note {
  align-self: end;
  color: rgba(223, 232, 244, 0.72);
  font-size: 0.85rem;
  line-height: 1.72;
}

.projects__secondary {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(4.8rem, 8vw, 6.8rem);
}

.projects__secondary-head {
  max-width: 760px;
}

.projects__secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-mini {
  --project-accent: #60a5fa;
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    linear-gradient(
      145deg,
      rgba(17, 18, 24, 0.95) 0%,
      rgba(8, 9, 12, 0.96) 58%,
      rgba(4, 4, 6, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--shadow-card);
  transition:
    transform 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease;
}

.project-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 84% 12%,
      color-mix(in srgb, var(--project-accent) 18%, transparent),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 28%,
      transparent 100%
    );
  pointer-events: none;
}

.project-mini:hover {
  transform: translateY(-8px);
  border-color: color-mix(
    in srgb,
    var(--project-accent) 24%,
    rgba(255, 255, 255, 0.12)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 58px rgba(0, 0, 0, 0.42),
    0 0 0 1px color-mix(in srgb, var(--project-accent) 10%, transparent);
}

.project-mini--bakery {
  --project-accent: #f97316;
}

.project-mini--sales {
  --project-accent: #60a5fa;
}

.project-mini--neon {
  --project-accent: #c084fc;
}

.project-mini__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(160deg, #09090b 0%, #020202 100%);
}

.project-mini__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-mini:hover .project-mini__image {
  transform: scale(1.06);
}

.project-mini__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 8, 8, 0) 10%,
      rgba(8, 8, 8, 0.46) 60%,
      rgba(8, 8, 8, 0.84) 100%
    ),
    radial-gradient(
      78% 58% at 50% 18%,
      color-mix(in srgb, var(--project-accent) 18%, transparent),
      transparent 72%
    );
  opacity: 0.62;
  transition: opacity 0.4s ease;
}

.project-mini:hover .project-mini__overlay {
  opacity: 0.8;
}

.project-mini__body {
  display: grid;
  gap: 0.75rem;
  padding: 1.3rem 1.3rem 1.45rem;
}

.project-mini__label {
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-mini__name {
  color: var(--color-text);
  font-size: clamp(1.26rem, 1.8vw, 1.5rem);
  letter-spacing: -0.03em;
}

.project-mini__text {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.76;
}

/* =========================
   Contact
========================= */

.contact {
  position: relative;
  padding: clamp(5.4rem, 9vw, 7.6rem) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(
      980px 620px at 14% 18%,
      rgba(96, 165, 250, 0.1),
      transparent 62%
    ),
    radial-gradient(
      760px 420px at 82% 18%,
      rgba(255, 255, 255, 0.05),
      transparent 58%
    ),
    radial-gradient(
      920px 520px at 84% 88%,
      rgba(37, 99, 235, 0.08),
      transparent 62%
    ),
    linear-gradient(180deg, #050506 0%, #010101 100%);
}

.contact__title {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(216, 230, 247, 0.9) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact__shell {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.contact__header {
  max-width: 960px;
  margin: 0;
  text-align: left;
}

.contact__eyebrow {
  justify-self: flex-start;
  background: rgba(8, 10, 16, 0.44);
  color: rgba(235, 243, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.contact__title {
  max-width: 14ch;
  margin-top: 1.1rem;
}

.contact__intro {
  margin: 1.15rem 0 0;
  max-width: 66ch;
}

.contact__subtext {
  max-width: 64ch;
  margin: 0.35rem 0 0;
  color: rgba(215, 225, 239, 0.76);
  font-size: clamp(0.98rem, 1.18vw, 1.04rem);
  line-height: 1.78;
}

.contact__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.contact__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(233, 239, 248, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.16);
}

.contact__highlight::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.42);
}

.contact__panel {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 1.15rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    linear-gradient(
      145deg,
      rgba(14, 16, 24, 0.96) 0%,
      rgba(6, 8, 11, 0.98) 64%,
      rgba(4, 4, 6, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 34px 72px rgba(0, 0, 0, 0.4);
}

.contact__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--pointer-x) var(--pointer-y),
      rgba(96, 165, 250, 0.14),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 24%,
      transparent 100%
    );
  pointer-events: none;
}

.contact__panel::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.45rem;
  pointer-events: none;
}

.contact-primary,
.contact-channel,
.contact__closing {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-primary {
  display: grid;
  gap: 1.35rem;
  min-height: 100%;
  padding: clamp(1.55rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.7rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.015) 100%
    ),
    linear-gradient(
      145deg,
      rgba(18, 21, 30, 0.96) 0%,
      rgba(8, 9, 13, 0.98) 68%,
      rgba(4, 4, 6, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 50px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.contact-primary::before,
.contact-channel::before,
.contact__closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--pointer-x) var(--pointer-y),
      rgba(96, 165, 250, 0.14),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.045) 0%,
      transparent 26%,
      transparent 100%
    );
  pointer-events: none;
}

.contact-channel__top,
.contact-primary-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-primary__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 1rem;
}

.contact-primary:hover,
.contact__closing:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 48px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(96, 165, 250, 0.06);
}

.contact-primary-card__label,
.contact-channel__label,
.contact__closing-label {
  color: rgba(235, 240, 248, 0.62);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-primary-card__badge,
.contact-channel__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
  color: rgba(230, 241, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-primary-card {
  --contact-card-accent: 96, 165, 250;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.2rem 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.35rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.015) 100%
    ),
    linear-gradient(
      145deg,
      rgba(17, 18, 24, 0.95) 0%,
      rgba(8, 9, 12, 0.96) 58%,
      rgba(4, 4, 6, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-primary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 84% 14%,
      rgba(var(--contact-card-accent), 0.16),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 24%,
      transparent 100%
    );
  pointer-events: none;
}

.contact-primary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--contact-card-accent), 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 38px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(var(--contact-card-accent), 0.07);
}

.contact-primary-card--email {
  --contact-card-accent: 96, 165, 250;
}

.contact-primary-card--linkedin {
  --contact-card-accent: 148, 163, 184;
}

.contact-primary-card__title {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  color: var(--color-text);
  font-size: clamp(1.18rem, 1.8vw, 1.52rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.contact-primary-card__text,
.contact-channel__text,
.contact__closing-text {
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.contact-primary-card__text {
  max-width: 40ch;
}

.contact-primary-card__footer {
  z-index: 1;
  margin-top: auto;
  display: grid;
  gap: 0.9rem;
}

.contact-primary-card__footer--email {
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 1rem;
}

.contact-primary-card__address-block {
  display: grid;
  gap: 0.35rem;
}

.contact-primary-card__address-label {
  color: rgba(215, 225, 239, 0.56);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-primary-card__address {
  position: relative;
  color: var(--color-text);
  font-size: clamp(0.8rem, 1.08vw, 0.94rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.contact-primary-card__link {
  justify-self: start;
  min-height: 2.75rem;
}

.contact__channels {
  display: grid;
  gap: 0.95rem;
}

.contact-channel {
  --channel-accent: 96, 165, 250;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 100%;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.35rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.015) 100%
    ),
    linear-gradient(
      145deg,
      rgba(17, 18, 24, 0.95) 0%,
      rgba(8, 9, 12, 0.96) 58%,
      rgba(4, 4, 6, 1) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.contact-channel::before {
  background:
    radial-gradient(
      circle at var(--pointer-x) var(--pointer-y),
      rgba(var(--channel-accent), 0.14),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.045) 0%,
      transparent 26%,
      transparent 100%
    );
}

.contact-channel:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 46px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(96, 165, 250, 0.08);
}

.contact-channel--github {
  --channel-accent: 148, 163, 184;
}

.contact-channel--whatsapp {
  --channel-accent: 34, 197, 94;
}

.contact-channel__heading {
  display: grid;
  gap: 0.35rem;
}

.contact-channel__title {
  color: var(--color-text);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.contact-link {
  position: relative;
  z-index: 1;
}

.contact__closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.45rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.55rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.015)
    ),
    linear-gradient(145deg, rgba(16, 17, 22, 0.92) 0%, rgba(5, 5, 7, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--shadow-soft);
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.contact__closing-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
}

.contact__closing-text {
  max-width: 62ch;
}

.contact__cta {
  position: relative;
  z-index: 1;
  min-width: 220px;
}

/* =========================
   Footer
========================= */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #030304;
}

.site-footer .container {
  padding: 1.5rem 0 2rem;
}

.site-footer p {
  color: rgba(236, 241, 247, 0.6);
  font-size: 0.9rem;
  text-align: center;
}

/* =========================
   Keyframes
========================= */

@keyframes preloaderStageIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloaderHintIn {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes preloaderOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes heroCorePulse {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes heroOrbitField {
  from {
    transform: rotate(0deg) scale(0.985);
  }

  50% {
    transform: rotate(180deg) scale(1.015);
  }

  to {
    transform: rotate(360deg) scale(0.985);
  }
}

@keyframes heroOrbitFieldReverse {
  from {
    transform: rotate(360deg) scale(1.015);
  }

  50% {
    transform: rotate(180deg) scale(0.985);
  }

  to {
    transform: rotate(0deg) scale(1.015);
  }
}

@keyframes heroOrbitRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes heroOrbitRotateReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes heroLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes heroParticleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1.08);
  }
}

@keyframes skillsBeamDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-9deg);
    opacity: 0.34;
  }

  50% {
    transform: translate3d(18px, -10px, 0) rotate(-7deg);
    opacity: 0.52;
  }
}

@keyframes skillsBeamDriftAlt {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
    opacity: 0.28;
  }

  50% {
    transform: translate3d(-18px, 8px, 0) rotate(10deg);
    opacity: 0.48;
  }
}

@keyframes skillsNodeHalo {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.16);
  }
}

@keyframes skillsEnergyPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
  .hero__visual-shell {
    width: min(100%, 840px);
  }

  .intro__shell {
    gap: clamp(1.6rem, 4vw, 3rem);
  }

  .intro__title {
    max-width: 11ch;
  }

  .skills__milestones {
    column-gap: clamp(2.8rem, 5vw, 4.8rem);
  }

  .tech-card:nth-child(2) {
    margin-top: clamp(2.8rem, 5vw, 3.8rem);
  }

  .tech-card:nth-child(4) {
    margin-top: clamp(3.6rem, 6vw, 4.8rem);
  }

  .tech-card:nth-child(6) {
    margin-top: clamp(3.9rem, 6vw, 5.2rem);
  }

  .tech-card:nth-child(8) {
    margin-top: clamp(4.2rem, 6vw, 5.6rem);
  }

  .projects__header {
    max-width: 840px;
  }

  .project-case__inner,
  .project-case__inner--reverse {
    gap: clamp(1.8rem, 4vw, 3.2rem);
  }

  .projects__secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero__stage {
    padding-top: 5rem;
    padding-bottom: 3.75rem;
  }

  .hero__meta {
    top: 0.95rem;
    gap: 0.45rem;
  }

  .hero__visual-shell {
    min-height: clamp(340px, 64vh, 580px);
    width: min(100%, 700px);
    padding-top: clamp(2.2rem, 8vw, 4rem);
    padding-bottom: 1.6rem;
  }

  .hero-system {
    width: min(84vw, 560px);
  }

  .intro {
    --intro-overlap: clamp(2.8rem, 6vw, 4.4rem);
    padding-top: calc(clamp(3.75rem, 8vw, 4.8rem) + var(--intro-overlap));
    padding-bottom: clamp(4.1rem, 7vw, 5.4rem);
  }

  .intro__shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro__header,
  .intro__body {
    max-width: none;
  }

  .intro__body {
    justify-self: stretch;
    padding-top: 0;
  }

  .intro__title {
    max-width: 11ch;
  }

  .intro__lead,
  .intro__text {
    max-width: 40ch;
  }

  .skills__journey {
    padding-bottom: 2.7rem;
  }

  .skills__trail-shell {
    inset-inline: 0;
  }

  .skills__milestones {
    column-gap: clamp(1.8rem, 4vw, 3rem);
  }

  .tech-card {
    width: 100%;
    min-height: 210px;
  }

  .tech-card:nth-child(2) {
    margin-top: 2.6rem;
  }

  .tech-card:nth-child(3) {
    margin-top: 0.5rem;
  }

  .tech-card:nth-child(4) {
    margin-top: 3.5rem;
  }

  .tech-card:nth-child(5) {
    margin-top: 0.9rem;
  }

  .tech-card:nth-child(6) {
    margin-top: 3.8rem;
  }

  .tech-card:nth-child(7) {
    margin-top: 1.2rem;
  }

  .tech-card:nth-child(8) {
    margin-top: 4.2rem;
  }

  .project-case {
    min-height: auto;
    padding-block: 0;
  }

  .project-case + .project-case {
    margin-top: 3.3rem;
  }

  .project-case__inner,
  .project-case__inner--reverse {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .project-case__media {
    position: relative;
    top: auto;
  }

  .project-case__media-frame {
    min-height: auto;
    padding: 1rem;
  }

  .project-case--marquina .project-case__content {
    max-width: none;
    padding-left: 0;
  }

  .project-case--marquina .project-case__content::before {
    display: none;
  }

  .project-case--system .project-case__content {
    padding: 1.35rem;
  }

  .projects__secondary-grid {
    grid-template-columns: 1fr;
  }

  .project-mini__body {
    padding: 1.15rem 1.15rem 1.25rem;
  }

  .contact__panel {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 0.95rem;
  }

  .contact__channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-primary {
    padding: 1.35rem;
  }

  .contact__closing {
    padding: 1.3rem 1.35rem;
  }
}

@media (max-width: 720px) {
  #home,
  #intro,
  #skills,
  #projects,
  #contact {
    scroll-margin-top: 6.5rem;
  }

  :root {
    --container-gutter: 1.125rem;
  }

  .site-header {
    background: rgba(4, 4, 6, 0.9);
    backdrop-filter: blur(18px);
    overflow: visible;
  }

  .header-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.35rem;
    padding: calc(0.78rem + env(safe-area-inset-top, 0px)) 0 0.86rem;
  }

  .logo {
    max-width: min(18ch, 100%);
    font-size: 0.94rem;
    line-height: 1.25;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-nav-open .nav-toggle {
    border-color: rgba(96, 165, 250, 0.26);
    background:
      linear-gradient(
        180deg,
        rgba(96, 165, 250, 0.18),
        rgba(255, 255, 255, 0.04)
      ),
      rgba(8, 10, 14, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 20px 34px rgba(0, 0, 0, 0.28);
  }

  .site-header.is-nav-open .nav-toggle__line:nth-child(1) {
    transform: translateY(0.4rem) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle__line:nth-child(3) {
    transform: translateY(-0.4rem) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 25;
    margin-left: 0;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.35rem;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.055) 0%,
        rgba(255, 255, 255, 0.012) 100%
      ),
      rgba(7, 9, 13, 0.96);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 22px 42px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.45rem) scale(0.985);
    transform-origin: top right;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease,
      visibility 0.24s ease;
  }

  .site-header.is-nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .main-nav ul {
    display: grid;
    gap: 0.45rem;
  }

  .main-nav li {
    min-width: 0;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 247, 251, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: normal;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .main-nav a::after {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.82);
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.34);
    flex: 0 0 auto;
  }

  .hero.hero--stage {
    min-height: calc(100svh - 4.55rem);
  }

  .hero__stage {
    padding-top: 4.6rem;
    padding-bottom: 2.35rem;
  }

  .hero__meta {
    top: calc(0.82rem + env(safe-area-inset-top, 0px));
    width: min(100% - 2.25rem, 360px);
    gap: 0.5rem;
    padding-inline: 0.12rem;
  }

  .hero__badge {
    min-height: 2.1rem;
    padding: 0.44rem 0.8rem;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .hero__name {
    max-width: 18ch;
    font-size: 0.9rem;
  }

  .hero__visual-shell {
    width: min(100%, 520px);
    min-height: clamp(300px, 55svh, 460px);
    padding-top: 3rem;
    padding-bottom: 1.15rem;
  }

  .hero__visual-shell::before {
    inset: 18% 0 10%;
  }

  .hero__visual-shell::after {
    bottom: 8%;
    width: min(74vw, 340px);
    opacity: 0.38;
  }

  .hero__visual-orbit--outer {
    width: min(84vw, 360px);
  }

  .hero__visual-orbit--inner {
    width: min(66vw, 250px);
  }

  .hero-system {
    width: min(92vw, 360px);
  }

  .hero__scroll-cue {
    bottom: 0.2rem;
    width: 0.92rem;
    height: 2.9rem;
  }

  .hero__scroll-cue::after {
    top: 0.62rem;
    height: 0.92rem;
  }

  .intro {
    --intro-overlap: clamp(1.8rem, 7vw, 2.6rem);
    padding-top: calc(3.45rem + var(--intro-overlap));
    padding-bottom: 4rem;
  }

  .intro::after {
    height: calc(var(--intro-overlap) + clamp(6rem, 18vw, 9rem));
  }

  .intro__glow {
    inset: calc(var(--intro-overlap) * -0.78) 8% auto;
    height: 240px;
    filter: blur(22px);
    opacity: 0.72;
  }

  .intro__shell {
    gap: 1.35rem;
    padding-top: 0.3rem;
    padding-inline: 0.1rem;
  }

  .intro__header {
    gap: 0.8rem;
  }

  .intro__title {
    max-width: 10.5ch;
    font-size: clamp(2rem, 8.5vw, 2.8rem);
    line-height: 1.04;
  }

  .intro__lead {
    font-size: 0.99rem;
    line-height: 1.7;
    max-width: none;
  }

  .intro__text {
    font-size: 0.94rem;
    line-height: 1.72;
    max-width: none;
  }

  .intro__actions,
  .project-case__actions,
  .project-mini__actions {
    width: 100%;
  }

  .intro__actions,
  .project-case__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .intro__tech-stack {
    gap: 0.6rem;
  }

  .intro__tech-chip {
    min-height: 2.15rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.72rem;
  }

  .intro__links {
    gap: 0.75rem 0.95rem;
  }

  .intro__links a {
    font-size: 0.9rem;
  }

  .hero__btn,
  .project-link,
  .contact-link,
  .contact__cta {
    width: 100%;
    min-height: 3.05rem;
  }

  .skills__journey {
    margin-top: 2.4rem;
    padding-top: 1rem;
    padding-bottom: 1.8rem;
  }

  .skills__container,
  .projects__container,
  .contact__container {
    overflow-x: clip;
  }

  .skills__journey::before {
    inset: 5% 4% 9%;
  }

  .skills__milestones {
    grid-template-columns: 1fr;
    row-gap: 1.15rem;
    padding-left: clamp(3rem, 11vw, 3.45rem);
    padding-right: 0.2rem;
  }

  .skills__trail-shell {
    inset: 0.12rem 0.32rem 0;
  }

  .skills__beam--1 {
    top: 11%;
    left: 0;
    width: min(62vw, 300px);
    height: 140px;
  }

  .skills__beam--2 {
    right: 0;
    bottom: 10%;
    width: min(56vw, 260px);
    height: 120px;
  }

  .skills__drift {
    opacity: 0.12;
  }

  .tech-card,
  .tech-card:nth-child(odd),
  .tech-card:nth-child(even) {
    justify-self: stretch;
    width: 100%;
    min-height: auto;
    margin-top: 0 !important;
  }

  .tech-card {
    padding: 1.18rem 1.08rem 1.18rem;
    border-radius: 1.4rem;
  }

  .tech-card__name {
    font-size: clamp(1.16rem, 5.4vw, 1.36rem);
  }

  .tech-card__text {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .tools-support {
    justify-content: flex-start;
    gap: 0.72rem;
    margin-inline: 0.08rem;
    padding: 1.02rem 1.05rem;
  }

  .projects__header {
    margin-bottom: 2.8rem;
  }

  .project-case__backdrop {
    inset: 8% 4%;
    border-radius: 1.85rem;
    filter: blur(20px);
  }

  .project-case__media-column {
    order: -1;
    min-width: 0;
  }

  .project-case__meta {
    align-items: flex-start;
    gap: 0.72rem;
  }

  .project-case__content {
    gap: 0.85rem;
    padding-top: 0;
    width: 100%;
  }

  .project-case__name {
    font-size: clamp(1.75rem, 8.2vw, 2.45rem);
    line-height: 1.03;
  }

  .project-case__description {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .project-case__stack {
    font-size: 0.72rem;
    line-height: 1.68;
  }

  .project-case__media-frame {
    padding: 0.92rem;
    border-radius: 1.45rem;
  }

  .project-case__media-frame::after {
    inset: 0.88rem;
  }

  .project-case__browser {
    margin: 0.7rem 0 0.8rem;
  }

  .project-case__image {
    min-height: 260px;
  }

  .project-case__media-caption {
    margin-top: 0.8rem;
    gap: 0.45rem;
  }

  .project-case__media-caption span,
  .project-case__tags span {
    min-height: 1.92rem;
    padding: 0.3rem 0.62rem;
    font-size: 0.68rem;
    max-width: 100%;
  }

  .project-case__list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .project-case__list li {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .project-case__system-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-case__system-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.8rem;
  }

  .project-case__system-grid {
    grid-template-columns: 1fr;
  }

  .project-case__system-panel--wide {
    grid-row: auto;
  }

  .project-case--system .project-case__content {
    padding: 1.2rem;
  }

  .project-mini__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-mini__body {
    gap: 0.65rem;
    padding: 1.05rem 1rem 1.15rem;
    min-width: 0;
  }

  .project-mini__media {
    aspect-ratio: 16 / 10;
  }

  .project-mini__name {
    font-size: clamp(1.18rem, 5.4vw, 1.38rem);
  }

  .project-mini__text {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .contact {
    padding: 4.8rem 0 4.4rem;
  }

  .contact__title {
    max-width: 11.5ch;
    font-size: clamp(1.95rem, 8.6vw, 2.7rem);
  }

  .contact__intro,
  .contact__subtext {
    max-width: 38ch;
    font-size: 0.95rem;
    line-height: 1.74;
  }

  .contact__highlights {
    gap: 0.55rem;
    margin-top: 1.1rem;
  }

  .contact__highlight {
    min-height: 2.25rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.72rem;
  }

  .contact__channels {
    grid-template-columns: 1fr;
  }

  .contact-primary__grid {
    grid-template-columns: 1fr;
  }

  .contact-primary-card__footer--email {
    grid-template-columns: 1fr;
  }

  .contact__panel,
  .contact-primary,
  .contact-channel,
  .contact__closing {
    border-radius: 1.4rem;
  }

  .contact__panel {
    padding: 0.8rem;
  }

  .contact-primary {
    padding: 1.1rem;
  }

  .contact-primary__grid {
    gap: 0.8rem;
  }

  .contact-primary-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .contact-primary-card__title {
    max-width: 16ch;
    font-size: clamp(1.08rem, 5.2vw, 1.3rem);
  }

  .contact-primary-card__address {
    max-width: 100%;
    font-size: 0.8rem;
  }

  .contact-channel {
    padding: 1rem;
    gap: 0.7rem;
  }

  .contact-channel__title {
    font-size: 1rem;
  }

  .contact__closing {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.05rem 1rem;
  }

  .contact__closing-text {
    font-size: 0.94rem;
    line-height: 1.72;
  }
}

@media (max-width: 560px) {
  :root {
    --container-gutter: 1rem;
  }

  .hero__meta {
    width: min(100% - 2rem, 352px);
  }

  .hero__badge {
    font-size: 0.62rem;
    letter-spacing: 0.11em;
  }

  .hero__name {
    font-size: 0.86rem;
  }

  .hero__visual-shell {
    min-height: clamp(286px, 50svh, 420px);
    padding-top: 2.7rem;
    padding-bottom: 1rem;
  }

  .hero__visual-orbit--outer {
    width: min(84vw, 332px);
  }

  .hero__visual-orbit--inner {
    width: min(62vw, 228px);
  }

  .hero-system {
    width: min(88vw, 330px);
  }

  .hero__scroll-cue {
    bottom: 0.35rem;
    height: 2.7rem;
  }

  .intro {
    --intro-overlap: clamp(1.5rem, 7vw, 2rem);
    padding-top: calc(3.15rem + var(--intro-overlap));
    padding-bottom: 3.5rem;
  }

  .intro__title {
    max-width: none;
    font-size: clamp(1.9rem, 9.3vw, 2.5rem);
  }

  .intro__lead,
  .intro__text {
    font-size: 0.92rem;
  }

  .intro__tech-stack,
  .intro__links {
    gap: 0.55rem 0.8rem;
  }

  .skills__beam {
    filter: blur(20px);
  }

  .skills__title {
    font-size: clamp(1.85rem, 8.6vw, 2.6rem);
  }

  .skills__milestones {
    padding-left: 2.9rem;
    padding-right: 0.08rem;
  }

  .tech-card {
    padding: 1.08rem 1rem 1.08rem;
  }

  .tech-card__meta {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .tools-support {
    padding: 1rem 1rem;
  }

  .tools-support__title {
    width: 100%;
  }

  .projects__section-title {
    font-size: 1.2rem;
  }

  .projects__title {
    max-width: 12ch;
    font-size: clamp(1.82rem, 8.6vw, 2.36rem);
  }

  .projects__intro {
    font-size: 0.93rem;
    line-height: 1.72;
  }

  .project-case__content {
    gap: 0.8rem;
  }

  .project-case__media-frame {
    padding: 0.82rem;
    border-radius: 1.3rem;
  }

  .project-case__image {
    min-height: 230px;
  }

  .project-case__name {
    font-size: clamp(1.58rem, 8vw, 2rem);
  }

  .project-case__actions {
    grid-template-columns: 1fr;
  }

  .project-case__media-topline {
    justify-content: flex-start;
  }

  .project-case__system-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-case--system .project-case__content {
    padding: 1.05rem;
  }

  .project-mini__body {
    padding: 0.98rem 0.98rem 1rem;
  }

  .contact__title {
    max-width: 10.5ch;
    font-size: clamp(1.8rem, 8.4vw, 2.32rem);
  }

  .contact__intro,
  .contact__subtext,
  .contact__closing-text {
    font-size: 0.92rem;
  }

  .contact__panel,
  .contact-primary,
  .contact-channel,
  .contact__closing {
    border-radius: 1.4rem;
  }

  .contact__panel {
    padding: 0.72rem;
  }

  .contact-primary {
    padding: 1rem;
  }

  .contact-primary__grid {
    gap: 0.72rem;
  }

  .contact-primary-card {
    padding: 0.92rem;
  }

  .contact-primary-card__title {
    font-size: clamp(1.04rem, 5vw, 1.22rem);
  }

  .contact-primary-card__address {
    font-size: 0.76rem;
  }

  .contact-channel {
    padding: 0.92rem;
  }

  .contact__closing {
    padding: 1rem 0.92rem;
  }
}

@media (max-width: 420px) {
  :root {
    --container-gutter: 0.85rem;
  }

  .header-content {
    padding: calc(0.72rem + env(safe-area-inset-top, 0px)) 0 0.78rem;
  }

  .logo {
    max-width: 12.5ch;
    font-size: 0.84rem;
  }

  .nav-toggle {
    width: 2.95rem;
    height: 2.95rem;
  }

  .main-nav {
    padding: 0.72rem;
    border-radius: 1.2rem;
  }

  .main-nav a {
    min-height: 2.85rem;
    padding: 0.74rem 0.88rem;
    font-size: 0.84rem;
  }

  .hero__meta {
    top: calc(0.76rem + env(safe-area-inset-top, 0px));
    width: min(100% - 1.7rem, 300px);
  }

  .hero__badge {
    padding: 0.38rem 0.62rem;
    font-size: 0.59rem;
    letter-spacing: 0.1em;
  }

  .hero__name {
    max-width: 16.5ch;
    font-size: 0.8rem;
  }

  .hero__visual-shell {
    min-height: clamp(270px, 46svh, 360px);
    padding-top: 2.45rem;
  }

  .hero-system {
    width: min(90vw, 305px);
  }

  .hero__scroll-cue {
    height: 2.45rem;
  }

  .intro {
    --intro-overlap: 1.35rem;
    padding-top: calc(2.9rem + var(--intro-overlap));
    padding-bottom: 3.2rem;
  }

  .intro__title {
    max-width: 11ch;
    font-size: clamp(1.72rem, 9.2vw, 2.15rem);
  }

  .intro__lead,
  .intro__text {
    font-size: 0.89rem;
  }

  .intro__actions {
    grid-template-columns: 1fr;
  }

  .intro__tech-chip {
    justify-content: center;
    flex: 1 1 calc(50% - 0.4rem);
  }

  .skills__milestones {
    padding-left: 2.65rem;
    row-gap: 0.9rem;
  }

  .tech-card {
    padding: 1rem 0.95rem 1rem;
  }

  .tech-card__name {
    font-size: 1.12rem;
  }

  .tech-card__text {
    font-size: 0.88rem;
  }

  .project-case__media-frame {
    padding: 0.72rem;
    border-radius: 1.18rem;
  }

  .project-case__image {
    min-height: 210px;
  }

  .project-case__tags span,
  .project-case__media-caption span {
    font-size: 0.64rem;
  }

  .project-case__system-sidebar {
    padding: 0.72rem;
  }

  .project-mini__body {
    padding: 0.95rem 0.9rem 1rem;
  }

  .contact__highlights {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact__highlight {
    width: 100%;
    justify-content: flex-start;
  }

  .contact-primary-card__address {
    font-size: 0.74rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero__visual-orbit--outer,
  .hero__visual-orbit--inner,
  .hero-system__orbit,
  .hero-system__particle,
  .hero-system__logo,
  .skills__beam,
  .skills__drift {
    animation-duration: 32s !important;
  }

  .tech-card:hover,
  .project-mini:hover,
  .contact-primary:hover,
  .contact-primary-card:hover,
  .contact-channel:hover,
  .contact__closing:hover,
  .project-link--primary:hover,
  .project-link--secondary:hover,
  .contact-link--secondary:hover,
  .contact__cta:hover,
  .hero__btn--primary:hover,
  .hero__btn--secondary:hover {
    transform: none;
  }

  .project-mini:hover .project-mini__image {
    transform: scale(1.01);
  }

  .project-mini:hover .project-mini__overlay {
    opacity: 0.62;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .page-content {
    transform: none;
    transition: none;
  }
}
