/* Gypwalls — site styles (revision 7)

   SYSTEM
   Grid      4 columns < 600px · 8 columns 600–1023px · 12 columns ≥ 1024px.
             Column gap 16px / 24px / 24px. Side margin 16px / 24px / 40px. Content max width 1240px (centered).
             Every layout container below uses this grid; its children are placed on column lines only.
   Spacing   Only these steps: 4 8 12 16 24 32 48 64 96 128 (tokens --s1 … --s10). Section padding: 64 / 96.
   Type      Body 16px (<600) / 17px. h1, h2, h3 each have ONE size rule used everywhere.
   Alignment Text is left-aligned. Centered only: the 404 page, lightbox caption/counter, full-width phone buttons.
   Palette   Navy #1e1f4d from the logo; paper/stone tones from the plaster interiors in the photography. */

@font-face { font-family: "Libre Baskerville"; src: url("fonts/LibreBaskerville-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Bold.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  /* color */
  --navy: #1e1f4d; --navy-deep: #15163a; --navy-soft: #2c2e66;
  --ink: #191a28; --text: #2b2d39; --muted: #565a66;
  --paper: #f6f5f1; --stone: #ebe8e1; --white: #ffffff;
  --line: #d6d3cb; --line-strong: #a9a69e; --steel: #46507a;
  --on-navy-muted: #c9cbe0;
  --on-dark: #ffffff; --on-dark-muted: rgba(255,255,255,.82); --on-dark-line: rgba(255,255,255,.24); --dark-label: #c3c8e6;
  --wash: 21, 22, 58; /* navy-deep as RGB for photo washes */
  --error: #a1260d;
  --flag-bg: #fbe9df; --flag-text: #7a2e0e;   /* private review only */
  /* type */
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t-h1: clamp(2.125rem, 1.35rem + 3.4vw, 4.5rem);
  --t-h2: clamp(1.5rem, 1.25rem + 1.05vw, 2.25rem);
  --t-h3: clamp(1.2rem, 1.12rem + .35vw, 1.4rem);
  --t-lede: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --t-small: .9rem;
  --t-label: .76rem;
  --measure: 44ch;   /* measured: Instrument Sans fits up to ~1.56 characters per ch, so 44ch keeps every line ≤ 70 characters */
  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  /* grid */
  --cols: 4; --gap: var(--s4); --margin: var(--s4); --max: 1240px;
  --section: var(--s8);
  --radius: 2px;
}
@media (min-width: 600px)  { :root { --cols: 8;  --gap: var(--s5); --margin: var(--s5); --section: var(--s9); } }
@media (min-width: 1024px) { :root { --cols: 12; --gap: var(--s5); --margin: 40px; } }
/* 40px margin is the one non-scale value: it is a page margin, not spacing between elements (documented in docs/grid-and-type.md). */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s4); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--sans); }
@media (min-width: 600px) { body { font-size: 1.0625rem; } }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
li, figcaption, dd { text-wrap: pretty; }
/* Measure applies to running text only — never to list items used as layout (gallery, tiles, logos, nav). */
main :is(p, figcaption), .check-list li, .numbered li, .error-summary li { max-width: var(--measure); }
.gallery figcaption, .photo-credit { max-width: none; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; font-weight: 400; font-family: var(--serif); letter-spacing: -.012em; }
h1 { font-size: var(--t-h1); line-height: 1.12; }
h2 { font-size: var(--t-h2); line-height: 1.2; }
h3 { font-size: var(--t-h3); line-height: 1.3; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
code { font-size: .9em; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: none; }
main:focus { outline: none; }
.skip-link { position: absolute; left: var(--s3); top: -100px; z-index: 50; padding: var(--s3) var(--s4); background: var(--white); color: var(--navy); font-weight: 600; }
.skip-link:focus { top: var(--s3); }
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }

/* ---------- THE GRID ----------
   One template for every layout container. Children default to full width; placements below set column lines. */
.hero-layout, .film-layout, .section-head, .work-grid, .work-item.is-lead, .trades-layout, .start-layout, .logo-grid,
.association-inner, .contact-band-inner, .footer-grid, .page-head-grid, .jump ul, .capability, .capability.is-text .capability-body,
.boundary-grid, .project-list, .project-head-grid, .gallery, .pager, .about-grid, .contact-methods, .inquiry-grid, .prose-grid, .not-found-grid, .film-single,
.hero-full-inner, .page-hero-inner, .project-hero-inner, .facts-bar-inner, .statement-grid, .tiles, .cta-band-inner, .membership, .hero-facts {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap);
}
:where(.hero-layout, .film-layout, .section-head, .work-grid, .work-item.is-lead, .trades-layout, .start-layout, .association-inner, .contact-band-inner,
  .footer-grid, .page-head-grid, .jump ul, .capability, .capability.is-text .capability-body, .boundary-grid, .project-list, .project-head-grid,
  .gallery, .pager, .about-grid, .contact-methods, .inquiry-grid, .prose-grid, .not-found-grid, .film-single,
  .hero-full-inner, .page-hero-inner, .project-hero-inner, .facts-bar-inner, .statement-grid, .tiles, .cta-band-inner, .membership, .hero-facts) > * { grid-column: 1 / -1; min-width: 0; } /* :where = zero specificity, so any placement below wins */

/* ---------- type helpers ---------- */
.eyebrow { margin: 0 0 var(--s4); font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.eyebrow .num { color: var(--muted); margin-right: var(--s2); }
.lede { font-size: var(--t-lede); line-height: 1.6; color: var(--text); max-width: var(--measure); }
.subhead { margin-bottom: var(--s5); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); }
.subhead-count { font: 600 var(--t-label)/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.section-head { row-gap: var(--s4); margin-bottom: var(--s7); align-items: end; }
.section-head p { margin: 0; color: var(--muted); max-width: var(--measure); }
.section-head h2 { max-width: 20ch; }
.section-foot { margin: var(--s6) 0 0; }

/* ---------- buttons, links: one set of hover / focus / pressed states ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 48px; padding: var(--s3) var(--s5); border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: var(--white); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.button:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.button:active { background: var(--navy-deep); border-color: var(--navy-deep); }
.button-quiet { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.button-quiet:hover { background: var(--white); border-color: var(--navy); }
.button-quiet:active { background: var(--stone); }
.text-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-strong); }
.text-link:hover { text-decoration-color: currentColor; }
.text-link:active { color: var(--navy-deep); }
.text-link .icon { width: 18px; height: 18px; transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); }
main :is(p, li, dd, figcaption) a:not([class]) { color: var(--navy); text-decoration-color: var(--line-strong); }
main :is(p, li, dd, figcaption) a:not([class]):hover { text-decoration-color: currentColor; }
main :is(p, li, dd, figcaption) a:not([class]):active { color: var(--navy-deep); }

/* ---------- private review markers (never in release output) ---------- */
.preview-bar { background: var(--flag-bg); color: var(--flag-text); font-size: var(--t-small); }
.preview-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1) var(--s4); min-height: 40px; padding-block: var(--s1); }
.preview-bar a { font-weight: 600; padding-block: var(--s2); }
.preview-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: var(--s2); vertical-align: 1px; }
.review-flag { display: inline-block; margin-left: var(--s2); padding: 0 var(--s2); border-radius: var(--radius); background: var(--flag-bg); color: var(--flag-text); font: 600 .72rem/1.7 var(--sans); white-space: nowrap; vertical-align: 2px; }
.review-note { margin: var(--s5) 0 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--flag-text); background: var(--flag-bg); color: var(--flag-text); font-size: var(--t-small); line-height: 1.5; max-width: var(--measure); }
.review-note strong { margin-right: var(--s2); }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 80px; }
.brand { display: inline-flex; flex: none; padding-block: var(--s2); }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s2); }
.site-nav ul { display: flex; list-style: none; gap: var(--s1); }
.site-nav ul a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: var(--on-navy-muted); text-decoration: none; font-weight: 500; position: relative; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--white); }
.site-nav ul a:active { color: var(--white); opacity: .8; }
.site-nav ul a[aria-current]::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s2); height: 2px; background: var(--white); }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; margin-left: var(--s3); padding: 0 var(--s4); border: 1px solid rgba(255,255,255,.6); color: var(--white); text-decoration: none; font-weight: 600; border-radius: var(--radius); transition: background-color .15s, color .15s; }
.nav-cta:hover, .nav-cta[aria-current] { background: var(--white); color: var(--navy); }
.nav-cta:active { background: var(--stone); color: var(--navy); }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: var(--s7) var(--section); }
.hero-layout { row-gap: var(--s6); align-items: center; }
.hero h1 { margin-bottom: var(--s5); max-width: 13ch; }
.hero .lede { margin-bottom: var(--s6); }
.facts { display: grid; gap: 0; margin: var(--s7) 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: var(--s1); }
.facts dd { margin: 0; color: var(--ink); line-height: 1.45; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--stone); }
.hero-media figcaption, .capability-media figcaption, .about-media figcaption { padding-top: var(--s3); font-size: var(--t-small); color: var(--muted); }
.hero-media figcaption a { font-weight: 600; color: var(--ink); }
.fill { width: 100%; height: 100%; object-fit: cover; background: var(--stone); }

/* scope line — used wherever a project is described */
.scope { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s2); font-size: var(--t-small); }
.scope-label { font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scope-value { color: var(--ink); font-weight: 600; }
.scope-value.is-missing { font-weight: 400; color: var(--muted); font-style: italic; }
.scope .review-flag { margin-left: 0; }

/* ---------- film ---------- */
.film-section { background: var(--stone); }
.film-layout { row-gap: var(--s5); align-items: center; }
.film-copy h2 { margin-bottom: var(--s4); }
.film-copy p { max-width: var(--measure); }
.film-copy .scope { display: flex; margin: 0 0 var(--s3); }
.film { margin: 0; }
.film-frame { position: relative; background: var(--navy-deep); aspect-ratio: 910 / 512; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-frame:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; }
.film-frame video:focus-visible { outline: none; }
.film figcaption { margin-top: var(--s3); font-size: var(--t-small); color: var(--muted); max-width: var(--measure); }

/* ---------- selected work (homepage) ---------- */
.work-grid { row-gap: var(--s7); }
.work-item { display: flex; flex-direction: column; }
.work-item.is-lead { row-gap: var(--s4); align-items: end; }
.work-image { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--stone); }
.work-item.is-lead .work-image { aspect-ratio: 16 / 10; }
.work-image img, .project-row-image img, .gallery-link img { transition: transform .4s ease; }
.work-item:hover .work-image img, .project-row:hover .project-row-image img { transform: scale(1.02); }
.work-text { padding-top: var(--s4); }
.work-item.is-lead .work-text { padding: 0 0 var(--s2); }
.work-text h3 a, .project-row-text h3 a { text-decoration: none; }
.work-text h3 a:hover, .project-row-text h3 a:hover { text-decoration: underline; }
.work-text h3 a:active, .project-row-text h3 a:active { color: var(--navy-deep); }
.work-text h3, .project-row-text h3 { margin-bottom: var(--s1); }
.work-setting { margin: 0 0 var(--s2); font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.work-location { margin: 0 0 var(--s2); color: var(--muted); font-size: .95rem; }

/* ---------- trades ---------- */
.trades-section { background: var(--white); }
.trades-layout { row-gap: var(--s6); align-items: start; }
.trades-layout h2 { margin-bottom: var(--s4); }
.trades-layout p { color: var(--muted); max-width: var(--measure); }
.trade-list { list-style: none; border-top: 1px solid var(--line); }
.trade-list li { border-bottom: 1px solid var(--line); }
.trade-list a { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: var(--s4); align-items: center; padding: var(--s5) 0; text-decoration: none; }
.trade-name { display: flex; gap: var(--s3); align-items: baseline; font-family: var(--serif); font-size: var(--t-h3); color: var(--ink); margin-bottom: var(--s1); }
.trade-num { font: 400 .85rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.trade-summary { display: block; color: var(--muted); font-size: .97rem; }
.trade-list a:hover .trade-label { text-decoration: underline; text-decoration-thickness: 1px; }
.trade-list a:active .trade-name { color: var(--navy-deep); }
.trade-list .icon { color: var(--navy); transition: transform .15s; }
.trade-list a:hover .icon { transform: translateX(4px); }

/* ---------- start a conversation ---------- */
.start-layout { row-gap: var(--s6); align-items: start; }
.numbered { list-style: none; counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding: 0 0 var(--s4) var(--s7); margin-bottom: var(--s4); border-bottom: 1px solid var(--line); color: var(--muted); }
.numbered li:last-child { margin-bottom: 0; }
.numbered li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-size: .85rem; color: var(--steel); font-weight: 600; font-variant-numeric: tabular-nums; }
.numbered strong { color: var(--ink); }
.start-aside { padding: var(--s5); background: var(--white); border: 1px solid var(--line); }
.start-aside p { color: var(--muted); font-size: .95rem; }
.start-aside .button { width: 100%; }
.start-region { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.3; color: var(--ink) !important; }
.start-region span { display: block; font: 600 var(--t-label)/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }

/* ---------- references & association ---------- */
.references { background: var(--paper); }
.logo-grid { list-style: none; row-gap: var(--gap); }
.logo-grid li { display: flex; align-items: center; justify-content: center; min-height: 112px; padding: var(--s4); background: var(--white); border: 1px solid var(--line); }
.logo-grid img { max-height: 64px; max-width: 80%; width: auto; object-fit: contain; } /* full color, as supplied */
.logo-grid img.is-compact { max-height: 80px; } /* near-square marks read smaller at the same height */
.association { padding-block: var(--s8); border-top: 1px solid var(--line); }
.association-inner { row-gap: var(--s5); align-items: center; }
.association-logo { display: block; width: min(320px, 100%); }
.association-logo img { width: 100%; }
.association-logo:hover img { opacity: .9; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: .95rem; }
.footer-grid { row-gap: var(--s6); padding-block: var(--s8) var(--s7); }
.footer-brand p { margin-top: var(--s4); max-width: 34ch; }
.footer-brand .brand img { height: 44px; }
.footer-heading { font: 600 var(--t-label)/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin: 0 0 var(--s2); }
.footer-list { list-style: none; }
.footer-list a, .footer-base a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-navy-muted); text-decoration: none; }
.footer-list a:hover, .footer-base a:hover { color: var(--white); text-decoration: underline; }
.footer-list a:active, .footer-base a:active { color: var(--white); opacity: .8; }
.site-footer address { line-height: 1.6; padding-top: var(--s2); }
.footer-regions { margin-top: var(--s3); color: var(--white); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); padding-block: var(--s4) var(--s6); border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }

/* ---------- interior page heads ---------- */
.page-head { padding-block: var(--s7) var(--s6); }
.page-head-grid { row-gap: var(--s4); align-items: end; }
.page-head-grid .lede { margin: 0; color: var(--muted); }
.jump { margin-top: var(--s7); }
.jump ul { list-style: none; }
.jump li { border-top: 1px solid var(--line); }
.jump li:last-child { border-bottom: 1px solid var(--line); }
.jump a { display: flex; align-items: center; gap: var(--s3); min-height: 56px; text-decoration: none; font-weight: 600; color: var(--ink); }
.jump .num { color: var(--muted); font-weight: 400; font-size: .85rem; }
.jump a:hover { color: var(--navy); text-decoration: underline; }
.jump a:active { color: var(--navy-deep); }

/* ---------- capabilities ---------- */
.capabilities { display: grid; row-gap: var(--s9); padding-block: var(--s7) var(--section); }
.capability { row-gap: var(--s5); align-items: center; scroll-margin-top: var(--s5); }
.capability-media { margin: 0; }
.capability-media img { aspect-ratio: 4 / 3; }
.capability-media figcaption a, .about-media figcaption a { color: var(--ink); }
.capability-body h2 { margin-bottom: var(--s4); }
.capability-body p { max-width: var(--measure); }
.capability.is-text { padding-top: var(--s7); border-top: 1px solid var(--line); }
.capability.is-text .capability-body { row-gap: var(--s5); }
.capability.is-text .cap-detail .list-title { margin-top: 0; }
.spec-ref { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.spec-ref span { color: var(--muted); }
.list-title { margin: var(--s5) 0 var(--s2); }
.check-list { list-style: none; }
.check-list li { position: relative; padding: var(--s1) 0 var(--s1) var(--s5); color: var(--text); max-width: var(--measure); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: calc(1em - 1px); width: 12px; height: 2px; background: var(--steel); }
.related { margin-top: var(--s5); font-size: .95rem; }
.related span { color: var(--muted); }
.related a { font-weight: 600; color: var(--navy); }
.scope-boundary { background: var(--white); }
.boundary-grid { row-gap: var(--s5); }
.boundary-grid > div:last-child > p { color: var(--muted); max-width: var(--measure); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 64px; padding: var(--s3) 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--navy); }
.faq-list summary:active { color: var(--navy-deep); }
.faq-list summary .icon { transition: transform .2s; color: var(--navy); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: var(--s3); max-width: var(--measure); }

/* ---------- projects index ---------- */
.project-list { list-style: none; row-gap: var(--s7); padding-bottom: var(--s5); }
.project-row-image { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.media-tag { position: absolute; left: var(--s3); top: var(--s3); padding: var(--s1) var(--s3); background: var(--navy); color: var(--white); font-size: var(--t-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.project-row-text { padding-top: var(--s4); }
.media-count { margin: var(--s3) 0 0; font-size: .88rem; color: var(--muted); }
.photo-note { margin: var(--s6) 0 var(--section); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-small); max-width: var(--measure); }

/* ---------- project page ---------- */
.project-head { padding-block: var(--s5) var(--s7); }
.back-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin-bottom: var(--s5); color: var(--navy); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-link:active { color: var(--navy-deep); }
.back-link .icon { width: 18px; height: 18px; }
.project-head-grid { row-gap: var(--s6); align-items: end; }
.project-head h1 { margin-bottom: var(--s4); }
.project-head .lede { margin: 0; color: var(--muted); }
.project-facts { margin: 0; border-top: 1px solid var(--line); }
.project-facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: var(--s1); }
.project-facts dd { margin: 0; color: var(--ink); }
.project-facts .scope { font-size: 1rem; }
.fact-source { display: block; width: 100%; font-size: .82rem; color: var(--muted); margin-top: var(--s1); }
.section-tight { padding-block: var(--s8) var(--s2); }
.gallery-section { padding-block: var(--s8) var(--s2); }
.gallery { list-style: none; row-gap: var(--gap); grid-auto-flow: dense; }
.gallery-item { display: flex; }
.gallery-item figure { display: flex; flex-direction: column; flex: 1; margin: 0; }
.gallery-link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.gallery-item.is-portrait .gallery-link { aspect-ratio: 3 / 4; }
.gallery-link:hover img { transform: scale(1.015); }
.gallery-link:active img { transform: scale(1); }
.gallery-expand { position: absolute; right: var(--s3); bottom: var(--s3); display: grid; place-items: center; width: 40px; height: 40px; background: rgba(21,22,58,.82); color: var(--white); }
.gallery figcaption { padding: var(--s2) 0 0; font-size: var(--t-small); color: var(--muted); }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,13,32,.97); color: var(--white); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(12,13,32,.9); }
.lightbox-bar, .lightbox-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--margin); }
.lightbox-count { margin: 0; font-size: var(--t-small); color: var(--on-navy-muted); }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--margin); }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .2s; }
.lightbox.is-loading .lightbox-stage img { opacity: .35; }
.lightbox-status { position: absolute; inset: auto 0 var(--s4); text-align: center; margin: 0; color: var(--on-navy-muted); font-size: .95rem; }
.lightbox-foot p { margin: 0; text-align: center; flex: 1; }
.lightbox-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 48px; min-height: 48px; padding: 0 var(--s3); border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white); cursor: pointer; border-radius: var(--radius); }
.lightbox-btn:hover { background: rgba(255,255,255,.12); }
.lightbox-btn:active { background: rgba(255,255,255,.22); }
html.has-modal { overflow: hidden; }

.pager { row-gap: 0; margin-bottom: var(--section); border-bottom: 1px solid var(--line); }
.pager-link { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5) 0; text-decoration: none; border-top: 1px solid var(--line); }
.pager-dir { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager-dir .icon { width: 16px; height: 16px; }
.pager-name { font-family: var(--serif); font-size: var(--t-h3); color: var(--ink); }
.pager-link:hover .pager-name { text-decoration: underline; }
.pager-link:active .pager-name { color: var(--navy-deep); }

/* ---------- about ---------- */
.about-grid { row-gap: var(--s6); align-items: start; padding-bottom: var(--section); }
.about-media { margin: 0; }
.about-media img { aspect-ratio: 3 / 2; }
.about-copy h2 { margin-bottom: var(--s5); }
.about-copy h3 { margin: var(--s6) 0 var(--s2); }
.about-copy p { color: var(--muted); max-width: var(--measure); }
.about-copy .actions { margin-top: var(--s5); }

/* ---------- contact ---------- */
.contact-methods { row-gap: 0; border-bottom: 1px solid var(--line); }
.method { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s3); align-content: start; padding: var(--s5) 0; border-top: 1px solid var(--line); text-decoration: none; }
.method .icon { grid-row: span 2; color: var(--navy); margin-top: var(--s1); }
.method-label { font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.method-value { font-family: var(--serif); font-size: var(--t-h3); color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; }
div.method { grid-template-columns: minmax(0, 1fr); }
div.method .method-value { font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
a.method:hover .method-value { text-decoration: underline; }
a.method:active .method-value { color: var(--navy-deep); }
.inquiry { padding-top: var(--s8); }
.inquiry-grid { row-gap: var(--s6); align-items: start; }
.inquiry-aside h2 { margin-bottom: var(--s4); }
.inquiry-aside p { color: var(--muted); max-width: var(--measure); }
.notice { margin: var(--s5) 0; padding: var(--s4); background: var(--white); border-left: 3px solid var(--navy); color: var(--text); font-size: .97rem; line-height: 1.55; }
.notice strong { display: block; color: var(--ink); margin-bottom: var(--s1); }
.inquiry-form { padding: var(--s5); background: var(--white); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s5); }
.field { margin: 0 0 var(--s5); min-width: 0; border: 0; padding: 0; }
.field label, .field legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); font-weight: 600; color: var(--ink); margin-bottom: var(--s2); padding: 0; }
.field-req { font-weight: 400; font-size: .85rem; color: var(--muted); }
.field-hint { margin: 0 0 var(--s2); font-size: .88rem; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: var(--s2) var(--s3); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); transition: border-color .15s; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { margin: var(--s2) 0 0; color: var(--error); font-size: var(--t-small); font-weight: 600; }
.field-error:empty { display: none; }
.trades-field { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.trades-field legend { width: 100%; }
.check { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; font-weight: 400 !important; color: var(--text) !important; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--navy); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.error-summary { margin-bottom: var(--s5); padding: var(--s4) var(--s5); border: 2px solid var(--error); background: var(--white); }
.error-summary h3 { color: var(--error); margin-bottom: var(--s2); }
.error-summary ul { padding-left: var(--s5); }
.error-summary li { margin-bottom: var(--s1); }
.error-summary a { color: var(--error); font-weight: 600; }
.error-summary p { margin: var(--s2) 0 0; font-size: var(--t-small); color: var(--muted); }
.form-status { min-height: 1.6em; margin: var(--s3) 0 0; font-weight: 600; color: var(--ink); }
.draft { margin-top: var(--s5); padding: var(--s5); background: var(--white); border: 1px solid var(--navy); scroll-margin-top: var(--s4); }
.draft h3 { margin-bottom: var(--s2); }
.draft h3:focus { outline: none; }
.draft-meta { font-size: var(--t-small); color: var(--muted); }
.draft-head { margin: 0 0 var(--s3); font-size: .95rem; }
.draft-head div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.draft-head dt { color: var(--muted); }
.draft-head dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.draft textarea { width: 100%; padding: var(--s3); border: 1px solid var(--line); background: var(--paper); font-size: .95rem; line-height: 1.5; margin-bottom: var(--s3); resize: vertical; }
.draft-long, .draft-reminder { font-size: var(--t-small); color: var(--muted); margin: var(--s3) 0 0; }
.draft-long { color: var(--flag-text); font-weight: 600; }
.hp-field input { width: 1px; height: 1px; padding: 0; border: 0; } /* honeypot: hidden from people (visually-hidden wrapper), left for bots */
.sent { padding: var(--s5); background: var(--white); border: 1px solid var(--navy); border-left-width: 3px; scroll-margin-top: var(--s4); }
.sent h3 { margin-bottom: var(--s3); }
.sent h3:focus { outline: none; }
.sent p { color: var(--text); }
.form-status.is-error { color: var(--error); }
.button[aria-disabled="true"] { opacity: .7; cursor: progress; }

/* ---------- prose, 404, review ---------- */
.prose { padding-bottom: var(--section); }
.prose h2 { margin: var(--s7) 0 var(--s3); }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: var(--measure); }
.not-found { padding-block: var(--s9) var(--section); text-align: center; }
.not-found h1 { margin-bottom: var(--s4); }
.not-found .eyebrow { margin-inline: auto; }
.not-found .lede { margin-inline: auto; color: var(--muted); }
.link-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s6); margin: var(--s2) 0 var(--s6); }
.link-list a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; color: var(--navy); }
.link-list a:hover { text-decoration-thickness: 2px; }
.link-list a:active { color: var(--navy-deep); }
.not-found .actions { justify-content: center; }
.review { padding-bottom: var(--section); }
.review .subhead { margin-top: var(--s7); }
.review-list { list-style: none; border-top: 1px solid var(--line); }
.review-list li { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.review-row-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4); align-items: baseline; margin-bottom: var(--s2); }
.review-list p { color: var(--muted); max-width: var(--measure); margin-bottom: var(--s2); }
.review-owner { font-size: .88rem; color: var(--muted); }
.status { font-size: var(--t-label); font-weight: 600; padding: var(--s1) var(--s2); border-radius: var(--radius); white-space: nowrap; }
.status.is-open { background: var(--flag-bg); color: var(--flag-text); }
.status.is-done { background: #e2efe6; color: #1d5a32; }
.status.is-manual { background: var(--stone); color: var(--text); }
.table-scroll { overflow-x: auto; }
.review-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 640px; }
.review-table th, .review-table td { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.review-table thead th { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }


/* ================= PREMIUM COMPONENTS (revision 8) ================= */

/* Dark, photographic surfaces share these rules: white text, light labels, white focus ring. */
.hero-full, .page-hero, .project-hero, .film-cinema, .cta-band, .facts-bar { color: var(--on-dark-muted); }
:is(.hero-full, .page-hero, .project-hero, .film-cinema, .cta-band, .facts-bar) :is(h1, h2, h3) { color: var(--on-dark); }
:is(.hero-full, .page-hero, .project-hero, .film-cinema, .cta-band) .eyebrow { color: var(--dark-label); }
:is(.hero-full, .page-hero, .project-hero, .film-cinema, .cta-band, .facts-bar) :focus-visible { outline-color: var(--white); }
:is(.hero-full, .page-hero, .project-hero, .film-cinema, .cta-band) .text-link, .project-hero .back-link { color: var(--on-dark); text-decoration-color: var(--on-dark-line); }
:is(.hero-full, .page-hero, .project-hero, .film-cinema, .cta-band) .text-link:hover { text-decoration-color: var(--on-dark); }
:is(.hero-full, .page-hero, .project-hero, .film-cinema, .cta-band) .lede { color: var(--on-dark-muted); }
.button-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-light:hover { background: var(--stone); border-color: var(--stone); }
.button-light:active { background: var(--line); border-color: var(--line); }

/* Full-bleed photo with a navy wash: strongest on the text side so white type always reads. */
.hero-full, .page-hero, .project-hero, .cta-band { position: relative; isolation: isolate; background: var(--navy-deep); overflow: hidden; }
.hero-full-media, .page-hero-media, .project-hero-media, .cta-band-media { position: absolute; inset: 0; z-index: -2; }
.hero-full-media img, .page-hero-media img, .project-hero-media img, .cta-band-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-full::before, .page-hero.has-photo::before, .project-hero::before, .cta-band.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(var(--wash), .96) 0%, rgba(var(--wash), .86) 45%, rgba(var(--wash), .3) 80%, rgba(var(--wash), .12) 100%); }
@media (min-width: 1024px) {
  .hero-full::before, .page-hero.has-photo::before, .project-hero::before { background:
    linear-gradient(90deg, rgba(var(--wash), .94) 0%, rgba(var(--wash), .84) 34%, rgba(var(--wash), .3) 62%, rgba(var(--wash), 0) 82%),
    linear-gradient(0deg, rgba(var(--wash), .72) 0%, rgba(var(--wash), 0) 34%); }
  .cta-band.has-photo::before { background: linear-gradient(90deg, rgba(var(--wash), .94) 0%, rgba(var(--wash), .84) 55%, rgba(var(--wash), .62) 100%); }
}
.photo-credit { position: relative; width: min(100% - 2 * var(--margin), var(--max)); max-width: none !important; margin: 0 auto; padding-bottom: var(--s4); font-size: .78rem; color: var(--on-dark-muted); }
main .photo-credit a:not([class]) { color: var(--on-dark); text-decoration-color: var(--on-dark-line); }
main .photo-credit a:not([class]):hover { text-decoration-color: var(--on-dark); }

/* Home hero */
.hero-full-inner { min-height: clamp(600px, 88vh, 900px); align-content: end; row-gap: var(--s7); padding-block: var(--s9) var(--s6); }
.hero-full h1 { margin-bottom: var(--s5); max-width: 14ch; }
.hero-full .lede { margin-bottom: var(--s6); }
.hero-facts { margin: 0; row-gap: 0; border-top: 1px solid var(--on-dark-line); }
.hero-facts > div { padding: var(--s4) 0; border-bottom: 1px solid var(--on-dark-line); }
.hero-facts dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-label); margin-bottom: var(--s1); }
.hero-facts dd { margin: 0; color: var(--on-dark); }

/* Interior page hero */
.page-hero-inner { min-height: clamp(380px, 56vh, 560px); align-content: end; padding-block: var(--s9) var(--s7); }
.page-hero.is-small .page-hero-inner { min-height: 0; padding-block: var(--s8) var(--s7); }
.page-hero h1 { margin-bottom: var(--s4); }
.page-hero .lede { margin: 0; }
.section-top { padding-top: var(--s8); }

/* Project hero + facts bar */
.project-hero-inner { min-height: clamp(440px, 70vh, 720px); align-content: space-between; padding-block: var(--s5) var(--s7); }
.project-hero .back-link { margin: 0; }
.project-hero h1 { margin-bottom: var(--s4); }
.project-hero .lede { margin: 0; }
.facts-bar { background: var(--navy); }
.facts-bar-inner { margin-block: 0; padding-block: var(--s5); row-gap: var(--s4); }
.facts-bar dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-label); margin-bottom: var(--s1); }
.facts-bar dd { margin: 0; color: var(--on-dark); }
.facts-bar .scope { font-size: 1rem; }
.facts-bar .scope-value { color: var(--on-dark); }
.facts-bar .review-note { margin-bottom: var(--s5); }

/* Statement */
.statement-grid { row-gap: var(--s6); align-items: start; }
.statement-copy h2 { margin-bottom: var(--s4); }
.statement-copy p { color: var(--muted); }

/* Cinematic film */
.film-cinema { background: var(--navy-deep); }
.film-cinema .section-head p { color: var(--on-dark-muted); }
.film-cinema .film figcaption { color: var(--on-dark-muted); }
.film-cinema .film-frame:focus-within { outline-color: var(--white); }
.film-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s4); border: 0; padding: 0; cursor: pointer; color: var(--white);
  background: linear-gradient(0deg, rgba(var(--wash), .55), rgba(var(--wash), .15)); }
.film-play-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--white); color: var(--navy); padding-left: var(--s1); transition: transform .2s; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.film-play-label { font-weight: 600; font-size: 1.05rem; }
.film-play-time { color: var(--on-dark-muted); font-weight: 400; margin-left: var(--s2); }
.film-play:hover .film-play-icon { transform: scale(1.06); }
.film-play:active .film-play-icon { transform: scale(.98); }
.film-play:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }

/* Project tiles: photo with the name over a dark gradient */
.tiles { row-gap: var(--gap); }
.tile-link { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-deep); color: var(--on-dark); text-decoration: none; isolation: isolate; }
.tile-media { position: absolute; inset: 0; z-index: -2; }
.tile-media img { transition: transform .6s ease; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--wash), .92) 0%, rgba(var(--wash), .62) 32%, rgba(var(--wash), 0) 62%); transition: opacity .3s; }
.tile-link:hover .tile-media img { transform: scale(1.04); }
.tile-link:active .tile-media img { transform: scale(1.02); }
.tile-link:focus-visible { outline-offset: 4px; }
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: var(--s1); padding: var(--s5); }
.tile-setting { font-size: var(--t-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-label); }
.tile-name { color: var(--on-dark); }
.tile-link:hover .tile-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.tile-location { color: var(--on-dark-muted); font-size: .95rem; }
.tile-scope { margin-top: var(--s2); font-weight: 600; color: var(--on-dark); font-size: var(--t-small); }

/* Closing band */
.cta-band-inner { row-gap: var(--s6); align-items: center; padding-block: var(--section); }
.cta-band h2 { margin-bottom: var(--s4); }
.cta-band p { margin: 0; }
.cta-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); }
.cta-band-actions .button { margin-bottom: var(--s3); }
.band-link { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; color: var(--on-dark); text-decoration: none; font-size: 1.05rem; }
.band-link:hover span { text-decoration: underline; }
.band-link:active { opacity: .8; }
.band-link .icon { color: var(--dark-label); }

/* Membership */
.membership { margin-top: var(--s8); padding-top: var(--s7); border-top: 1px solid var(--line); row-gap: var(--s5); align-items: center; }
.membership-text { font-family: var(--serif); font-size: var(--t-h3); color: var(--ink); margin: 0; }
.membership .eyebrow { margin-bottom: var(--s2); }


/* Phones: photo shown cleanly on top, fading into a navy text panel below (no wash over the whole photo). */
@media (max-width: 599px) {
  .hero-full::before, .page-hero.has-photo::before, .project-hero::before { display: none; }
  .hero-full-media, .page-hero-media, .project-hero-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; }
  .hero-full-media::after, .page-hero-media::after, .project-hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(0deg, rgb(var(--wash)) 0%, rgba(var(--wash), 0) 100%); }
  .hero-full-inner, .page-hero-inner, .project-hero-inner { min-height: 0; padding-top: var(--s4); }
  .project-hero .back-link { margin-bottom: var(--s4); }
}

/* ================= PLACEMENTS (column lines) ================= */

/* Phones — 4 columns: everything full width except these */
.logo-grid li { grid-column: span 2; }
.footer-grid > :nth-child(2) { grid-column: 1 / 3; }
.footer-grid > :nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
@media (max-width: 599px) {
  /* Single-column CTAs on phones are full width — the documented centering exception. */
  .hero-full .actions .button, .cta-band-actions .button, .form-actions .button, .not-found .button { width: 100%; }
  .brand img { height: 40px; }
}

/* Tablets — 8 columns */
@media (min-width: 600px) {
  .tiles > .tile.is-half { grid-column: span 4; }
  .tile.is-wide .tile-link { aspect-ratio: 16 / 9; }
  .tile.is-half .tile-link { aspect-ratio: 4 / 3; }
  .hero-facts > div { grid-column: span 8; }
  .membership > :first-child { grid-column: 1 / 4; }
  .membership > :last-child { grid-column: 5 / 9; }
  .work-grid > .work-item:not(.is-lead):nth-child(2) { grid-column: 1 / 5; }
  .work-grid > .work-item:not(.is-lead):nth-child(3) { grid-column: 5 / 9; }
  .start-layout > .start-aside { grid-column: 1 / 6; }
  .association-inner > :first-child { grid-column: 1 / 6; }
  .association-inner > :last-child { grid-column: 6 / 9; }
  .footer-grid > :nth-child(2) { grid-column: 1 / 4; }
  .footer-grid > :nth-child(3) { grid-column: 4 / 7; }
  .footer-grid > :nth-child(4) { grid-column: 7 / 9; grid-row: auto; }
  .project-list > li:nth-child(odd) { grid-column: 1 / 5; }
  .project-list > li:nth-child(even) { grid-column: 5 / 9; }
  .gallery-item { grid-column: span 4; }
  .gallery-item.is-first, .gallery-item.is-wide { grid-column: 1 / -1; }
  .gallery-item.is-first .gallery-link, .gallery-item.is-wide .gallery-link { aspect-ratio: 16 / 9; }
  .gallery-item.is-portrait { grid-row: span 2; }
  .gallery-item.is-portrait .gallery-link { aspect-ratio: auto; flex: 1; }
  .pager > :first-child { grid-column: 1 / 5; }
  .pager > :last-child { grid-column: 5 / 9; align-items: flex-end; text-align: right; }
  .contact-methods > :nth-child(1) { grid-column: 1 / 5; }
  .contact-methods > :nth-child(2) { grid-column: 5 / 9; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inquiry-form, .draft { padding: var(--s6); }
  .prose-grid > * { grid-column: 1 / 8; }
}

/* Desktop — 12 columns */
@media (min-width: 1024px) {
  .hero-full-copy { grid-column: 1 / 9; }
  .hero-facts { grid-column: 1 / -1; border-bottom: 1px solid var(--on-dark-line); }
  .hero-facts > div { grid-column: span 4; border-bottom: 0; }
  .page-hero-copy, .project-hero-copy { grid-column: 1 / 9; }
  .facts-bar-inner > div { grid-column: span 4; }
  .statement-copy { grid-column: 1 / 6; }
  .statement-grid > .trade-list { grid-column: 7 / 13; }
  .film-wide > .film { max-width: none; }
  .tiles > .tile.is-half { grid-column: span 6; }
  .tile.is-wide .tile-link { aspect-ratio: 21 / 9; }
  .cta-band-copy { grid-column: 1 / 8; }
  .cta-band-actions { grid-column: 9 / 13; }
  .membership > :first-child { grid-column: 1 / 4; }
  .membership > :last-child { grid-column: 5 / 12; }
  .hero-copy { grid-column: 1 / 6; }
  .hero-media { grid-column: 7 / 13; }
  .hero-media img { aspect-ratio: 5 / 4; }
  .film-copy { grid-column: 1 / 5; }
  .film-layout > .film { grid-column: 6 / 13; }
  .section-head > :first-child { grid-column: 1 / 8; }
  .section-head > :last-child { grid-column: 9 / 13; }
  .work-item.is-lead > .work-image { grid-column: 1 / 9; }
  .work-item.is-lead > .work-text { grid-column: 10 / 13; }
  .work-grid > .work-item:not(.is-lead):nth-child(2) { grid-column: 1 / 7; }
  .work-grid > .work-item:not(.is-lead):nth-child(3) { grid-column: 7 / 13; }
  .trades-layout > :first-child { grid-column: 1 / 6; }
  .trades-layout > :last-child { grid-column: 7 / 13; }
  .start-layout > :nth-child(1) { grid-column: 1 / 5; }
  .start-layout > :nth-child(2) { grid-column: 5 / 10; }
  .start-layout > .start-aside { grid-column: 10 / 13; }
  .logo-grid li { grid-column: span 3; }
  .association-inner > :first-child { grid-column: 1 / 8; }
  .association-inner > :last-child { grid-column: 9 / 13; }
  .contact-band-inner > :first-child { grid-column: 1 / 8; }
  .contact-band-inner > :last-child { grid-column: 9 / 13; }
  .footer-grid > :nth-child(1) { grid-column: 1 / 5; }
  .footer-grid > :nth-child(2) { grid-column: 6 / 8; }
  .footer-grid > :nth-child(3) { grid-column: 8 / 11; }
  .footer-grid > :nth-child(4) { grid-column: 11 / 13; }
  .page-head-grid > :first-child { grid-column: 1 / 8; }
  .page-head-grid > :last-child:not(:first-child) { grid-column: 9 / 13; }
  .jump li { grid-column: span 4; border-bottom: 1px solid var(--line); }
  .capability > .capability-media { grid-column: 1 / 7; }
  .capability > .capability-body { grid-column: 8 / 13; }
  .capability.is-flipped > .capability-body { grid-column: 1 / 6; grid-row: 1; }
  .capability.is-flipped > .capability-media { grid-column: 7 / 13; grid-row: 1; }
  .capability.is-text > .capability-body { grid-column: 1 / -1; }
  .capability.is-text .cap-intro { grid-column: 1 / 6; }
  .capability.is-text .cap-detail { grid-column: 7 / 13; }
  .boundary-grid > :first-child { grid-column: 1 / 6; }
  .boundary-grid > :last-child { grid-column: 7 / 13; }
  .project-list > li:nth-child(odd) { grid-column: 1 / 7; }
  .project-list > li:nth-child(even) { grid-column: 7 / 13; }
  .project-head-grid > :first-child { grid-column: 1 / 8; }
  .project-head-grid > :last-child { grid-column: 9 / 13; }
  .gallery-item { grid-column: span 6; }
  .film-single > .film { grid-column: 1 / 11; }
  .pager > :first-child { grid-column: 1 / 7; }
  .pager > :last-child { grid-column: 7 / 13; }
  .about-media { grid-column: 1 / 6; position: sticky; top: var(--s5); }
  .about-media img { aspect-ratio: 4 / 5; }
  .about-copy { grid-column: 7 / 12; }
  .contact-methods > :nth-child(1) { grid-column: 1 / 5; }
  .contact-methods > :nth-child(2) { grid-column: 5 / 9; }
  .contact-methods > :nth-child(3) { grid-column: 9 / 13; }
  .inquiry-aside { grid-column: 1 / 5; }
  .inquiry-main { grid-column: 6 / 13; }
  .prose-grid > * { grid-column: 1 / 9; }
  .not-found-grid > * { grid-column: 3 / 11; }
}

/* ---------- mobile navigation (below 900px). Without JavaScript, assets/nojs.css (loaded in <noscript>) shows the full nav. ---------- */
@media (max-width: 899px) {
  .header-inner { flex-wrap: wrap; min-height: 68px; gap: 0 var(--s4); }
  .menu-toggle { display: inline-flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s1) 0 var(--s3); border: 0; background: none; color: var(--white); font-weight: 600; cursor: pointer; }
  .menu-toggle:active { opacity: .8; }
  .menu-bars { position: relative; width: 20px; height: 2px; background: currentColor; transition: background-color .15s; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .2s; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 var(--s4); }
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .site-nav ul a { min-height: 52px; padding: 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 1.05rem; }
  .site-nav ul a[aria-current]::after { left: calc(-1 * var(--s3)); right: auto; top: var(--s4); bottom: var(--s4); width: 3px; height: auto; }
  .nav-cta { margin: var(--s4) 0 0; justify-content: center; min-height: 52px; }
}

/* Phone landscape: keep media from filling the whole short screen. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: var(--s5); }
  .hero-full-inner, .page-hero-inner, .project-hero-inner { min-height: 0; }
  .capability-media img, .about-media img { max-height: 70vh; }
  .lightbox-bar, .lightbox-foot { padding-block: var(--s1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .work-item:hover .work-image img, .project-row:hover .project-row-image img, .gallery-link:hover img, .tile-link:hover .tile-media img, .film-play:hover .film-play-icon { transform: none; }
}

@media print {
  .site-header nav, .menu-toggle, .preview-bar, .contact-band, .inquiry, .lightbox, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer { background: #fff; color: #000; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
