:root {
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --text: #e8eef8;
  --muted: #9aa8bd;
  --line: rgba(232, 238, 248, 0.12);
  --brand: #3dd6e0;
  --brand-soft: rgba(61, 214, 224, 0.14);
  --accent: #ff8a3d;
  --max: 68rem;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(61, 214, 224, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 138, 61, 0.12), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #0e1626 45%, #101a2c 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-items: end;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto auto;
  width: min(52vw, 34rem);
  height: min(70vh, 34rem);
  border-radius: 2rem 0 0 2rem;
  background:
    linear-gradient(145deg, rgba(11, 18, 32, 0.15), rgba(11, 18, 32, 0.75)),
    url("/images/og/home.jpg") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
  animation: rise 1.1s ease-out both;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  animation: rise 0.8s ease-out both;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #062025;
}

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

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.9s ease-out both;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.project-list {
  display: grid;
  gap: 1.25rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(18, 26, 43, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project:hover {
  border-color: rgba(61, 214, 224, 0.45);
  transform: translateY(-2px);
}

.project img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.9rem;
}

.project h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.project p {
  margin: 0;
  color: var(--muted);
}

.meta {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.social {
  display: flex;
  gap: 1rem;
}

.social a:hover {
  color: var(--brand);
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.prose {
  max-width: 46rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
}

.job {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.job:last-child {
  border-bottom: 0;
}

.job h3 {
  margin: 0;
  font-size: 1.15rem;
}

.job .role {
  color: var(--brand);
  margin: 0.25rem 0 0.75rem;
  font-size: 0.95rem;
}

.cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
}

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

@media (max-width: 860px) {
  .hero::before {
    position: relative;
    inset: auto;
    width: 100%;
    height: 14rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    order: -1;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-top: 2rem;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 0.85rem;
    font-size: 0.88rem;
  }
}
