:root {
  color-scheme: light;
  --ink: #21352d;
  --muted: #63766d;
  --paper: #f4f0e6;
  --surface: #fffaf0;
  --mist: #e7f0ea;
  --line: #d5dfd4;
  --moss: #6f8d5e;
  --water: #6d9aa3;
  --sun: #d8ad63;
  --shadow: 0 16px 40px rgba(48, 72, 58, 0.09);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #ffffff;
}

.brand,
.nav,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.nav {
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero {
  position: relative;
  min-height: 66vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(37, 62, 46, 0.62) 0%, rgba(37, 62, 46, 0.36) 38%, rgba(37, 62, 46, 0.06) 76%),
    linear-gradient(0deg, rgba(33, 53, 45, 0.34) 0%, rgba(33, 53, 45, 0.02) 48%);
}

.hero-content {
  width: min(860px, calc(100% - 40px));
  margin: 0 0 clamp(44px, 8vh, 86px) clamp(20px, 7vw, 96px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 18ch;
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 3.1vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 750;
}

.about p,
.contact p {
  color: var(--muted);
}

.section {
  padding: clamp(54px, 7vw, 96px) clamp(20px, 6vw, 84px);
}

.section-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.section-inner > p,
.mission h2 {
  max-width: 660px;
  font-size: 1.06rem;
}

.projects {
  background: var(--mist);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-list article {
  min-height: 148px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.project-list h3 {
  color: var(--moss);
}

.mission {
  background: var(--surface);
}

.contact {
  background: #263f34;
  color: #ffffff;
}

.contact p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.contact-links a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 800;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 84px);
  background: #101614;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 58vh;
  }

  .hero-content {
    margin-right: 20px;
  }

  .project-list,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-links {
    justify-content: flex-start;
  }

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

@media (max-width: 540px) {
  .site-header {
    gap: 14px;
    flex-direction: column;
  }

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

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  h1 {
    font-size: 2.4rem;
  }
}
