:root {
  --bg: #050712;
  --bg-deep: #020308;
  --panel: #0b1020;
  --panel-soft: rgba(15, 21, 42, 0.72);
  --text: #fff8ef;
  --muted: #b9b4c6;
  --muted-soft: #888398;
  --line: rgba(255, 248, 239, 0.13);
  --line-strong: rgba(255, 248, 239, 0.22);
  --green: #9ee85f;
  --green-bright: #b8ff66;
  --teal: #18c6c9;
  --teal-soft: #64f4e1;
  --purple: #8a62ff;
  --pink: #db83d6;
  --peach: #ffb389;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(138, 98, 255, 0.14), transparent 22rem),
    radial-gradient(circle at 22% 0%, rgba(255, 179, 137, 0.08), transparent 20rem),
    radial-gradient(circle at 50% 55%, rgba(24, 198, 201, 0.08), transparent 30rem),
    linear-gradient(140deg, #020308 0%, #080b17 46%, #04050c 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal-soft); }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 99;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg-deep);
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 3, 8, 0.76);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: 1.25rem;
}
.brand small {
  margin-left: 2px;
  color: var(--peach);
  font-size: 0.58em;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 16px rgba(138, 98, 255, 0.28));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.96rem;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  padding: 84px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 62px;
  align-items: center;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
}
h1 span { color: var(--green); }
.lede {
  max-width: 560px;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.45vw, 1.27rem);
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
}
.hero-features div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 152px;
}
.hero-features div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.hero-features svg, .contact-button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.hero-features span {
  font-size: 0.94rem;
  line-height: 1.15;
}
.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.hero-logo {
  width: min(295px, 58vw);
  border-radius: 56px;
  filter: drop-shadow(0 42px 70px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 42px rgba(138, 98, 255, 0.25));
}
.loop-orbit {
  position: absolute;
  width: 480px;
  max-width: 92%;
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(255, 248, 239, 0.12);
  border-radius: 50%;
}
.orbit-one { transform: rotate(-12deg); }
.orbit-two { transform: rotate(16deg); border-color: rgba(219, 131, 214, 0.18); }
.loop-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 24px currentColor;
}
.dot-one { top: 17%; left: 20%; background: var(--purple); color: var(--purple); }
.dot-two { right: 11%; top: 50%; background: var(--green); color: var(--green); }
.dot-three { bottom: 20%; left: 26%; background: var(--teal); color: var(--teal); }

.projects {
  padding: 24px 0 60px;
}
.section-heading {
  margin-bottom: 18px;
  border-top: 1px solid rgba(255, 248, 239, 0.09);
  padding-top: 26px;
}
.section-heading h2, .contact h2 {
  display: inline-block;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
.section-heading h2::after, .contact h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--green);
}
.project-card {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  border: 1px solid rgba(255, 248, 239, 0.12);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), rgba(8, 12, 26, 0.82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.project-media {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 34px 34px 32px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 46% 45%, rgba(158, 232, 95, 0.08), transparent 18rem),
    radial-gradient(circle at 70% 70%, rgba(24, 198, 201, 0.11), transparent 14rem);
}
.project-media::before {
  content: "";
  position: absolute;
  width: 280px;
  max-width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 248, 239, 0.08);
  border-radius: 50%;
}
.graspit-icon {
  position: relative;
  z-index: 1;
  width: min(330px, 82%);
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.42));
}
.graspit-wordmark, .project-copy h3 {
  margin: 4px 0 0;
  font-size: clamp(2.65rem, 5.2vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 950;
}
.graspit-wordmark { position: relative; z-index: 1; font-size: clamp(2.3rem, 4.8vw, 4rem); }
.graspit-wordmark span, .project-copy h3 span { color: #5ad330; }
.graspit-wordmark strong, .project-copy h3 strong { color: var(--teal); font-weight: 950; }
.project-copy {
  padding: clamp(34px, 5vw, 56px);
}
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 0 13px;
  margin-bottom: 22px;
  border: 1px solid rgba(24, 198, 201, 0.55);
  border-radius: 9px;
  color: var(--teal-soft);
  background: rgba(24, 198, 201, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-copy h3 { margin-bottom: 24px; }
.project-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.02rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}
.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 239, 0.12);
  border-radius: 999px;
  color: #d8d3e5;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.88rem;
}

.contact {
  padding: 24px 0 34px;
}
.contact-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
}
.contact p {
  margin: 16px 0 0;
  color: var(--muted);
}
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(24, 198, 201, 0.58);
  border-radius: 10px;
  color: var(--teal-soft);
  background: rgba(24, 198, 201, 0.055);
  font-weight: 750;
}
.contact-button svg { width: 24px; height: 24px; stroke: var(--teal-soft); }

.footer {
  margin-top: 28px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 248, 239, 0.14);
  background: rgba(2, 3, 8, 0.58);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr 1fr 1.1fr;
  gap: 26px;
  align-items: start;
}
.footer-grid > div + div {
  border-left: 1px solid rgba(255, 248, 239, 0.15);
  padding-left: 26px;
}
.footer h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}
.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}
.footer a { color: inherit; }
.footer a:hover { color: var(--teal-soft); }

@media (max-width: 920px) {
  .hero-grid, .project-card, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 66px; }
  .hero-visual { min-height: 360px; }
  .project-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-row { align-items: flex-start; flex-direction: column; }
  .footer-grid > div + div { border-left: 0; padding-left: 0; padding-top: 18px; border-top: 1px solid rgba(255, 248, 239, 0.1); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 30px, 1180px); }
  .nav { min-height: 68px; }
  .brand span { font-size: 1.05rem; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-links { gap: 14px; font-size: 0.88rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .lede { margin-bottom: 30px; }
  .hero-features { display: grid; gap: 16px; }
  .hero-features div + div { border-left: 0; padding-left: 0; }
  .hero-visual { display: none; }
  .project-copy, .project-media { padding: 26px 20px; }
  .tags span { font-size: 0.82rem; }
}
