:root {
  --ink: #15201b;
  --ink-2: #3c4a43;
  --paper: #f4f0e7;
  --paper-2: #ebe5d8;
  --green: #1d4a37;
  --green-2: #27634a;
  --ochre: #c4842b;
  --line: rgba(21, 32, 27, .14);
  --radius: 6px;
  --max: 1160px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.eyebrow { color: var(--ochre); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 15px; font-family: var(--body); transition: background .2s, color .2s; }
.btn-primary { background: var(--ochre); color: #1b1305; }
.btn-primary:hover { background: #d5953b; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-2); }

/* header */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; color: #fff; }
.nav.solid { position: sticky; top: 0; background: var(--green); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand b { font-family: var(--display); font-size: 19px; letter-spacing: -.01em; display: block; line-height: 1; }
.brand small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.nav ul { display: flex; gap: 30px; list-style: none; font-size: 15px; }
.nav ul a { text-decoration: none; opacity: .85; }
.nav ul a:hover { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font-size: 26px; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; background: var(--green); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg.placeholder { background-image: url(images/contours.svg); background-size: 900px; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,30,22,.55) 0%, rgba(13,30,22,.25) 40%, rgba(13,30,22,.88) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: 88px; width: 100%; }
.hero h1 { font-size: clamp(44px, 7.2vw, 96px); font-weight: 800; max-width: 13ch; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--ochre); }
.hero p { max-width: 54ch; font-size: 19px; opacity: .9; margin-bottom: 34px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.coords { position: absolute; right: 24px; bottom: 30px; z-index: 2; text-align: right; opacity: .7; line-height: 1.8; }

/* sections */
section { padding: 110px 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.about p { color: var(--ink-2); margin-top: 18px; max-width: 58ch; }
.about-img { aspect-ratio: 4/5; border-radius: var(--radius); background: var(--paper-2) url(images/contours.svg) center/700px; overflow: hidden; position: relative; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-photo figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.about-photo figcaption b { font-family: var(--display); font-size: 19px; }
.about-photo figcaption .mono { color: var(--ink-2); font-size: 11px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 16px 0 0; }
.facts b { font-family: var(--display); font-size: 34px; display: block; color: var(--green); }
.facts span { font-size: 14px; color: var(--ink-2); }

.services { background: var(--ink); color: var(--paper); }
.services .head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.services .head p { max-width: 44ch; opacity: .7; }
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14); }
.service { padding: 34px 30px 38px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); transition: background .25s; }
.service:hover { background: rgba(255,255,255,.04); }
.service .mono { color: var(--ochre); }
.service h3 { font-size: 23px; margin: 16px 0 10px; }
.service p { font-size: 15.5px; opacity: .7; }

/* works / blog */
.works .head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { cursor: pointer; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.post-img { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); position: relative; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post-img img { transform: scale(1.04); }
.post-count { position: absolute; right: 10px; bottom: 10px; background: rgba(21,32,27,.8); color: #fff; padding: 3px 8px; border-radius: 4px; }
.post .mono { color: var(--ink-2); margin-top: 16px; display: block; }
.post h3 { font-size: 21px; margin: 6px 0 6px; }
.post p { color: var(--ink-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 50px; text-align: center; color: var(--ink-2); grid-column: 1 / -1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,16,13,.94); z-index: 100; display: none; color: #fff; }
.lightbox.open { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: flex; align-items: center; justify-content: center; padding: 60px 70px 10px; min-height: 0; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 4px; }
.lb-info { padding: 18px 24px 30px; max-width: 760px; margin: 0 auto; text-align: center; }
.lb-info h3 { font-size: 24px; margin: 6px 0 8px; }
.lb-info p { opacity: .8; white-space: pre-line; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 45%; }
.lb-next { right: 14px; top: 45%; }

/* contact */
.contact { background: var(--paper-2); }
.contact-list { list-style: none; margin-top: 30px; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list .mono { color: var(--ink-2); padding-top: 3px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.map { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

footer { background: var(--green); color: rgba(255,255,255,.75); padding: 34px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.page-head { padding: 80px 0 30px; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); }
.page-head p { color: var(--ink-2); margin-top: 14px; max-width: 56ch; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .grid-services, .posts { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--green); flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 0; }
  .menu-btn { display: block; }
  .coords { display: none; }
  section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .grid-services, .posts { grid-template-columns: 1fr; }
  .facts b { font-size: 26px; }
  .lb-stage { padding: 60px 10px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; }
}
