@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  color: #1c251f;
  background: #f8f7f2;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  --green: #17271f;
  --lime: #dce793;
  --line: #cbd1c5;
}

* { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid #778c32; outline-offset: 5px; }
.shell { width: min(1280px, 90%); margin-inline: auto; }
.skip { position: absolute; top: -10rem; z-index: 2; padding: 1rem; background: white; }
.skip:focus { top: 0; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.3rem; }
.brand { font: 700 2rem/.85 'Barlow Condensed', system-ui, sans-serif; letter-spacing: .025em; text-decoration: none; }
.brand span { display: block; font: 700 .65rem/1.5 'Instrument Sans', system-ui, sans-serif; letter-spacing: .32em; }
nav { display: flex; flex-wrap: wrap; gap: .55rem clamp(.85rem, 3vw, 2.4rem); }
nav a, .footer > a:last-child { text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.hero {
  color: white;
  background: linear-gradient(90deg, #102019f5, #1020199c 52%, #10201938), #263a2c url('https://images.unsplash.com/photo-1557334426-e3b6ef95d462?auto=format&fit=crop&w=2000&q=85') center 55% / cover no-repeat;
}
.hero-inner { padding-block: clamp(5rem, 12vw, 11rem) 2rem; }
.label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 1rem; }
.hero .label, .contact .label { color: var(--lime); }
h1, h2, h3 { font-family: 'Barlow Condensed', system-ui, sans-serif; margin: 0; font-weight: 600; line-height: .98; }
h1 { font-size: clamp(3.5rem, 9.5vw, 8.5rem); }
h2 { font-size: clamp(3rem, 6.5vw, 6rem); }
h3 { font-size: clamp(2rem, 4vw, 3.2rem); }
p { line-height: 1.65; }
.hero-inner > p:not(.label) { max-width: 38ch; margin: 1.5rem 0; color: #f3f4ee; }
.button { display: inline-flex; gap: 1.6rem; align-items: center; text-decoration: none; background: var(--lime); color: var(--green); padding: .9rem 1.15rem; font-weight: 700; }
.button:hover { background: #f0f4c5; }
.hero small { display: block; text-align: right; margin-top: 3rem; font-size: .75rem; }
.draft { padding-block: .85rem; background: #eceee1; font-size: .8rem; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1.5rem clamp(2rem, 7vw, 7rem); }
.intro { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 46ch; margin: .4rem 0 0; }
.services { background: #e9ece4; }
details { border-top: 1px solid var(--line); padding-block: 1rem; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 1.16rem; }
details p { margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.gallery img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; background: #dce0d5; }
figcaption { padding-block: 1rem; border-bottom: 1px solid var(--line); }
figcaption span { display: block; font-size: .8rem; margin-bottom: .4rem; }
.contact { background: var(--green); color: white; }
.contact p:not(.label) { margin-top: 0; max-width: 38ch; }
@media (max-width: 680px) {
  .header { align-items: flex-start; flex-direction: column; }
  .split, .gallery { grid-template-columns: 1fr; }
  .hero { background-position: 60% center; }
}

/* Corporate homepage */
:root { --green: #142721; --lime: #e3edaa; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #778c32; outline-offset: 4px; }
.header { min-height: 82px; }
.header nav { gap: .65rem clamp(.65rem, 1.6vw, 1.7rem); }
.tools, .actions, .slider { display: flex; align-items: center; gap: .65rem; }
.tools button, .menu-toggle, .slider button { border: 1px solid currentColor; background: transparent; color: inherit; min-width: 42px; min-height: 42px; }
.tools button:first-child { font-size: 1.5rem; }
.menu-toggle { display: none; }
.hero { position: relative; isolation: isolate; background: #263a2c; overflow: hidden; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; background: linear-gradient(90deg, #102019f5, #102019a6 58%, #10201952); }
.hero-inner { min-height: min(740px, 86svh); padding-block: clamp(4rem, 11vw, 9rem) 2rem; }
.hero h1 { white-space: pre-line; }
.hero .lead { max-width: 46ch; }
.actions { flex-wrap: wrap; }
.secondary { padding: .8rem 1rem; border: 1px solid #ffffff99; text-decoration: none; }
.secondary:hover, .slider button:hover { background: #ffffff26; }
.slider { margin-top: 3rem; }
.slider span { min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; }
.tone { background: #e9ece4; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0 1.5rem; }
.filters button { padding: .6rem 1rem; border: 1px solid #87988a; background: transparent; color: inherit; }
.filters button[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.card { background: #eeefe7; border-bottom: 2px solid #b8c5a5; }
.card img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; background: #cbd1c5; }
.card-body { padding: clamp(1rem, 2.3vw, 2rem); }
.detail-link { background: transparent; color: inherit; border: 0; padding: .4rem 0; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
dialog { width: min(94vw, 680px); max-height: 85vh; border: 0; color: #1c251f; background: #f8f7f2; padding: clamp(1.4rem, 5vw, 3rem); }
dialog::backdrop { background: #101d18b8; }
dialog h2 { font-size: clamp(2.75rem, 6vw, 4.5rem); margin-right: 1.8rem; }
dialog img { width: 100%; max-height: 48vh; object-fit: cover; margin-top: 1.25rem; }
.close { float: right; border: 1px solid currentColor; width: 42px; height: 42px; background: transparent; font-size: 1.6rem; }
#query { width: 100%; padding: .75rem; font: inherit; margin-top: 1.25rem; }
#results { padding: 0; list-style: none; }
#results li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 950px) {
  .header { display: grid; grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: block; padding-inline: .65rem; }
  .header nav { display: none; grid-column: 1 / -1; grid-row: 2; padding-block: .75rem; border-top: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] + nav { display: flex; }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.75rem); }
  .hero::after { background: #102019a6; }
}

.brand { width: max-content; display: inline-grid; gap: .34rem; }
.brand span { display: flex; justify-content: space-between; letter-spacing: 0; line-height: 1; }
.brand span b { font-weight: inherit; }
.project-header { display: flex; flex-direction: row; align-items: center; }
.project-page > .label { margin-top: 2rem; }
.project-page .intro { margin-top: 1.25rem; }
.project-photo { display: block; width: 100%; max-height: 36rem; object-fit: cover; margin-block: 2rem; background: #cbd1c5; }
