
/* Layout: a capability dossier — full-bleed site photo, then ledger-style sections on a steady 12-column grid. */
:root {
  --ink: #0f1d33;          /* navy: headings, header band */
  --paper: #f4f5f2;        /* page ground, cool stone */
  --sheet: #ffffff;        /* raised surfaces */
  --text: #1d2532;
  --muted: #5b6575;
  --rule: #d8dcd6;
  --brass: #b8892f;        /* accent, same gold as the app mark */
  --brass-ink: #8a6418;    /* accent text on light ground */
  --on-ink: #eef1f5;
  --heading: #0f1d33;      /* heading text */
  --strong-rule: #0f1d33;  /* heavy section rules */
  --chip: #0f1d33; --chip-fg: #eef1f5;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --s1: .875rem; --s2: 1rem; --s3: 1.25rem; --s4: 1.75rem; --s5: 2.5rem; --s6: clamp(2.4rem, 5.2vw, 4.4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0b1526; --paper: #0e1622; --sheet: #152031; --text: #dfe4eb; --muted: #9aa5b5;
    --rule: #263347; --brass: #d0a24a; --brass-ink: #e0b864; --on-ink: #eef1f5; --heading: #f1f3f6; --strong-rule: #d0a24a; --chip: #d0a24a; --chip-fg: #16110a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #0b1526; --paper: #0e1622; --sheet: #152031; --text: #dfe4eb; --muted: #9aa5b5;
  --rule: #263347; --brass: #d0a24a; --brass-ink: #e0b864; --on-ink: #eef1f5; --heading: #f1f3f6; --strong-rule: #d0a24a; --chip: #d0a24a; --chip-fg: #16110a; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 var(--s2)/1.6 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); color: var(--heading); text-wrap: balance; margin: 0; }
.eyebrow { font: 600 .75rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.mono { font-family: var(--mono); font-size: .86em; }
.num { font-variant-numeric: tabular-nums; }

/* draft note — delete this block and the .draft element before going live */
.draft { background: var(--brass); color: #1b1407; font: 500 .8rem/1.4 var(--mono); text-align: center; padding-block: 6px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: var(--on-ink); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark { width: 36px; height: 36px; border-radius: 7px; background: var(--brass); color: #16110a; display: grid; place-items: center; font: 800 1.15rem/1 var(--display); }
.brand b { font: 700 1.05rem/1.1 var(--display); font-stretch: 110%; letter-spacing: .02em; display: block; color: var(--on-ink); }
.brand small { font: 400 .7rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #aab4c3; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: .9rem; color: #c9d1dc; }
.nav a:hover { color: #fff; }
.login { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #4a5b76; color: var(--on-ink); text-decoration: none; padding: 8px 14px; border-radius: 6px; font: 500 .85rem/1 var(--body); white-space: nowrap; }
.login:hover { border-color: var(--brass); color: #fff; }
.login svg { width: 14px; height: 14px; }
.menu-btn { display: none; background: none; border: 1px solid #4a5b76; color: var(--on-ink); border-radius: 6px; padding: 7px 10px; font: 500 .85rem var(--body); }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); flex-direction: column; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid #22314a; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid #1d2b42; }
  .menu-btn { display: inline-block; }
}
@media (max-width: 480px) {
  .top .wrap { gap: 10px; }
  .brand small { display: none; }
  .brand b { font-size: .95rem; }
  .mark { width: 32px; height: 32px; }
  .login { padding: 8px 10px; }
  .menu-btn { padding: 7px 9px; }
}

/* hero */
.hero { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; background: url("img/bagrami-industrial-park-main-road.jpg") 70% 45% / cover no-repeat; opacity: .62; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,21,38,.96) 0%, rgba(11,21,38,.78) 45%, rgba(11,21,38,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 120px) 40px; }
.hero h1 { color: #fff; font-size: var(--s6); line-height: 1.02; font-weight: 750; font-stretch: 88%; max-width: 15ch; letter-spacing: -.01em; }
.hero p.lede { max-width: 56ch; font-size: 1.12rem; color: #d3dae4; margin: 20px 0 28px; }
.hero .eyebrow { color: var(--brass); margin-bottom: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 6px; font: 600 .95rem/1 var(--body); text-decoration: none; }
.btn.primary { background: var(--brass); color: #16110a; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border: 1px solid #5d6f8c; color: #fff; }
.btn.ghost:hover { border-color: #fff; }
.caption { margin-top: 56px; font: 400 .72rem/1.4 var(--mono); color: #9aa7ba; letter-spacing: .04em; }

/* record strip */
.record { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.record .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 26px 20px 24px 0; border-right: 1px solid var(--rule); margin-right: 20px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat strong { display: block; font: 750 clamp(1.7rem, 3.2vw, 2.4rem)/1 var(--display); font-stretch: 92%; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 760px) { .record .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(2) { border-right: 0; margin-right: 0; } .stat { border-bottom: 1px solid var(--rule); } }

/* sections */
section { padding-block: clamp(56px, 8vw, 96px); }
section + section { border-top: 1px solid var(--rule); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.head h2 { font-size: var(--s5); line-height: 1.05; font-weight: 720; font-stretch: 92%; margin-top: 10px; }
.head p { margin: 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .head { grid-template-columns: minmax(0, 1fr); } }

/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--strong-rule); }
.svc { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 18px; }
.svc:nth-child(odd) { border-right: 1px solid var(--rule); }
.svc:nth-child(even) { padding-left: 28px; }
.svc .code { grid-row: span 3; font: 500 .74rem/1.3 var(--mono); color: var(--brass-ink); padding-top: 4px; }
.svc h3 { font-size: var(--s3); font-weight: 700; font-stretch: 95%; }
.svc p { margin: 6px 0 10px; color: var(--muted); }
.svc ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.svc li + li { margin-top: 3px; }
@media (max-width: 760px) { .services { grid-template-columns: minmax(0, 1fr); } .svc, .svc:nth-child(odd), .svc:nth-child(even) { padding: 24px 0; border-right: 0; } }

/* heritage note */
.heritage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.heritage .note { background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--brass); padding: 22px 24px; font-size: .95rem; }
.heritage .note p { margin: 0; }
.heritage .note p + p { margin-top: 10px; }
.heritage .body p { margin: 0 0 14px; max-width: 64ch; }
@media (max-width: 860px) { .heritage { grid-template-columns: minmax(0, 1fr); } }

/* featured projects */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.feature figure { margin: 0; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; cursor: zoom-in; }
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-top: 14px; }
.feature .meta { font: 400 .76rem/1.5 var(--mono); color: var(--muted); margin-top: 4px; }
.feature p { margin: 8px 0 0; font-size: .93rem; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ledger */
.ledger-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; margin-top: 56px; }
.ledger-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin-top: 56px; }
.ledger-title h3 { font-size: var(--s4); font-weight: 720; font-stretch: 92%; }
.ledger-title + .ledger-wrap { margin-top: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: .9rem; }
th { text-align: left; font: 500 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 2px solid var(--rule); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
th.val { text-align: right; }
td .sub { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
td.yr { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.role { display: inline-block; font: 500 .7rem/1 var(--mono); letter-spacing: .04em; padding: 5px 7px; border-radius: 3px; border: 1px solid var(--rule); white-space: nowrap; color: var(--text); }
.role.prime { border-color: var(--brass); color: var(--brass-ink); }
tr.group td { background: var(--paper); font: 600 .74rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-block: 10px; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 12px; max-width: 90ch; }

/* certificates */
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cert { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.cert button { all: unset; cursor: zoom-in; display: block; background: #fbfbf8; border-radius: 2px; }
.cert button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.cert img { width: 100%; height: 190px; object-fit: contain; }
.cert figcaption { font-size: .86rem; line-height: 1.45; }
.cert figcaption b { display: block; font-family: var(--display); font-size: .98rem; color: var(--heading); }
.cert figcaption span { color: var(--muted); font-size: .8rem; }
@media (max-width: 1000px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .certs { grid-template-columns: minmax(0, 1fr); } }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { font: 500 .8rem/1 var(--body); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); color: var(--text); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--chip); border-color: var(--chip); color: var(--chip-fg); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery figure { margin: 0; position: relative; }
.gallery button { all: unset; cursor: zoom-in; display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.gallery figcaption { font-size: .78rem; color: var(--muted); padding: 6px 2px 4px; line-height: 1.35; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* capability */
.cap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cap h3 { font-size: 1.15rem; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--brass); margin-bottom: 14px; }
.cap ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.cap li { padding: 7px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; }
.cap li span:last-child { color: var(--muted); text-align: right; font-size: .85rem; }
@media (max-width: 900px) { .cap { grid-template-columns: minmax(0, 1fr); } }

/* contracting data */
.facts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
dl.sheet { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
dl.sheet div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
dl.sheet div:last-child { border-bottom: 0; }
dt { font: 500 .74rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
dd { margin: 0; }
.pending { font: 500 .72rem/1 var(--mono); color: var(--brass-ink); border: 1px dashed var(--brass); padding: 4px 7px; border-radius: 3px; }
.naics { list-style: none; margin: 0; padding: 0; }
.naics li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 3px 0; }
.naics b { font: 500 .88rem/1.5 var(--mono); }
.contact { background: var(--ink); color: var(--on-ink); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact h3 { color: #fff; font-size: var(--s4); font-weight: 720; font-stretch: 92%; }
.contact p { margin: 0; color: #c3ccd8; }
.contact .line { display: flex; flex-direction: column; gap: 2px; }
.contact .line span { font: 500 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8d9ab0; }
.contact .line b { font-weight: 500; font-size: 1.05rem; user-select: all; }
.copy { align-self: flex-start; background: none; border: 1px solid #4a5b76; color: var(--on-ink); border-radius: 6px; padding: 8px 12px; font: 500 .8rem var(--body); cursor: pointer; }
@media (max-width: 860px) { .facts { grid-template-columns: minmax(0, 1fr); } dl.sheet div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

footer { background: var(--ink); color: #9aa7ba; font-size: .84rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer a { color: #c9d1dc; }

/* lightbox */
dialog { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
dialog::backdrop { background: rgba(6, 12, 22, .88); }
dialog img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 3px; background: #fff; }
dialog p { color: #e7ebf1; text-align: center; font-size: .9rem; margin: 10px 0 0; }
dialog .close { position: absolute; top: 8px; right: 8px; background: rgba(15,29,51,.85); color: #fff; border: 1px solid #4a5b76; border-radius: 6px; padding: 6px 10px; font: 500 .8rem var(--body); cursor: pointer; }

/* ---------- multi-page additions ---------- */
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--brass); }
@media (max-width: 900px) { .nav a[aria-current="page"] { box-shadow: none; color: var(--brass); } }
.page-head { background: var(--ink); color: var(--on-ink); }
.page-head .wrap { padding-block: clamp(40px, 6vw, 72px) clamp(36px, 5vw, 56px); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; font-weight: 740; font-stretch: 90%; max-width: 22ch; margin-top: 10px; }
.page-head .eyebrow { color: var(--brass); }
.page-head .lede { color: #c9d1dc; max-width: 68ch; font-size: 1.05rem; margin: 16px 0 0; }
.crumbs { font: 400 .78rem/1.4 var(--mono); color: #93a0b4; margin-bottom: 18px; }
.crumbs a { color: #c9d1dc; text-decoration: none; }
.crumbs a:hover { color: #fff; }
section.tight { padding-block: clamp(36px, 5vw, 56px); }
.sec-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }
.sec-title h2 { font-size: var(--s4); font-weight: 720; font-stretch: 92%; }
.btn-line { font: 600 .9rem/1 var(--body); color: var(--brass-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.btn-line:hover { color: var(--heading); }
.center { text-align: center; margin-top: 28px; }
a.rowlink { color: var(--heading); font-weight: 600; text-decoration: none; }
a.rowlink:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.feature > a img { cursor: pointer; }
.cert .more { display: block; margin-top: 6px; font-size: .8rem; color: var(--brass-ink); text-decoration: none; font-weight: 600; }
.cert em { display: block; font-style: normal; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.certs.wide { margin-bottom: 48px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.certs.wide .cert img { height: 240px; }
@media (max-width: 900px) { .certs.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .certs.wide { grid-template-columns: minmax(0, 1fr); } }

/* project cards */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.pcard { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--brass); transform: translateY(-2px); }
.pthumb { aspect-ratio: 16 / 9; background: var(--paper); overflow: hidden; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb img.doc { object-fit: contain; background: #fbfbf8; padding: 8px; }
.pthumb .ph { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--paper) 0 12px, var(--sheet) 12px 24px); }
.pthumb .ph span { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pbody .meta { font: 500 .72rem/1.3 var(--mono); color: var(--muted); letter-spacing: .04em; }
.pbody h3 { font-size: 1.08rem; font-weight: 700; }
.pbody p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.pval { margin-top: auto; padding-top: 8px; font: 700 1.05rem/1 var(--display); color: var(--heading); font-variant-numeric: tabular-nums; }

/* project detail */
.pdetail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .pdetail { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.pmain h2 { font-size: var(--s4); font-weight: 720; font-stretch: 92%; margin-bottom: 14px; }
ul.scope { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--strong-rule); }
ul.scope li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--rule); position: relative; }
ul.scope li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 2px; background: var(--brass); }
dl.sheet.compact div { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); padding: 11px 16px; }
@media (max-width: 860px) { dl.sheet.compact div { grid-template-columns: minmax(0, 1fr); } }
table.subs { min-width: 680px; }
.pnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; border-top: 1px solid var(--rule); padding-top: 24px; }
.pnav a { text-decoration: none; color: var(--heading); font-weight: 600; font-size: .95rem; }
.pnav a span { display: block; font: 500 .72rem/1.4 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.pnav a.next { text-align: right; }
.pnav a.all { align-self: center; border: 1px solid var(--rule); border-radius: 6px; padding: 10px 14px; font-size: .85rem; }
@media (max-width: 600px) { .pnav { grid-template-columns: 1fr 1fr; } .pnav a.all { grid-column: 1 / -1; grid-row: 2; text-align: center; } }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.prose h2 { font-size: var(--s4); font-weight: 720; font-stretch: 92%; margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 66ch; margin: 0 0 14px; }
.about-side { display: flex; flex-direction: column; gap: 20px; }
.side-photo { margin: 0; }
.side-photo img { border-radius: 3px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.side-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
ol.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
ol.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0 12px 22px; position: relative; }
ol.timeline li::before { content: ""; position: absolute; left: -6px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--brass); }
ol.timeline b { font: 700 1.05rem/1.4 var(--display); color: var(--heading); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { ol.timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.cform { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.cform h2 { font-size: var(--s4); font-weight: 720; font-stretch: 92%; }
.frow { display: flex; flex-direction: column; gap: 6px; }
.frow label { font: 500 .78rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.frow input, .frow textarea { font: 400 1rem/1.4 var(--body); color: var(--text); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; width: 100%; }
.frow input:focus, .frow textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.cform .btn { align-self: flex-start; border: 0; cursor: pointer; }
.contact a { color: var(--on-ink); }
.wide-note { background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--brass); padding: 18px 22px; }
.wide-note p { margin: 0; }
.wide-note a { color: var(--brass-ink); }

/* closing band */
.cta-band { background: var(--ink); color: var(--on-ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: #fff; font-size: var(--s4); font-weight: 720; font-stretch: 92%; }
.cta-band p { margin: 8px 0 0; color: #c3ccd8; }

/* footer */
.site-foot { background: var(--ink); color: #9aa7ba; font-size: .86rem; border-top: 1px solid #1d2b42; }
.site-foot .wrap { padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-foot h4 { font: 600 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-foot ul.cols { display: block; columns: 2; column-gap: 20px; }
.site-foot ul.cols li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 560px) { .site-foot ul.cols { columns: 1; } }
.site-foot a { color: #c9d1dc; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand p { margin: 14px 0 0; max-width: 36ch; }
.foot-brand .mono { color: #c9d1dc; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #1d2b42; font-size: .8rem; }

figure.video { margin: 0; max-width: 820px; }
figure.video video { width: 100%; aspect-ratio: 704 / 576; background: #000; border-radius: 4px; display: block; }
figure.video figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #1d2b42; font-size: .8rem; }

/* AZG logo */
.top .wrap { min-height: 84px; }
.brand .logo { height: 70px; width: auto; display: block; padding: 4px 0; box-sizing: content-box; }
.brand .logo-lg { height: 110px; }
@media (max-width: 720px) {
  .top .wrap { min-height: 64px; }
  .brand .logo { height: 54px; padding: 3px 0; }
  .brand .logo-lg { height: 90px; }
}
