:root {
  color-scheme: dark;
  --bg: #090812;
  --bg-soft: #100e1d;
  --panel: #151225;
  --panel-light: #1b1730;
  --text: #f8f6ff;
  --muted: #a9a5b8;
  --purple: #8759ff;
  --purple-dark: #6135e8;
  --cyan: #55e6e1;
  --line: rgba(255,255,255,.1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6fb;
  --bg-soft: #efedf7;
  --panel: #ffffff;
  --panel-light: #f4f1fb;
  --text: #181422;
  --muted: #696475;
  --purple: #7546ed;
  --purple-dark: #5a2fd0;
  --cyan: #168f91;
  --line: rgba(33,25,51,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  transition: background-color .25s ease,color .25s ease;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
::selection { background: var(--purple); color: white; }
main { overflow: hidden; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 9px;
  background: white;
  color: #15111e;
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
.anchor-target { position: absolute; top: -100px; }
.mobile-nav { display: none; }

.site-header {
  min-height: 82px;
  padding: 0 5.5vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(9,8,18,.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #bb6dff);
  box-shadow: 0 8px 24px rgba(135,89,255,.3);
}
nav { display: flex; gap: 35px; color: #c8c4d4; font-size: 14px; font-weight: 600; }
nav a { position: relative; padding: 31px 0; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 21px; height: 2px; background: var(--purple); transition: right .2s ease; }
nav a:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease,border-color .2s ease,background .2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: rgba(135,89,255,.55); background: rgba(135,89,255,.1); }
.theme-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.theme-icon { grid-area: 1 / 1; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease,opacity .2s ease; }
.theme-icon-sun { opacity: 0; transform: scale(.5) rotate(-45deg); }
.theme-icon-moon { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="light"] .theme-icon-sun { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="light"] .theme-icon-moon { opacity: 0; transform: scale(.5) rotate(45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 24px;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(97,53,232,.24);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(97,53,232,.34); }
.button-small { padding: 12px 20px; border-radius: 10px; }
.button-ghost { background: transparent; color: #dcd8e8; box-shadow: none; border-color: var(--line); }

.hero {
  min-height: calc(100vh - 82px);
  padding: 78px 5.5vw 88px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 7vw;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  left: -280px;
  top: -130px;
  background: #8759ff24;
  filter: blur(80px);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 2; }
.welcome {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(135,89,255,.34);
  border-radius: 999px;
  background: rgba(135,89,255,.08);
  color: #c9b8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.welcome span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(85,230,225,.12); }
.hero-kicker { margin: 26px 0 8px; color: #d7d3e1; font-size: 18px; font-weight: 700; }
h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(48px, 5vw, 82px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 900;
}
h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(105deg, #fff 0, #aa85ff 45%, #55e6e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-text { max-width: 650px; margin: 27px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }
.social-row { margin-top: 38px; display: flex; align-items: center; gap: 12px; color: #888398; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.social-row a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: white; font-weight: 900; letter-spacing: 0; transition: .2s ease; }
.social-row a:hover { background: var(--purple); border-color: var(--purple); }

.hero-visual { min-height: 620px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(135,89,255,.3); border-radius: 50%; }
.orbit-one { width: 510px; height: 510px; }
.orbit-two { width: 610px; height: 610px; border-style: dashed; opacity: .5; }
.portrait-card {
  width: min(430px, 82%);
  height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 220px 220px 32px 32px;
  background: #171427;
  box-shadow: 0 40px 100px rgba(0,0,0,.48), 0 0 100px rgba(135,89,255,.14);
  z-index: 3;
}
.portrait-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, #9b78ff 0, #3e246d 38%, #151225 72%); opacity: .7; }
.portrait-card img { width: 87%; position: absolute; left: 6.5%; bottom: 0; z-index: 2; border-radius: 18px 18px 0 0; filter: saturate(.92) contrast(1.04); }
.portrait-name {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(9,8,18,.8);
  backdrop-filter: blur(12px);
}
.portrait-name strong { font-size: 14px; }
.portrait-name span { color: #aaa6b9; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.floating-tag {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(21,18,37,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.floating-tag strong { color: var(--cyan); font-size: 24px; }
.floating-tag span { color: #cac6d6; font-size: 11px; }
.tag-one { left: 0; top: 25%; }
.tag-two { right: -5px; bottom: 22%; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #70f298; box-shadow: 0 0 0 6px rgba(112,242,152,.12); }
.floating-code { position: absolute; z-index: 4; right: 5%; top: 16%; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg,#55e6e1,#3aa3ff); color: #09111c; font-weight: 900; transform: rotate(10deg); }

.stats {
  margin: 0 5.5vw;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div { padding: 0 4vw; display: flex; align-items: center; gap: 16px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { font-size: 38px; letter-spacing: -.05em; color: #aa85ff; }
.stats span { max-width: 90px; color: #8f8a9d; font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .11em; }

.section { padding: 120px 5.5vw; }
.section-intro { display: grid; grid-template-columns: 1.5fr .7fr; gap: 10vw; align-items: end; margin-bottom: 56px; }
.section-intro.centered { display: block; text-align: center; }
.eyebrow { margin: 0 0 18px; color: #9c79ff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .19em; }
h2 { margin: 0; max-width: 850px; font-size: clamp(42px, 5vw, 72px); line-height: 1; letter-spacing: -.055em; }
.section-intro > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.services-section { background: linear-gradient(180deg,#0d0b17,#100e1d); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-card { min-height: 350px; position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); transition: transform .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-7px); border-color: rgba(135,89,255,.65); }
.service-icon { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 15px; background: rgba(135,89,255,.12); color: #ad8cff; font-size: 24px; }
.card-number { position: absolute; right: 25px; top: 29px; color: #575263; font-size: 12px; }
.service-card h3 { margin: 44px 0 18px; font-size: 23px; line-height: 1.15; letter-spacing: -.035em; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.service-meta { position: absolute; left: 28px; bottom: 25px; color: #7e7890; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

.work-section { background: #f5f3fa; color: #16121f; }
.work-section .eyebrow { color: #6f45df; }
.work-section .section-intro > p { color: #696474; }
.filter-row { display: flex; gap: 12px; margin: -18px 0 35px; }
.filter-row button { padding: 10px 15px; border: 1px solid #ddd9e5; border-radius: 999px; background: transparent; color: #76717f; font: inherit; font-size: 12px; cursor: pointer; }
.filter-row .active { background: #17131f; border-color: #17131f; color: white; }
.project-card[hidden] { display: none; }
.project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 34px 24px; }
.project-card { display: block; }
.project-preview { height: 420px; position: relative; overflow: hidden; border-radius: 22px; padding: 42px 42px 0; }
.project-violet { background: linear-gradient(135deg,#7447e8,#c696ff); }
.project-cyan { background: linear-gradient(135deg,#1c8b9a,#80ede3); }
.project-amber { background: linear-gradient(135deg,#dc8a29,#ffd38a); }
.project-pink { background: linear-gradient(135deg,#c5438d,#ff9fc9); }
.project-blue { background: linear-gradient(135deg,#376bd4,#86b5ff); }
.project-green { background: linear-gradient(135deg,#387d67,#8cdbaf); }
.project-red { background: linear-gradient(135deg,#9b2d34,#f08a6f); }
.project-mint { background: linear-gradient(135deg,#237c78,#8ed9c7); }
.project-gold { background: linear-gradient(135deg,#9c6a1c,#f1c76b); }
.project-indigo { background: linear-gradient(135deg,#3f3a91,#9b8df0); }
.mock-browser { height: 100%; border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 28px 55px rgba(20,14,31,.28); transform: translateY(18px); transition: transform .3s ease; }
.project-card:hover .mock-browser { transform: translateY(5px); }
.project-screenshot { height: 100%; overflow: hidden; border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 28px 55px rgba(20,14,31,.28); transform: translateY(18px); transition: transform .3s ease; }
.project-screenshot img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.project-card:hover .project-screenshot { transform: translateY(5px); }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid #eceaf0; }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #d5d1dc; }
.mock-body { height: calc(100% - 34px); display: grid; place-items: center; color: #1a1523; }
.mock-body > span { width: 102px; height: 102px; display: grid; place-items: center; border-radius: 30px; background: #15111e; color: white; font-size: 34px; font-weight: 900; letter-spacing: -.08em; }
.mock-body > div { position: absolute; bottom: 38px; left: 15%; right: 15%; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.mock-body b { height: 35px; border-radius: 7px; background: #f0edf4; }
.project-index { position: absolute; right: 18px; top: 17px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 800; }
.project-info { padding: 20px 4px 0; display: flex; justify-content: space-between; align-items: center; }
.project-info span { color: #7a7483; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.project-info h3 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.035em; }
.round-link { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #d5d0dd; border-radius: 50%; color: #1a1523 !important; font-size: 18px !important; transition: .2s ease; }
.project-card:hover .round-link { background: #16121f; color: white !important; }

.resume-section { background: var(--bg-soft); }
.resume-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1180px; margin: auto; }
.resume-column { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.025); }
.resume-title { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; }
.resume-title span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(135,89,255,.13); color: #ad8cff; font-size: 21px; }
.resume-title h3 { margin: 0; font-size: 25px; }
.resume-column article { padding: 26px 0; border-top: 1px solid var(--line); }
.resume-column article:last-child { padding-bottom: 0; }
.date { color: #9a78ff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.resume-column h4 { margin: 10px 0 7px; font-size: 21px; letter-spacing: -.02em; }
.resume-column p { margin: 0 0 13px; color: #c6c1d0; font-size: 13px; }
.resume-column small { color: #8f899d; line-height: 1.6; }

.skills-section { background: #0b0a13; }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; max-width: 1100px; }
.skills-grid article {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.skill-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(135,89,255,.13);
  color: #ad8cff;
}
.skills-grid strong { font-size: 15px; }
.skills-grid p { margin: 7px 0 0; color: #8f899d; font-size: 12px; line-height: 1.5; }
.tool-groups { margin-top: 66px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tool-group {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04),0 20px 50px rgba(0,0,0,.16);
  transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.tool-group::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -75px;
  top: -85px;
  border-radius: 50%;
  background: rgba(135,89,255,.11);
  filter: blur(2px);
  pointer-events: none;
}
.tool-group:hover { transform: translateY(-4px); border-color: rgba(157,120,255,.38); box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 26px 60px rgba(0,0,0,.25); }
.tool-group-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.tool-group-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid rgba(158,121,255,.3); border-radius: 14px; background: linear-gradient(145deg,rgba(135,89,255,.24),rgba(135,89,255,.08)); color: #c6adff; font-size: 16px; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.tool-group-heading div > span { display: block; margin-bottom: 5px; color: #716b80; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tool-group h3 { margin: 0; color: #f2eef8; font-size: 16px; letter-spacing: -.01em; }
.tech-stack { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; }
.tech-stack span { padding: 10px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: #bdb7c9; font-size: 12px; background: rgba(7,6,13,.45); transition: color .2s ease,border-color .2s ease,background .2s ease; }
.tech-stack span:hover { color: #fff; border-color: rgba(157,120,255,.38); background: rgba(135,89,255,.12); }

.contact-section { padding-top: 50px; background: #0b0a13; }
.contact-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; padding: 75px; border: 1px solid rgba(135,89,255,.25); border-radius: 28px; background: radial-gradient(circle at 10% 10%,rgba(135,89,255,.22),transparent 42%),#141123; }
.contact-copy h2 { max-width: 700px; }
.contact-copy > p:not(.eyebrow) { max-width: 600px; margin: 24px 0 32px; color: var(--muted); line-height: 1.7; }
.contact-details { border-top: 1px solid var(--line); }
.contact-details div { padding: 20px 0; display: grid; grid-template-columns: 100px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.contact-details span { color: #7f798e; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.contact-details a, .contact-details strong { font-size: 14px; }
.contact-details a:hover { color: #ae8eff; }

footer { min-height: 140px; padding: 36px 5.5vw; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 30px; align-items: center; border-top: 1px solid var(--line); color: #858091; font-size: 12px; }
footer p { margin: 0; text-align: center; }
footer > span { text-align: right; }

[data-theme="light"] .site-header { background: rgba(247,246,251,.88); }
[data-theme="light"] nav { color: #504a5e; }
[data-theme="light"] .button-ghost { color: #302a3c; background: rgba(255,255,255,.45); }
[data-theme="light"] .hero-kicker { color: #4e485a; }
[data-theme="light"] h1 span { background-image: linear-gradient(105deg,#211a30 0,#7546ed 48%,#168f91 100%); }
[data-theme="light"] .social-row { color: #716b7d; }
[data-theme="light"] .social-row a { color: #211b2c; background: rgba(255,255,255,.55); }
[data-theme="light"] .portrait-card { border-color: rgba(33,25,51,.13); box-shadow: 0 40px 90px rgba(55,39,89,.18),0 0 90px rgba(117,70,237,.11); }
[data-theme="light"] .floating-tag { border-color: rgba(33,25,51,.12); background: rgba(255,255,255,.88); box-shadow: 0 18px 40px rgba(52,38,79,.12); }
[data-theme="light"] .floating-tag span { color: #514b5e; }
[data-theme="light"] .stats span { color: #6c6678; }
[data-theme="light"] .services-section { background: linear-gradient(180deg,#f7f6fb,#efedf7); }
[data-theme="light"] .service-card,
[data-theme="light"] .resume-column,
[data-theme="light"] .skills-grid article { background: rgba(255,255,255,.62); box-shadow: 0 16px 45px rgba(48,34,76,.06); }
[data-theme="light"] .service-meta,
[data-theme="light"] .skills-grid p,
[data-theme="light"] .resume-column small { color: #716a7d; }
[data-theme="light"] .resume-column p { color: #4f495b; }
[data-theme="light"] .skills-section,
[data-theme="light"] .contact-section { background: #f7f6fb; }
[data-theme="light"] .tool-group { border-color: rgba(33,25,51,.1); background: linear-gradient(145deg,rgba(255,255,255,.95),rgba(244,241,251,.82)); box-shadow: inset 0 1px 0 #fff,0 20px 50px rgba(47,32,75,.08); }
[data-theme="light"] .tool-group:hover { border-color: rgba(117,70,237,.3); box-shadow: inset 0 1px 0 #fff,0 26px 60px rgba(47,32,75,.13); }
[data-theme="light"] .tool-group-heading div > span { color: #777080; }
[data-theme="light"] .tool-group h3 { color: #241e30; }
[data-theme="light"] .tech-stack span { border-color: rgba(33,25,51,.1); color: #514a5e; background: rgba(255,255,255,.72); }
[data-theme="light"] .tech-stack span:hover { color: #4e28ae; border-color: rgba(117,70,237,.32); background: rgba(117,70,237,.08); }
[data-theme="light"] .contact-panel { border-color: rgba(117,70,237,.2); background: radial-gradient(circle at 10% 10%,rgba(117,70,237,.14),transparent 42%),#fff; box-shadow: 0 25px 70px rgba(47,32,75,.09); }
[data-theme="light"] .contact-details span,
[data-theme="light"] footer { color: #6f687a; }
[data-theme="light"] .mobile-nav { border-color: rgba(33,25,51,.12); background: rgba(255,255,255,.92); box-shadow: 0 12px 35px rgba(47,32,75,.15); }
[data-theme="light"] .mobile-nav a { color: #4e485a; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 85px; }
  .hero-visual { max-width: 700px; width: 100%; justify-self: center; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .stats div { padding: 0 2vw; }
}

@media (max-width: 720px) {
  body { padding-bottom: 65px; }
  .site-header { min-height: 70px; padding: 0 20px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .button-small { padding: 10px 13px; font-size: 11px; }
  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 30;
    height: 54px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    align-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(17,14,29,.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 35px rgba(0,0,0,.4);
  }
  .mobile-nav a {
    padding: 9px 2px;
    color: #c8c4d4;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .hero { min-height: auto; padding: 60px 20px 65px; gap: 40px; }
  h1 { font-size: clamp(42px,12vw,58px); }
  .hero-text { font-size: 16px; }
  .hero-visual { min-height: 470px; }
  .orbit-one { width: 350px; height: 350px; }
  .orbit-two { width: 420px; height: 420px; }
  .portrait-card { width: 300px; height: 400px; }
  .portrait-name { left: 12px; right: 12px; bottom: 12px; display: block; }
  .portrait-name span { display: block; margin-top: 4px; }
  .tag-one { left: -5px; top: 20%; }
  .tag-two { right: -8px; bottom: 12%; }
  .floating-code { right: 3%; top: 5%; }
  .stats { margin: 0 20px; grid-template-columns: 1fr 1fr; }
  .stats div { padding: 20px 10px; }
  .stats div + div { border-left: 0; }
  .stats div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats strong { font-size: 29px; }
  .section { padding: 85px 20px; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: 22px; }
  .service-grid, .project-grid, .resume-columns, .skills-grid { grid-template-columns: 1fr; }
  .tool-groups { grid-template-columns: 1fr; }
  .tool-group { min-height: auto; padding: 24px; }
  .service-card { min-height: 320px; }
  .filter-row { overflow-x: auto; padding-bottom: 4px; }
  .filter-row button { flex: 0 0 auto; }
  .project-preview { height: 300px; padding: 30px 25px 0; }
  .contact-section { padding-top: 25px; }
  .contact-panel { grid-template-columns: 1fr; padding: 42px 24px; gap: 50px; }
  .contact-details div { grid-template-columns: 80px 1fr; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p { text-align: left; }
  footer > span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; }
}
