:root {
  --bg: #f6efe3;
  --surface: rgba(255, 250, 242, 0.82);
  --surface-strong: #fffaf2;
  --text: #1c160f;
  --muted: #6b5f52;
  --accent: #bf5a36;
  --accent-soft: #f1c9a6;
  --line: rgba(28, 22, 15, 0.12);
  --shadow: 0 24px 60px rgba(73, 48, 25, 0.14);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 90, 54, 0.24), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(237, 187, 133, 0.35), transparent 24%),
    linear-gradient(180deg, #f4ebde 0%, #f8f4ec 38%, #ede3d2 100%);
}

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

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-top: 1rem;
  backdrop-filter: blur(18px);
}

.nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #db9465 100%);
  color: #fff9f0;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--text);
  background: rgba(191, 90, 54, 0.12);
}

.hero,
.content-card,
.feature-card,
.project-card,
.timeline-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  margin-top: 1.5rem;
  border-radius: 2rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0;
}

.hero-copy,
.hero-panel {
  padding: 3rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

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

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  line-height: 1.7;
  color: var(--muted);
}

.lead {
  max-width: 44rem;
  font-size: 1.08rem;
}

.hero-actions,
.pill-row,
.contact-list,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.button {
  background: var(--text);
  color: #fffaf2;
}

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

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

.hero-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, rgba(191, 90, 54, 0.12), rgba(241, 201, 166, 0.52));
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.stat-grid,
.card-grid,
.project-grid,
.contact-grid,
.timeline-grid {
  display: grid;
  gap: 1.25rem;
}

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

.stat {
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid rgba(28, 22, 15, 0.08);
}

.stat-value {
  font-size: 2rem;
  color: var(--text);
}

.section {
  margin-top: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.feature-card,
.project-card,
.timeline-card,
.contact-card,
.content-card {
  border-radius: 1.75rem;
  padding: 1.5rem;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(191, 90, 54, 0.85), rgba(241, 201, 166, 0.72)),
    #c8744d;
  position: relative;
  overflow: hidden;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 14% 12%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(191, 90, 54, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
}

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

.timeline-card strong,
.contact-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

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

.contact-card form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(28, 22, 15, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0 0;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 900px) {
  .nav-card,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .contact-grid,
  .project-grid,
  .timeline-grid,
  .card-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-copy,
  .hero-panel {
    padding: 2rem;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .button-secondary,
  .nav-link {
    transition: none;
  }
}
