:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: #0b0b0b;
  --border: rgba(255,255,255,0.12);
  --text: #f5f5f2;
  --muted: #b1b1aa;
  --accent: #ffffff;
  --accent-strong: #ffffff;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-brand {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-family: 'Manrope', sans-serif;
}

.hero {
  display: block;
  padding: 88px 0 64px;
}

.eyebrow, .section-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0;
}

.hero-name,
.section-head h2,
.project-page h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

.hero-name {
  font-size: clamp(5.8rem, 15vw, 10.6rem);
  line-height: 0.82;
}

.tagline {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  color: var(--muted);
  max-width: 760px;
  margin: 44px 0 0;
  font-weight: 500;
}

.reveal-slide {
  animation: revealSlide 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes revealSlide {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-facts .availability-pill {
  color: #35c759;
  border-color: rgba(53, 199, 89, 0.22);
}

.skills-ribbon {
  width: 100vw;
  margin: 0 calc(50% - 50vw) 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}

.skills-marquee {
  overflow: hidden;
}

.skills-track {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-width: max-content;
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Instrument Serif', serif;
  font-weight: 700;
  will-change: transform;
}

.skills-group {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  flex-shrink: 0;
}


.intro, .focus-copy, .contact-block p, .project-page-content, .about-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.intro {
  max-width: 760px;
  margin-top: 24px;
}

.hero-links, .contact-links, .meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-links {
  margin-top: 34px;
}

.button {
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.button-secondary {
  color: var(--text);
  background: transparent;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
}

.section {
  padding: 42px 0;
}

.section-narrow {
  max-width: 780px;
}

.about-section {
  max-width: none;
}

.about-section .section-head {
  max-width: none;
  padding-bottom: 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  max-width: 980px;
  text-wrap: balance;
}

.section-head-projects {
  padding-bottom: 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-head-projects h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 980px;
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.project-card {
  border-radius: 28px;
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.project-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(220px, 320px);
  align-items: stretch;
  gap: 24px;
}

.project-card-left {
  min-width: 0;
  padding-right: 8px;
}

.project-card-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-left: 8px;
}

.project-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.28);
}

.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-number,
.project-status {
  color: rgba(245, 245, 242, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: center;
}

.project-status {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
}

.project-status-wip {
  color: rgba(255, 179, 71, 0.72);
  border-color: rgba(255, 179, 71, 0.28);
}

.project-summary {
  font-size: 1.05rem;
  margin: 12px 0 18px;
  max-width: 540px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-stack span {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(420px, 1fr);
  gap: 88px;
  align-items: start;
}

.about-copy,
.contact-block > p,
.contact-links {
  max-width: 720px;
}

.about-copy p {
  margin: 0 0 18px;
}

.timeline-group {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.timeline-section + .timeline-section {
  margin-top: 42px;
}

.timeline-list {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.timeline-main h3 {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.timeline-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.timeline-date {
  color: rgba(245, 245, 242, 0.72);
  font-size: 0.88rem;
  white-space: nowrap;
  text-align: right;
}

.contact-block {
  padding-bottom: 20px;
}

.site-footer {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 0 0 32px;
}

.site-footer p {
  margin: 0;
  color: rgba(177, 177, 170, 0.72);
  font-size: 0.82rem;
}

.project-page {
  max-width: 820px;
  padding: 64px 0 80px;
}

.project-page h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 12px;
}

.contact-block .section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.project-page-status {
  color: var(--accent-strong);
  margin: 0 0 28px;
}

.back-link {
  margin-bottom: 24px;
  color: var(--muted);
}

.project-page-content p {
  margin: 0 0 18px;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  main, .site-header {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    padding-top: 40px;
    gap: 28px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-name {
    font-size: 5rem;
  }

  .tagline {
    margin-top: 28px;
  }

  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .project-card {
    border-radius: 22px;
    padding: 20px;
  }

  .project-card-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card-left,
  .project-card-right {
    padding: 0;
  }

  .project-divider {
    display: none;
  }

  .project-card-right {
    justify-content: flex-start;
  }

  .project-name {
    text-align: left;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-date {
    white-space: normal;
  }
}
