:root {
  --bg: #f6efe5;
  --bg-accent: #efe2d1;
  --surface: rgba(255, 250, 243, 0.74);
  --surface-strong: #fff9f1;
  --text: #1f1a17;
  --muted: #665a52;
  --line: rgba(31, 26, 23, 0.12);
  --brand: #b8502f;
  --brand-dark: #8e381d;
  --shadow: 0 18px 60px rgba(54, 35, 23, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 80, 47, 0.16), transparent 30%),
    radial-gradient(circle at right center, rgba(109, 143, 122, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #fbf7f1 100%);
}

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

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

.hero,
.section,
.contact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  padding: 1rem;
  border-radius: 32px;
  min-height: calc(100vh - 4rem);
  align-items: start;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff7ef;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.hero-copy,
.hero-card,
.section,
.contact-panel {
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 6rem 1rem 2.5rem;
  max-width: 720px;
}

.eyebrow,
.section-label,
.project-type,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand-dark);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
}

h1,
h2 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(3.6rem, 10vw, 6.8rem);
  margin-top: 0.6rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.35rem;
  margin: 0.5rem 0 0.8rem;
}

.intro,
.section-body,
.project-card p,
.hero-card li,
.contact-links {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.intro {
  max-width: 20rem;
  margin: 1.4rem 0 0;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--text);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--brand);
  color: #fff8f2;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.hero-card {
  align-self: end;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.92), rgba(239, 226, 209, 0.92));
}

.hero-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.section,
.contact-panel {
  margin-top: 1.2rem;
  padding: 2rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.section-body p:first-child {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 600ms ease, opacity 600ms ease;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.contact-links a {
  font-weight: 500;
  color: var(--brand-dark);
}

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

.simple-hero {
  grid-template-columns: 1fr;
  min-height: auto;
}

.deletion-hero {
  min-height: auto;
}

.deletion-section h2 {
  max-width: 14ch;
}

.detail-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.detail-list li + li {
  margin-top: 0.45rem;
}

.deletion-contact {
  margin-bottom: 1rem;
}

@media (max-width: 860px) {
  .hero,
  .section-grid,
  .contact-panel,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0.4rem;
  }

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

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

  .hero,
  .section,
  .contact-panel {
    padding: 1.2rem;
  }

  h1 {
    line-height: 1;
  }

  .nav-links,
  .hero-actions,
  .contact-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
