:root {
  color-scheme: dark;
  --bg: #06060d;
  --fg: #eceaff;
  --mute: #a6a3c4;
  --v: #8b6cff;
  --c: #22d3ee;
  --p: #ff4fa3;
  --gl: rgba(255, 255, 255, 0.045);
  --bd: rgba(255, 255, 255, 0.11);
  --d: "Sora", "Helvetica Neue", Arial, sans-serif;
  --t: "Inter", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --hh: 64px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
::-webkit-scrollbar {
  display: none;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
html.lock {
  overflow: hidden;
}
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.7 var(--t);
  overflow-x: clip;
  min-width: 320px;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
ul,
ol {
  list-style: none;
}
button {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--c);
  outline-offset: 3px;
  border-radius: 8px;
}
h1,
h2,
h3 {
  font-family: var(--d);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#glow {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 108, 255, 0.16),
    transparent 65%
  );
  z-index: 0;
  pointer-events: none;
}
main,
footer {
  position: relative;
  z-index: 1;
}
#bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--v), var(--c), var(--p));
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 90;
}

/* ---------- header + navigation ---------- */
header {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100vw - 24px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 20px;
  border-radius: 99px;
  background: rgba(14, 13, 28, 0.62);
  border: 1px solid var(--bd);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.logo {
  font: 800 1.15rem var(--d);
  margin-right: 8px;
}
.logo b {
  color: var(--c);
}
.dn {
  display: flex;
  gap: 2px;
}
.dn a {
  padding: 8px 13px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  transition: 0.25s;
  white-space: nowrap;
}
.dn a:hover {
  color: #fff;
}
.dn a.on {
  background: linear-gradient(120deg, var(--v), var(--c));
  color: #06060d;
  font-weight: 600;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--bd);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.3s,
    opacity 0.2s;
}
.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 21px;
}
.burger span:nth-child(3) {
  top: 27px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: calc(var(--hh) + 36px + env(safe-area-inset-top, 0px)) var(--pad)
    calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 6, 13, 0.97);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0s 0.3s;
}
.drawer.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0s;
}
.drawer nav {
  display: flex;
  flex-direction: column;
}
.drawer nav a {
  font: 800 clamp(1.8rem, 8vw, 2.6rem) var(--d);
  letter-spacing: -0.03em;
  padding: 10px 0;
  min-height: 48px;
  border-bottom: 1px solid var(--bd);
  color: var(--mute);
  opacity: 0;
  transform: translateX(-14px);
  transition:
    color 0.2s,
    opacity 0.35s,
    transform 0.35s;
}
.drawer.open nav a {
  opacity: 1;
  transform: none;
}
.drawer nav a:nth-child(2) {
  transition-delay: 0.04s;
}
.drawer nav a:nth-child(3) {
  transition-delay: 0.08s;
}
.drawer nav a:nth-child(4) {
  transition-delay: 0.12s;
}
.drawer nav a:nth-child(5) {
  transition-delay: 0.16s;
}
.drawer nav a:nth-child(6) {
  transition-delay: 0.2s;
}
.drawer nav a:nth-child(7) {
  transition-delay: 0.24s;
}
.drawer nav a:nth-child(8) {
  transition-delay: 0.28s;
}
.drawer nav a.on,
.drawer nav a:active {
  color: var(--c);
}
.dfoot {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dfoot .btn {
  justify-content: center;
}
.dsoc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dsoc a {
  flex: 1 1 40%;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  color: var(--mute);
  font-weight: 500;
}

/* ---------- layout ---------- */
section {
  padding: 15vh var(--pad) 5vh;
  max-width: 1320px;
  margin: 0 auto;
}
h2 {
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 2.4rem;
  background: linear-gradient(100deg, #fff 20%, #b4a6ff 60%, var(--c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
  overflow-wrap: anywhere;
}
.gl {
  background: var(--gl);
  border: 1px solid var(--bd);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.gl::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(139, 108, 255, 0.22),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gl:hover::before {
  opacity: 1;
}
.gl > * {
  position: relative;
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--hh) + 8vh);
  position: relative;
}
.hi {
  color: var(--c);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
h1 {
  font-size: clamp(2.9rem, 11vw, 9.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.row {
  display: block;
  overflow: hidden;
  padding: 0.04em 0 0.1em;
}
.ch {
  display: inline-block;
}
.role {
  font: 600 clamp(1.1rem, 2.6vw, 1.9rem) var(--d);
  margin: 1.4rem 0 1rem;
  min-height: 1.6em;
  letter-spacing: -0.01em;
}
.role::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--c);
  margin-left: 5px;
  vertical-align: -3px;
  animation: bl 1s steps(1) infinite;
}
@keyframes bl {
  50% {
    opacity: 0;
  }
}
.lead {
  color: var(--mute);
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  min-height: 46px;
  border-radius: 99px;
  border: 1px solid var(--bd);
  background: var(--gl);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn:hover {
  border-color: var(--c);
  box-shadow: 0 0 28px -4px rgba(34, 211, 238, 0.5);
}
.btn.p {
  background: linear-gradient(120deg, var(--v), var(--c));
  color: #06060d;
  border: 0;
}
.btn.p:hover {
  box-shadow: 0 0 36px -2px rgba(139, 108, 255, 0.8);
}
.scroll {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  width: 24px;
  height: 40px;
  margin-left: -12px;
  border: 2px solid var(--mute);
  border-radius: 14px;
}
.scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--c);
  animation: sc 1.6s infinite;
}
@keyframes sc {
  0% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}
.ab {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.ab > .gl {
  padding: clamp(22px, 3vw, 40px);
}
#bio {
  font: 600 clamp(1.15rem, 2.3vw, 1.9rem)/1.4 var(--d);
  letter-spacing: -0.015em;
}
.w {
  display: inline-block;
  opacity: 0.2;
  margin-right: 0.25em;
}
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.stats li {
  padding: 22px 28px;
}
.stats b {
  display: block;
  font: 800 3.2rem/1 var(--d);
  background: linear-gradient(120deg, var(--v), var(--c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span {
  color: var(--mute);
}
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}
.sg {
  padding: 26px;
}
.sg h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--bd);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.25s;
}
.chip:hover {
  border-color: var(--c);
  color: var(--c);
  box-shadow: 0 0 16px -2px rgba(34, 211, 238, 0.6);
  transform: translateY(-2px);
}
.fl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.fl button {
  padding: 9px 18px;
  min-height: 40px;
  border-radius: 99px;
  border: 1px solid var(--bd);
  background: var(--gl);
  color: var(--mute);
  font: 500 14px var(--t);
  cursor: pointer;
  transition: 0.25s;
  white-space: nowrap;
}
.fl button.on {
  background: linear-gradient(120deg, var(--v), var(--c));
  color: #06060d;
  border-color: transparent;
  font-weight: 600;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  transform-style: preserve-3d;
}
.card.hide {
  display: none;
}
.card:hover {
  border-color: rgba(139, 108, 255, 0.6);
}
.cat {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 99px;
  color: var(--p);
  border: 1px solid rgba(255, 79, 163, 0.4);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--mute);
  font-size: 15px;
  margin-bottom: 18px;
  flex: 1;
}
.card .chips {
  margin-bottom: 20px;
}
.card .btn {
  align-self: flex-start;
  padding: 9px 20px;
  font-size: 14px;
  min-height: 42px;
}
.tl {
  --tp: 34px;
  position: relative;
  margin-left: 10px;
  padding-left: var(--tp);
}
.tl::before,
.tl .fill {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 30px;
  width: 2px;
  background: var(--bd);
}
.tl .fill {
  background: linear-gradient(var(--v), var(--c));
  box-shadow: 0 0 14px var(--c);
  transform: scaleY(0);
  transform-origin: top;
}
.tl > li {
  position: relative;
  padding-bottom: 22px;
}
.tl > li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--tp) - 6px);
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    0 0 0 5px var(--bg),
    0 0 18px var(--c);
}
.tl .gl {
  padding: 24px 28px;
}
.tl time {
  color: var(--c);
  font-weight: 600;
  font-size: 14px;
}
.tl h3 {
  font-size: 1.35rem;
  margin: 4px 0;
}
.tl .o {
  color: var(--mute);
  margin-bottom: 8px;
}
.tl ul {
  list-style: disc;
  padding-left: 18px;
  color: var(--mute);
  font-size: 15px;
}
.tl p {
  color: var(--mute);
  font-size: 15px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.two > .gl {
  padding: 28px;
}
.two h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.pl li {
  padding: 14px 0;
  border-bottom: 1px solid var(--bd);
}
.pl li:last-child {
  border: 0;
}
.pl strong {
  display: block;
}
.pl span {
  color: var(--mute);
  font-size: 14px;
}
.ct {
  padding: clamp(26px, 5vw, 64px);
  text-align: center;
}
.ct h2 {
  margin-bottom: 1rem;
}
.ct .lead {
  margin: 0 auto 1.6rem;
}
.em {
  display: inline-block;
  max-width: 100%;
  font: 800 clamp(1.15rem, 4.4vw, 3.2rem) var(--d);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  background: linear-gradient(100deg, #fff, var(--v), var(--c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cl {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 2rem;
}
footer {
  padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--mute);
  font-size: 14px;
}
#cur {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 18px var(--c);
  z-index: 100;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
  #cur,
  #glow {
    display: block;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .dn {
    display: none;
  }
  .burger {
    display: block;
  }
  header {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    margin: 0;
    justify-content: space-between;
    padding: 7px 8px 7px 18px;
  }
}
@media (max-width: 900px) {
  section {
    padding-top: 12vh;
  }
  .ab,
  .two {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stats li {
    padding: 16px;
  }
  .stats b {
    font-size: 2rem;
  }
  #gl {
    opacity: 0.6;
  }
}
@media (max-width: 520px) {
  :root {
    --hh: 60px;
  }
  .cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .tl {
    --tp: 24px;
    margin-left: 6px;
  }
  .tl .gl {
    padding: 18px 20px;
  }
  .card,
  .sg,
  .two > .gl {
    padding: 22px;
  }
  .stats {
    gap: 8px;
  }
  .stats li {
    padding: 14px 12px;
  }
  .stats b {
    font-size: 1.6rem;
  }
  .stats span {
    font-size: 13px;
    line-height: 1.3;
    display: block;
  }
  .fl {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--pad) * -1);
    padding: 0 var(--pad) 6px;
    scrollbar-width: none;
  }
  .fl::-webkit-scrollbar {
    display: none;
  }
  .scroll {
    display: none;
  }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-bottom: 10vh;
  }
  .drawer nav a {
    font-size: 1.4rem;
    min-height: 42px;
    padding: 6px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
