:root {
  --bg: #0e0f13;
  --bg-glow: #1a1d2e;
  --surface: #15161c;
  --border: #26272e;
  --text: #f2f1ec;
  --text-muted: #a9abb3;
  --text-subtle: #9a9ca5;
  --text-nav: #b8bac2;
  --label: #8a8c95;
  --accent: #5b63f0;
  --accent-hover: #4a52e0;
  --accent-light: #8b91ff;
  --accent-hard: rgb(91 99 240 / 54%);
  --accent-soft: rgba(91, 99, 240, 0.16);
  --accent-soft-border: rgba(91, 99, 240, 0.35);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 32px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
}

img {
  max-width: 100%;
  -webkit-user-drag: none;
  pointer-events: none;
}

::selection {
  background: transparent;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}

a:hover {
  color: var(--accent-hover);
}

.page {
  min-height: 100vh;
  background: radial-gradient(
    1400px 800px at 10% -10%,
    var(--bg-glow) 0%,
    var(--bg) 60%
  ) var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 15, 19, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}

.brand:hover {
  color: var(--text);
}

.brand-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  align-items: center;
}

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

.nav-links a:hover {
  color: var(--accent-light);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
}

.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 420px), 1fr)
  );
  gap: 56px;
  align-items: center;
  padding: 96px 0 104px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.accent {
  color: var(--accent-light);
}

.lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 520px;
  text-wrap: pretty;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
}

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

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

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.hero-shadow {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 24px;
  background: var(--accent);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  background: var(--surface);
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-light);
}

h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.body-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.facts {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(160px, 1fr)
  );
  gap: 12px;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fact-label {
  font-size: 13px;
  color: var(--label);
  font-family: var(--mono);
}

.fact-value {
  font-size: 18px;
  font-weight: 600;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mono-label {
  font-size: 13px;
  color: var(--text-subtle);
  font-family: var(--mono);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-light);
  border: 1px solid var(--accent-soft-border);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 380px), 1fr)
  );
  color: var(--text);
}

.project-card:hover {
  border-color: var(--accent-light);
  color: var(--text);
}

.project-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  background: var(--border);
}

.project-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.project-role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-light);
}

.project-body h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
}

.socials {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 240px), 1fr)
  );
  gap: 14px;
}

.social {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--text);
}

.social:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-light);
}

.social-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}

.social:hover .social-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.social-icon i {
  width: 22px;
  height: 22px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.social-arrow {
  font-size: 18px;
}

.social-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-name {
  font-size: 19px;
  font-weight: 600;
}

.social-handle {
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.7;
  overflow-wrap: anywhere;
}

.contact {
  margin: 24px 0 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.contact-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #dcdeff;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 320px;
  flex-shrink: 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--text);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, color .2s;
}

.contact-btn:hover {
  background: #fff;
  color: var(--bg);
  transform: translateX(3px);
}

.contact-btn-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-hard);
  color: var(--accent-light);
  font-size: 18px;
}

.contact-btn-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  display: block;
}

.footer {
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-subtle);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.lang-switch {
  display: flex;
  background: var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-switch button {
  border: 0;
  cursor: pointer;
  font: 500 12px var(--mono);
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}

.lang-switch button.active {
  background: var(--accent);
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact {
    align-items: flex-start;
  }

  .contact-buttons {
    width: 300px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 18px;
    background: rgba(14, 15, 19, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 4px;
  }

  .nav-links .nav-cta {
    text-align: center;
    padding: 12px 16px;
    margin-top: 6px;
  }

  .hero {
    padding: 56px 0 72px;
    gap: 48px;
  }

  .hero-visual {
    max-width: calc(100% - 18px);
    justify-self: start;
  }

  .section {
    padding: 64px 0;
  }

  h2 {
    font-size: 32px;
  }

  .project-body {
    padding: 28px 24px;
  }

  .project-body h3 {
    font-size: 28px;
  }

  .project-img {
    min-height: 220px;
  }

  .contact {
    padding: 40px 24px;
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .contact-buttons {
    width: 100%;
  }

  .contact-btn {
    width: 100%;
    overflow-wrap: anywhere;
  }
}

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

  * {
    transition: none !important;
  }
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1Q.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1Q.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1Q.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1Q.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwg.woff2') format('woff2');
}