@font-face {
  font-family: "Geist Pixel Circle";
  src: url("/fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --content-max: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Background video */
.bg {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92) 100%);
  z-index: 1;
}

/* First viewport */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

.header,
.hero,
.stats,
.mobile-menu,
.mobile-overlay {
  z-index: 1;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  flex-shrink: 0;
  animation: slideDown 0.7s var(--ease) both;
}

.logo-btn {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.logo-btn img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.logo-btn:hover {
  transform: scale(1.04);
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.nav-pill a,
.mobile-menu a {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  padding: 6px 4px 10px;
}

.nav-pill a:hover,
.mobile-menu a:hover {
  opacity: 0.75;
}

.nav-pill a.is-active,
.mobile-menu a.is-active {
  opacity: 1;
}

.nav-pill a.is-active::after,
.mobile-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  box-shadow: var(--nav-shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.28s var(--ease), background 0.2s ease, opacity 0.2s ease;
}

.burger span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6.5px));
}

.burger span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6.5px));
}

.burger[aria-expanded="true"] {
  background: #fff;
}

.burger[aria-expanded="true"] span {
  background: #000;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 20;
  animation: overlayIn 0.28s var(--ease) both;
}

.mobile-menu {
  position: fixed;
  z-index: 21;
  left: 50%;
  top: 88px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 28px));
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: menuIn 0.38s var(--ease) both;
}

.mobile-menu a {
  text-align: center;
  padding: 12px 8px 16px;
  animation: linkIn 0.4s var(--ease) both;
}

.mobile-menu a:nth-child(1) { animation-delay: 0.04s; }
.mobile-menu a:nth-child(2) { animation-delay: 0.08s; }
.mobile-menu a:nth-child(3) { animation-delay: 0.12s; }
.mobile-menu a:nth-child(4) { animation-delay: 0.16s; }
.mobile-menu a:nth-child(5) { animation-delay: 0.2s; }
.mobile-menu a:nth-child(6) { animation-delay: 0.24s; }

.mobile-menu a.is-active::after {
  bottom: 8px;
}

.mobile-resume {
  margin-top: 6px;
  border-radius: 999px;
  background: var(--pill-dark) !important;
  color: #fff !important;
  opacity: 1 !important;
  padding: 14px 8px !important;
}

.mobile-menu[hidden],
.mobile-overlay[hidden] {
  display: none !important;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.trust-avatars {
  display: flex;
  align-items: center;
}

.trust-avatar {
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  position: relative;
  transition: transform 0.35s var(--ease);
}

.trust-avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.trust-avatar i {
  position: relative;
  z-index: 1;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-avatar.a1 { z-index: 1; }
.trust-avatar.a2,
.trust-avatar.a3 {
  margin-left: calc(var(--trust-size) * -0.42);
}

.trust-avatar.a2 { z-index: 2; }
.trust-avatar.a3 { z-index: 4; }

.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-2px); }

.trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 14px 0 calc(var(--trust-size) * 0.58);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
}

.headline-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.subhead {
  max-width: min(500px, 92%);
  margin: clamp(14px, 2vh, 22px) auto 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
  font-weight: 400;
  color: #d0d0d0;
  opacity: 0.8;
}

.cta {
  margin-top: clamp(18px, 2.6vh, 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
  animation-name: revealPulse;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 28px rgba(255, 255, 255, 0.42),
    0 0 56px rgba(255, 255, 255, 0.18);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 920px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.stat {
  text-align: center;
}

.stat-icon {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-sans);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.stat-label {
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
  margin-top: 4px;
}

/* Content sections */
.content {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) clamp(18px, 4vw, 32px);
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.02em;
}

.section h4 {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #c8c8c8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section p,
.section li {
  color: #d0d0d0;
  line-height: 1.65;
  font-size: clamp(15px, 1.5vw, 16.5px);
}

.section p {
  margin: 0 0 14px;
}

.lead {
  font-size: clamp(16px, 1.8vw, 18px) !important;
  color: #e8e8e8 !important;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
}

.chips li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px !important;
  color: #cfcfcf !important;
}

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

.skill-grid article h3 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.skill-grid article p {
  margin: 0;
  color: #bdbdbd;
}

.job-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.job-head time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.job ul,
.project ul {
  margin: 0;
  padding-left: 1.15rem;
}

.job li,
.project li {
  margin-bottom: 8px;
}

.project-list {
  display: grid;
  gap: 28px;
}

.project .tech {
  color: #c4c2c3;
}

.contact-section {
  text-align: center;
  padding-bottom: 72px;
}

.cta-line {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: #fff !important;
  letter-spacing: -0.03em;
  margin: 8px 0 28px !important;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}

.contact-links a:hover {
  transform: translateY(-2px);
}

.copyright {
  margin-top: 36px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

/* Animations */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav-pill,
  .sign-in {
    display: none;
  }

  .header {
    justify-content: space-between;
    max-width: none;
  }

  .logo-btn {
    width: 48px;
    height: 48px;
  }

  .burger {
    display: inline-block;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px;
  }

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

  .trust-pill {
    font-size: 12px;
    max-width: min(240px, 58vw);
    white-space: normal;
    line-height: 1.25;
    height: auto;
    min-height: var(--trust-size);
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
    font-size: clamp(24px, 8.4vw, 34px);
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: 12px;
  }

  .subhead {
    margin-top: 10px;
  }

  .cta {
    margin-top: 14px;
  }
}

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

  .anim,
  .headline-line,
  .header,
  .cta,
  .mobile-overlay,
  .mobile-menu,
  .mobile-menu a {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .headline {
    color: #fff;
  }
}
