/* Evolve Construction: "builder's sheet set" system.
   Tokens first, then base, layout, components, pages. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f1ece3;
  --stone: #e5ddcf;
  --stone-2: #d9cfbd;
  --ink: #1a1d18;
  --ink-2: #353a31;
  --muted: #5e5c52;
  --rule: #cfc5b3;
  --rule-dark: #3a4035;
  --green: #3d6a17;
  --on-ink-muted: #b3ad9f;
  --field: #8cc152;
  --on-ink: #ece6da;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1600px;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(72px, 9vw, 152px);
  --radius: 2px;
  --header-h: 76px;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol.svc-list, ol.sequence { list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.on-ink :focus-visible, .site-footer :focus-visible, .contact-band :focus-visible { outline-color: var(--field); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type roles */
.display-xl, .display-l, .display-m {
  font-stretch: 114%;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.5rem, 1.3rem + 4.3vw, 5.9rem); }
.display-l { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.4rem); }
.display-m { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.6rem); line-height: 1.05; }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); line-height: 1.5; max-width: 38em; color: var(--ink-2); }
.sheet-code, .mono-note, .fig-label, .eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.sheet-code { color: var(--green); margin: 0 0 1.25rem; font-weight: 500; }
.on-ink .sheet-code, .contact-band .sheet-code { color: var(--field); }
.mono-note { color: var(--muted); margin: 0; }
.text-measure { max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.35em;
  font: 600 1rem/1.2 var(--sans); font-stretch: 108%;
  text-decoration: none; border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--green); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--field); color: var(--ink); }
.btn-block { width: 100%; }
.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-stretch: 108%; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.arrow-link::after { content: "\2192"; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin: 0; }
.wordmark:hover { color: var(--ink); }
.wordmark-name {
  font-size: 1.7rem; font-weight: 800; font-stretch: 125%;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.wordmark-sub {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; margin-top: 5px; color: var(--ink-2);
}
.wordmark-est { color: var(--green); margin-left: 0.6em; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav-list a {
  text-decoration: none; font-weight: 550; font-stretch: 106%; padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a[aria-current="page"] { border-bottom-color: var(--green); }
.nav-list a:hover { color: var(--green); }
.header-call { white-space: nowrap; }
.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px 0 12px; background: none; border: 0;
  font: 600 1rem var(--sans); color: var(--ink); cursor: pointer;
}
.menu-toggle-icon { position: relative; width: 26px; height: 14px; }
.menu-toggle-icon span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.menu-toggle-icon span:first-child { top: 2px; }
.menu-toggle-icon span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child { top: 6px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
  overflow-y: auto; padding: 24px 0 40px; border-top: 1px solid var(--rule);
}
.mobile-menu[hidden] { display: none; }
.mobile-list { border-top: 1px solid var(--rule); }
.mobile-list li { border-bottom: 1px solid var(--rule); }
.mobile-list a {
  display: block; padding: 16px 0; text-decoration: none;
  font-size: 1.6rem; font-weight: 700; font-stretch: 114%; letter-spacing: -0.01em;
}
.mobile-list a[aria-current="page"] { color: var(--green); }
.mobile-contact { margin-top: 28px; display: grid; gap: 14px; }
.mobile-email { font-weight: 600; word-break: break-word; }

@media (max-width: 1080px) {
  .site-nav, .header-call { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 380px) {
  .wordmark-est { display: none; }
  .wordmark-name { font-size: 1.45rem; }
  .wordmark-sub { letter-spacing: 0.18em; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-stone { background: var(--stone); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .lede { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: clamp(36px, 5vw, 80px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(32px, 4.5vw, 88px); align-items: center;
}
.hero-copy .eyebrow { color: var(--green); font-weight: 500; margin: 0 0 1.5rem; }
.hero-copy h1 { margin-bottom: 1.6rem; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.hero-actions .mono-note { flex-basis: 100%; margin-top: 6px; }
.hero-figure { position: relative; padding-bottom: clamp(48px, 6vw, 96px); }
.hero-main { position: relative; }
.hero-main img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: 50% 40%; }
.hero-inset {
  position: absolute; left: clamp(-56px, -3.5vw, -20px); bottom: 0;
  width: 42%; background: var(--paper); padding: 10px 10px 0;
  box-shadow: 0 1px 0 var(--rule);
}
.hero-inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fig-label { display: flex; gap: 0.9em; padding: 10px 0; color: var(--muted); }
.fig-label b { color: var(--ink); font-weight: 500; }
.hero-main .fig-label { position: absolute; right: 0; top: 100%; }

.title-block {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.title-block > div { padding: 18px 20px 20px; border-left: 1px solid var(--rule); }
.title-block > div:first-child { border-left: 0; padding-left: 0; }
.title-block dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.title-block dd { font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.45rem); font-weight: 650; font-stretch: 110%; line-height: 1.2; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { margin-left: 0; }
  .hero-inset { left: auto; right: 0; width: 46%; }
  .hero-main .fig-label { left: 0; right: auto; max-width: 50%; flex-wrap: wrap; gap: 0 0.9em; }
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .title-block > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .title-block > div { padding: 14px 12px 16px; }
}

/* Services index (home) */
.svc-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-list { border-top: 1.5px solid var(--ink); counter-reset: svc; }
.svc-item { border-bottom: 1px solid var(--rule); }
.svc-link {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 8px 20px;
  padding: clamp(20px, 2.4vw, 32px) 0; text-decoration: none; align-items: baseline;
}
.svc-num { font-family: var(--mono); font-size: 0.85rem; color: var(--green); font-weight: 500; }
.svc-name { font-size: clamp(1.35rem, 1rem + 1.1vw, 2.05rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.1; }
.svc-desc { grid-column: 2 / 3; color: var(--ink-2); max-width: 34em; margin: 0; }
.svc-go { grid-row: 1; grid-column: 3; font-size: 1.4rem; transition: transform .15s ease; }
.svc-link:hover .svc-go { transform: translateX(4px); }
.svc-link:hover .svc-name { color: var(--green); }
@media (max-width: 860px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .svc-aside img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .svc-link { grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 6px 12px; }
}

/* Build sequence */
.sequence { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 40px); }
.seq-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.seq-meta { display: flex; align-items: baseline; gap: 14px; padding: 14px 0 6px; border-bottom: 1px solid var(--rule-dark); }
.seq-num { font-family: var(--mono); color: var(--field); font-size: 0.85rem; }
.seq-name { font-size: 1.3rem; font-weight: 700; font-stretch: 112%; }
.seq-item p { margin: 10px 0 0; color: var(--on-ink-muted); font-size: 0.95rem; }
.seq-note { margin-top: clamp(32px, 4vw, 56px); color: var(--on-ink-muted); }
@media (max-width: 960px) { .sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .sequence {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
    margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
    scrollbar-width: thin;
  }
  .seq-item { scroll-snap-align: start; }
}

/* Statement (insurance) */
.statement-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.statement-grid blockquote { margin: 0; }
.hazards { border-top: 1.5px solid var(--ink); }
.hazards li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--stone-2);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem); font-weight: 700; font-stretch: 114%;
}
.hazards li span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); font-weight: 400; letter-spacing: 0.08em; }
.statement-foot { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-top: clamp(32px, 4vw, 56px); }
.statement-foot p { margin: 0; max-width: 40em; color: var(--ink-2); }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }

/* Mosaic (home work preview) */
.mosaic {
  display: grid; gap: clamp(10px, 1.2vw, 18px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 13vw, 250px);
}
.mosaic figure { position: relative; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m1 { grid-column: 1 / 8; grid-row: span 3; }
.mosaic .m2 { grid-column: 8 / 13; grid-row: span 2; }
.mosaic .m3 { grid-column: 8 / 13; grid-row: span 1; }
.mosaic .m4 { grid-column: 1 / 5; grid-row: span 2; }
.mosaic .m5 { grid-column: 5 / 13; grid-row: span 2; }
@media (max-width: 700px) {
  .mosaic { grid-auto-rows: 38vw; }
  .mosaic .m1 { grid-column: 1 / 13; grid-row: span 2; }
  .mosaic .m2, .mosaic .m3 { grid-column: span 6; grid-row: span 1; }
  .mosaic .m4 { grid-column: 1 / 13; grid-row: span 1; }
  .mosaic .m5 { grid-column: 1 / 13; grid-row: span 1; }
}
.work-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; align-items: center; }

/* Split feature (spec homes, about) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.split-media .fig-label { padding-bottom: 0; }
.split h2 { margin-bottom: 1.4rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: -1; } }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); border-top: 1.5px solid var(--ink); padding-top: clamp(28px, 3vw, 44px); }
.person { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: start; }
.person img { width: 132px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; background: var(--stone); }
.person h3 { font-size: 1.5rem; font-stretch: 112%; margin-bottom: 4px; }
.person .role { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .person { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .person img { width: 88px; }
}

/* Contact band */
.contact-band { background: var(--ink); color: var(--on-ink); padding: var(--section) 0; }
.cb-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.cb-text { color: var(--on-ink-muted); max-width: 30em; margin: 1.4rem 0 0; }
.cb-list { border-top: 1.5px solid var(--on-ink); }
.cb-list > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); align-items: baseline; }
.cb-list dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-muted); }
.cb-list dd { word-break: break-word; }
.cb-list a { color: var(--on-ink); }
.cb-list a:hover { color: var(--field); }
.cb-big { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 700; font-stretch: 112%; text-decoration: none; }
@media (max-width: 860px) { .cb-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cb-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* Footer */
.site-footer { background: #121410; color: var(--on-ink-muted); padding: clamp(48px, 6vw, 88px) 0 32px; font-size: 0.95rem; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--field); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); gap: 40px; }
.wordmark-footer { color: var(--on-ink); margin-bottom: 18px; }
.wordmark-footer .wordmark-sub { color: var(--on-ink-muted); }
.footer-id p:last-child { max-width: 24em; }
.footer-h { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--field); margin-bottom: 14px; }
.footer-list li + li { margin-top: 8px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule-dark); font-size: 0.85rem; }
.footer-base p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page intro (inner pages) */
.page-intro { padding: clamp(48px, 7vw, 120px) 0 clamp(40px, 5vw, 80px); border-bottom: 1px solid var(--rule); }
.page-intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
.page-intro h1 { margin-bottom: 0; }
.page-intro .lede { margin: 0; }
@media (max-width: 860px) { .page-intro-grid { grid-template-columns: 1fr; } }

/* Sheet index (services page) */
.sheet-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.sheet-index a {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; text-decoration: none;
  border: 1px solid var(--rule); padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper);
}
.sheet-index a span { color: var(--green); }
.sheet-index a:hover { border-color: var(--ink); color: var(--ink); }

.svc-detail { padding: clamp(56px, 7vw, 112px) 0; border-bottom: 1px solid var(--rule); }
.svc-detail:nth-of-type(even) { background: var(--stone); border-bottom-color: var(--stone-2); }
.svc-detail-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.svc-detail h2 { margin-bottom: 1.2rem; }
.svc-detail .lede { margin-bottom: 1.6rem; }
.spec-list { border-top: 1.5px solid var(--ink); margin: 0 0 1.8rem; }
.spec-list li { padding: 11px 0 11px 2rem; border-bottom: 1px solid var(--rule); position: relative; }
.svc-detail:nth-of-type(even) .spec-list li { border-bottom-color: var(--stone-2); }
.spec-list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 2px; background: var(--green); }
.svc-media { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-media figure:first-child { grid-column: 1 / -1; }
.svc-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-media figure:first-child img { aspect-ratio: 16 / 10; }
.svc-media.single { grid-template-columns: 1fr; }
.svc-media .fig-label { padding: 8px 0 0; }
@media (max-width: 960px) { .svc-detail-grid { grid-template-columns: 1fr; } }

.panel-ink { background: var(--ink); color: var(--on-ink); padding: clamp(28px, 3.5vw, 48px); }
.panel-ink h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); font-stretch: 114%; margin-bottom: 1rem; line-height: 1.08; }
.panel-ink p { color: var(--on-ink-muted); }
.panel-ink .hazards { border-top-color: var(--on-ink); margin-bottom: 1.6rem; }
.panel-ink .hazards li { border-bottom-color: var(--rule-dark); }
.panel-ink .hazards li span { color: var(--on-ink-muted); }

/* Work gallery */
.work-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.work-nav ul { display: flex; gap: 4px 28px; flex-wrap: wrap; padding: 6px 0; }
.work-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-stretch: 106%; }
.work-nav a span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.gallery-section { padding: clamp(48px, 6vw, 96px) 0; }
.gallery-section + .gallery-section { border-top: 1px solid var(--rule); }
.gallery {
  display: grid; gap: clamp(8px, 1vw, 16px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 300px);
  grid-auto-flow: dense;
}
.gallery li { position: relative; min-width: 0; }
.gallery .feature { grid-column: span 2; grid-row: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery button {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease, transform .4s ease; }
.gallery button:hover img { opacity: 0.9; transform: scale(1.02); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 34vw; } }

.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(14, 16, 12, 0.96); color: var(--on-ink);
}
.lightbox::backdrop { background: rgba(14, 16, 12, 0.9); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter); gap: 16px; }
.lb-count { font-family: var(--mono); font-size: 0.8rem; color: var(--on-ink-muted); }
.lb-stage { display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-caption { padding: 14px var(--gutter) 18px; color: var(--on-ink-muted); max-width: 70em; margin: 0 auto; text-align: center; min-height: 3em; }
.lb-controls { display: flex; gap: 8px; }
.lb-btn {
  min-width: 48px; min-height: 48px; padding: 0 14px; border: 1px solid var(--rule-dark); background: transparent; color: var(--on-ink);
  font: 600 0.95rem var(--sans); cursor: pointer; border-radius: var(--radius);
}
.lb-btn:hover { border-color: var(--field); color: var(--field); }
.lb-btn:focus-visible { outline-color: var(--field); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.direct { border-top: 1.5px solid var(--ink); }
.direct > div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.direct dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.direct dd { font-size: 1.1rem; word-break: break-word; }
.direct .big { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 700; font-stretch: 112%; text-decoration: none; }
.form-card { background: var(--stone); padding: clamp(24px, 3.5vw, 52px); }
.form-card h2 { margin-bottom: 0.8rem; }
.form-explain { color: var(--ink-2); margin-bottom: 1.8rem; max-width: 36em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #a99f8c; border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #a3281b; }
.field-error { color: #a3281b; font-size: 0.88rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.form-status { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--green); background: var(--paper); }
.form-status[hidden] { display: none; }
.form-status h3 { font-size: 1.15rem; margin-bottom: 6px; font-stretch: 108%; }
.form-status p { margin: 0 0 10px; }
.form-status p:last-child { margin-bottom: 0; }
.copy-area { width: 100%; min-height: 140px; font: 0.9rem/1.5 var(--mono); padding: 12px; border: 1px solid var(--rule); background: #fbf8f2; color: var(--ink); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* About */
.history { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.history-figure { font-size: clamp(5rem, 3rem + 9vw, 13rem); font-weight: 800; font-stretch: 125%; line-height: 0.85; letter-spacing: -0.04em; color: var(--ink); }
.history-media { margin-top: clamp(32px, 4vw, 56px); }
.history-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.history-figure small { display: block; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; color: var(--green); margin-top: 18px; text-transform: uppercase; font-stretch: 100%; }
.history .lede { margin-bottom: 1.4rem; }
.scope-list { columns: 2; column-gap: 40px; border-top: 1.5px solid var(--ink); padding-top: 8px; margin-top: 1.6rem; }
.scope-list li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .history { grid-template-columns: 1fr; } .history-media { display: none; } }
@media (max-width: 480px) { .scope-list { columns: 1; } }
.person-full { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--rule); }
.person-full:first-of-type { border-top: 1.5px solid var(--ink); }
.person-full img { width: 100%; max-width: 180px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; background: var(--stone); }
.person-full h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); font-stretch: 114%; margin-bottom: 6px; }
.person-full .role { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.person-full .text-measure p:last-child { margin-bottom: 0; }
.facts { margin-top: 18px; border-top: 1px solid var(--rule); }
.facts li { padding: 9px 0 9px 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 10px; height: 2px; background: var(--green); }
@media (max-width: 640px) {
  .person-full { grid-template-columns: 1fr; }
  .person-full img { max-width: 160px; }
}
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.area-grid > div { padding: 22px 24px 24px; border-left: 1px solid var(--stone-2); }
.area-grid > div:first-child { border-left: 0; padding-left: 0; }
.area-grid h3 { font-size: 1.35rem; font-stretch: 112%; margin-bottom: 8px; }
.area-grid p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .area-grid { grid-template-columns: 1fr; }
  .area-grid > div { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--stone-2); }
}

/* 404 */
.notfound { padding: clamp(80px, 12vw, 200px) 0; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

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