:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #eef2ed;
  --text: #1f2624;
  --muted: #66736d;
  --line: #d9e0db;
  --accent: #11675f;
  --accent-strong: #0b4f49;
  --accent-soft: #dcefeb;
  --gold: #b8842f;
  --shadow: 0 18px 45px rgba(31, 38, 36, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid rgba(217, 224, 219, 0.85);
  background: rgba(247, 248, 245, 0.9);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.contact-footer address {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.main-nav {
  gap: 8px;
}

.main-nav a,
.back-link {
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

main {
  display: grid;
  gap: 30px;
  padding: clamp(24px, 5vw, 56px);
}

.intro {
  display: grid;
  min-height: min(52vh, 560px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.intro-copy,
.project-page-header,
.project-body {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.intro-copy p:not(.eyebrow),
.project-page-header p,
.project-body p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  margin-bottom: 22px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(31, 38, 36, 0.16);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-muted);
}

.project-card span {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.project-card strong {
  font-size: 1.08rem;
}

.project-card small {
  color: var(--muted);
  font-size: 0.94rem;
}

.project-page-header {
  display: grid;
  gap: 14px;
  min-height: min(42vh, 460px);
  align-content: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.project-body {
  display: grid;
  gap: 26px;
}

.text-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-muted);
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.contact-footer address {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-style: normal;
}

.contact-footer a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.contact-footer a:hover,
.contact-footer a:focus-visible {
  background: var(--accent-soft);
}

@media (max-width: 760px) {
  .site-header,
  .contact-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .intro {
    min-height: auto;
    padding: 28px 0;
  }

  .contact-footer address {
    justify-content: flex-start;
  }
}
