@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/static/fonts/space-grotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-grotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/space-grotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/space-grotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/syne.woff2') format('woff2');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/syne.woff2') format('woff2');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/syne.woff2') format('woff2');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/syne.woff2') format('woff2');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/syne.woff2') format('woff2');
}

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

:root {
  --bg: #000012;
  --text: #ffffff;
  --muted: #a3a3a3;
  --accent: #6c5dd3;
  --accent-hover: #5b4db8;
  --card-bg: #21202e;
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(108, 93, 211, 0.5);
  --badge-bg: #21202e;
  --badge-border: rgba(255, 255, 255, 0.05);
  --label: #a3a3a3;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  display: block;
}

main > *:not(.hero) {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding: 6rem 1.5rem 0;
}

@media (min-width: 768px) {
  main > *:not(.hero) {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

a {
  color: var(--text);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

h2 {
  font-style: italic;
}

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

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

#site-header.scrolled {
  background: rgba(0, 0, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  width: 100%;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 1.25rem 3rem;
    gap: 2rem;
  }
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

#site-nav {
  display: none;
}

#site-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  gap: 1rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(0, 0, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

#site-nav a {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

#site-nav a:hover {
  color: var(--text);
}

#nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

#nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

#nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 768px) {
  #site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    white-space: nowrap;
  }

  #nav-toggle {
    display: none;
  }
}

.nav-divider {
  display: none;
  align-self: center;
  height: 2.5rem;
  border-left: 1px solid #252437;
  padding-left: 1rem;
  margin: 0 0 0 1rem;
}

@media (min-width: 768px) {
  .nav-divider {
    display: block;
  }
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

.cta-btn {
  background: #0B0925;
  border: 0.75px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  white-space: nowrap;
  margin-top: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(108, 93, 211, 0.7);
}

.btn-primary .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8rem;
  padding-bottom: 5rem;
  animation: fadeInUp 0.8s ease both;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
  }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  top: -300px;
  left: -300px;
  width: 600px;
  height: 600px;
  background: rgba(205, 52, 53, 0.4);
  filter: blur(100px);
}

.hero-glow-2 {
  top: -225px;
  left: -225px;
  width: 450px;
  height: 450px;
  background: rgba(255, 110, 100, 0.3);
  filter: blur(90px);
}

.hero-glow-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: rgba(108, 93, 211, 0.2);
  filter: blur(120px);
}

@media (max-width: 767px) {
  .hero-glow-1 {
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }

  .hero-glow-2 {
    top: -110px;
    left: -110px;
    width: 220px;
    height: 220px;
    filter: blur(55px);
  }

  .hero-glow-3 {
    width: 380px;
    height: 380px;
    filter: blur(70px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .hero-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.hero h1 {
  position: relative;
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 790;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3.75rem; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 6rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 7.5rem; }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 8rem; }
}

.hero h1 .line-break {
  display: none;
}

@media (min-width: 768px) {
  .hero h1 .line-break {
    display: block;
  }
}

.hero .tagline {
  font-family: 'Syne', sans-serif;
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0;
}

@media (min-width: 768px) {
  .hero .tagline {
    font-size: 1.875rem;
  }
}

.text-primary {
  color: var(--accent);
}

.content {
  padding: 4rem 0 6rem;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin: 2.5rem 0 1.5rem;
}

@media (min-width: 768px) {
  .section-label {
    font-size: 3rem;
  }
}

.section-label::before {
  content: '//';
  color: rgba(108, 93, 211, 0.7);
  margin-right: 0.5rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 5rem;
  height: 0.25rem;
  background: var(--accent);
  border-radius: 999px;
  margin-top: 1rem;
}

.section-label:first-child {
  margin-top: 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .card {
    padding: 2rem;
  }
}

.card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .card h3 {
    font-size: 1.5rem;
  }
}

.card h3:not(:first-child) {
  margin-top: 1.5rem;
}

.card .date {
  font-size: 0.85rem;
  color: var(--label);
  margin: 0 0 0.5rem;
}

.resume-title {
  font-size: 1.875rem;
  font-weight: 500;
  font-style: normal;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .resume-title {
    font-size: 3rem;
  }
}

.resume-subtitle {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.card p {
  color: var(--muted);
  line-height: 1.625;
  margin: 0 0 0.75rem;
}

.about-card p {
  font-size: 1.125rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-meta h3 {
  margin: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.status-dot.progress {
  background: var(--accent);
}

.status-dot.done {
  background: oklch(72.3% 0.219 149.579);
}

.date-pill {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(163, 163, 163, 0.6);
  background: rgba(33, 32, 46, 0.5);
  border: 1px solid rgba(163, 163, 163, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.experience-band {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 5rem calc(50vw - 50%);
  background: rgba(33, 32, 46, 0.3);
}

.timeline {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 19px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 39px;
  }
}

.timeline-entry {
  position: relative;
  padding-left: 3rem;
}

.currently-timeline .timeline-entry {
  margin-bottom: 2.5rem;
}

.currently-timeline .timeline-entry:last-child {
  margin-bottom: 0;
}

.experience-band .timeline-entry {
  margin-bottom: 2.5rem;
}

.experience-band .timeline-entry:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .timeline-entry {
    padding-left: 6rem;
  }
}

.timeline-entry::before {
  content: '';
  position: absolute;
  top: 0.375rem;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 10px rgba(108, 93, 211, 0.5);
  z-index: 10;
}

@media (min-width: 768px) {
  .timeline-entry::before {
    left: 2rem;
  }
}

.timeline-entry .date-pill {
  padding: 0.375rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-grid .card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.project-grid .card p {
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--card-border);
}

@media (min-width: 768px) {
  .card-footer {
    margin: 1.5rem -2rem -2rem;
    padding: 1rem 2rem;
  }
}

.view-source {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(33, 32, 46, 0.5);
  border: 1px solid rgba(163, 163, 163, 0.1);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(108, 93, 211, 0.4);
}

.elsewhere {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.elsewhere a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.elsewhere a:hover {
  color: var(--accent);
}

ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

li {
  margin-bottom: 0.4rem;
}

code {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9em;
  color: var(--text);
}

pre {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  border: none;
  padding: 0;
  background: none;
}

blockquote {
  border-left: 2px solid var(--card-border);
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

hr {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 2rem 0;
}

img {
  max-width: 100%;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 8px;
}
