:root {
  --bg: #f3efe6;
  --bg-strong: #ebe4d6;
  --surface: #fffaf2;
  --text: #1f2c2c;
  --muted: #566363;
  --accent: #c5532d;
  --accent-strong: #9e3f1f;
  --accent-soft: rgba(197, 83, 45, 0.16);
  --teal: #0f6f68;
  --line: #dacfbf;
  --shadow: 0 14px 35px rgba(26, 40, 39, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 18%, #f7f1e6 0%, transparent 45%),
    radial-gradient(circle at 82% 7%, #e8ebdf 0%, transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  position: relative;
  overflow-x: hidden;
}

.shape {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
}

.shape-a {
  width: 310px;
  height: 310px;
  background: rgba(15, 111, 104, 0.2);
  top: -90px;
  left: -70px;
  animation: drift 12s ease-in-out infinite alternate;
}

.shape-b {
  width: 220px;
  height: 220px;
  background: rgba(197, 83, 45, 0.18);
  right: 7%;
  top: 30%;
  animation: drift 9s ease-in-out infinite alternate-reverse;
}

.shape-c {
  width: 250px;
  height: 250px;
  background: rgba(247, 214, 144, 0.3);
  left: 65%;
  bottom: -80px;
  animation: drift 14s ease-in-out infinite alternate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1080px, 92vw);
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, white 12%);
  backdrop-filter: blur(6px);
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--accent-strong);
}

.section {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 7.5rem 0 5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 1rem 0 0;
  font-family: "Fraunces", serif;
  line-height: 1.05;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  max-width: 11ch;
}

.hero-copy {
  margin: 1.2rem 0 0;
  max-width: 48ch;
  color: var(--muted);
  min-height: 2.2rem;
}

.caret {
  color: var(--accent);
  font-weight: 700;
  animation: blink 1s step-end infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.primary {
  background: linear-gradient(130deg, var(--accent) 0%, #df7a36 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(197, 83, 45, 0.25);
}

.ghost {
  border-color: var(--line);
  color: var(--teal);
  background: rgba(255, 250, 242, 0.85);
}

.ghost:hover {
  border-color: var(--teal);
}

.metrics {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metrics li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--muted);
}

.metrics strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.about,
.projects,
.contact {
  padding: 3.2rem 0;
}

.about h2,
.projects h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-family: "Fraunces", serif;
}

.about p,
.contact p,
.section-head p {
  color: var(--muted);
  max-width: 62ch;
}

.chips {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #fff7ea;
  border: 1px solid var(--line);
  color: #4a5555;
  font-size: 0.92rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.section-head p {
  margin: 0;
}

.projects-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transform: translateY(14px);
  opacity: 0;
  animation: card-up 0.6s ease forwards;
}

.project-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, white 88%);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

.project-links a {
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 700;
}

.contact {
  margin-bottom: 3rem;
}

.contact-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  width: min(1080px, 92vw);
  margin: 0 auto 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

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

@keyframes card-up {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(14px, -18px, 0);
  }
}

@media (max-width: 900px) {
  .metrics {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    position: static;
    border-radius: 14px;
  }

  .main-nav {
    gap: 0.8rem;
  }

  .main-nav a {
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero h1 {
    max-width: 100%;
  }
}
