/* ==========================================================================
   Architects' Wall - main stylesheet (do not edit for colours/fonts: use theme.css)
   Plain CSS, no framework. Everything is sized in rem, so the whole site scales
   smoothly from small phones (320px) up to large desktop screens (2560px+).
   Sections: 1 Base  2 Layout  3 Icons  4 Header  5 Buttons  6 Hero  7 Cards
   8 Projects toolbar  9 Content blocks  10 Project page  11 Forms & contact
   12 CTA & SEO text  13 Footer  14 Floating buttons, share, lightbox  15 Responsive  16 Print
   ========================================================================== */

/* 1 Base ------------------------------------------------------------------- */
:root {
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: clamp(3rem, 7vw, 4.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  background: var(--c-bg); color: var(--c-ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.1; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7vw + .5rem, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw + .6rem, 2.8rem); margin-bottom: var(--s3); }
h3 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem); }
p + p { margin-top: var(--s2); }
:focus-visible { outline: .2rem solid var(--c-accent); outline-offset: .2rem; }
.skip { position: absolute; left: -999px; z-index: 99; }
.skip:focus { left: var(--s2); top: var(--s2); background: var(--c-ink); color: #fff; padding: var(--s1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 100rem) { html { font-size: 112.5%; } }   /* 1600px+ */
@media (min-width: 137.5rem) { html { font-size: 125%; } }   /* 2200px+ */

/* 2 Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 47.5rem; }
.section { padding-block: var(--s5); }
.soft { background: var(--c-soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--s1) var(--s2); margin-bottom: var(--s3); }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s4); padding-block: var(--s4); }
.sub { color: var(--c-mute); font-size: .95rem; }
.lead { font-size: clamp(1.1rem, 1vw + .9rem, 1.3rem); color: var(--c-mute); max-width: 56ch; margin-top: var(--s2); }
.prose { max-width: 62ch; }
.more { font-weight: 600; text-decoration-color: var(--c-accent); text-decoration-thickness: .2rem; text-underline-offset: .3rem; display: inline-flex; align-items: center; gap: .25rem; }
.page-head { padding-block: var(--s4) var(--s2); }
.page-head h1 { font-size: clamp(2.2rem, 5vw + .5rem, 4.4rem); }
.eyebrow { display: block; font: 600 .9rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-dark); margin-bottom: .6rem; }
.crumbs { padding-top: var(--s3); color: var(--c-mute); font-size: .95rem; }
.crumbs a { text-decoration-color: var(--c-accent); }
.demo-bar { background: #fff3cd; color: #5c4400; text-align: center; font-size: .85rem; padding: .35rem var(--gutter); }

/* 3 Icons ------------------------------------------------------------------- */
/* Material Symbols (Google). Hidden until the icon font has loaded (see site.js). */
.ms {
  font-family: "Material Symbols Outlined"; font-weight: 400; font-style: normal; font-size: 1.3em; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; display: inline-block; width: 1em; height: 1em;
  overflow: hidden; vertical-align: middle; flex: none; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: "liga";
}
html:not(.icons-ready) .ms { visibility: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 5 Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; font: 600 1rem var(--f-body); padding: .65rem 1.4rem; text-decoration: none; text-align: center; border: 2px solid var(--c-ink); background: none; color: var(--c-ink); cursor: pointer; border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.btn-primary:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: #fff; }
.btn-sm { min-height: 2.4rem; padding: .4rem 1rem; font-size: .95rem; }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* 6 Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: min(86vh, 48rem); min-height: min(86svh, 48rem); display: grid; align-items: end; color: #fff; background: var(--c-dark); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img + img { opacity: 0; transition: opacity 1.6s ease; }
.hero-media img.on { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 17, 20, .88) 5%, rgba(14, 17, 20, .25) 60%, rgba(14, 17, 20, .1)); }
.hero-body { position: relative; padding-block: var(--s5); width: 100%; }
.hero-body .eyebrow { color: var(--c-accent); }
.hero-body h1 { max-width: 15ch; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-body p { max-width: 54ch; font-size: clamp(1.05rem, 1vw + .9rem, 1.25rem); margin-block: var(--s2) var(--s3); }
.hero-body small { display: block; margin-top: var(--s3); opacity: .8; }
@keyframes rise { from { opacity: 0; transform: translateY(1.4rem); } to { opacity: 1; transform: none; } }

/* 7 Cards & grid -------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: var(--s4) var(--s3); }
.grid[data-cols] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.card { text-decoration: none; display: block; min-width: 0; }
.frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-soft); margin-bottom: .8rem; border-radius: var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover img { transform: scale(1.04); }
.frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .25rem; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover .frame::after, .card:focus-visible .frame::after { transform: scaleX(1); }
.card h3 { font-size: 1.6rem; }
.card p { line-height: 1.4; }
.card .sub { margin-top: .15rem; }
.tag { position: absolute; left: 0; top: 1rem; background: var(--c-accent); color: var(--c-on-accent); font-weight: 600; font-size: .9rem; padding: .2rem .8rem; }
.tag-grey { background: var(--c-ink); color: #fff; }
/* column density chosen with the toolbar buttons (projects page) */
.grid[data-cols="4"] { gap: var(--s3) var(--s2); }
.grid[data-cols="5"], .grid[data-cols="6"] { gap: var(--s2); }
.grid[data-cols="4"] .card h3 { font-size: 1.3rem; }
.grid[data-cols="5"] .card h3, .grid[data-cols="6"] .card h3 { font-size: 1.1rem; }
.grid[data-cols="5"] .bld, .grid[data-cols="6"] .bld, .grid[data-cols="2"] .bld { display: none; }
.grid[data-cols="5"] .sub, .grid[data-cols="6"] .sub { font-size: .82rem; }
.grid[data-cols="6"] .sub { display: none; }
.grid[data-cols="5"] .tag, .grid[data-cols="6"] .tag { font-size: .72rem; padding: .1rem .5rem; top: .6rem; }
.grid[data-cols="2"] .card h3 { font-size: 1.2rem; }

/* 8 Projects toolbar ---------------------------------------------------------- */
.toolbar { display: grid; gap: var(--s2); justify-items: center; margin-bottom: var(--s3); text-align: center; }
.search-box { position: relative; width: min(100%, 40rem); }
.search-box > .ms { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--c-mute); pointer-events: none; }
.search-box input { width: 100%; padding: .95rem 3rem; font-size: 1.05rem; border: 2px solid var(--c-line); background: #fff; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.search-box input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 .25rem rgba(255, 144, 39, .18); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--c-mute); }
.chip-rows { display: grid; gap: .6rem; justify-items: center; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; }
.chips .chip-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-mute); margin-right: .3rem; }
.chips button { font: inherit; font-size: .95rem; min-height: 2.25rem; background: none; border: 1px solid var(--c-line); padding: .2rem 1rem; cursor: pointer; border-radius: var(--radius); transition: border-color .2s, background .2s; }
.chips button:hover { border-color: var(--c-ink); }
.chips button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.toolbar-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2); width: 100%; border-top: 1px solid var(--c-line); padding-top: var(--s2); }
.toolbar-meta .sub { margin: 0; }
.density { display: inline-flex; align-items: center; gap: .3rem; }
.density > .ms { color: var(--c-mute); margin-right: .2rem; }
.density button { font: 600 .95rem var(--f-body); width: 2.4rem; height: 2.4rem; border: 1px solid var(--c-line); background: #fff; cursor: pointer; display: grid; place-items: center; border-radius: var(--radius); }
.density button:hover { border-color: var(--c-ink); }
.density button[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.load-more { display: grid; justify-items: center; gap: .5rem; margin-top: var(--s4); }
.empty { text-align: center; padding-block: var(--s4); display: grid; justify-items: center; gap: var(--s2); color: var(--c-mute); }
.grid-end { padding-bottom: var(--s5); }

/* 9 Content blocks -------------------------------------------------------------- */
/* Centred grids: cards keep a fixed width and the last row is centred, so a few items still look good.
   The number per row is the CSS variable --cols (the "per row" buttons set it). Use class "flex-grid" on any list. */
.flex-grid, .svcs, .people, .dl-list, .clients { --gap: var(--s3); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s4) var(--gap); }
.flex-grid > *, .svcs > *, .people > *, .dl-list > *, .clients > * { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.svcs > * { flex-grow: 1; max-width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.4); }
.flex-grid { --cols: 4; } .svcs { --cols: 4; } .people { --cols: 4; } .people.lead-grid { --cols: 3; } .people.compact { --cols: 5; }
.dl-list { --cols: 3; } .clients { --cols: 6; --gap: .85rem; }
@media (max-width: 75rem) { .flex-grid { --cols: 3; } .svcs { --cols: 2; } .people, .people.lead-grid { --cols: 3; } .people.compact { --cols: 4; } .dl-list { --cols: 2; } .clients { --cols: 4; } }
@media (max-width: 40rem) { .flex-grid { --cols: 2; } .svcs, .dl-list { --cols: 1; } .people, .people.lead-grid, .people.compact { --cols: 2; } .clients { --cols: 3; } }

/* Services: big round icon, centred text */
.svc { background: #fff; border: 1px solid var(--c-line); padding: 2.25rem 1.5rem 2rem; text-align: center; border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-.3rem); box-shadow: var(--shadow); border-color: var(--c-accent); }
.svc-icon { width: 5.5rem; height: 5.5rem; margin: 0 auto 1.25rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 144, 39, .13); color: var(--c-accent-dark); transition: background .25s, color .25s; }
.svc-icon .ms { font-size: 3rem; }
.svc:hover .svc-icon { background: var(--c-accent); color: var(--c-on-accent); }
.svc h3 { margin-bottom: .1rem; }
.svc p { color: var(--c-mute); margin-top: .5rem; }
.svc .tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: var(--s2); }
.svc .tags li { font-size: .82rem; border: 1px solid var(--c-line); padding: .05rem .65rem; color: var(--c-mute); background: var(--c-soft); }

/* Steps: number on the left, text on the right */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--s3) var(--s4); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; border-top: 1px solid var(--c-ink); padding-top: var(--s2); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: 1 / span 2; font: 700 clamp(2.6rem, 5vw, 3.4rem) / .9 var(--f-head); color: var(--c-accent-dark); min-width: 3.4rem; }
.steps h3 { grid-column: 2; }
.steps p { grid-column: 2; color: var(--c-mute); margin-top: .3rem; font-size: .98rem; }

/* Numbers strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr)); border-top: .2rem solid var(--c-ink); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s4); }
.stats > div { padding: var(--s3) var(--s2); text-align: center; }
.stats > div + div { border-left: 1px solid var(--c-line); }
.stats strong { display: block; font: 700 clamp(2.6rem, 8vw, 5rem) / 1 var(--f-head); font-variant-numeric: tabular-nums; }
.stats strong::after { content: ""; display: block; width: 2.2rem; height: .25rem; background: var(--c-accent); margin: .6rem auto .5rem; }
.stats span { color: var(--c-mute); font-size: .95rem; }

/* Client logo wall */
.clients { list-style: none; padding: 0; margin: 0; --gap: .85rem; }
.client { min-width: 0; overflow: hidden; border: 1px solid var(--c-line); background: #fff; aspect-ratio: 3 / 2; padding: .9rem; display: grid; place-items: center; text-align: center; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.client:hover { border-color: var(--c-accent); box-shadow: var(--shadow); transform: translateY(-.15rem); }
.client img { max-width: 60%; max-height: 72%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.client:hover img { filter: none; opacity: 1; }
.client-text { font: 600 clamp(.85rem, 3.2vw, 1.05rem) / 1.2 var(--f-head); color: var(--c-ink); overflow-wrap: anywhere; hyphens: auto; }
.people-group + .people-group { margin-top: var(--s4); }
.people-group > h2 { font-size: 1.4rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-mute); font-weight: 600; margin-bottom: var(--s3); }
.person { min-width: 0; }
.person-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-soft); margin-bottom: var(--s2); border-bottom: .25rem solid var(--c-accent); border-radius: var(--radius); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.person:hover .person-photo img { transform: scale(1.04); }
.avatar { width: 100%; height: 100%; display: grid; place-items: center; font: 700 clamp(4rem, 9vw, 6.5rem) var(--f-head); color: var(--c-accent-dark); background: linear-gradient(160deg, var(--c-soft), rgba(255, 144, 39, .16)); }
.person h3 { font-size: 1.6rem; }
.people.compact .person h3 { font-size: 1.25rem; }
.person .role { font-weight: 600; color: var(--c-accent-dark); margin-top: .1rem; }
.person .qual { color: var(--c-mute); font-size: .92rem; margin-top: .3rem; display: flex; gap: .4rem; align-items: flex-start; }
.person .bio { margin-top: .6rem; color: var(--c-mute); font-size: .95rem; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s3); }
.pillar { padding: var(--s3); background: #fff; border: 1px solid var(--c-line); }
.pillar .ms { font-size: 2rem; color: var(--c-accent-dark); margin-bottom: .6rem; display: block; }
.pillar p { color: var(--c-mute); margin-top: .3rem; }
.awards { list-style: none; padding: 0; }
.awards li { display: flex; gap: var(--s3); border-top: 1px solid var(--c-line); padding: .9rem 0; }
.awards li > span { font: 600 1.5rem var(--f-head); width: 4rem; flex: none; }
.awards h3 { font-size: 1.3rem; }
.awards p { color: var(--c-mute); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--s3); }
.quote { background: #fff; border: 1px solid var(--c-line); padding: var(--s3); }
.quote .ms { color: var(--c-accent-dark); font-size: 2.2rem; }
.quote blockquote { margin: .4rem 0 var(--s2); font-size: 1.1rem; }
.quote figcaption { display: grid; }
.quote figcaption span { color: var(--c-mute); font-size: .92rem; }
.faq details { border-top: 1px solid var(--c-line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: .5rem; color: var(--c-mute); }

/* 10 Project page ------------------------------------------------------------------ */
.pt { margin-top: var(--s2); }
.gal-tools { display: flex; justify-content: flex-end; margin-top: var(--s2); }
.gal-group + .gal-group { margin-top: var(--s4); }
.gal-group > h2 { font-size: 1.5rem; margin-bottom: var(--s2); }
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: .75rem; margin-top: var(--s2); }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-soft); cursor: zoom-in; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery.single { max-width: 52rem; margin-inline: auto; }
.gallery.single a, .gallery[data-cols="1"] a { aspect-ratio: auto; }
.gallery.single img, .gallery[data-cols="1"] img { height: auto; max-height: 80vh; object-fit: contain; }
.gal-group.drawings .gallery a { background: #fff; border: 1px solid var(--c-line); }
.gal-group.drawings .gallery img { object-fit: contain; }
@media (max-width: 40rem) { .gallery { --cols: 2; } }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; margin-top: var(--s2); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail { align-items: start; }
dl.facts div { display: grid; grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr); gap: var(--s2); border-top: 1px solid var(--c-line); padding: .7rem 0; }
dt { color: var(--c-mute); }
dd { margin: 0; }
.prose .actions { margin-top: var(--s3); }
.concept { max-width: 62ch; margin-top: var(--s3); }
.concept h2 { font-size: 1.6rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); border-top: 1px solid var(--c-line); margin-top: var(--s4); }
.pager a { display: grid; gap: .1rem; padding: var(--s3) 0; text-decoration: none; min-width: 0; }
.pager a:last-child { text-align: right; justify-items: end; }
.pager small { color: var(--c-mute); display: inline-flex; align-items: center; gap: .2rem; }
.pager strong { font: 600 clamp(1.1rem, 2vw + .5rem, 1.5rem) var(--f-head); }
.pager a:hover strong { color: var(--c-accent-dark); }
.related { padding-block: var(--s4) var(--s5); }

/* 11 Forms & contact ------------------------------------------------------------------ */
form { display: grid; gap: var(--s2); }
label { display: grid; gap: .3rem; color: var(--c-mute); }
input, textarea, select { font: inherit; padding: .7rem; border: 1px solid #aab3b9; background: #fff; color: var(--c-ink); border-radius: var(--radius); width: 100%; min-width: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 .2rem rgba(255, 144, 39, .2); }
.cform { max-width: 35rem; }
.cform .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s2); }
.cform button { justify-self: start; }
#cform-msg { font-weight: 500; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .5rem; align-items: start; border-top: 1px solid var(--c-line); padding: .9rem 0; }
.contact-list .ms { color: var(--c-accent-dark); font-size: 1.6rem; }
.contact-list small { display: block; color: var(--c-mute); }
.map { width: 100%; aspect-ratio: 16 / 10; max-height: 26rem; border: 0; margin-top: var(--s3); }

/* 12 CTA & SEO text ------------------------------------------------------------------- */
.cta { background: var(--c-dark); color: #fff; padding-block: var(--s5); }
.cta p { margin: 0 0 var(--s3); max-width: 52ch; color: #cfd5d9; }
.seo-text { padding-block: var(--s5); border-top: 1px solid var(--c-line); }
.seo-text h2 { font-size: clamp(1.4rem, 2vw + .6rem, 2rem); }
.seo-text p { color: var(--c-mute); max-width: 78ch; }
.prose-page { max-width: 48rem; padding-bottom: var(--s5); }
.prose-page h2 { font-size: 1.6rem; margin: var(--s4) 0 var(--s1); }
.prose-page ul { padding-left: 1.2rem; }

/* 14 Lightbox ------------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 14, .96); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 3rem; height: 3rem; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: var(--c-accent); color: var(--c-on-accent); }
.lb-close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #cfd5d9; font-size: .9rem; }

/* 15 Responsive -------------------------------------------------------------------------- */
@media (min-width: 100rem) { :root { --max: 88rem; } }   /* wider page on large monitors */
@media (max-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--s3); } }
@media (max-width: 40rem) {                                /* phones */
  .toolbar-meta { justify-content: center; }
  .hero-body .actions .btn { flex: 1 1 100%; }
  .actions .btn { flex: 1 1 auto; }
  .awards li { flex-direction: column; gap: .2rem; }
}
@media (max-width: 22.5rem) {                              /* very small phones (360px and below) */
  :root { --gutter: .85rem; }
  .clients { --cols: 2; }
  dl.facts div { grid-template-columns: 1fr; gap: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; justify-items: start; }
}
@media (max-height: 30rem) and (orientation: landscape) { .hero { min-height: 30rem; } }
@media (prefers-reduced-motion: reduce) {
  .hero-body h1 { animation: none; }
  .frame img, .frame::after, .client img, .gallery img { transition: none; }
  html { scroll-behavior: auto; }
}

/* 16 Print (project sheet) ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .cta, .fab, .noprint, .crumbs, .lightbox, .related, .pager, .seo-text, .legal-bar, .demo-bar { display: none !important; }
  body { font-size: 11pt; display: block; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-column: 1 / -1; }
  .gallery img { max-height: 9cm; }
  .split { grid-template-columns: 1fr 1fr; }
}

/* Sections that wrap a data-driven list hide themselves when the list is empty */
[data-section]:has([data-render]:empty) { display: none; }

/* About page ------------------------------------------------------------------------- */
.about-hero { position: relative; color: #fff; background: var(--c-dark); padding-block: clamp(3.5rem, 11vw, 7.5rem); overflow: hidden; }
.about-hero::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover; opacity: .4; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 17, 20, .92), rgba(14, 17, 20, .35)); }
.about-hero .wrap { position: relative; z-index: 1; }
.about-hero .eyebrow { color: var(--c-accent); }
.about-hero h1 { max-width: 16ch; }
.about-hero .lead { color: #dfe4e7; }
.story { align-items: start; }
.story h2 { font-size: clamp(2rem, 4vw + .5rem, 3.2rem); max-width: 14ch; }
.story .prose p:first-child { font-size: 1.2rem; color: var(--c-ink); }
.facts-card { background: var(--c-soft); padding: var(--s3); border-top: .25rem solid var(--c-accent); margin-top: var(--s3); }
.facts-card dl.facts div:first-child { border-top: 0; }
.vm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--s3); }
.vm-card { background: #fff; padding: clamp(1.75rem, 4vw, 2.75rem); border-top: .25rem solid var(--c-accent); box-shadow: var(--shadow); }
.vm-card > .ms { font-size: 3rem; color: var(--c-accent-dark); display: block; margin-bottom: .8rem; }
.vm-card p { font: 500 clamp(1.35rem, 2vw + .6rem, 1.9rem) / 1.3 var(--f-head); margin-top: .2rem; }
.philosophy { background: var(--c-dark); color: #fff; }
.philosophy .eyebrow { color: var(--c-accent); }
.philosophy .lead { color: #cfd5d9; max-width: 62ch; margin-bottom: var(--s4); }
.pillars-xl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--s3); }
.pillar-xl { position: relative; padding: 2.25rem 1.75rem 2rem; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); transition: border-color .25s, background .25s; }
.pillar-xl:hover { border-color: var(--c-accent); background: rgba(255, 255, 255, .06); }
.pillar-xl .num { position: absolute; top: .9rem; right: 1.2rem; font: 700 3.5rem / 1 var(--f-head); color: rgba(255, 255, 255, .1); }
.pillar-xl > .ms { font-size: 3rem; color: var(--c-accent); display: block; margin-bottom: 1rem; }
.pillar-xl h3 { font-size: 1.7rem; }
.pillar-xl p { color: #cfd5d9; margin-top: .4rem; }
.timeline { list-style: none; padding: 0 0 0 1.25rem; margin: 0; border-left: 2px solid var(--c-line); }
.timeline li { position: relative; padding: 0 0 var(--s3) 1.75rem; display: grid; gap: .2rem; }
.timeline li::before { content: ""; position: absolute; left: -1.25rem; top: .55rem; width: .9rem; height: .9rem; margin-left: -.45rem; background: var(--c-accent); border-radius: 50%; box-shadow: 0 0 0 .3rem #fff; }
.timeline .yr { font: 700 2.2rem / 1 var(--f-head); }
.timeline p { color: var(--c-mute); margin: 0; }
.area-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s2); }
.area-chips span { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid var(--c-line); background: #fff; padding: .3rem .9rem .3rem .6rem; font-weight: 500; }
.area-chips .ms { color: var(--c-accent-dark); font-size: 1.15rem; }

/* Dense layouts when many cards are shown per row (set by the "per row" buttons) */
.svcs[data-cols="4"] .svc { padding: 1.6rem 1rem 1.4rem; }
.svcs[data-cols="4"] .svc p { font-size: .95rem; }
.svcs[data-cols="5"] .svc p, .svcs[data-cols="6"] .svc p, .svcs[data-cols="5"] .tags, .svcs[data-cols="6"] .tags { display: none; }
.svcs[data-cols="5"] .svc, .svcs[data-cols="6"] .svc { padding: 1.4rem .75rem; }
.svcs[data-cols="5"] .svc-icon, .svcs[data-cols="6"] .svc-icon { width: 4.2rem; height: 4.2rem; }
.svcs[data-cols="5"] .svc-icon .ms, .svcs[data-cols="6"] .svc-icon .ms { font-size: 2.3rem; }
.svcs[data-cols="5"] .svc h3, .svcs[data-cols="6"] .svc h3 { font-size: 1.1rem; }
.people[data-cols="5"] .person h3, .people[data-cols="6"] .person h3 { font-size: 1.05rem; }
.people[data-cols="5"] .person .bio, .people[data-cols="6"] .person .bio, .people[data-cols="6"] .person .qual { display: none; }
.people[data-cols="6"] .person .role { font-size: .85rem; }
.map-card { border: 1px solid var(--c-line); background: #fff; }
.map-card .map { display: block; margin: 0; max-height: none; aspect-ratio: 16 / 9; }
.map-info { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2); padding: 1rem 1.25rem; }
.map-info p { display: flex; gap: .5rem; align-items: flex-start; margin: 0; }
.map-info .ms { color: var(--c-accent-dark); }
html[data-protect] img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* 17 Utilities: ready-made classes so pages never need custom CSS ----------------------------------
   Full list with examples: docs/CSS-GUIDE.md and docs/components.html */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.stack-lg { --stack: 2rem; } .stack-sm { --stack: .5rem; }
.row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.row-between { justify-content: space-between; } .row-center { justify-content: center; } .row-end { justify-content: flex-end; }
.cols-1, .cols-2, .cols-3, .cols-4, .cols-5, .cols-6 { display: grid; gap: var(--s3); }
.cols-1 { grid-template-columns: minmax(0, 1fr); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--s3); }
@media (max-width: 60rem) { .cols-3, .cols-4, .cols-5, .cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } .cols-5, .cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-0 { margin: 0; } .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--s1); } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); }
.mb-1 { margin-bottom: var(--s1); } .mb-2 { margin-bottom: var(--s2); } .mb-3 { margin-bottom: var(--s3); } .mb-4 { margin-bottom: var(--s4); } .mb-5 { margin-bottom: var(--s5); }
.py-2 { padding-block: var(--s2); } .py-3 { padding-block: var(--s3); } .py-4 { padding-block: var(--s4); } .py-5 { padding-block: var(--s5); }
.p-2 { padding: var(--s2); } .p-3 { padding: var(--s3); } .p-4 { padding: var(--s4); }
.mx-auto { margin-inline: auto; }
.text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; }
.text-mute { color: var(--c-mute); } .text-accent { color: var(--c-accent-dark); } .text-light { color: #fff; }
.text-sm { font-size: .9rem; } .text-lg { font-size: 1.25rem; } .text-xl { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
.fw-600 { font-weight: 600; } .upper { text-transform: uppercase; letter-spacing: .08em; } .heading { font-family: var(--f-head); line-height: 1.1; }
.bg-white { background: #fff; } .bg-soft { background: var(--c-soft); } .bg-accent { background: var(--c-accent); color: var(--c-on-accent); } .bg-dark { background: var(--c-dark); color: #fff; }
.box { background: #fff; border: 1px solid var(--c-line); padding: var(--s3); border-radius: var(--radius); }
.box-accent { border-top: .25rem solid var(--c-accent); } .shadow { box-shadow: var(--shadow); } .round { border-radius: 50%; }
.ratio-1x1, .ratio-4x3, .ratio-16x9 { position: relative; overflow: hidden; background: var(--c-soft); }
.ratio-1x1 { aspect-ratio: 1 / 1; } .ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-16x9 { aspect-ratio: 16 / 9; }
.img-cover { width: 100%; height: 100%; object-fit: cover; } .img-contain { width: 100%; height: 100%; object-fit: contain; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .7rem; background: var(--c-soft); color: var(--c-ink); }
.badge-accent { background: var(--c-accent); color: var(--c-on-accent); } .badge-dark { background: var(--c-dark); color: #fff; }
.note { border-left: .25rem solid var(--c-accent); background: var(--c-soft); padding: var(--s2) var(--s3); }
.divider { border: 0; border-top: 1px solid var(--c-line); margin-block: var(--s3); }
.table { width: 100%; border-collapse: collapse; } .table th, .table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--c-line); } .table th { background: var(--c-soft); font-weight: 600; }
.btn-lg { min-height: 3.25rem; padding: .8rem 1.8rem; font-size: 1.1rem; } .btn-block { display: flex; width: 100%; }
.hide-mobile { } .hide-desktop { display: none; }
@media (max-width: 40rem) { .hide-mobile { display: none !important; } .hide-desktop { display: initial; } }




/* Loading placeholder: moving grey shimmer until the image appears */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.frame, .person-photo, .gallery a, .post .thumb, .vcard .thumb {
  background: linear-gradient(100deg, var(--c-soft) 30%, rgba(255, 255, 255, .75) 50%, var(--c-soft) 70%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .frame, .person-photo, .gallery a, .post .thumb, .vcard .thumb { animation: none; } }

/* Home page services: exactly 3 per row (1 per row on phones) */
.svcs.svcs-3 { --cols: 3; }
@media (max-width: 40rem) { .svcs.svcs-3 { --cols: 1; } }


/* Members page: profile cards for the leadership team (photo on one side, details on the other) */
.people.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); --cols: 1; }
.lead-grid .person { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lead-grid .person:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
.lead-grid .person:nth-child(even) .person-photo { order: 2; border-right: 0; border-left: .25rem solid var(--c-accent); }
.lead-grid .person-photo { margin: 0; aspect-ratio: auto; min-height: 26rem; border-radius: 0; border-bottom: 0; border-right: .25rem solid var(--c-accent); }
.lead-grid .person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.lead-grid .person:hover .person-photo img { transform: none; }
.lead-grid .person-body { align-self: center; padding: clamp(1.5rem, 3.5vw, 3rem); }
.lead-grid .person h3 { font-size: clamp(1.8rem, 2.2vw + 1rem, 2.6rem); }
.lead-grid .person .role { margin-top: .35rem; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }
.lead-grid .person .qual { margin-top: .6rem; font-size: 1rem; align-items: center; }
.lead-grid .person .qual .ms { color: var(--c-accent-dark); }
.lead-grid .person .bio { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--c-line); font-size: 1.02rem; line-height: 1.75; }
@media (max-width: 52rem) {
  .lead-grid .person, .lead-grid .person:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .lead-grid .person:nth-child(even) .person-photo { order: 0; border-left: 0; }
  .lead-grid .person-photo, .lead-grid .person:nth-child(even) .person-photo { min-height: 0; aspect-ratio: 4 / 4.6; border-right: 0; border-bottom: .25rem solid var(--c-accent); }
}