:root {
  --navy: #0f172a;
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --accent: #d8b25e;
  --panel: rgba(15, 23, 42, 0.58);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--navy);
}

.slideshow {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 1.2s ease,
    transform 8s ease-in-out;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
}

.hero-content {
  width: min(760px, 100%);
  text-align: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: var(--panel);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: rgba(216, 178, 94, 0.18);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.project-note {
  margin: 18px 0 0;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .hero {
    padding: 28px 16px;
  }

  .project-links {
    flex-direction: column;
    align-items: stretch;
  }

  .project-link {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: opacity 200ms ease;
  }

  .slide.is-active {
    transform: none;
  }

  .project-link {
    transition: none;
  }
}
