/* ===== Portfolio — Dark (hero color scheme) ===== */
:root {
  --bg: #0c0f14;
  --bg-elevated: #12161e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --ink: #f3f5f7;
  --muted: #9aa3b2;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #0d9f8f;
  --accent-soft: rgba(13, 159, 143, 0.16);
  --accent-ink: #14c4b0;
  --hero-bg: #0c0f14;
  --hero-highlight: #ff5a3c;
  --purple: #ff5a3c;
  --pink: #ff8a4c;
  --orange: #ff5a3c;
  --grad: linear-gradient(135deg, #ff5a3c 0%, #ff8a4c 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 90, 60, 0.2), rgba(13, 159, 143, 0.12));
  --hero-veil: linear-gradient(
    105deg,
    rgba(13, 17, 23, 0.82) 0%,
    rgba(13, 17, 23, 0.55) 42%,
    rgba(13, 17, 23, 0.25) 100%
  );
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.25rem, 7vw, 5.5rem);
  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

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

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 85% 15%, rgba(255, 90, 60, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 10% 70%, rgba(13, 159, 143, 0.08), transparent 50%),
    var(--bg);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease), color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
  color: #fff;
}

.site-header .logo,
.site-header .nav-link,
.site-header .header-social a {
  color: rgba(255, 255, 255, 0.88);
}

.site-header .nav-link:hover,
.site-header .nav-link.is-active,
.site-header .logo {
  color: #fff;
}

.site-header .menu-toggle span {
  background: #fff;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled .logo,
.site-header.is-open .logo,
.site-header.is-scrolled .nav-link.is-active,
.site-header.is-open .nav-link.is-active,
.site-header.is-scrolled .nav-link:hover,
.site-header.is-open .nav-link:hover {
  color: #fff;
}

.site-header.is-scrolled .nav-link,
.site-header.is-open .nav-link,
.site-header.is-scrolled .header-social a,
.site-header.is-open .header-social a {
  color: rgba(255, 255, 255, 0.72);
}

.site-header.is-scrolled .header-social a:hover,
.site-header.is-open .header-social a:hover {
  color: var(--hero-highlight);
}

.site-header.is-scrolled .menu-toggle span,
.site-header.is-open .menu-toggle span {
  background: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-header-cv:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  z-index: 2;
}

.nav-desktop .nav-list {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--hero-highlight);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-social {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.header-social a {
  color: var(--muted);
  font-size: 1.05rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.header-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  margin-inline: auto;
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #12161e;
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--space) 1.5rem;
  transform: translateY(-0.5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Hero — Virtuo-style two column */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 85% 40%, rgba(255, 90, 60, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(13, 159, 143, 0.1), transparent 50%),
    var(--hero-bg);
  overflow: hidden;
  padding-block: calc(var(--header-h) + 1.5rem) 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-welcome {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-heading {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero-role-line {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.25;
  min-height: 1.25em;
  white-space: nowrap;
}

.hero-typed-wrap {
  display: inline-grid;
  vertical-align: baseline;
  text-align: left;
  justify-items: start;
}

.hero-typed-ghost {
  grid-area: 1 / 1;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.hero-typed {
  grid-area: 1 / 1;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  color: var(--hero-highlight);
  border-right: 2px solid var(--hero-highlight);
  padding-right: 3px;
  margin-right: 2px;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: content-box;
}

.hero-typed.is-blink {
  animation: typedCaret 0.8s step-end infinite;
}

@keyframes typedCaret {
  50% {
    border-color: transparent;
  }
}

.hero-lead {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 38ch;
  margin-bottom: 1.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 2.25rem;
  margin-bottom: 1.35rem;
}

.hero-meta-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.hero-social,
.hero-skills {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-social a,
.hero-skill {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.05rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.hero-social a:hover,
.hero-skill:hover {
  background: var(--hero-highlight);
  border-color: var(--hero-highlight);
  transform: translateY(-3px);
  color: #fff;
}

.hero-skill img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero .btn-primary {
  background: var(--hero-highlight);
}

.hero .btn-primary:hover {
  background: #e64528;
}

.hero-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(58vh, 520px);
  overflow: visible;
}

.hero-banner::before {
  content: "";
  position: absolute;
  width: min(70%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 90, 60, 0.22) 0%, transparent 62%),
    radial-gradient(circle at 70% 75%, rgba(124, 108, 255, 0.18) 0%, transparent 55%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  animation: heroAura 6s ease-in-out infinite;
}

.hero-orbit {
  position: relative;
  width: min(82%, 400px);
  aspect-ratio: 1;
  z-index: 1;
}

.hero-ring {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 7px;
  display: grid;
  place-items: center;
  background: transparent;
}

.hero-ring-spin {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    #ff5a3c 0%,
    #ff8a4c 22%,
    #ff5a3c 42%,
    #ff7040 62%,
    #ff9a6a 78%,
    #ff5a3c 100%
  );
  animation: ringSpin 12s linear infinite;
  z-index: 0;
  filter: blur(0.2px);
  box-shadow:
    0 0 28px rgba(255, 90, 60, 0.45),
    0 0 60px rgba(255, 90, 60, 0.22);
}

.hero-ring-spin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  filter: blur(14px);
  opacity: 0.55;
  z-index: -1;
}

.hero-photo-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(45, 212, 191, 0.08), transparent 45%),
    #0b0e14;
  box-shadow:
    inset 0 0 0 4px #090b10,
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}

.hero.is-ready .hero-photo {
  transform: scale(1);
}

.hero-float {
  position: absolute;
  z-index: 3;
  width: 3.65rem;
  height: 3.65rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #161b24;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  animation: floatY 5s ease-in-out infinite;
  color: #fff;
}

.hero-float img {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  display: block;
  filter: none;
}

.hero-float-label {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

.hero-float-1 {
  top: 4%;
  left: -6%;
  border-color: rgba(97, 218, 251, 0.65);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(97, 218, 251, 0.2),
    0 0 28px rgba(97, 218, 251, 0.45);
}

.hero-float-2 {
  top: 8%;
  right: -8%;
  animation-delay: 0.7s;
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(74, 222, 128, 0.2),
    0 0 28px rgba(74, 222, 128, 0.45);
}

.hero-float-3 {
  bottom: 6%;
  left: -6%;
  animation-delay: 1.3s;
  border-color: rgba(255, 90, 60, 0.75);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 90, 60, 0.25),
    0 0 28px rgba(255, 90, 60, 0.5);
}

.hero-float-ai {
  color: #ff5a3c;
  text-shadow: 0 0 12px rgba(255, 90, 60, 0.65);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-float-4 {
  bottom: 10%;
  right: -6%;
  animation-delay: 1.9s;
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(96, 165, 250, 0.2),
    0 0 28px rgba(96, 165, 250, 0.45);
}

.hero-dots {
  position: absolute;
  right: clamp(-0.25rem, 1.5vw, 0.75rem);
  top: 52%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(3, 0.42rem);
  grid-auto-rows: 0.42rem;
  gap: 0.62rem;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.hero-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.hero-dot.is-lit {
  background: #ff5a3c;
  transform: scale(1.55);
  border-radius: 3px;
  box-shadow:
    0 0 6px #ff5a3c,
    0 0 14px rgba(255, 90, 60, 0.9),
    0 0 28px rgba(255, 90, 60, 0.45);
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes heroAura {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ring-spin,
  .hero-float,
  .hero-banner::before {
    animation: none;
  }
}

[data-hero-el],
[data-hero-img] {
  opacity: 0;
  transform: translateY(28px);
}

.hero.is-ready [data-hero-el],
.hero.is-ready [data-hero-img] {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.hero.is-ready .hero-copy > [data-hero-el]:nth-child(1) {
  transition-delay: 0.1s;
}
.hero.is-ready .hero-copy > [data-hero-el]:nth-child(2) {
  transition-delay: 0.2s;
}
.hero.is-ready .hero-copy > [data-hero-el]:nth-child(3) {
  transition-delay: 0.3s;
}
.hero.is-ready .hero-copy > [data-hero-el]:nth-child(4) {
  transition-delay: 0.4s;
}
.hero.is-ready .hero-copy > [data-hero-el]:nth-child(5) {
  transition-delay: 0.5s;
}
.hero.is-ready [data-hero-img] {
  transition-delay: 0.25s;
}



/* Sections — Figma glass / neon pattern */
.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 42rem;
}

.section-head.center,
.skills .section-head,
.services .section-head,
.projects .section-head {
  text-align: center;
  margin-inline: auto;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9b86;
  background: rgba(255, 90, 60, 0.15);
  border: 1px solid rgba(255, 90, 60, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(255, 90, 60, 0.15);
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: #fff;
  text-wrap: balance;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid rgba(255, 90, 60, 0.55);
  border-radius: 999px;
  color: #ffc4b8;
  font-weight: 600;
  background: rgba(255, 90, 60, 0.08);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-outline:hover {
  background: rgba(255, 90, 60, 0.18);
  border-color: var(--hero-highlight);
  box-shadow: 0 0 24px rgba(255, 90, 60, 0.25);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(255, 90, 60, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 90, 60, 0.25), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(255, 90, 60, 0.25), transparent 50%);
  z-index: 0;
  filter: blur(20px);
  pointer-events: none;
}

.about-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 90, 60, 0.12);
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
}

.about-text {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-text .hl {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(transparent 62%, rgba(255, 138, 76, 0.35) 62%);
}

.about-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1.25rem;
  margin-bottom: 1.85rem;
}

.about-checks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.check-ico {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(13, 159, 143, 0.16);
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 90, 60, 0.25);
}

/* Stats */
.stats {
  padding-block: 0 var(--section-y);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.tone-purple { background: rgba(255, 90, 60, 0.18); color: #ff9b86; box-shadow: 0 0 18px rgba(255, 90, 60, 0.25); }
.tone-blue { background: rgba(13, 159, 143, 0.18); color: #5eead4; box-shadow: 0 0 18px rgba(13, 159, 143, 0.25); }
.tone-green { background: rgba(13, 159, 143, 0.14); color: #99f6e4; box-shadow: 0 0 18px rgba(13, 159, 143, 0.18); }
.tone-orange { background: rgba(255, 138, 76, 0.18); color: #ffb39a; box-shadow: 0 0 18px rgba(255, 138, 76, 0.25); }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 0.05em;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Skills tiles */
.skill-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.skill-tiles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.skill-tiles li:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 60, 0.45);
  box-shadow: 0 12px 32px rgba(255, 90, 60, 0.15);
}

.skill-tiles img,
.skill-tiles i {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 2.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  object-fit: contain;
  flex-shrink: 0;
  color: #fff;
}

.skill-tiles img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.skill-react { box-shadow: inset 0 0 24px rgba(97, 218, 251, 0.08); }
.skill-js { box-shadow: inset 0 0 24px rgba(247, 223, 30, 0.08); }
.skill-py { box-shadow: inset 0 0 24px rgba(55, 118, 171, 0.12); }
.skill-dj { box-shadow: inset 0 0 24px rgba(68, 183, 139, 0.12); }
.skill-dj img {
  filter: none;
  opacity: 1;
}
.skill-git i { color: #f05033; }
.skill-docker i { color: #2496ed; }
.skill-ai i { color: #ff9b86; }

.skill-tiles span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

/* Services cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.service-card {
  padding: 1.85rem 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 90, 60, 0.4);
  box-shadow: 0 16px 40px rgba(255, 90, 60, 0.12);
}

.service-icon {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 90, 60, 0.14);
  color: #ff9b86;
  font-size: 1.4rem;
  border: 1px solid rgba(255, 90, 60, 0.3);
  box-shadow: 0 0 28px rgba(255, 90, 60, 0.25);
}

.service-card:nth-child(2) .service-icon {
  background: rgba(255, 138, 76, 0.14);
  color: #ffb39a;
  border-color: rgba(255, 138, 76, 0.3);
  box-shadow: 0 0 28px rgba(255, 138, 76, 0.22);
}

.service-card:nth-child(3) .service-icon {
  background: rgba(13, 159, 143, 0.14);
  color: #5eead4;
  border-color: rgba(13, 159, 143, 0.3);
  box-shadow: 0 0 28px rgba(13, 159, 143, 0.22);
}

.service-card:nth-child(4) .service-icon {
  background: rgba(255, 138, 76, 0.14);
  color: #ffb39a;
  border-color: rgba(255, 138, 76, 0.3);
  box-shadow: 0 0 28px rgba(255, 138, 76, 0.22);
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
  color: #fff;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Experience */
.experience {
  padding-block: 0;
}

.exp-pin-wrap {
  --exp-count: 3;
  --exp-step: 55vh;
  position: relative;
  /* One sticky viewport + a shorter step per extra experience */
  height: calc(100vh + (var(--exp-count) - 1) * var(--exp-step));
}

.exp-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-block: calc(var(--header-h) + 1.25rem) 2rem;
  box-sizing: border-box;
}

.experience-grid {
  position: relative;
  display: block;
  padding-right: clamp(300px, 36%, 420px);
  min-height: min(560px, 62vh);
}

.exp-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
  max-width: calc(100% - 1.5rem);
}

.exp-timeline {
  position: relative;
  padding-left: 1.6rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.exp-item {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    visibility 0.45s var(--ease);
}

.exp-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  /* in-flow so full experience text is visible */
  position: relative;
}

.exp-item.is-exit {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  position: absolute;
}

.exp-dot {
  position: absolute;
  left: calc(-1.6rem - 5px);
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.25);
}

.exp-item:nth-child(even) .exp-dot {
  background: linear-gradient(135deg, #ff5a3c, #ff8a4c);
  box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.25);
}

.exp-when {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ff9b86;
  margin-bottom: 0.55rem;
}

.exp-timeline h3 {
  font-size: clamp(1.75rem, 2.8vw, 2.15rem);
  line-height: 1.25;
  margin-bottom: 0.45rem;
  color: #fff;
}

.exp-company {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.exp-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.12rem;
  line-height: 1.8;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.exp-text p { margin-bottom: 0.55rem; }

.exp-progress {
  display: flex;
  gap: 0.65rem;
  padding-left: 1.6rem;
}

.exp-progress-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), width 0.3s var(--ease);
}

.exp-progress-dot.is-active {
  width: 1.75rem;
  background: var(--hero-highlight);
  box-shadow: 0 0 12px rgba(255, 90, 60, 0.55);
}

.exp-progress-dot.is-done {
  background: rgba(255, 90, 60, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .exp-pin-wrap {
    height: auto;
  }

  .exp-pin {
    position: relative;
    min-height: 0;
    padding-block: calc(var(--header-h) + 1.5rem) 2.5rem;
  }

  .experience {
    padding-block: clamp(3.5rem, 7vw, 6rem);
  }

  .exp-stage {
    min-height: 0;
  }

  .exp-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 0;
  }

  .exp-item,
  .exp-item.is-active,
  .exp-item.is-exit {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .exp-progress {
    display: none;
  }

  .exp-text {
    max-height: none;
  }

  .experience-grid {
    padding-right: 0;
    min-height: 0;
  }

  .exp-quote {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: 260px;
    min-height: 260px;
    margin-top: 1.5rem;
    pointer-events: auto;
  }
}

.exp-quote {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  padding: 2.35rem 2rem;
  border-radius: var(--radius);
  width: clamp(280px, 32vw, 400px);
  height: min(560px, 62vh);
  min-height: min(560px, 62vh);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.35) 0%, rgba(8, 10, 16, 0.82) 55%, rgba(8, 10, 16, 0.92) 100%),
    url("/static/img/quote-bg.png") center / cover no-repeat;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.exp-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(180deg, transparent 30%, rgba(8, 10, 16, 0.55) 100%);
  pointer-events: none;
}

.exp-quote > * { position: relative; z-index: 1; }

.exp-quote i {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.exp-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.exp-quote span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

/* Projects */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.85rem;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 90, 60, 0.35);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 60, 0.45);
  box-shadow: 0 16px 36px rgba(255, 90, 60, 0.14);
}

.project-card.is-hidden { display: none; }

.project-media {
  position: relative;
  overflow: hidden;
  background: #0a0a12;
  flex-shrink: 0;
}

.project-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.85rem;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.project-info {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.project-info h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.project-info > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
}

.project-tech li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7ed9cf;
  background: rgba(13, 159, 143, 0.12);
  border: 1px solid rgba(13, 159, 143, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  line-height: 1.2;
}

.project-tech li:nth-child(n + 4) {
  display: none;
}

.project-links {
  display: flex;
  gap: 0.45rem;
}

.project-links a {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-links a:hover {
  background: var(--hero-highlight);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-media img {
    height: 160px;
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-media img {
    height: 180px;
  }
}

@media (hover: none) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(8, 10, 14, 0.55) 0%, transparent 50%);
  }
}

/* Extras */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.extra-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.edu-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.edu-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 90, 60, 0.16);
  color: #ff9b86;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(255, 90, 60, 0.2);
}

.edu-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; color: #fff; }
.edu-item p { color: var(--muted); font-size: 0.92rem; }
.edu-item span { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: var(--accent); }

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tool-row li {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tool-row li:hover {
  border-color: rgba(13, 159, 143, 0.5);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(13, 159, 143, 0.2);
}

.extra-cta h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
  color: #fff;
}

.avail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.avail-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* Contact */
.contact-layout {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-meta li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.meta-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 90, 60, 0.16);
  color: #ff9b86;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(255, 90, 60, 0.2);
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-meta a:hover { color: var(--hero-highlight); }

.contact-form-wrap {
  position: relative;
  z-index: 1;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.contact-flight {
  position: absolute;
  right: clamp(-2rem, -3vw, 0rem);
  bottom: -0.5rem;
  width: clamp(220px, 36vw, 360px);
  pointer-events: none;
  z-index: 2;
  animation: planeBob 3.6s ease-in-out infinite;
}

.contact-flight-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(255, 90, 60, 0.3));
  user-select: none;
  image-rendering: -webkit-optimize-contrast;
}

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

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full { grid-column: 1 / -1; }

.field span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 90, 60, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.18);
}

.flash {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}

.flash-success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.flash-warning {
  background: rgba(255, 193, 7, 0.12);
  color: #ffd666;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.flash-error {
  background: rgba(255, 138, 76, 0.12);
  color: #ffb39a;
  border: 1px solid rgba(255, 138, 76, 0.3);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-note { color: rgba(255, 255, 255, 0.55) !important; }

/* Scroll reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1000px) {
  .skill-tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-cards,
  .stats-grid,
  .extras-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-desktop,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile {
    display: block;
  }

  .about-grid,
  .experience-grid,
  .contact-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .exp-pin-wrap {
    height: auto;
  }

  .exp-pin {
    position: relative;
    min-height: 0;
    padding-block: 0;
  }

  .experience {
    padding-block: clamp(3.5rem, 7vw, 6rem);
  }

  .exp-stage {
    min-height: 0;
  }

  .exp-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 0;
  }

  .exp-item,
  .exp-item.is-active,
  .exp-item.is-exit {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    padding-left: 0;
  }

  .exp-progress {
    display: none;
  }

  .exp-text {
    max-height: none;
  }

  .experience-grid {
    padding-right: 0;
    min-height: 0;
  }

  .exp-quote {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: 260px;
    min-height: 260px;
    margin-top: 1.5rem;
    pointer-events: auto;
  }

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

  .contact-flight {
    width: clamp(140px, 42vw, 200px);
    right: -0.75rem;
    bottom: -0.75rem;
    opacity: 0.95;
  }

  .hero-banner {
    order: -1;
    min-height: 380px;
  }

  .hero-orbit {
    width: min(70%, 300px);
  }

  .hero-float {
    width: 3rem;
    height: 3rem;
  }

  .hero-float img {
    width: 1.35rem;
    height: 1.35rem;
  }

  .hero-float-1 {
    top: 6%;
    left: -5%;
  }

  .hero-float-2 {
    top: 20%;
    right: -8%;
  }

  .hero-float-3 {
    bottom: 8%;
    left: -5%;
  }

  .hero-float-4 {
    bottom: 14%;
    right: -6%;
  }

  .hero-dots {
    right: -0.35rem;
    gap: 0.48rem;
    grid-template-columns: repeat(3, 0.35rem);
    grid-auto-rows: 0.35rem;
  }

  .hero-dot {
    width: 0.28rem;
    height: 0.28rem;
  }

  .hero-role-line {
    font-size: 0.78em;
  }

  .about-checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stats-grid,
  .service-cards,
  .extras-grid,
  .skill-tiles,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: calc(var(--header-h) + 1.5rem) 2.5rem;
  }

  .hero-heading {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-banner {
    min-height: 320px;
  }

  .hero-orbit {
    width: min(72%, 260px);
  }

  .hero-dots {
    display: none;
  }
}

/* Reduced motion */
@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;
  }

  [data-reveal],
  [data-hero-el],
  [data-hero-img] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-photo {
    transform: none !important;
  }
}
