@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #070a12;
  --bg2: #090e19;
  --panel: #0b111d;
  --panel2: #0e1524;
  --panel3: #121a2b;
  --text: #f4f6fd;
  --soft: #c9d0e0;
  --muted: #94a0b8;
  --dim: #68748c;
  --line: #1f2939;
  --line2: #2c3951;
  --blue: #7786ff;
  --blue2: #9a79ff;
  --green: #3ecf8e;
  --max: 1180px;
  --radius: 18px;
  --nav: 78px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
h1,
h2,
h3,
p,
ul,
dl {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.section {
  padding: 118px 0;
}
.skip-link {
  position: fixed;
  left: -999px;
  top: 1rem;
  z-index: 100;
  background: #fff;
  color: #05070d;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.skip-link:focus {
  left: 1rem;
}

/* ---------- backdrop ---------- */
.ambient {
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.ambient:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(119, 134, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 134, 255, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}
.ambient span:nth-child(1) {
  width: 540px;
  height: 540px;
  top: -220px;
  left: -190px;
  background: radial-gradient(circle, rgba(86, 110, 255, 0.16), transparent 66%);
}
.ambient span:nth-child(2) {
  width: 680px;
  height: 680px;
  top: -190px;
  right: -240px;
  background: radial-gradient(circle, rgba(122, 88, 255, 0.18), transparent 66%);
}
.ambient span:nth-child(3) {
  width: 430px;
  height: 430px;
  top: 500px;
  right: 6%;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.06), transparent 70%);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: 0.25s var(--ease);
}
.site-nav.scrolled {
  background: rgba(7, 10, 18, 0.84);
  border-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(var(--max), calc(100% - 48px));
  height: var(--nav);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand > span,
.id-logo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 26px rgba(104, 100, 255, 0.3);
}
.brand {
  margin-right: auto;
  display: grid;
  place-items: center;
}
.desktop-nav {
  display: flex;
  gap: 30px;
}
.desktop-nav a {
  position: relative;
  color: #94a0b6;
  font-size: 0.8rem;
  font-weight: 650;
  transition: color 0.2s;
}
.desktop-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  transition: width 0.25s var(--ease);
}
.desktop-nav a:hover {
  color: #fff;
}
.desktop-nav a:hover:after {
  width: 100%;
}
.nav-cta {
  border: 1px solid #37445e;
  border-radius: 999px;
  padding: 0.62rem 1.2rem;
  background: rgba(17, 24, 41, 0.7);
  font-size: 0.76rem;
  font-weight: 750;
  transition: 0.25s var(--ease);
}
.nav-cta:hover {
  border-color: #6474ee;
  background: linear-gradient(135deg, rgba(119, 134, 255, 0.16), rgba(154, 121, 255, 0.16));
  transform: translateY(-1px);
}
.menu-toggle,
.mobile-menu {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
  gap: 64px;
  align-items: center;
  min-height: 720px;
  padding: 64px 0 76px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.42rem 0.85rem;
  border: 1px solid #2b3850;
  border-radius: 999px;
  background: rgba(11, 17, 29, 0.7);
  color: #c3cbdc;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.avail-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(62, 207, 142, 0.9);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.4rem 0.85rem;
  border: 1px solid #242f42;
  border-radius: 999px;
  background: rgba(11, 17, 29, 0.75);
  color: #9aa6bc;
  font-size: 0.66rem;
}
.tag b {
  color: var(--blue);
  font-weight: 800;
}
.hero-name {
  font-size: clamp(3.4rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #fff;
}
.typed-line {
  display: flex;
  align-items: center;
  height: 2.6rem;
  margin-top: 0.6rem;
  color: #9ba7ff;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.caret {
  width: 3px;
  height: 1.1em;
  margin-left: 7px;
  border-radius: 3px;
  background: var(--blue2);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.hero-lead {
  max-width: 620px;
  margin-top: 20px;
  color: #aab4c8;
  font-size: 1.02rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
  transition: 0.25s var(--ease);
}
.button:hover {
  transform: translateY(-2px);
}
.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button svg path:first-child {
  fill: none;
}
.button.primary {
  background: linear-gradient(135deg, #7080ff, #9369fa);
  color: #fff;
  box-shadow: 0 14px 36px rgba(105, 94, 255, 0.24);
}
.button.primary:hover {
  box-shadow: 0 18px 44px rgba(105, 94, 255, 0.34);
}
.button.secondary {
  border-color: #31405a;
  background: rgba(13, 20, 33, 0.75);
  color: #dfe4f0;
}
.button.secondary:hover {
  border-color: #53617d;
}
.button.secondary svg {
  fill: currentColor;
  stroke: none;
}
.button.secondary svg path:first-child {
  fill: currentColor;
}
.linkedin-link[hidden],
.resume-link[hidden] {
  display: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.3rem;
  color: #e8ebf5;
  font-size: 0.84rem;
  font-weight: 750;
}
.link-arrow span {
  color: var(--green);
  font-weight: 800;
}
.link-arrow:hover span {
  transform: translateX(3px);
}
.link-arrow span {
  transition: transform 0.2s var(--ease);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 42px;
}
.stats li {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 16, 27, 0.75);
}
.stats strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, #b9c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats span {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}
.photo-card {
  position: relative;
  border-radius: 26px;
  padding: 9px;
  background: linear-gradient(
    150deg,
    rgba(119, 134, 255, 0.55),
    rgba(14, 21, 36, 0.2) 30%,
    rgba(14, 21, 36, 0.2) 70%,
    rgba(62, 207, 142, 0.3)
  );
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 19px;
  filter: saturate(0.82) contrast(1.04);
}
.id-card {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 26px;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(9, 14, 24, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.id-card .id-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 0.72rem;
}
.id-card b {
  display: block;
  font-size: 0.94rem;
  line-height: 1.2;
}
.id-card small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}
.open-btn {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--green);
  color: #06231a;
  font-size: 0.7rem;
  font-weight: 850;
  transition: 0.2s var(--ease);
}
.open-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid #161f2e;
  border-bottom: 1px solid #161f2e;
  background: rgba(8, 13, 22, 0.7);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ticker-track span {
  color: #79859c;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.ticker-track i {
  color: #3a4861;
  font-style: normal;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- section headings ---------- */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8a97ff;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sec-label:before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
}
section h2 {
  margin: 22px 0 18px;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 780;
}
section h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #93a0ff, #b98bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sec-sub {
  max-width: 600px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}
.sec-head {
  margin-bottom: 62px;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 80px;
  align-items: center;
}
.about-copy h2 {
  margin-top: 20px;
}
.about-sub {
  margin-bottom: 24px;
  color: #aeb8cc;
  font-size: 1.08rem;
  font-weight: 620;
}
.about-copy > p:not(.sec-label):not(.about-sub) {
  margin-bottom: 17px;
  color: #98a3b8;
  font-size: 0.9rem;
  line-height: 1.85;
}
.about-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-metrics > div {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 10%, rgba(119, 134, 255, 0.12), transparent 55%),
    var(--panel);
}
.about-metrics strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff, #aeb8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.56rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ---------- skills ---------- */
.skills {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-top: 1px solid #141c2a;
  border-bottom: 1px solid #141c2a;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-card {
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.skill-card:hover {
  border-color: #3a4a6d;
  transform: translateY(-3px);
}
.skill-card h3 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 17px;
  border-bottom: 1px solid #1c2638;
  font-size: 1rem;
  font-weight: 780;
}
.skill-card h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
}
.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-card li {
  padding: 0.4rem 0.72rem;
  border: 1px solid #26334a;
  border-radius: 999px;
  background: rgba(15, 22, 36, 0.9);
  color: #9da8be;
  font-size: 0.64rem;
}

/* ---------- experience ---------- */
.experience {
  background:
    radial-gradient(ellipse at 90% 4%, rgba(122, 88, 255, 0.09), transparent 42%),
    var(--bg);
}
.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(#3a4a6d, #1c2638);
}
.job {
  position: relative;
  margin-left: 64px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: border-color 0.25s;
}
.job:hover {
  border-color: #38476a;
}
.job-mark {
  position: absolute;
  left: -64px;
  top: 26px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #36477a;
  border-radius: 14px;
  background: linear-gradient(145deg, #101a30, #0a0f1b);
  color: #a4afff;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}
.job-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.job-head h3 {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}
.job-head p {
  margin-top: 4px;
  color: #7f8ba3;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.job-context {
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  border: 1px solid #2c3a57;
  border-radius: 999px;
  color: #9aa7ff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.job-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 20px;
}
.job-points li {
  position: relative;
  padding-left: 19px;
  color: #97a2b7;
  font-size: 0.84rem;
  line-height: 1.72;
}
.job-points li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(119, 134, 255, 0.6);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-row span {
  padding: 0.34rem 0.68rem;
  border: 1px solid #26334a;
  border-radius: 999px;
  background: rgba(14, 20, 33, 0.85);
  color: #8d99af;
  font-size: 0.6rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  color: #c6cde0;
  font-size: 0.78rem;
  font-weight: 750;
  border-bottom: 1px solid #435171;
  padding-bottom: 2px;
  transition: 0.2s;
}
.text-link:hover {
  color: #fff;
  border-color: #8b97ff;
}

/* ---------- projects ---------- */
.projects {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-top: 1px solid #141c2a;
  border-bottom: 1px solid #141c2a;
}
.project-card {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  transition: border-color 0.25s;
}
.project-card:hover {
  border-color: #39496e;
}
.project-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1424;
}
.project-visual img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  border: 1px solid #28344c;
}
.num {
  position: absolute;
  left: 14px;
  top: 13px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(7, 11, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #aab5ff;
  font-size: 0.7rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}
.badge {
  position: absolute;
  right: 14px;
  top: 15px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 11, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}
.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge.live {
  color: #7ceeb6;
}
.badge.live i {
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}
.badge.demo {
  color: #a5b0ff;
}
.badge.demo i {
  background: #8b97ff;
  box-shadow: 0 0 9px #8b97ff;
}
.kicker {
  color: #8290ff;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-content h3 {
  margin: 8px 0 4px;
  font-size: 2.1rem;
  letter-spacing: -0.045em;
}
.status {
  color: #6e7b93;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.summary {
  margin-top: 15px;
  color: #9da9bd;
  font-size: 0.88rem;
  line-height: 1.75;
}
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  margin: 20px 0 20px;
}
.highlights li {
  position: relative;
  padding-left: 17px;
  color: #8c97ad;
  font-size: 0.72rem;
}
.highlights li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
}
.disclosure {
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 2px solid #39497a;
  border-radius: 0 10px 10px 0;
  background: rgba(8, 13, 23, 0.9);
  color: #6e7c95;
  font-size: 0.66rem;
  line-height: 1.65;
}
.disclosure b {
  color: #9aa6bc;
}

/* ---------- community ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.community-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background:
    radial-gradient(circle at 88% 4%, rgba(119, 134, 255, 0.13), transparent 52%),
    var(--panel);
}
.community-card .big {
  margin: 18px 0 6px;
  font-size: 2.35rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff, #a9b4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.community-card .summary {
  margin: 10px 0 22px;
  font-size: 0.8rem;
}
.community-card .spacer {
  flex: 1 1 8px;
}
.community-card .text-link + .spacer {
  margin-top: 14px;
}

/* ---------- principles ---------- */
.principles {
  background:
    radial-gradient(ellipse at 6% 96%, rgba(62, 207, 142, 0.05), transparent 46%),
    var(--bg);
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.principle-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: 0.25s var(--ease);
}
.principle-card:hover {
  transform: translateY(-3px);
  border-color: #3a4a6d;
}
.principle-card > span {
  color: #7d8cff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.principle-card h3 {
  margin: 14px 0 10px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.principle-card p {
  color: #8e99ae;
  font-size: 0.8rem;
  line-height: 1.72;
}

/* ---------- achievements ---------- */
.achievements {
  border-top: 1px solid #141c2a;
  border-bottom: 1px solid #141c2a;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.achievement-card {
  position: relative;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(154, 121, 255, 0.13), transparent 52%),
    var(--panel);
}
.achievement-card .award {
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #93a0ff, #c68bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.achievement-card h3 {
  margin: 8px 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.achievement-card p {
  color: #8e99ae;
  font-size: 0.82rem;
  line-height: 1.75;
}

/* ---------- contact ---------- */
.contact {
  background:
    radial-gradient(ellipse at 88% 12%, rgba(119, 134, 255, 0.14), transparent 46%),
    var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 64px;
  align-items: center;
}
.contact-copy h2 {
  max-width: 560px;
}
.contact-lead {
  max-width: 540px;
  color: #9ca8bd;
  font-size: 0.94rem;
  line-height: 1.8;
}
.contact-card {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.contact-card-top {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1d283a;
}
.contact-card-top b {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}
.contact-card-top small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}
.contact-card .id-logo {
  width: 44px;
  height: 44px;
  font-size: 0.76rem;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.38rem 0.7rem;
  border: 1px solid #1f5b43;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.09);
  color: #8ceec2;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.status-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.contact-card dl {
  padding: 10px 0 6px;
}
.contact-card dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #1b2536;
}
.contact-card dl > div:last-child {
  border-bottom: 0;
}
.contact-card dt {
  color: var(--dim);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.contact-card dd {
  color: #b7c0d3;
  font-size: 0.8rem;
  word-break: break-all;
}
.contact-card-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}
.contact-form {
  padding: 38px;
  border: 1px solid #2b3954;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 134, 255, 0.13), transparent 55%),
    linear-gradient(160deg, #111a2d, #0a101b);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.contact-form h3 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.contact-form > p:not(.form-note) {
  margin: 8px 0 26px;
  color: #8894aa;
  font-size: 0.84rem;
  line-height: 1.7;
}
.contact-form label {
  display: block;
  margin-bottom: 17px;
}
.contact-form label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #26344d;
  border-radius: 11px;
  background: #0a101b;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #57637b;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6474ee;
  box-shadow: 0 0 0 3px rgba(119, 134, 255, 0.16);
}
.contact-form .button {
  width: 100%;
  margin-top: 4px;
}
.form-note {
  margin-top: 16px;
  color: #5f6b82;
  font-size: 0.62rem;
  line-height: 1.6;
}

/* ---------- footer ---------- */
.footer {
  padding: 54px 0 40px;
  border-top: 1px solid #141c2a;
  background: rgba(7, 10, 18, 0.8);
}
.footer .shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand p {
  color: #5f6b82;
  font-size: 0.66rem;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer nav a {
  color: #8692a8;
  font-size: 0.7rem;
  transition: color 0.2s;
}
.footer nav a:hover {
  color: #fff;
}
.footer .copyright {
  grid-column: 1/3;
  padding-top: 24px;
  border-top: 1px solid #161f2e;
  color: #4e5a70;
  font-size: 0.64rem;
  margin: 26px 0 0;
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Keep the complete desktop hero inside short laptop/browser viewports. */
@media (min-width: 1021px) and (max-height: 800px) {
  .hero {
    height: calc(100svh - var(--nav) - 2px);
    min-height: 0;
    gap: 48px;
    padding: 18px 0 24px;
  }
  .pill-row {
    margin-bottom: 8px;
  }
  .tag-row {
    margin-bottom: 12px;
  }
  .hero-name {
    font-size: clamp(3.4rem, 6vw, 4.6rem);
  }
  .typed-line {
    height: 2.2rem;
    margin-top: 0.35rem;
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  }
  .hero-lead {
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .hero-actions {
    margin-top: 14px;
  }
  .hero-actions .button {
    min-height: 42px;
    padding-block: 0.55rem;
  }
  .stats {
    margin-top: 18px;
  }
  .stats li {
    padding: 12px 14px 11px;
  }
  .stats strong {
    font-size: 1.5rem;
  }
  .photo-card {
    height: calc(100svh - var(--nav) - 42px);
    overflow: hidden;
  }
  .photo-card img {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .desktop-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 46px 0 66px;
  }
  .hero-visual {
    max-width: 460px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .about-metrics {
    max-width: 560px;
  }
  .skill-grid,
  .principle-grid,
  .achievement-grid {
    grid-template-columns: 1fr 1fr;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-form {
    padding: 30px;
  }
}
@media (max-width: 720px) {
  :root {
    --nav: 66px;
  }
  .shell,
  .nav-inner {
    width: min(var(--max), calc(100% - 30px));
  }
  .section {
    padding: 84px 0;
  }
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 10px;
    border: 1px solid #2c384d;
    border-radius: 9px;
    background: #0d1421;
  }
  .menu-toggle i {
    display: block;
    height: 1px;
    background: #d6dbe7;
    transition: 0.2s;
  }
  .menu-toggle[aria-expanded="true"] i:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] i:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .mobile-menu {
    position: fixed;
    inset: var(--nav) 0 0;
    z-index: 29;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 34px 20px;
    background: rgba(7, 10, 18, 0.98);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
  }
  .mobile-menu[aria-hidden="false"] {
    transform: none;
  }
  .mobile-menu a {
    padding: 15px;
    border-bottom: 1px solid #202a3d;
    font-size: 1.05rem;
  }
  .mobile-menu .mobile-cta {
    margin-top: 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #7080ff, #9369fa);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
  }
  .hero {
    min-height: auto;
    padding: 40px 0 56px;
  }
  .tag-row {
    margin-bottom: 18px;
  }
  .hero-name {
    font-size: clamp(3rem, 14.5vw, 4.3rem);
  }
  .typed-line {
    height: 2.2rem;
    font-size: clamp(1.08rem, 5.3vw, 1.5rem);
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 30px;
  }
  .stats li {
    padding: 15px 16px 13px;
  }
  .hero-actions {
    align-items: stretch;
  }
  .hero-actions .button {
    flex: 1 1 auto;
  }
  .link-arrow {
    justify-content: center;
  }
  .photo-card img {
    aspect-ratio: 4 / 4.4;
  }
  .sec-head {
    margin-bottom: 40px;
  }
  section h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }
  .about-metrics {
    max-width: none;
  }
  .skill-grid,
  .principle-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  .timeline:before {
    left: 21px;
  }
  .job {
    margin-left: 52px;
    padding: 22px 20px;
  }
  .job-mark {
    left: -52px;
    width: 44px;
    height: 44px;
    top: 20px;
    font-size: 0.7rem;
  }
  .job-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .job-context {
    margin-left: 0;
  }
  .project-card {
    padding: 14px;
  }
  .project-content h3 {
    font-size: 1.75rem;
  }
  .highlights {
    grid-template-columns: 1fr;
  }
  .project-visual img {
    aspect-ratio: 16 / 11;
  }
  .contact-card-top {
    grid-template-columns: 44px 1fr;
  }
  .status-dot {
    grid-column: 1/3;
    justify-self: start;
  }
  .contact-card-actions {
    flex-direction: column;
  }
  .footer .shell {
    grid-template-columns: 1fr;
  }
  .footer .copyright {
    grid-column: 1;
  }
  .footer-brand {
    align-items: flex-start;
  }
}
@media (max-width: 430px) {
  .hero-actions .button {
    width: 100%;
    flex: none;
  }
  .tag-row .tag {
    width: 100%;
    justify-content: flex-start;
  }
  .id-card {
    left: 8%;
    right: 8%;
    bottom: 18px;
    padding: 11px 13px;
  }
  .community-card {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ticker-track,
  .caret {
    animation: none;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
