:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #252b22;
  --muted: #565950;
  --forest: #293429;
  --leaf: #596746;
  --line: #d7d8cb;
  --cream: #f8f6ec;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }

.container {
  width: min(100% - var(--gutter) * 2, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  background: var(--cream);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-inner { min-height: 5.25rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.92rem;
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand-light { font-weight: 500; }
.brand-mark {
  position: relative;
  width: 1.85rem;
  height: 1.85rem;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 2px 2px;
  color: var(--leaf);
}
.brand-mark::before, .brand-mark::after {
  position: absolute;
  content: "";
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.brand-mark::before { inset: .28rem .28rem 0; }
.brand-mark::after { inset: .58rem .58rem 0; }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3.2vw, 3rem); }
.site-nav > a { font-size: .925rem; font-weight: 600; text-decoration: none; }
.site-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: .3em; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .925rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button-outline { border-color: var(--leaf); color: var(--forest); }
.button-outline:hover { border-color: var(--forest); background: var(--forest); color: var(--cream); }
.button-light { background: var(--cream); color: var(--ink); }
.button-light:hover { background: #e4e6d6; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(36rem, 49vw, 46rem);
  overflow: hidden;
  background: #3e392e;
  color: var(--cream);
}
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 54%; }
.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgb(26 29 22 / 82%) 0%, rgb(26 29 22 / 54%) 36%, rgb(26 29 22 / 8%) 75%);
}
.hero-inner { padding-block: 4.5rem; }
.eyebrow {
  color: var(--leaf);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-label { display: flex; align-items: center; gap: .8rem; color: #e2dcc8; }
.hero-label::before { width: 1.8rem; height: 1px; background: currentColor; content: ""; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h1 { margin-top: 1.2rem; font-size: clamp(4.5rem, 8.6vw, 8.5rem); font-weight: 500; line-height: .84; letter-spacing: -.055em; }
h1 em, h2 em { font-weight: 500; }
h1 em { color: #e5dfc9; }
.hero-description { max-width: 29rem; margin-block: 1.85rem 1.65rem; color: #f5f2e7; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.hero .button:focus-visible, .project .button:focus-visible { outline-color: var(--cream); }

.services { padding-block: clamp(4.5rem, 8vw, 7.5rem) clamp(4rem, 7vw, 6.5rem); }
.section-intro { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 2.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(3.35rem, 6.4vw, 6.1rem); line-height: .9; letter-spacing: -.045em; }
.section-intro h2, .project h2 { margin-top: 1.05rem; }
.section-intro h2 em { color: var(--leaf); }
.section-intro > p { max-width: 31rem; padding-bottom: .15rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3.6vw, 3.75rem); }
.service { border-bottom: 1px solid var(--line); }
.service-image { overflow: hidden; background: #dfd7c7; }
.service-image img { width: 100%; aspect-ratio: 1.6; height: auto; object-fit: cover; }
#portes img { object-position: center 48%; }
.service-body { padding-block: 1.6rem 1.8rem; }
.service h3 { font-size: clamp(2.25rem, 3.4vw, 3.5rem); line-height: 1; letter-spacing: -.035em; }
.service-body > p { max-width: 34rem; margin-block: .85rem 1.2rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; min-height: 2.4rem; color: var(--forest); font-weight: 700; text-underline-offset: .24em; }
.text-link:hover { color: var(--leaf); }
.project-types { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.project-types a {
  display: block;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--forest);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.project-types a:hover { border-color: var(--leaf); background: #eceee3; }
.image-note { margin-top: .9rem; color: var(--muted); font-size: .8rem; }

.project { background: var(--forest); color: var(--cream); }
.project-inner { display: grid; grid-template-columns: 1fr .95fr; align-items: start; gap: clamp(2.5rem, 8vw, 8rem); padding-block: clamp(3.5rem, 7.5vw, 7rem); }
.project .eyebrow, .project h2 em { color: #d3d9b8; }
.project-intro > p:last-child { max-width: 27rem; margin-top: 1.35rem; color: #e4e7d8; }
.project-form { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.project-form label { margin-bottom: .45rem; color: var(--cream); font-size: .925rem; font-weight: 700; }
.project-form select, .project-form textarea {
  width: 100%;
  margin: 0 0 1.2rem;
  padding: .75rem .9rem;
  border: 1px solid #929c87;
  border-radius: 2px;
  background: #354134;
  color: var(--cream);
}
.select-wrap { position: relative; margin-bottom: 1.2rem; }
.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: .55rem;
  height: .55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  content: "";
}
.project-form select {
  margin-bottom: 0;
  padding-right: 2.5rem;
  appearance: none;
}
.project-form textarea { resize: vertical; }
.project-form textarea::placeholder { color: #cbd1c0; }
.project-form .button { justify-self: start; }
.form-note { margin-top: .6rem; color: #d6dacd; font-size: .85rem; }
.project-summary { margin-top: 1.4rem; padding: 1.2rem; border: 1px solid #929c87; border-radius: 2px; overflow-wrap: anywhere; }
.project-summary h3 { margin-bottom: .3rem; font-size: 1.8rem; line-height: 1.05; }
#summary-type { font-weight: 700; }
#summary-description { margin-top: .35rem; white-space: pre-wrap; }

.footer-inner { min-height: 6rem; }
.footer-inner p { color: var(--muted); font-size: .875rem; }

@media (max-width: 48rem) {
  .header-inner { position: relative; flex-wrap: wrap; min-height: 4.5rem; gap: 0; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.75rem;
    padding: .4rem .65rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--forest);
    font-weight: 700;
  }
  .menu-icon { position: relative; width: 1rem; height: .6rem; border-block: 1px solid currentColor; }
  .site-nav { width: 100%; flex-direction: column; align-items: flex-start; gap: .6rem; padding-block: 0 1.1rem; }
  .site-nav > a:not(.button) { padding-block: .45rem; }
  .menu-toggle:not([hidden])[aria-expanded="false"] + .site-nav { display: none; }
  .hero { min-height: 35rem; }
  .hero-image { object-position: 64% center; }
  .hero::after { background: linear-gradient(90deg, rgb(26 29 22 / 87%), rgb(26 29 22 / 49%) 75%, rgb(26 29 22 / 22%)); }
  .section-intro, .service-grid, .project-inner { grid-template-columns: minmax(0, 1fr); }
  .section-intro { gap: 1.25rem; }
  .service-grid { gap: 2rem; }
}

@media (max-width: 25rem) {
  h1 { font-size: clamp(3.55rem, 18vw, 4.5rem); }
  h2 { font-size: 3rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: .65rem; }
}

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