:root {
  color-scheme: light;
  --ink: #15181d;
  --muted: #65707d;
  --line: #d8dde4;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --brand: #176b87;
  --brand-dark: #0f4d64;
  --accent: #b8563f;
  --green: #526f56;
  --shadow: 0 18px 50px rgba(18, 24, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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 {
  align-items: center;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.site-nav a,
.text-link {
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--ink);
  background: #eef1f3;
}

main {
  overflow: hidden;
}

.hero-section,
.content-section {
  margin: 0 auto;
  max-width: 1160px;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 4rem);
}

.hero-section {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  min-height: calc(100vh - 70px);
}

.hero-copy {
  max-width: 680px;
}

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

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

h1 {
  font-size: clamp(3.6rem, 10vw, 7.2rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.lead {
  color: #3e4650;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 620px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 0.68rem 0.95rem;
  text-decoration: none;
}

.button:hover {
  border-color: #abb4bf;
}

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

.button.primary:hover {
  background: var(--brand-dark);
}

.hero-photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-grid,
.contact-section {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
}

.section-copy {
  color: #3e4650;
  font-size: 1.08rem;
}

.section-copy p {
  max-width: 720px;
}

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

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

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(18, 24, 31, 0.06);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.project-card header {
  display: grid;
  gap: 0.45rem;
}

.project-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  background: #eef4f5;
  border: 1px solid #d3e2e6;
  border-radius: 999px;
  color: #28505d;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
}

.expand-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.expand-button:hover {
  background: #f2f6f7;
}

.project-details {
  border-top: 1px solid var(--line);
  color: #3f4852;
  display: none;
  font-size: 0.94rem;
  padding-top: 0.75rem;
}

.project-card.is-open .project-details {
  display: block;
}

.photo-section {
  border-top: 1px solid var(--line);
}

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

.photo-card {
  background: #e9ece7;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.photo-card img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-card figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0.65rem 0.7rem;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 4rem);
}

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

  .hero-section {
    min-height: auto;
    padding-top: 3rem;
  }

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

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

  .site-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 3.6rem;
  }

  .project-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
