:root {
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #ffffff;
  --surface-alt: #eeedf9;
  --text: #17152b;
  --muted: #67657a;
  --line: rgba(23, 21, 43, 0.11);
  --primary: #6c4cff;
  --primary-dark: #5134db;
  --primary-soft: #e9e4ff;
  --pink: #df55b4;
  --green: #25aa7b;
  --orange: #f28b44;
  --blue: #3688e9;
  --dark-panel: #1a1730;
  --shadow: 0 24px 70px rgba(41, 31, 92, 0.12);
  --shadow-soft: 0 12px 35px rgba(41, 31, 92, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1160px;
  --nav-height: 78px;
}

[data-theme="dark"] {
  --bg: #100e1c;
  --surface: rgba(27, 24, 48, 0.8);
  --surface-solid: #1b1830;
  --surface-alt: #25213e;
  --text: #f5f3ff;
  --muted: #aaa6bd;
  --line: rgba(245, 243, 255, 0.12);
  --primary: #8b72ff;
  --primary-dark: #9a84ff;
  --primary-soft: #302852;
  --dark-panel: #161326;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color 200ms ease, background-color 200ms ease;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { color: white; background: var(--primary); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; color: white; background: var(--primary); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.page-glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(12px); pointer-events: none; }
.page-glow-one { width: 420px; height: 420px; top: -180px; right: -130px; background: rgba(108, 76, 255, 0.13); }
.page-glow-two { width: 360px; height: 360px; top: 500px; left: -220px; background: rgba(223, 85, 180, 0.1); }

.site-header { position: sticky; z-index: 100; top: 0; height: var(--nav-height); border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px); transition: border-color 200ms ease, box-shadow 200ms ease; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(23, 21, 43, 0.04); }
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.06rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { display: grid; width: 35px; height: 35px; color: white; background: var(--primary); border-radius: 11px; place-items: center; font-size: 0.75rem; letter-spacing: -0.04em; box-shadow: 0 8px 20px rgba(108, 76, 255, 0.28); }
.brand-dot { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; color: var(--muted); font-size: 0.88rem; font-weight: 650; }
.nav-links a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform 180ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.theme-toggle, .menu-toggle { display: grid; flex: 0 0 auto; width: 42px; height: 42px; padding: 0; color: var(--text); border: 1px solid var(--line); background: var(--surface); border-radius: 13px; cursor: pointer; place-items: center; transition: transform 160ms ease, border-color 160ms ease; }
.theme-toggle:hover { border-color: var(--primary); transform: translateY(-2px); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon, [data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
.menu-toggle { display: none; }

.hero { display: grid; min-height: calc(100vh - var(--nav-height)); padding-block: 92px 82px; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(44px, 7vw, 94px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 8px 12px; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); border-radius: 100px; font-size: 0.76rem; font-weight: 750; letter-spacing: 0.03em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 15%, transparent); }
.hero h1, .section-heading h2, .contact-card h2 { margin: 0; font-weight: 820; letter-spacing: -0.055em; line-height: 1.03; }
.hero h1 { max-width: 690px; font-size: clamp(3.3rem, 6.3vw, 5.65rem); }
.hero h1 span { color: var(--primary); }
.hero-intro { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.8; }
.hero-intro strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 52px; padding: 0 21px; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 14px; font-size: 0.9rem; font-weight: 750; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: white; background: var(--primary); box-shadow: 0 14px 32px rgba(108, 76, 255, 0.28); }
.button-primary:hover { background: var(--primary-dark); box-shadow: 0 18px 38px rgba(108, 76, 255, 0.35); }
.button-secondary { color: var(--text); border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
.hero-stats { display: flex; gap: 0; margin: 50px 0 0; padding: 0; list-style: none; }
.hero-stats li { display: flex; gap: 12px; padding: 0 25px; align-items: center; border-left: 1px solid var(--line); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { color: var(--text); font-size: 1.2rem; line-height: 1.1; white-space: nowrap; }
.hero-stats span { color: var(--muted); font-size: 0.72rem; line-height: 1.4; }

.hero-visual { position: relative; }
.orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 520px; height: 520px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: 410px; height: 410px; top: 50%; left: 50%; border-style: dashed; transform: translate(-50%, -50%) rotate(20deg); animation: spin 45s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(380deg); } }
.code-window { position: relative; z-index: 2; overflow: hidden; color: #f8f7ff; background: var(--dark-panel); border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 26px; box-shadow: 0 34px 80px rgba(26, 23, 48, 0.28); transform: rotate(1.5deg); transition: transform 300ms ease; }
.code-window:hover { transform: rotate(0deg) translateY(-5px); }
.window-bar { display: flex; height: 52px; padding: 0 17px; color: #9791ac; background: rgba(255, 255, 255, 0.035); border-bottom: 1px solid rgba(255, 255, 255, 0.08); align-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; }
.window-dots { display: flex; gap: 6px; margin-right: auto; }
.window-dots i { width: 7px; height: 7px; background: #ff6868; border-radius: 50%; }
.window-dots i:nth-child(2) { background: #ffc45e; }
.window-dots i:nth-child(3) { background: #5bd99e; }
.window-status { margin-left: auto; color: #61d6a3; }
.code-window pre { overflow-x: auto; margin: 0; padding: 32px clamp(24px, 4vw, 42px) 38px; font: 500 clamp(0.77rem, 1.2vw, 0.94rem)/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-purple { color: #b9a6ff; }
.code-blue { color: #6fb9ff; }
.code-pink { color: #ff7dc8; }
.code-green { color: #79dbad; }
.code-orange { color: #ffab69; }
.tech-ribbon { display: flex; position: absolute; right: 18px; bottom: 17px; gap: 7px; }
.tech-ribbon span { padding: 5px 8px; color: #a9a3bb; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 7px; font: 600 0.57rem ui-monospace, SFMono-Regular, monospace; }

.section { padding-block: 112px; }
.section-heading { display: flex; margin-bottom: 54px; justify-content: space-between; align-items: flex-end; gap: 50px; }
.section-kicker { margin: 0 0 14px; color: var(--primary); font: 750 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.section-heading h2, .contact-card h2 { font-size: clamp(2.3rem, 4vw, 3.75rem); }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 0.98rem; }

.experience-card { display: grid; overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); grid-template-columns: 240px 1fr; }
.experience-meta { padding: 38px 34px; background: var(--primary-soft); border-right: 1px solid var(--line); }
.experience-year { display: block; margin-bottom: 12px; color: var(--primary-dark); font: 750 0.74rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.experience-company { color: var(--muted); font-size: 0.82rem; }
.experience-content { padding: 38px 42px 42px; }
.role-heading { display: flex; align-items: center; gap: 16px; }
.role-icon { display: grid; width: 49px; height: 49px; color: white; background: var(--primary); border-radius: 15px; place-items: center; font: 750 0.84rem ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 10px 24px rgba(108, 76, 255, 0.24); }
.role-heading h3 { margin: 0 0 2px; font-size: 1.34rem; letter-spacing: -0.03em; }
.role-heading p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.experience-grid { display: grid; margin: 32px 0 27px; grid-template-columns: 0.9fr 1.1fr; gap: 46px; }
.experience-grid > p { margin: 0; color: var(--muted); }
.check-list { display: grid; margin: 0; padding: 0; list-style: none; gap: 13px; }
.check-list li { position: relative; padding-left: 24px; font-size: 0.88rem; }
.check-list li::before { content: "✓"; position: absolute; top: 0; left: 0; color: var(--green); font-weight: 800; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row span { padding: 6px 10px; color: var(--muted); background: var(--surface-alt); border: 1px solid var(--line); border-radius: 8px; font: 650 0.65rem ui-monospace, SFMono-Regular, Menlo, monospace; }

.projects-section { background: color-mix(in srgb, var(--surface-alt) 62%, transparent); border-block: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { position: relative; min-width: 0; padding: 30px; border: 1px solid var(--line); background: var(--surface-solid); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.project-card:hover { border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); box-shadow: var(--shadow); transform: translateY(-7px); }
.project-featured { display: grid; padding: 0; overflow: hidden; grid-column: 1 / -1; grid-template-columns: 1.05fr 0.95fr; }
.project-featured:hover { transform: translateY(-4px); }
.project-copy { padding: clamp(32px, 5vw, 56px); }
.project-number { position: absolute; top: 24px; right: 26px; color: color-mix(in srgb, var(--text) 8%, transparent); font: 850 3.4rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.project-featured .project-number { position: static; margin-bottom: 18px; color: var(--primary); font-size: 0.72rem; letter-spacing: 0.1em; }
.project-type { margin: 0 0 10px; color: var(--primary); font: 750 0.67rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.project-card h3 { margin: 0 0 14px; font-size: 1.5rem; letter-spacing: -0.04em; }
.project-featured h3 { font-size: clamp(2.1rem, 3.4vw, 3.05rem); }
.project-card > p:not(.project-type), .project-copy > p:not(.project-type) { margin: 0 0 22px; color: var(--muted); font-size: 0.9rem; }
.project-featured .project-copy > p:not(.project-type) { max-width: 580px; font-size: 1rem; }
.project-highlights { display: flex; flex-wrap: wrap; margin: 0 0 26px; padding: 0; gap: 10px 26px; list-style: none; }
.project-highlights li { position: relative; padding-left: 16px; color: var(--muted); font-size: 0.78rem; }
.project-highlights li::before { content: ""; position: absolute; top: 0.55em; left: 0; width: 5px; height: 5px; background: var(--primary); border-radius: 50%; }
.project-art { display: grid; min-height: 400px; padding: 40px; overflow: hidden; background: linear-gradient(145deg, #6848ef, #9b6cfa 55%, #e06db4); place-items: center; }
.project-art::before, .project-art::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; }
.project-art::before { right: -60px; top: -70px; }
.project-art::after { left: 45%; bottom: -170px; width: 330px; height: 330px; }
.mini-window { display: flex; z-index: 2; width: min(100%, 470px); aspect-ratio: 1.38; overflow: hidden; background: #f9f9fd; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 16px; box-shadow: 0 30px 70px rgba(38, 14, 79, 0.3); transform: perspective(900px) rotateY(-7deg) rotateX(3deg); }
.mini-sidebar { display: flex; width: 20%; padding: 22px 13px; background: #1b1830; flex-direction: column; gap: 12px; }
.mini-sidebar::before { content: "AC"; display: grid; width: 25px; height: 25px; margin-bottom: 14px; color: white; background: #7255f6; border-radius: 7px; place-items: center; font: 700 0.48rem sans-serif; }
.mini-sidebar i { height: 5px; background: rgba(255, 255, 255, 0.18); border-radius: 20px; }
.mini-sidebar i:nth-child(2) { width: 75%; }
.mini-sidebar i:nth-child(4) { width: 62%; }
.mini-content { flex: 1; padding: 20px; }
.mini-header { width: 42%; height: 9px; margin-bottom: 22px; background: #d9d7e7; border-radius: 10px; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-metrics i { height: 50px; background: #eceafa; border-radius: 8px; }
.mini-metrics i:nth-child(2) { background: #e2f6ed; }
.mini-metrics i:nth-child(3) { background: #fff0e7; }
.mini-chart { display: flex; height: 90px; margin-top: 18px; padding: 12px 18px 0; background: white; border: 1px solid #efedf5; border-radius: 9px; align-items: flex-end; justify-content: space-around; }
.mini-chart span { width: 9%; height: 40%; background: #a18df9; border-radius: 3px 3px 0 0; }
.mini-chart span:nth-child(2) { height: 68%; }
.mini-chart span:nth-child(3) { height: 52%; }
.mini-chart span:nth-child(4) { height: 82%; }
.mini-chart span:nth-child(5) { height: 65%; }
.mini-table { display: grid; margin-top: 14px; gap: 6px; }
.mini-table i { height: 6px; background: #eceaf2; border-radius: 5px; }
.project-icon { display: grid; width: 48px; height: 48px; margin: 4px 0 28px; border-radius: 14px; place-items: center; }
.project-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-orange { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.icon-green { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.icon-blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.project-card details { margin: 22px 0; padding-block: 13px; border-block: 1px solid var(--line); }
.project-card summary { display: flex; cursor: pointer; color: var(--text); font-size: 0.8rem; font-weight: 750; list-style: none; align-items: center; justify-content: space-between; }
.project-card summary::-webkit-details-marker { display: none; }
.project-card details[open] summary span { transform: rotate(45deg); }
.project-card details p { margin: 13px 0 0; color: var(--muted); font-size: 0.78rem; }

.skills-grid { display: grid; overflow: hidden; border: 1px solid var(--line); background: var(--line); border-radius: var(--radius-lg); grid-template-columns: repeat(4, 1fr); gap: 1px; box-shadow: var(--shadow-soft); }
.skill-card { padding: 32px 28px 36px; background: var(--surface-solid); }
.skill-label { display: flex; margin-bottom: 25px; align-items: center; gap: 11px; }
.skill-label span { color: var(--primary); font: 700 0.67rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.skill-label h3 { margin: 0; font-size: 1rem; }
.skill-card ul { display: grid; margin: 0; padding: 0; list-style: none; gap: 12px; }
.skill-card li { color: var(--muted); font-size: 0.84rem; }
.skill-card li::before { content: "/"; margin-right: 9px; color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.contact-card { display: grid; position: relative; overflow: hidden; padding: clamp(38px, 7vw, 78px); color: white; background: linear-gradient(125deg, #19162c 0%, #272046 55%, #5130bf 140%); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(27, 22, 62, 0.25); grid-template-columns: 1fr auto; gap: 45px 60px; align-items: end; }
.contact-card::before { content: ""; position: absolute; width: 330px; height: 330px; right: -140px; bottom: -190px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 120px rgba(255, 255, 255, 0.02); }
.contact-copy { position: relative; z-index: 1; }
.contact-copy h2 { max-width: 720px; }
.contact-copy > p:last-child { max-width: 680px; margin: 22px 0 0; color: #bdb8cb; }
.contact-actions { display: flex; position: relative; z-index: 1; align-items: center; gap: 10px; }
.button-light { color: #1b1730; background: white; }
.copy-button { display: inline-flex; height: 52px; padding: 0 15px; color: white; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); border-radius: 14px; cursor: pointer; align-items: center; gap: 8px; }
.copy-button:hover { background: rgba(255, 255, 255, 0.14); }
.copy-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.copy-button span { font-size: 0.75rem; font-weight: 700; }
.contact-links { display: flex; position: relative; z-index: 1; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.13); grid-column: 1 / -1; gap: 28px; }
.contact-links a { color: #bdb8cb; font-size: 0.78rem; font-weight: 650; }
.contact-links a:hover { color: white; }
.contact-links span { margin-left: 4px; color: #8f75ff; }

.site-footer { display: flex; padding-block: 24px 38px; color: var(--muted); font-size: 0.72rem; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.footer-code { color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; padding: 12px 16px; color: white; background: #19162c; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 11px; box-shadow: var(--shadow); font-size: 0.78rem; font-weight: 650; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 4px; }

@media (max-width: 1000px) {
  .hero { min-height: auto; padding-block: 75px 95px; grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-intro { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { width: min(100%, 620px); margin: 25px auto 0; }
  .orbit-one { width: 560px; height: 560px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-featured { grid-template-columns: 1fr; }
  .project-art { min-height: 350px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; align-items: start; }
  .contact-actions { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  :root { --nav-height: 70px; --radius-lg: 24px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav { gap: 10px; }
  .brand { margin-right: auto; }
  .menu-toggle { display: flex; padding: 11px 9px; flex-direction: column; justify-content: center; gap: 4px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 19px; height: 2px; background: currentColor; border-radius: 10px; transition: transform 180ms ease, opacity 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { display: flex; position: absolute; top: calc(100% + 8px); right: 14px; left: 14px; padding: 14px; visibility: hidden; opacity: 0; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; transform: translateY(-8px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
  .nav-links.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links a:hover { background: var(--surface-alt); }
  .nav-links a::after { display: none; }
  .hero { padding-block: 62px 75px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .hero-stats { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); }
  .hero-stats li, .hero-stats li:first-child { padding: 0 8px; justify-content: center; flex-direction: column; gap: 5px; border-left: 1px solid var(--line); text-align: center; }
  .hero-stats li:first-child { border-left: 0; }
  .hero-stats span { font-size: 0.66rem; }
  .orbit { display: none; }
  .code-window { transform: none; }
  .code-window:hover { transform: translateY(-3px); }
  .section { padding-block: 78px; }
  .section-heading { margin-bottom: 36px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .experience-card { grid-template-columns: 1fr; }
  .experience-meta { padding: 22px 25px; border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-content { padding: 28px 25px 30px; }
  .experience-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .project-art { min-height: 285px; padding: 30px 22px; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 34px 25px; gap: 30px; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions .button, .copy-button { width: 100%; }
  .contact-links { flex-wrap: wrap; gap: 14px 24px; }
  .site-footer { align-items: center; flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .brand > span:last-child { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-stats { margin-top: 40px; }
  .hero-stats strong { font-size: 1rem; }
  .hero-stats span { font-size: 0.59rem; }
  .window-bar > span:not(.window-status) { display: none; }
  .window-status { font-size: 0.58rem; }
  .code-window pre { padding: 25px 17px 32px; font-size: 0.67rem; }
  .tech-ribbon { display: none; }
  .role-heading { align-items: flex-start; }
  .project-card { padding: 25px; }
  .project-featured { padding: 0; }
  .project-copy { padding: 28px 25px; }
  .button-light { font-size: 0.8rem; }
}

@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; }
  .reveal { opacity: 1; transform: none; }
}
