/* IMB Construction: the site hoarding. White boards, one red slab, steel black. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 800 900;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/publicsans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --red: #cc181f;
  --red-deep: #a51218;
  --white: #ffffff;
  --paper: #f0f1f2;
  --steel: #16181a;
  --steel-2: #24282b;
  --grey: #4a4f54;
  --grey-lt: #b9bdc1;
  --seam: #d4d7da;
  --timber: #b87a45;
  --bar-h: 68px;
  --pad: clamp(20px, 4.4vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--steel);
  font: 400 1.0625rem/1.65 var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
h1, h2, h3, blockquote p { text-wrap: balance; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.ink :focus-visible, .sec-ink :focus-visible, .red :focus-visible, .gate :focus-visible, .foot :focus-visible { outline-color: var(--white); }
html { scrollbar-color: var(--red) var(--paper); scrollbar-width: thin; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: var(--white); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Buttons: one shape, sharp corners */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; white-space: nowrap;
  font: 700 0.95rem/1 var(--text); letter-spacing: 0.02em; text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border-color: var(--steel); color: var(--steel); background: transparent; }
.btn-line:hover { background: var(--steel); color: var(--white); }
.btn-ink { background: var(--steel); color: var(--white); }
.btn-ink:hover { background: var(--steel-2); }

/* The slab: white capitals on the IMB red block */
.slab {
  display: block; width: fit-content; max-width: 100%;
  background: var(--red); color: var(--white);
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.02;
  padding: 0.14em 0.32em 0.1em;
}
.slab-lg { font-size: clamp(1.9rem, 4.2vw, 3.6rem); }
.slab-xl { font-size: clamp(3rem, 9vw, 8rem); padding: 0.06em 0.26em 0.02em; }
.slab-sm { font-size: clamp(1.1rem, 1.8vw, 1.55rem); padding: 0.28em 0.6em 0.2em; }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: 0 var(--pad);
  background: var(--white);
  border-bottom: 3px solid var(--steel);
}
.bar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.bar-logo img { height: 30px; width: auto; }
.bar-logo span, .foot-brand span { width: min-content; font: 800 0.6rem/1.15 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.bar-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); margin-left: auto; white-space: nowrap; }
.bar-nav a:not(.btn) { font: 700 0.92rem/1 var(--text); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.bar-nav a:not(.btn):hover, .bar-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-call { min-height: 42px; padding: 0 20px; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; }
.hero-stage { position: relative; }
.slides { position: relative; height: clamp(420px, calc(100dvh - var(--bar-h) - 150px), 760px); overflow: hidden; background: var(--steel); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-cap { position: absolute; right: var(--pad); top: clamp(16px, 2.4vw, 32px); background: var(--steel); color: var(--white); text-decoration: none; font: 700 0.9rem/1 var(--text); padding: 12px 18px; max-width: 46ch; transition: background-color 0.2s; }
.hero-cap:hover { background: var(--red); }
.page-hero { position: relative; border-bottom: 3px solid var(--steel); }
.page-hero-photo { margin: 0; height: clamp(300px, 48dvh, 540px); overflow: hidden; background: var(--steel); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 45%); }
.page-lead-wrap { padding: clamp(28px, 4vw, 52px) var(--pad) clamp(28px, 4vw, 52px); }
.page-lead { margin: 0; max-width: 56ch; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; }
.hero-sign {
  position: absolute; left: var(--pad);
  bottom: clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 6px;
  font-size: clamp(2.1rem, 6.4vw, 6rem); line-height: 1;
}
.hero-sign .slab { padding: 0.1em 0.28em 0.06em; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
  min-height: 150px; padding: 34px var(--pad) 26px;
  border-bottom: 3px solid var(--steel);
}
.hero-foot p { margin: 0; max-width: 46ch; font-size: 1.125rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Sections */
.sec { padding: clamp(56px, 8vw, 112px) var(--pad); border-bottom: 3px solid var(--steel); }
.sec-ink { background: var(--steel); color: var(--white); }
.sec-paper { background: var(--paper); }
.sec-head { margin-bottom: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.sec-lede { margin: 0; max-width: 60ch; font-size: 1.125rem; color: var(--grey); }
.sec-ink .sec-lede { color: var(--grey-lt); }

/* What we build: boards joined by seams, like fence panels */
.fence { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: 3px solid var(--steel); background: var(--steel); gap: 3px; }
.board { background: var(--white); display: flex; flex-direction: column; min-width: 0; }
.board-media { position: relative; overflow: hidden; flex: 1; min-height: 300px; background: var(--steel-2); }
.board-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board-media .slab { position: absolute; left: 0; bottom: 28px; }
.board-note { margin: 0; padding: 18px 22px 20px; font-size: 0.98rem; color: var(--grey); max-width: none; }
.b-school { grid-column: span 7; }
.b-school .board-media { min-height: clamp(320px, 38vw, 540px); }
.b-hospital { grid-column: span 5; }
.b-commercial { grid-column: span 5; }
.b-homes { grid-column: span 7; }
.b-maint { grid-column: span 12; }
.board.ink, .board.red, .board.paper { padding: clamp(24px, 3vw, 44px); justify-content: space-between; gap: 26px; }
.board.ink { background: var(--steel); color: var(--white); }
.board.red { background: var(--red); color: var(--white); }
.board.paper { background: var(--paper); flex-direction: row; align-items: flex-end; flex-wrap: nowrap; justify-content: space-between; }
.board.paper .board-word { flex-shrink: 0; }
.board-word { font-size: clamp(1.7rem, 3.8vw, 4.2rem); overflow-wrap: anywhere; }
.board.paper .board-word { font-size: clamp(2.4rem, 7vw, 6.5rem); }
.board.ink p, .board.red p, .board.paper p { margin: 0; font-size: 1.05rem; }
.board.ink p { color: #dcdfe1; }
.board.paper p { max-width: 44ch; color: var(--grey); }
.board.red blockquote { margin: 0; }
.board.red blockquote p { font: 900 clamp(1.3rem, 2.4vw, 2.1rem)/1.15 var(--display); text-transform: uppercase; letter-spacing: -0.015em; max-width: 26ch; }
.board.red blockquote footer { margin-top: 12px; font-size: 0.9rem; font-weight: 600; }
.board.red .board-sub { font-size: 1rem; max-width: 46ch; }

/* Since 1972 */
.since { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.since-intro { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--bar-h) + 32px); }
.since-intro p { margin: 0; color: #dcdfe1; }
.years li { display: grid; grid-template-columns: clamp(110px, 19vw, 290px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 0; }
.years li + li { border-top: 1px solid #454a4f; }
.years .yr { font: 900 clamp(2rem, 5vw, 4.4rem)/0.95 var(--display); letter-spacing: -0.03em; color: var(--red); text-transform: uppercase; }
.years li:last-child .yr { color: var(--white); font-size: clamp(1.7rem, 4vw, 3.6rem); }
.years p { margin: 0; max-width: 46ch; }

/* People */
.crew li { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 4fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); padding: 34px 0; align-items: start; }
.crew li + li { border-top: 3px solid var(--steel); }
.crew li:first-child { padding-top: 0; }
.crew-years b { display: block; font: 900 clamp(3rem, 7vw, 6rem)/0.9 var(--display); color: var(--red); letter-spacing: -0.03em; }
.crew-years span { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--grey); max-width: 16ch; line-height: 1.35; }
.crew-who h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.crew-who .role { margin: 10px 0 0; font-weight: 600; color: var(--grey); }
.crew-text { margin: 0; }

/* Plan Do Act */
.pda-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(22px, 3vw, 40px) 0; }
.pda-row + .pda-row { border-top: 3px solid var(--steel); }
.pda-row p { margin: 0; }

/* Safety and sustainable */
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.two-a, .two-b { display: flex; flex-direction: column; gap: 26px; }
.two-a > p { margin: 0; }
.plain li { font-weight: 700; padding: 12px 0; font-family: var(--display); text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.15rem; }
.plain li + li { border-top: 1px solid var(--seam); }
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 30px clamp(24px, 4vw, 56px); }
.focus > div { border-top: 3px solid var(--steel); padding-top: 16px; }
.focus dt { font: 900 1.2rem/1.1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 8px; }
.focus dd { margin: 0; color: var(--grey); }

/* Contact gate sign */
.gate { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); border-bottom: 3px solid var(--steel); }
.gate-sign { background: var(--red); color: var(--white); padding: clamp(40px, 6vw, 96px) var(--pad); display: flex; flex-direction: column; gap: 22px; }
.gate-sign h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); }
.gate-phone { font: 900 clamp(1.9rem, 5.6vw, 5rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -0.03em; text-decoration: none; width: fit-content; border-bottom: 6px solid var(--white); padding-bottom: 4px; }
.gate-phone:hover { border-bottom-color: var(--steel); }
.gate-line { margin: 0; font-size: 1.4rem; font-weight: 700; }
.gate-sign address { font-style: normal; font-size: 1.15rem; line-height: 1.5; }
.gate-hours { background: var(--steel); color: var(--white); padding: clamp(36px, 5vw, 72px) clamp(24px, 3.4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.gate-hours h3 { font-size: 1.5rem; }
.gate-hours dl > div { padding: 14px 0; }
.gate-hours dl > div + div { border-top: 1px solid #454a4f; }
.gate-hours dt { font-weight: 700; }
.gate-hours dd { margin: 2px 0 0; color: var(--grey-lt); }

.dock { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Motion: only when JS is on, only from a visible default */
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim] { transition: transform 0.9s var(--ease), opacity 0.7s var(--ease), clip-path 0.9s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-anim="wipe"] { clip-path: inset(0 100% 0 0); }
  .js [data-anim="curtain"] { clip-path: inset(100% 0 0 0); }
  .js [data-anim="curtain"] img { transform: scale(1.12); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-anim="settle"] img { transform: scale(1.08); transition: transform 2.4s var(--ease); }
  .js [data-anim="slide"] { opacity: 0; transform: translateX(-56px); }
  .js [data-anim="rise"] { opacity: 0; transform: translateY(36px); }
  .js [data-anim="drop"] { opacity: 0; transform: translateY(-40px); }

  .js .in [data-anim="wipe"],
  .js .hero-loaded [data-anim="wipe"] { clip-path: inset(0 0 0 0); }
  .js .in [data-anim="curtain"] { clip-path: inset(0 0 0 0); }
  .js .in [data-anim="curtain"] img { transform: scale(1); }
  .js .hero-loaded [data-anim="settle"] img { transform: scale(1); }
  .js .in [data-anim="slide"], .js .in [data-anim="rise"], .js .in [data-anim="drop"] { opacity: 1; transform: none; }
}

/* Tablet and phone */
@media (max-width: 900px) {
  :root { --bar-h: 60px; }
  .slides { height: clamp(300px, 52dvh, 480px); }
  .page-hero-photo { height: clamp(220px, 38dvh, 360px); }
  .hero-cap { display: none; }
  .hero-foot { grid-template-columns: 1fr; padding-top: 36px; min-height: 0; }
  .hero-actions { justify-content: flex-start; }
  .fence { grid-template-columns: 1fr; }
  .b-school, .b-hospital, .b-commercial, .b-homes, .b-maint { grid-column: auto; }
  .board.paper { flex-direction: column; align-items: flex-start; }
  .board.paper .board-word { font-size: clamp(1.7rem, 8.4vw, 4rem); flex-shrink: 1; }
  .years li { grid-template-columns: 1fr; gap: 6px; }
  .since { grid-template-columns: 1fr; }
  .since-intro { position: static; }
  .crew li { grid-template-columns: 1fr; gap: 14px; }
  .crew-years b { display: inline; margin-right: 10px; }
  .crew-years span { display: inline; max-width: none; }
  .pda-row { grid-template-columns: 1fr; gap: 16px; }
  .two { grid-template-columns: 1fr; }
  .focus { grid-template-columns: 1fr; }
  .gate { grid-template-columns: 1fr; }
  body { padding-bottom: 68px; }
  .dock { display: grid; grid-template-columns: 2fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 3px solid var(--steel); padding: 8px; gap: 8px; }
  .dock .btn { min-height: 48px; padding: 0 12px; }
}
@media (max-width: 900px) {
  .hero-actions .btn-red { display: none; }
}
@media (max-width: 480px) {
  .hero-sign { font-size: clamp(1.5rem, 7.4vw, 2.2rem); }
}

/* ---- Multi-page additions ---- */

/* Footer */
.foot { background: var(--steel); color: var(--grey-lt); padding: clamp(36px, 5vw, 64px) var(--pad) 28px; font-size: 0.95rem; }
.foot-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-brand img { height: 34px; width: auto; }
.foot-brand span { color: var(--white); }
.foot address { font-style: normal; line-height: 1.6; color: #dcdfe1; }
.foot-contact { margin: 0; line-height: 1.8; }
.foot-contact a, .foot-nav a { color: #dcdfe1; text-decoration: none; }
.foot-contact a:hover, .foot-nav a:hover { color: var(--white); text-decoration: underline; }
.foot-nav { display: flex; flex-direction: column; gap: 6px; }
.foot-small { margin: 36px 0 0; max-width: none; font-size: 0.8rem; opacity: 0.85; }

/* Hero on home */
.hero-sign { z-index: 2; }

/* Board links (home sectors) */
.board-link { text-decoration: none; color: inherit; }
.board-link .board-media img { transition: transform 0.8s var(--ease); }
.board-link:hover .board-media img { transform: scale(1.04); }
.board-link:hover .board-note { color: var(--steel); }
.b-edu { grid-column: span 7; }
.b-edu .board-media { min-height: clamp(320px, 38vw, 540px); }
.b-health { grid-column: span 5; }
.b-com { grid-column: span 5; }
.b-res { grid-column: span 7; }

/* Tiles (project cards) */
.tile { display: flex; flex-direction: column; background: var(--white); text-decoration: none; color: inherit; min-width: 0; }
.tile-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-2); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile:hover .tile-photo img { transform: scale(1.05); }
.tile-body { display: flex; flex-direction: column; gap: 5px; padding: 16px 20px 20px; }
.tile-title { font: 900 1.1rem/1.08 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.tile:hover .tile-title { color: var(--red); }
.tile-meta { font-size: 0.9rem; color: var(--grey); }
.tiles { display: flex; flex-wrap: wrap; border-top: 3px solid var(--steel); border-left: 3px solid var(--steel); }
.tiles .tile { flex: 1 1 min(340px, 100%); border-right: 3px solid var(--steel); border-bottom: 3px solid var(--steel); }
.recent { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; background: var(--steel); border: 3px solid var(--steel); }
.tile-lead { grid-column: span 2; grid-row: span 2; }
.tile-lead .tile-photo { flex: 1; aspect-ratio: auto; min-height: 320px; }
.tile-lead .tile-title { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.more { margin: 28px 0 0; }

/* Projects page filter */
.chips { position: sticky; top: var(--bar-h); z-index: 40; background: var(--white); border-bottom: 3px solid var(--steel); }
.chips-in { display: flex; gap: 10px; overflow-x: auto; padding: 12px var(--pad); scrollbar-width: none; }
.chips-in::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 2px solid var(--steel); font: 700 0.95rem/1 var(--text); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.chips a:hover { background: var(--steel); color: var(--white); }

/* Quote board */
.quote { background: var(--red); color: var(--white); padding: clamp(48px, 7vw, 104px) var(--pad); border-bottom: 3px solid var(--steel); }
.quote blockquote { margin: 0; max-width: none; }
.quote blockquote p { font: 900 clamp(1.9rem, 5.4vw, 4.6rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: -0.02em; max-width: 17em; margin: 0; }
.quote footer { margin-top: 22px; font-weight: 700; font-size: 1rem; }

/* Process teaser */
.teaser { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.teaser-text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.teaser-words { display: flex; flex-wrap: wrap; gap: 8px; }
.teaser p { margin: 0; }
.teaser-photo { overflow: hidden; background: var(--steel); min-height: 320px; }
.teaser-photo img { width: 100%; height: 100%; object-fit: cover; }

/* About story */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.story-text p { font-size: 1.15rem; }

/* Project page */
.proj-meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px clamp(32px, 6vw, 88px); padding: clamp(24px, 3.4vw, 44px) var(--pad); border-bottom: 3px solid var(--steel); }
.proj-meta dl { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 5vw, 72px); }
.proj-meta dt { font-size: 0.85rem; font-weight: 700; color: var(--grey); }
.proj-meta dd { margin: 4px 0 0; font: 900 clamp(1.3rem, 2.4vw, 1.9rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.proj-meta dd a { text-decoration-color: var(--red); }
.proj-note { margin: 0; max-width: 56ch; }
.proj-gallery { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
.gallery { columns: 3 300px; column-gap: 3px; background: var(--steel); border: 3px solid var(--steel); }
.shot { display: block; break-inside: avoid; margin: 0 0 3px; overflow: hidden; background: var(--steel); cursor: zoom-in; }
.shot img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.pn { display: grid; grid-template-columns: 1fr auto 1fr; border-bottom: 3px solid var(--steel); }
.pn a { text-decoration: none; padding: clamp(22px, 3vw, 40px) var(--pad); display: flex; flex-direction: column; gap: 6px; transition: background-color 0.2s; }
.pn a:hover { background: var(--paper); }
.pn-all { justify-content: center; align-items: center; font: 800 0.95rem/1 var(--text); border-left: 3px solid var(--steel); border-right: 3px solid var(--steel); }
.pn-next { text-align: right; align-items: flex-end; }
.pn-dir { font-size: 0.85rem; font-weight: 700; color: var(--grey); }
.pn-title { font: 900 clamp(1.1rem, 2vw, 1.6rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }

/* Gate variants */
.gate-solo { grid-template-columns: 1fr; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(22, 24, 26, 0.95); display: none; align-items: center; justify-content: center; padding: 64px 16px 72px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-btn { position: absolute; min-height: 48px; padding: 0 22px; background: var(--white); color: var(--steel); border: 0; font: 700 0.95rem/1 var(--text); cursor: pointer; }
.lb-btn:hover { background: var(--red); color: var(--white); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { bottom: 12px; left: 12px; }
.lb-next { bottom: 12px; right: 12px; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--white); font-weight: 700; }
.lb :focus-visible { outline-color: var(--white); }
body.lb-open { overflow: hidden; }

/* Phone and tablet for the multi-page parts */
@media (max-width: 1100px) {
  .recent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-lead .tile-photo { min-height: 260px; }
  .foot-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 16px; background: var(--steel); color: var(--white); border: 0; font: 700 0.95rem/1 var(--text); cursor: pointer; }
  .menu-bars { width: 18px; height: 12px; background: linear-gradient(var(--white), var(--white)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--white), var(--white)) 0 50% / 100% 2px no-repeat, linear-gradient(var(--white), var(--white)) 0 100% / 100% 2px no-repeat; }
  .bar-nav { position: fixed; top: var(--bar-h); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--pad) 24px; background: var(--white); border-bottom: 3px solid var(--steel); box-shadow: 0 18px 30px rgba(22, 24, 26, 0.18); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s; max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; }
  .bar-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.25s var(--ease); }
  .bar-nav a:not(.btn) { font: 900 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; padding: 20px 0; border-bottom: 1px solid var(--seam); }
  .bar-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--seam); }
  .nav-call { margin-top: 20px; min-height: 54px; }
  .b-edu, .b-health, .b-com, .b-res { grid-column: auto; }
  .recent { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 3px; -webkit-overflow-scrolling: touch; }
  .recent .tile { flex: 0 0 78vw; scroll-snap-align: start; }
  .tile-lead { grid-column: auto; grid-row: auto; }
  .tile-lead .tile-photo { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
  .story { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .teaser-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .pn { grid-template-columns: 1fr; }
  .pn-all { border: 0; border-top: 3px solid var(--steel); border-bottom: 3px solid var(--steel); padding: 18px var(--pad); order: 3; }
  .pn-next { text-align: left; align-items: flex-start; }
  .gallery { columns: 2 150px; }
  .foot-main { grid-template-columns: 1fr; }
  .chips { top: var(--bar-h); }
  .lb { padding: 60px 8px 76px; }
}
@media (max-width: 480px) {
  .gallery { columns: 1; }
  .tile-body { padding: 14px 16px 18px; }
}
.page-hero .hero-sign { font-size: clamp(1.8rem, 5vw, 4.4rem); max-width: calc(100% - 2 * var(--pad)); }
.page-hero .hero-sign .slab { text-wrap: balance; }

/* Crops that keep the building in frame */
.b-health .board-media img, .tile-lead .tile-photo img, .tile[href$="nelson-hospital.html"] .tile-photo img { object-position: 50% 86%; }
.slide:nth-child(3) img { object-position: 50% 86%; }

.page-hero-plain { height: clamp(170px, 24dvh, 250px); background: var(--steel); }
