:root {
  --ink: #123f34;
  --ink-2: #254e43;
  --muted-ink: #5b706a;
  --paper: #f6f5f0;
  --paper-2: #ebe9e0;
  --white: #ffffff;
  --line: #d8ddd6;
  --accent: #b20d2a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(18, 63, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  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.5;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 245, 240, 0.9);
  border-bottom: 1px solid rgba(18, 63, 52, 0.11);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1200px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted-ink);
  font-size: 0.94rem;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}

.hero {
  width: min(1440px, 100%);
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  gap: 0;
  padding: 22px;
}

.hero-image {
  min-height: 620px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper-2);
}

.hero-image img,
.project-hero-media img,
.project-media img {
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 86px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 5.4vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.15;
}

.lead {
  max-width: 620px;
  color: var(--muted-ink);
  font-size: clamp(1.04rem, 1.35vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  margin-bottom: 34px;
}

.section-head.compact h2 {
  margin-bottom: 0;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.category-strip a,
.category-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-2);
}

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

.project-mosaic .project-card.is-large {
  grid-column: span 2;
}

.project-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(18, 63, 52, 0.06);
}

.project-card.is-large .project-media {
  aspect-ratio: 16 / 9;
}

.project-media img {
  transition: transform 500ms ease;
}

.image-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px solid var(--line);
  color: var(--muted-ink);
}

.project-copy {
  padding-right: 8px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
  color: var(--muted-ink);
  font-size: 0.88rem;
}

.page-intro {
  padding-bottom: 46px;
}

.smaller-intro h1,
.contact-layout h1,
.inquiry-layout h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 4.3vw, 4.6rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 34px 0;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.project-hero {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  gap: 24px;
  padding: 22px;
}

.project-hero-media .project-media {
  min-height: 620px;
  aspect-ratio: auto;
}

.project-hero-copy {
  align-self: end;
  padding: clamp(28px, 5vw, 70px) 20px;
}

.split,
.office-teaser,
.inquiry-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.58fr);
  gap: clamp(32px, 5vw, 78px);
}

.calm h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.facts {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fact {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.fact span:first-child {
  color: var(--muted-ink);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.team-member {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: var(--white);
}

.portrait {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.portrait-img {
  width: 96px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--paper-2);
}

.role {
  margin-bottom: 10px;
  color: var(--muted-ink);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list span {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.88rem;
}

.muted-block {
  border-top: 1px solid var(--line);
}

.service-list {
  display: grid;
  gap: 0;
  padding-top: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.service-row span {
  color: var(--accent);
  font-weight: 800;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cfd8d1;
  border-radius: 12px;
  padding: 13px 13px;
  background: #fbfbf8;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(18, 63, 52, 0.1);
}

.field textarea {
  min-height: 152px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted-ink);
  font-size: 0.94rem;
}

.checkbox input {
  margin-top: 5px;
}

.checkbox a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.choice-grid label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6ddd7;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfbf8;
  color: var(--ink);
}

.choice-grid input {
  width: auto;
}

.contact-mini {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  color: var(--ink-2);
}

.notice {
  min-height: 24px;
  color: var(--accent);
}

.site-footer {
  margin-top: 40px;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  width: min(1200px, calc(100% - 36px));
  min-height: 220px;
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.legal-page {
  max-width: 920px;
}

.legal-page pre {
  white-space: pre-wrap;
  font: inherit;
  color: var(--muted-ink);
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-actions a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 18px;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero,
  .project-hero,
  .split,
  .office-teaser,
  .inquiry-layout,
  .contact-layout,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image,
  .project-hero-media .project-media {
    min-height: 420px;
  }

  .hero-copy {
    padding: 34px 6px 12px;
  }

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

  .project-mosaic .project-card.is-large {
    grid-column: span 2;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 56px 1fr;
  }

  .service-row p {
    grid-column: 2;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav,
  .section,
  .footer-inner {
    width: min(100% - 24px, 1200px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    top: 66px;
  }

  .hero,
  .project-hero {
    padding: 10px 12px 0;
  }

  .hero-image,
  .project-hero-media .project-media {
    min-height: 250px;
    border-radius: 18px;
  }

  .hero-copy {
    padding: 22px 0 12px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.55rem, 13vw, 3.85rem);
  }

  h2 {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 3.15rem);
  }

  .lead,
  body {
    font-size: 1.06rem;
  }

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

  .project-mosaic .project-card.is-large {
    grid-column: span 1;
  }

  .form-row,
  .fact,
  .team-member,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 24px -12px 28px;
    padding: 0 12px 8px;
  }

  .filter-button {
    white-space: nowrap;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-row p {
    grid-column: auto;
  }
}
