:root {
  color-scheme: dark;
  --bg: #08090e;
  --bg-elevated: #0f1118;
  --bg-muted: #0e1016;
  --bg-card: #13151d;
  --fg: #efeff5;
  --fg-muted: #9b9ba8;
  --fg-faint: #71717f;
  --accent: #d2eb7a;
  --accent-muted: color-mix(in srgb, var(--accent) 72%, white 28%);
  --accent-dim: rgba(210, 235, 122, 0.11);
  --accent-line: rgba(210, 235, 122, 0.42);
  --border: #262833;
  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.045) inset, 0 18px 48px rgba(0, 0, 0, 0.38);
  --shadow-float: 0 22px 56px rgba(0, 0, 0, 0.45);
  --radius: 17px;
  --radius-sm: 11px;
  --radius-pill: 999px;
  --space-section: clamp(3.5rem, 8.5vw, 5.25rem);
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font);
  font-size: 16px;
}

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

::selection {
  background: var(--accent-dim);
  color: var(--fg);
}

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(210, 235, 122, 0.045), transparent 52%),
    var(--bg);
  color: var(--fg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--fg);
  color: var(--bg);
  z-index: 10;
  border-radius: 6px;
}

.wrap {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  width: min(480px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(11, 11, 13, 0.88);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.03em;
  font-size: 1.04rem;
  transition: color 0.18s ease;
}

.logo:hover {
  color: var(--accent-muted);
}

nav {
  display: flex;
  gap: 0.35rem;
}

nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  padding: 0.4rem 0.72rem;
  border-radius: var(--radius-pill);
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.055);
}

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 6rem) 0 var(--space-section);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 78% at 8% -8%, var(--accent-dim), transparent 55%),
    radial-gradient(ellipse 50% 42% at 102% 12%, rgba(38, 40, 56, 0.55), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding-left: clamp(1.1rem, 4.2vw, 1.85rem);
  border-left: none;
}

.hero-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--accent-muted),
    color-mix(in srgb, var(--accent-line) 35%, transparent)
  );
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 22%, transparent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-muted);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.7vw, 3.28rem);
  line-height: 1.06;
  margin: 0 0 1.15rem;
  font-weight: 600;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.lede {
  font-size: 1.07rem;
  font-weight: 400;
  color: var(--fg-muted);
  margin: 0 0 2rem;
  max-width: 48ch;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition:
    filter 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--accent);
  color: #0d0e13;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn.primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    0 12px 32px rgba(0, 0, 0, 0.32);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  border-color: color-mix(in srgb, var(--fg-muted) 55%, var(--border));
  background: rgba(255, 255, 255, 0.068);
}

.section {
  padding: var(--space-section) 0;
}

.section.muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 38rem;
}

.section-head h2 {
  display: inline-block;
  padding-bottom: 0.85rem;
  margin-bottom: 0;
  position: relative;
  border-bottom: none;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-muted),
    color-mix(in srgb, var(--accent-line) 35%, transparent) 72%,
    transparent
  );
  box-shadow: 0 1px 0 0 var(--border-soft);
}

.section-head--left {
  margin-bottom: 1.75rem;
}

.section-head--left h2::after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--fg-muted) 55%, var(--border)),
    transparent 78%
  );
  box-shadow: none;
}

.section-lede {
  margin: 1.1rem 0 0;
  padding-top: 0.5rem;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 400;
  border-top: 1px solid var(--border-soft);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) and (max-width: 899px) {
  .project-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1.2rem;
  }
}

@media (min-width: 900px) {
  .project-list {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.2rem 1.35rem;
    align-items: stretch;
  }

  .project-card:nth-child(1) {
    grid-column: span 7;
  }

  .project-card:nth-child(2) {
    grid-column: span 5;
  }

  .project-card:nth-child(3) {
    grid-column: span 5;
  }

  .project-card:nth-child(4) {
    grid-column: span 7;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  border-radius: var(--radius);
  padding: 1.45rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--fg-muted) 42%, var(--border));
  background: var(--bg-elevated);
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.9rem;
  margin-bottom: 0.7rem;
}

.project-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.22rem 0.52rem;
  border-radius: 5px;
}

.project-tag--soon {
  color: var(--fg-muted);
  background: rgba(152, 152, 164, 0.1);
}

.project-url {
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--fg-faint);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.project-url:hover {
  color: var(--accent);
}

.project-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.project-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.93rem;
  line-height: 1.68;
}

.about-inner {
  max-width: 52rem;
  margin-inline: 0;
}

@media (min-width: 900px) {
  .about-inner {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: start;
  }

  .about-inner .section-head--left {
    grid-column: 1;
    margin-bottom: 0;
    padding-top: 0.15rem;
  }

  .about-inner .about-grid {
    grid-column: 2;
  }
}

.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.75rem;
  }
}

.about-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
}

.about-grid p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.connect-lede {
  margin: 0.65rem 0 1.35rem;
  color: var(--fg-muted);
  font-size: 0.97rem;
  line-height: 1.68;
}

#connect h2 {
  padding-bottom: 0.85rem;
  display: inline-block;
  border-bottom: none;
  position: relative;
}

#connect h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--fg-muted) 40%, transparent),
    transparent 85%
  );
  box-shadow: 0 1px 0 0 var(--border-soft);
}

.connect-x {
  display: inline-flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  background: var(--bg-card);
  text-decoration: none;
  color: var(--fg);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.connect-x:hover {
  border-color: color-mix(in srgb, var(--fg-muted) 48%, var(--border));
  background: var(--bg-elevated);
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.connect-x-handle {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.connect-x-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
}

a {
  color: var(--accent);
  transition: color 0.15s ease;
}

#about a:hover,
p a:hover {
  color: var(--accent-muted);
}

.site-footer {
  padding: 2.25rem 0 3.25rem;
  border-top: 1px solid var(--border-soft);
  color: var(--fg-muted);
  font-size: 0.83rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.footer-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .connect-x,
  .btn,
  nav a,
  .logo {
    transition-duration: 0.01ms;
  }

  .project-card:hover,
  .connect-x:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }

  .btn.primary:hover {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  }

  .btn:active {
    transform: none;
  }
}
