:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #111827;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.16);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.85);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --space: 1.5rem;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, #1d283a 0, #020617 40%, #000 100%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.16), transparent 55%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(24px);
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.5),
      transparent
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.branding h1 {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
  margin: 0;
}

.branding .subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  position: relative;
  padding-block: 0.25rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #2dd4bf);
  transition: width 0.22s ease-out;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h2 {
  font-size: clamp(2.35rem, 3.2vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

.hero-text p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.02rem;
}

.hero-photo {
  justify-self: end;
}

.headshot-frame {
  width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  padding: 4px;
  background: radial-gradient(circle at 0 0, #22c55e, #0f172a);
  box-shadow: var(--shadow-soft);
}

.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  filter: saturate(1.05);
}

.photo-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.section {
  padding: 2.5rem 0 3rem;
}

.section-alt {
  background:
    radial-gradient(circle at top right, #1f2937 0, #020617 60%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.12), transparent 55%);
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
}

.bio-text {
  max-width: 44rem;
  line-height: 1.7;
  color: #d1d5db;
  font-size: 1.02rem;
}

.edit-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.project-card {
  margin-top: 1.5rem;
  padding: 1.8rem 1.6rem 1.8rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #111827, #020617 65%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 5% 0%, rgba(56, 189, 248, 0.07), transparent 50%),
    radial-gradient(circle at 100% 20%, rgba(34, 197, 94, 0.11), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.project-tagline {
  margin: 0.35rem 0 0;
  color: #cbd5f5;
  font-size: 0.98rem;
}

.project-layout {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.4rem;
}

.project-description h4,
.project-media h4 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.project-description p {
  margin: 0 0 1rem;
  color: #e5e7eb;
  font-size: 0.98rem;
  line-height: 1.7;
}

.project-specs ul,
.project-skills ul {
  margin: 0.4rem 0 0.9rem 1.1rem;
  padding: 0;
  color: #d1d5db;
  font-size: 0.95rem;
}

.project-specs li,
.project-skills li {
  margin-bottom: 0.3rem;
}

.project-media {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.6));
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.1rem;
}

.project-figure {
  margin: 0 0 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.project-figure img {
  width: 100%;
  height: auto;
}

.project-figure figcaption {
  padding: 0.55rem 0.7rem 0.6rem;
  font-size: 0.86rem;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border-top: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
}

.project-figure figcaption:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.photo-instructions {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.contact-item {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, #020617, #020617);
}

.contact-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.7);
  padding: 1.3rem 0 1.6rem;
  background: radial-gradient(circle at bottom, #020617, #000);
  margin-top: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 880px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 3.3rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-photo {
    justify-self: flex-start;
  }

  .project-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .project-card {
    padding-inline: 1.1rem;
  }

  .headshot-frame {
    width: 200px;
  }

  .section {
    padding-inline: 0.2rem;
  }
}

