:root {
  --bg: #0a0b0d;
  --bg-soft: #111318;
  --panel: rgba(20, 23, 29, 0.82);
  --panel-strong: #171b21;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --muted: #a1a7b3;
  --accent: #d7dde8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 22%),
    var(--bg);
}

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

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

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding: 1rem 0;
}

.brand,
.section-label,
.eyebrow,
.project-type {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  line-height: 1.05;
  font-weight: 800;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 10ch;
  margin-top: 0.9rem;
}

.intro {
  max-width: 36rem;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #0b0d10;
  border-color: transparent;
}

.button.secondary,
.card,
.project-card,
.contact-card,
.photo-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: min(100%, 400px);
  padding: 1rem;
  border-radius: 2rem;
  transform: rotate(2deg);
}

.photo-frame img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 1.4rem;
  filter: grayscale(0.1) contrast(1.02);
}

.section {
  padding: 2rem 0;
  margin-top: 3rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 12ch;
}

.about-grid,
.projects {
  display: grid;
  gap: 1rem;
}

.about-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.card,
.project-card,
.contact-card {
  border-radius: 1.6rem;
  padding: 1.5rem;
}

.card {
  min-height: 100%;
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--muted);
}

.stats {
  display: grid;
  gap: 1rem;
}

.stats span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.stats p,
.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card h3 {
  margin: 0.55rem 0 0.8rem;
  font-size: 1.35rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible,
  .button,
  .nav-links a {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-grid,
  .about-grid,
  .projects,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .contact-card h2 {
    max-width: none;
  }

  .contact-card {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1.2rem, 1120px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .nav-links,
  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }
}
