:root {
  color-scheme: light;
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --surface-strong: #2e2e2f;
  --text: #050505;
  --text-soft: #4c4c55;
  --text-muted: #74747d;
  --line: rgba(20, 20, 28, 0.12);
  --nav-text: #ffffff;
  --blue: #16a8ff;
  --purple: #8d45ff;
  --pink: #f017d9;
  --shadow: 0 22px 70px rgba(20, 20, 28, 0.12);
  --radius-pill: 999px;
  --radius-card: 26px;
  --page: min(1120px, calc(100% - 40px));
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101014;
  --bg-soft: #171820;
  --surface: #1c1d25;
  --surface-strong: #f3f3f5;
  --text: #f8f8fb;
  --text-soft: #d2d3dc;
  --text-muted: #9a9ba6;
  --line: rgba(255, 255, 255, 0.14);
  --nav-text: #101014;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--purple) transparent;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  transition: background 220ms ease, color 220ms ease;
}

::-webkit-scrollbar {
  width: 18px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 5px solid var(--bg);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--blue), var(--purple), var(--pink));
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--pink), var(--purple), var(--blue));
  background-clip: padding-box;
}

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

img,
svg {
  display: block;
}

.accent-rail {
  display: none;
}

.theme-toast {
  position: fixed;
  right: clamp(18px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 36px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(110deg, var(--blue), var(--purple), var(--pink)) border-box;
  box-shadow: 0 18px 42px rgba(20, 20, 28, 0.18);
  color: var(--text);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-theme="dark"] .theme-toast {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: var(--page);
  margin: 10px auto 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 7px 9px 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(46, 46, 47, 0.96);
  box-shadow: var(--shadow);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .navbar {
  background: rgba(243, 243, 245, 0.94);
  color: #101014;
}

.logo {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-weight: 900;
  transition: transform 180ms ease;
}

.logo:hover,
.logo.is-active {
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  box-shadow: 0 0 18px rgba(141, 69, 255, 0.46);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.logo:hover::after,
.logo.is-active::after {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 28px);
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 3px;
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 1;
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  box-shadow: 0 0 18px rgba(141, 69, 255, 0.46);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-links a.is-active {
  font-weight: 900;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-button,
.menu-button,
.github-button,
.button {
  min-height: 38px;
  border: 2px solid currentColor;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 800;
}

.theme-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  place-items: center;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

[data-theme="dark"] .theme-button {
  border-color: rgba(16, 16, 20, 0.28);
}

.theme-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 180ms ease;
}

.theme-button:hover,
.theme-button:focus-visible {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(141, 69, 255, 0.18), 0 12px 26px rgba(141, 69, 255, 0.28);
  transform: translateY(-1px);
}

.theme-button:hover::before,
.theme-button:focus-visible::before {
  opacity: 1;
}

.theme-button:focus-visible {
  outline: none;
}

.menu-button {
  position: relative;
  display: none;
  width: 42px;
  place-items: center;
  gap: 4px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--blue), var(--purple), var(--pink)) border-box;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(141, 69, 255, 0.18);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.menu-button span {
  width: 16px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: width 180ms ease;
}

.menu-button span:nth-child(2) {
  width: 12px;
}

.menu-button:hover,
.menu-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(141, 69, 255, 0.16), 0 14px 28px rgba(141, 69, 255, 0.26);
  transform: translateY(-1px);
}

.menu-button:hover span:nth-child(2),
.menu-button:focus-visible span:nth-child(2) {
  width: 16px;
}

.menu-button:focus-visible {
  outline: none;
}

.theme-icon {
  position: absolute;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-icon.sun {
  background: #ffd65c;
  box-shadow: 0 0 0 4px rgba(255, 214, 92, 0.18);
}

.theme-icon.moon {
  background: currentColor;
  transform: scale(0.75);
}

.theme-icon.moon::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f3f3f5;
}

[data-theme="light"] .theme-icon.moon,
:root:not([data-theme]) .theme-icon.moon {
  opacity: 0;
}

[data-theme="dark"] .theme-icon.sun {
  opacity: 0;
}

.github-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 0;
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(141, 69, 255, 0.28);
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.github-button:hover,
.github-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(141, 69, 255, 0.18), 0 16px 34px rgba(141, 69, 255, 0.34);
  filter: saturate(1.12);
  transform: translateY(-1px);
}

.github-button:focus-visible {
  outline: none;
}

.menu-backdrop,
.mobile-menu {
  display: none;
}

main {
  width: var(--page);
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(70px, 11vh, 150px) 0 88px;
}

.portrait-wrap {
  justify-self: center;
  width: min(100%, 520px);
  aspect-ratio: 1;
  padding: clamp(10px, 2vw, 18px);
  border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, rgba(22, 168, 255, 0.24), rgba(240, 23, 217, 0.28)) border-box;
  border: 2px solid transparent;
}

.portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-content {
  text-align: center;
}

.intro {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(3.2rem, 7vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.role {
  margin-bottom: 24px;
  background: linear-gradient(100deg, var(--blue), var(--purple), var(--pink));
  background-clip: text;
  color: transparent;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
}

.hero-buttons,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(141, 69, 255, 0.14), 0 14px 30px rgba(141, 69, 255, 0.24);
  color: #ffffff;
  transform: translateY(-1px);
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 1;
}

.button:focus-visible {
  outline: none;
}

.button.filled {
  border-color: transparent;
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  color: #ffffff;
}

.button.filled:hover,
.button.filled:focus-visible {
  filter: saturate(1.12);
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.72;
  transform: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
}

.social-links a {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-pill);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.social-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  box-shadow: 0 0 0 3px rgba(141, 69, 255, 0.14), 0 14px 30px rgba(141, 69, 255, 0.24);
  transform: translateY(-1px);
}

.social-links a:hover::before,
.social-links a:focus-visible::before {
  opacity: 1;
}

.social-links a:focus-visible {
  outline: none;
}

.social-links svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  fill: var(--text);
  transition: fill 180ms ease, transform 180ms ease;
}

.social-links a:hover svg,
.social-links a:focus-visible svg {
  fill: #ffffff;
  transform: scale(0.88);
}

.content-section,
.contact-panel {
  padding: clamp(54px, 9vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 12px;
  background: linear-gradient(100deg, var(--blue), var(--purple), var(--pink));
  background-clip: text;
  color: transparent;
  font-weight: 900;
  text-transform: uppercase;
}

.content-section h2,
.contact-panel h2 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.content-section > p,
.contact-panel > p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.skills-panel {
  max-width: 980px;
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(110deg, rgba(22, 168, 255, 0.28), rgba(141, 69, 255, 0.24), rgba(240, 23, 217, 0.28)) border-box;
  box-shadow: 0 14px 40px rgba(20, 20, 28, 0.06);
}

[data-theme="dark"] .skills-panel {
  box-shadow: none;
}

.skills-panel h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skills-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
}

.skills-grid span {
  display: inline-block;
  margin-bottom: 6px;
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.skills-grid p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(30px, 6vw, 72px);
}

.stack-list,
.project-grid {
  display: grid;
  gap: 18px;
}

.stack-list article,
.project-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(20, 20, 28, 0.06);
}

[data-theme="dark"] .stack-list article,
[data-theme="dark"] .project-grid article {
  box-shadow: none;
}

.stack-list span,
.project-grid span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--purple);
  font-weight: 900;
}

.stack-list strong,
.project-grid h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.stack-list small {
  display: block;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-weight: 800;
}

.stack-list p,
.project-grid p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.stack-list ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.stack-list li::marker {
  color: var(--purple);
}

.project-grid {
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(280px, 0.52fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: stretch;
}

.project-shot {
  display: grid;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(22, 168, 255, 0.18), rgba(141, 69, 255, 0.12), rgba(240, 23, 217, 0.16)),
    color-mix(in srgb, var(--bg-soft) 82%, transparent);
}

.project-shot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  color: #ffffff;
  font-weight: 900;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.project-tags span {
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.project-details {
  display: grid;
  gap: 10px;
}

.project-details p {
  margin: 0;
}

.project-details strong {
  color: var(--text);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.contact-copy > p {
  margin-left: 0;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-list p {
  margin: 0;
  color: var(--text-soft);
}

.contact-list strong {
  color: var(--text);
}

.contact-list a {
  position: relative;
  font-weight: 800;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.contact-list a:focus-visible {
  outline: none;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(20, 20, 28, 0.06);
}

[data-theme="dark"] .contact-form {
  box-shadow: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  color: var(--text);
  font: inherit;
}

.contact-form input {
  min-height: 46px;
  padding: 0 15px;
}

.contact-form textarea {
  min-height: 138px;
  padding: 13px 15px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(141, 69, 255, 0.2);
  outline: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-status[data-state="success"] {
  color: #168c52;
}

.form-status[data-state="error"] {
  color: #d03c3c;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: var(--page);
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-weight: 700;
}

@media (max-width: 880px) {
  .navbar {
    align-items: stretch;
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding: 4px 0;
  }

  .hero-section,
  .two-column,
  .contact-panel,
  .skills-grid,
  .project-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 64px;
    text-align: center;
  }

  .portrait-wrap {
    width: min(86vw, 430px);
  }
}

@media (max-width: 560px) {
  :root {
    --page: min(100% - 20px, 1120px);
  }

  html {
    scroll-padding-top: 32px;
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 52px;
    padding: 7px 8px 7px 14px;
    border-radius: var(--radius-pill);
  }

  .logo {
    width: auto;
    min-height: 34px;
    font-size: 1rem;
    text-align: left;
  }

  .nav-actions {
    display: flex;
    gap: 8px;
  }

  .theme-button {
    width: 38px;
    min-height: 38px;
  }

  .menu-button {
    display: inline-grid;
    width: 38px;
    min-height: 38px;
  }

  .menu-button span {
    width: 16px;
  }

  .menu-button span:nth-child(2) {
    width: 12px;
  }

  .navbar > .nav-links,
  .nav-actions > .github-button {
    display: none;
  }

  .nav-links {
    font-size: 0.9rem;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 36;
    display: block;
    width: min(82vw, 300px);
    height: 100dvh;
    padding: 18px;
    border-left: 1px solid var(--line);
    background: var(--surface);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.24);
    color: var(--text);
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  .menu-is-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-is-open .mobile-menu {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-weight: 900;
  }

  .menu-close {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-menu-links {
    display: grid;
    gap: 10px;
    padding-top: 18px;
  }

  .mobile-menu-links a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
    font-weight: 900;
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a:focus-visible {
    border-color: transparent;
    background: linear-gradient(110deg, var(--blue), var(--purple), var(--pink));
    color: #ffffff;
    outline: none;
  }

  .hero-buttons,
  .contact-links {
    width: 100%;
  }

  .button {
    flex: 1 1 145px;
    min-height: 36px;
    padding: 0 18px;
  }

  .hero-section {
    gap: 30px;
    padding: 40px 0 62px;
  }

  .portrait-wrap {
    width: min(72vw, 280px);
  }

  .intro {
    font-size: 1.18rem;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 3.25rem);
  }

  .role {
    margin-bottom: 18px;
    font-size: 1.55rem;
  }

  .content-section,
  .contact-panel {
    scroll-margin-top: 32px;
    padding: 48px 0;
  }

  .stack-list article,
  .project-grid article,
  .skills-panel,
  .contact-form {
    padding: 20px;
    border-radius: 20px;
  }

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

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
