:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --ink: #242721;
  --green: #28382b;
  --muted: #53574c;
  --line: #d1d0c4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.055em; }
h2 { font-size: clamp(2.9rem, 5.2vw, 5.4rem); }
h3 { font-weight: 600; line-height: 1.2; letter-spacing: -.02em; font-size: 1.25rem; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap, .header-inner { width: min(100% - 5rem, 82rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; top: 1rem; left: 1rem; padding: .75rem; transform: translateY(-180%); background: var(--paper); }
.skip-link:focus { transform: translateY(0); }

.header-inner { min-height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }
.wordmark { display: inline-block; position: relative; justify-self: start; padding: 0 1rem .05rem 0; text-decoration: none; font-size: 1.42rem; font-weight: 300; line-height: .92; letter-spacing: -.055em; }
.wordmark::after { position: absolute; inset: 0 0 auto auto; width: .8rem; height: .8rem; border-top: 1px solid; border-right: 1px solid; content: ""; }
.main-nav, .language-nav { display: flex; align-items: center; }
.main-nav { gap: clamp(1.15rem, 3vw, 2.9rem); }
.language-nav { justify-self: end; gap: .25rem; white-space: nowrap; }
.language-nav a { display: grid; place-items: center; min-width: 1.75rem; min-height: 2rem; padding-inline: .15rem; }
.language-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: .28em; }
nav a { text-decoration: none; font-size: .9rem; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.22rem; min-height: 2.9rem; font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background-color .18s, color .18s; }
.header-cta { justify-self: end; color: white; background: var(--green); }
.header-cta:hover { background: #405440; }
.button-light { background: #f7f2e6; color: #262b22; }
.button-light:hover { background: #dedec8; }
.text-link { width: fit-content; padding-block: .55rem; font-size: .9rem; text-underline-offset: .25em; }
.eyebrow { margin-bottom: 1.15rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 600; }

.hero { color: white; background: #202820; position: relative; isolation: isolate; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 49%; }
.hero-shade { background: linear-gradient(90deg, rgba(19, 23, 19, .93), rgba(19, 23, 19, .76) 29%, rgba(19, 23, 19, .25) 66%, transparent 100%), linear-gradient(0deg, rgba(17, 22, 17, .65), transparent 27%); }
.hero-inner { min-height: clamp(33rem, 65vw, 47rem); position: relative; display: flex; align-items: center; padding-block: 5rem; }
.hero-copy { max-width: 48rem; }
.hero h1 { font-size: clamp(3.8rem, 7.5vw, 7.85rem); }
.hero-copy > p:not(.eyebrow) { max-width: 27rem; margin-top: 1.4rem; font-size: clamp(1.04rem, 1.6vw, 1.23rem); color: #faf8ef; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 1.8rem; }
.hero-caption { position: absolute; inset: auto 0 1rem auto; font-size: .8rem; color: #fff; }

.section { padding-block: clamp(4.2rem, 9vw, 8.5rem); }
.section-heading { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.4rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-heading > p { max-width: 27rem; color: var(--muted); font-size: 1.13rem; }
.section-heading .eyebrow, .contact .eyebrow { color: inherit; }
.services, .steps { display: grid; gap: 1.6rem; }
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services article, .steps li { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.services p, .steps p { margin-top: .72rem; color: var(--muted); }
.work { background: #e7e7dc; }
.project + .project { margin-top: clamp(3.75rem, 8vw, 7rem); padding-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid #c3c6b8; }
.project-heading { display: grid; grid-template-columns: 1.45fr 1fr; align-items: end; gap: .8rem 3rem; margin-bottom: 1.65rem; }
.project-heading .eyebrow { margin-bottom: .35rem; color: var(--muted); font-size: .73rem; }
.project-heading h3 { font: 400 clamp(2.2rem, 4.5vw, 3.7rem)/1.04 var(--serif); letter-spacing: -.04em; }
.project-heading > p { max-width: 27rem; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.3rem 1.65rem; }
.work-main { grid-column: 1 / -1; }
.work-image { display: block; position: relative; overflow: hidden; }
.work-grid img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; background: #c8cdbd; }
.work-main img { aspect-ratio: 2.05; }
.work-image:hover .expand-icon, .work-image:focus-visible .expand-icon { background: #fff; color: var(--green); }
.expand-icon { position: absolute; inset: auto .7rem .7rem auto; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--green); color: #fff; font-size: 1.45rem; line-height: 1; transition: background-color .18s, color .18s; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; margin-top: .7rem; }
figcaption span:first-child { font-weight: 600; }
figcaption span:last-child { color: var(--muted); font-size: .89rem; }
.image-dialog { width: min(92vw, 88rem); max-width: none; max-height: 94vh; padding: 0; border: 0; background: #202a22; color: #fff; }
.image-dialog::backdrop { background: #141911e6; }
.image-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem .75rem .45rem 1rem; }
.image-bar p { font-weight: 600; }
.image-bar button { min-height: 2.75rem; border: 0; padding: .35rem .65rem; cursor: pointer; background: var(--paper); color: var(--ink); font: inherit; }
.image-viewer img { max-height: calc(90vh - 3.75rem); object-fit: contain; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.contact { background: var(--green); color: white; }
.contact-inner { min-height: 24rem; padding-block: clamp(3.8rem, 7vw, 7rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: end; }
.contact-inner p:not(.eyebrow) { margin-top: 1.4rem; max-width: 35rem; color: #efeee3; }
.contact-actions { display: grid; gap: .75rem; justify-items: start; }
.footer-inner { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.6rem; }
.footer-inner p { font-size: .87rem; color: var(--muted); }

@media (max-width: 56rem) {
  .wrap, .header-inner { width: calc(100% - 3rem); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 38rem) {
  .wrap, .header-inner { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .55rem 0; padding-block: .85rem .45rem; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .main-nav, .language-nav { grid-row: 2; padding-top: .25rem; border-top: 1px solid var(--line); }
  .main-nav { grid-column: 1; gap: clamp(.65rem, 3vw, 1.15rem); flex-wrap: wrap; }
  .language-nav { grid-column: 2; justify-self: stretch; justify-content: end; }
  .main-nav a { font-size: .85rem; }
  .hero-inner { min-height: 35rem; }
  .hero-image { object-position: 57% center; }
  .hero-shade { background: linear-gradient(90deg, #151d16df, #151d1640), linear-gradient(0deg, #151d16c4, transparent 35%); }
  .hero h1 { font-size: clamp(2.85rem, 10.35vw, 4rem); }
  .hero-caption { right: auto; }
  .section-heading, .project-heading, .work-grid, .steps, .services { grid-template-columns: 1fr; }
  .work-main img { aspect-ratio: 1.58; }
  .footer-inner { align-items: flex-start; }
  .footer-inner p { max-width: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
