:root {
  --bg: #edf1ea;
  --paper: rgba(249, 250, 246, 0.84);
  --panel: rgba(255, 255, 255, 0.58);
  --ink: #1f2b25;
  --muted: #5f6c64;
  --accent: #9fb3a5;
  --accent-strong: #6f8778;
  --line: rgba(31, 43, 37, 0.12);
  --shadow: 0 22px 48px rgba(31, 43, 37, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(159, 179, 165, 0.25), transparent 24rem),
    radial-gradient(circle at top right, rgba(222, 229, 220, 0.9), transparent 26rem),
    linear-gradient(180deg, #f8faf7 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 43, 37, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 43, 37, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
}

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

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

.brand,
.nav a,
.button,
.contact-link {
  text-decoration: none;
}

.brand {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.status-bar p,
.status-bar a {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  text-decoration: none;
}

.reveal-ready .hero,
.reveal-ready .grid-section,
.reveal-ready .contact-section {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-ready .hero.is-visible,
.reveal-ready .grid-section.is-visible,
.reveal-ready .contact-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  padding: 1.5rem 0 3rem;
}

.hero-copy,
.hero-meta,
.stat-card,
.work-row,
.contact-section {
  backdrop-filter: blur(16px);
  background: transparent;
}

.hero-copy {
  margin-bottom: 1.2rem;
}

.eyebrow,
.work-index {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin-bottom: 1.25rem;
  max-width: 12ch;
}

h1 span,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

h1 span {
  display: block;
  font-style: normal;
  color: var(--accent-strong);
}

.lede {
  max-width: 48rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #f7faf5;
  background: var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.grid-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.about-copy p {
  max-width: 46rem;
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.85;
}

.stat-grid {
  display: grid;
  gap: 0.8rem;
}

.stat-card,
.work-row,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1rem 1.1rem;
}

.stat-value {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.stat-label {
  margin: 0;
  color: var(--muted);
}

.work-list {
  display: grid;
  gap: 0.9rem;
}

.work-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 120px;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
}

.work-row h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.work-row p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.work-index {
  margin: 0;
  padding-top: 0.15rem;
}

.work-tag {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  text-align: right;
}

.contact-section {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.contact-copy {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 1rem 0 1.5rem;
}

.contact-link {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .about-layout,
  .work-row {
    grid-template-columns: 1fr;
  }

  .status-bar {
    border-radius: 1.25rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .work-tag {
    text-align: left;
  }
}

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

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }
}

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

  .reveal-ready .hero,
  .reveal-ready .grid-section,
  .reveal-ready .contact-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
