:root {
  --bg: #08090b;
  --bg-soft: #0d0e11;
  --panel: rgba(19, 18, 22, 0.82);
  --panel-solid: #131216;
  --panel-strong: #18161c;
  --text: #fbf7f9;
  --text-soft: #cfc5ca;
  --muted: #958891;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: #efb6ca;
  --accent-strong: #ffd4e1;
  --accent-text: #28171e;
  --glow: rgba(239, 182, 202, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --container: 1180px;
  --nav-width: 920px;
  --header-height: 76px;
}

html[data-theme="light"] {
  --bg: #fff8fb;
  --bg-soft: #f9eef3;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --panel-strong: #f8edf2;
  --text: #251a20;
  --text-soft: #65565e;
  --muted: #8c7480;
  --line: rgba(37, 26, 32, 0.1);
  --line-strong: rgba(37, 26, 32, 0.16);
  --accent: #d97ea3;
  --accent-strong: #bb6288;
  --accent-text: #ffffff;
  --glow: rgba(217, 126, 163, 0.16);
  --shadow: 0 24px 70px rgba(82, 57, 69, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--text);
  font-family: "Manrope", "Inter", "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 12%, var(--glow), transparent 28rem),
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32rem);
  pointer-events: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 38%, transparent);
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  padding: 14px 18px 0;
  pointer-events: none;
}

.nav-shell {
  width: min(100%, var(--nav-width));
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-solid) 78%, transparent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px) saturate(135%);
  pointer-events: auto;
}

.brand {
  min-width: 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}

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

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}

html[data-theme="dark"] .sun-icon,
html[data-theme="light"] .moon-icon,
.menu-close-icon {
  display: none;
}

.menu-button {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-close-icon {
  display: block;
}

.mobile-menu {
  width: min(calc(100% - 36px), 420px);
  margin: 10px auto 0;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(135%);
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--panel-strong);
  color: var(--text);
}

.section-shell {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 118px 0 92px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(78vw, 900px);
  height: min(78vw, 900px);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent);
  box-shadow:
    0 0 0 86px color-mix(in srgb, var(--accent) 2.5%, transparent),
    0 0 0 174px color-mix(in srgb, var(--accent) 1.5%, transparent);
  opacity: 0.65;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow-left {
  left: -180px;
  top: 140px;
}

.hero-glow-right {
  right: -190px;
  bottom: 70px;
}

.hero-label,
.section-label,
.project-meta {
  margin: 0;
  color: var(--accent);
  font-family: "Manrope", "Aptos", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact h2,
.project-card h3 {
  font-family: "Sora", "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", sans-serif;
  text-wrap: balance;
}

.hero h1 {
  max-width: 920px;
  margin: 18px auto 0;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  background: linear-gradient(180deg, var(--text) 18%, color-mix(in srgb, var(--text) 70%, var(--accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.55vw, 1.13rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  border-color: color-mix(in srgb, var(--accent) 78%, white 8%);
  color: var(--accent-text);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 1px rgba(255, 255, 255, 0.45);
}

.button-secondary {
  background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
  color: var(--text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.social-links {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.social-links a,
.social-links button,
.project-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
  color: var(--text-soft);
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.social-links button {
  padding: 0;
}

.social-links a:hover,
.social-links button:hover,
.project-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
  color: var(--accent-strong);
}

.about,
.work,
.contact {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.section-heading h2,
.contact h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.about-copy {
  padding-top: 36px;
}

.about-copy p,
.contact p,
.project-card > p {
  margin: 0;
  color: var(--text-soft);
}

.about-copy p + p {
  margin-top: 18px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
}

.section-heading-row > div {
  max-width: 720px;
}

.profile-link {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-solid) 82%, transparent);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.profile-link:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.profile-link .icon-arrow {
  width: 17px;
  height: 17px;
}

.project-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 278px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--panel-strong) 92%, transparent), color-mix(in srgb, var(--panel-solid) 86%, transparent));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line-strong));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.05);
}

.project-private {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 5%, var(--panel-strong)), color-mix(in srgb, var(--panel-solid) 90%, transparent));
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-meta {
  color: var(--muted);
  font-size: 10px;
}

.project-link {
  flex: 0 0 42px;
}

.project-card h3 {
  margin: 22px 0 10px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.project-card > p {
  max-width: 58ch;
}

.tag-list {
  margin: auto 0 0;
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag-list li,
.private-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel-solid));
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.private-badge {
  flex: 0 0 auto;
  background: transparent;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.contact > div:first-child {
  max-width: 720px;
}

.contact p {
  margin-top: 16px;
}

.contact-actions {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
}

.toast {
  position: fixed;
  z-index: 220;
  right: 22px;
  bottom: 22px;
  max-width: min(calc(100% - 44px), 360px);
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

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

@media (max-width: 960px) {
  .site-header {
    padding-inline: 14px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

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

  .about-copy {
    padding-top: 0;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 56px 56px;
  }

  .section-shell {
    width: min(calc(100% - 30px), var(--container));
  }

  .hero {
    min-height: 610px;
    padding: 98px 0 74px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .hero-copy {
    max-width: 560px;
  }

  .about,
  .work,
  .contact {
    padding: 76px 0;
  }

  .section-heading-row {
    display: grid;
    align-items: start;
  }

  .profile-link {
    width: fit-content;
  }

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

  .project-card {
    min-height: 252px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 10px 10px 0;
  }

  .nav-shell {
    min-height: 66px;
    padding: 8px;
    border-radius: 16px;
  }

  .brand {
    gap: 9px;
    font-size: 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 570px;
    padding-top: 88px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(2.45rem, 14vw, 3.4rem);
    line-height: 1;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
    display: grid;
  }

  .button {
    width: 100%;
  }

  .social-links {
    margin-top: 22px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .project-card {
    min-height: 0;
    padding: 20px;
  }

  .profile-link {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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