/* ============================================================
   PK Construction
   Display: Barlow Condensed · Text: Inter
   Deep navy ground, brand #005788 as accent.
   ============================================================ */

:root {
  --ink-950: #04141f;
  --ink-900: #07202f;
  --ink-800: #0d2b3d;

  --navy:      #005788;
  --navy-lt:   #2b8fc4;
  --navy-hov:  #0a6fa8;   /* CTA hover — white on this clears AA at 5.45:1 */
  --navy-pale: #8ec4e2;
  --navy-wash: #eaf2f7;

  --ink:    #10181e;
  --ink-2:  #4a5560;
  --ink-3:  #78838e;
  --line:   #e2e7ea;
  --line-2: #eef1f4;

  --bg:      #ffffff;
  --bg-tint: #f3f6f8;
  --amber:    #a9690f;
  --amber-dk: #8a5410;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-hero:  clamp(3rem, 8.5vw, 7rem);
  --fs-state: clamp(1.6rem, 4.2vw, 3.4rem);
  --fs-h2:    clamp(2.1rem, 5vw, 3.8rem);
  --fs-h3:    clamp(1.15rem, 1.8vw, 1.45rem);
  --fs-lead:  clamp(1.04rem, 1.6vw, 1.2rem);
  --fs-sm:    0.94rem;
  --fs-xs:    0.84rem;
  --fs-mono:  0.72rem;

  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem;  --s-6: 4rem; --s-7: 6rem;   --s-8: 8rem;

  --wrap:      1280px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  /* Emails, SharePoint folder URLs and file names have no break
     opportunities and will push a phone layout sideways otherwise.
     break-word only splits when the word would actually overflow. */
  overflow-wrap: break-word;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,p,dl,dd,figure,blockquote,ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--navy-lt); outline-offset: 3px; }

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

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 400; background: var(--navy); color: #fff; padding: .7rem 1.1rem; }
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--s-2);
}
.eyebrow-light { color: var(--navy-pale); }

.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 2rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-lt); }
.btn-line { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink-950); border-color: #fff; }
.btn-solid-light { background: #fff; color: var(--ink-950); }
.btn-solid-light:hover { background: var(--navy-pale); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--navy);
}
.text-link span { transition: transform .3s var(--ease); }
.text-link:hover span { transform: translateX(5px); }

/* ============================================================
   UTILITY + HEADER
   ============================================================ */
.utility { background: var(--ink-950); color: rgba(255,255,255,.6); font-size: var(--fs-xs); position: relative; z-index: 210; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 2.3rem; flex-wrap: wrap; }
.utility-tag { font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; }
.utility-links { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.utility-links a:hover { color: #fff; }
.utility-portal { color: #fff; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 22px rgba(4,20,31,.08);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 4.7rem; }

.brand img { height: 48px; width: auto; filter: brightness(0) invert(1); transition: filter .35s var(--ease); }
.site-header.is-stuck .brand img { filter: none; }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  position: relative;
  padding: .5rem .85rem;
  font-family: var(--font-display);
  font-size: 1.06rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  transition: color .22s var(--ease);
  /* Colour is set below, scoped away from .nav-cta. Don't add it here. */
}
/* Every colour rule below is scoped away from .nav-cta. The button sits on
   its own navy fill in both header states, so the transparent/stuck text
   swap must not touch it — `.site-header.is-stuck .nav a` (0-3-1) would
   otherwise outrank `.nav .nav-cta` (0-2-0) and repaint it into itself. */
.nav a:not(.nav-cta)                          { color: rgba(255,255,255,.82); }
.nav a:not(.nav-cta):hover                    { color: #fff; }
.nav a:not(.nav-cta).is-active                { color: #fff; }

.site-header.is-stuck .nav a:not(.nav-cta)           { color: var(--ink-2); }
.site-header.is-stuck .nav a:not(.nav-cta):hover     { color: var(--navy); }
.site-header.is-stuck .nav a:not(.nav-cta).is-active { color: var(--navy); }

.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .1rem;
  height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta).is-active::after { transform: scaleX(1); }

/* Connect: white on navy in every state. */
.nav .nav-cta,
.site-header.is-stuck .nav .nav-cta {
  margin-left: var(--s-2); padding: .55rem 1.3rem;
  background: var(--navy); color: #fff;
  border-radius: var(--radius); font-weight: 600;
  transition: background .25s var(--ease);
}
.nav .nav-cta:hover,
.site-header.is-stuck .nav .nav-cta:hover { background: var(--navy-hov); color: #fff; }
.nav .nav-cta.is-active,
.site-header.is-stuck .nav .nav-cta.is-active { background: var(--ink-900); color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 9px;
  background: none; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius);
}
.site-header.is-stuck .nav-toggle { border-color: var(--line); }
.nav-toggle span { display: block; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s var(--ease), background .35s var(--ease); }
.site-header.is-stuck .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin-top: -4.7rem;
  padding-top: 4.7rem;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero-stage { position: absolute; inset: 0; background: var(--ink-950); }
.hero-frame {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 9s linear;
}
.hero-frame.is-active { opacity: 1; transform: scale(1); }
.hero-stage::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(4,20,31,.93) 0%, rgba(4,20,31,.78) 42%, rgba(4,20,31,.34) 100%),
    linear-gradient(0deg, rgba(4,20,31,.85) 0%, transparent 42%);
}

.hero-body { position: relative; z-index: 3; padding-block: var(--s-7) var(--s-6); }
.hero-kicker {
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--navy-pale); margin-bottom: var(--s-3);
}
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.02em; margin-bottom: var(--s-3); max-width: 18ch; }
.hero h1 span { color: var(--navy-pale); }
.hero-sub { font-size: var(--fs-lead); color: rgba(255,255,255,.8); max-width: 44ch; margin-bottom: var(--s-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-foot { position: relative; z-index: 3; padding-bottom: var(--s-4); }
.hero-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.2); }
.hero-caption { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }

.hero-dots { display: flex; gap: .5rem; }
.hdot {
  position: relative;
  width: 34px; height: 3px; padding: 0; border: 0;
  background: rgba(255,255,255,.28); border-radius: 2px;
  transition: background .3s var(--ease);
}
/* Invisible 44px-tall target over a 3px bar — no layout change. */
.hdot::after {
  content: ""; position: absolute;
  left: -4px; right: -4px; top: 50%;
  height: 44px; transform: translateY(-50%);
}
.hdot:hover { background: rgba(255,255,255,.55); }
.hdot.is-active { background: var(--navy-pale); }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { padding-block: clamp(4rem, 9vw, 8rem); }
.statement-eyebrow {
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--navy); margin-bottom: var(--s-3);
}
.statement-text {
  font-family: var(--font-display);
  font-size: var(--fs-state);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: balance;
}
.statement-text em { font-style: normal; color: var(--navy); }

/* ---------- Figures ---------- */
.figures { background: var(--ink-950); color: #fff; }
.figures-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: var(--s-5) var(--s-2); border-left: 1px solid rgba(255,255,255,.12); text-align: center; }
.figure:first-child { border-left: 0; }
.figure-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.02em;
}
.figure-label { display: block; margin-top: .5rem; font-size: var(--fs-xs); color: rgba(255,255,255,.6); letter-spacing: .06em; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--ink-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 48rem; margin-bottom: var(--s-6); }
.section-sub { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-sm); max-width: 40ch; }
.section-dark .section-sub { color: rgba(255,255,255,.65); }

.section-head-row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
}

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.market {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 19rem;
  padding: var(--s-4);
  background: var(--bg);
  overflow: hidden;
  transition: color .4s var(--ease);
}
.market::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--mk); background-size: cover; background-position: center;
  transform: scale(1.04);
  opacity: 0;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.market::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4,20,31,.55) 0%, rgba(4,20,31,.88) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.market:hover, .market:focus-visible { color: #fff; }
.market:hover::before, .market:focus-visible::before { opacity: 1; transform: scale(1); }
.market:hover::after, .market:focus-visible::after { opacity: 1; }

.market-count {
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy); transition: color .4s var(--ease);
}
.market:hover .market-count { color: var(--navy-pale); }

.market h3 { margin-top: auto; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.market p { margin-top: .6rem; font-size: var(--fs-sm); color: var(--ink-2); transition: color .4s var(--ease); }
.market:hover p { color: rgba(255,255,255,.8); }

.market-go { margin-top: var(--s-3); font-size: 1.3rem; color: var(--navy); transition: transform .35s var(--ease), color .4s var(--ease); }
.market:hover .market-go { transform: translateX(6px); color: #fff; }

/* ---------- Capabilities ---------- */
.caps { display: grid; }
.cap {
  display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.14);
}
.cap:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.cap-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: .9; color: var(--navy-pale);
}
.cap-body { max-width: 60ch; }
.cap h3 { margin-bottom: .5rem; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.cap p { color: rgba(255,255,255,.72); font-size: var(--fs-sm); }

/* ---------- Approach ---------- */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--s-5); }
.phase { position: relative; padding-top: var(--s-4); }
.phase-rule { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--line); }
.phase-rule::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--navy); }
.phase-num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--navy); margin-bottom: .5rem; }
.phase h3 { margin-bottom: .6rem; }
.phase p { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- Projects ---------- */
.filters { display: flex; gap: .5rem; margin-bottom: var(--s-4); flex-wrap: wrap; }
.filter {
  padding: .5rem 1.2rem; border: 1px solid var(--line); border-radius: 100px;
  background: var(--bg); font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--s-3); }
.proj-wide { grid-column: span 2; }

.proj {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.proj:hover { box-shadow: 0 18px 46px rgba(4,20,31,.16); transform: translateY(-4px); border-color: var(--navy); }
.proj[hidden] { display: none; }

.proj-media { position: relative; overflow: hidden; }

.proj-img { aspect-ratio: 16/10; background-color: var(--navy-wash); background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.proj:hover .proj-img { transform: scale(1.05); }
.proj-wide .proj-img { aspect-ratio: 21/9; }

/* Blueprint tile — the treatment for projects with no photograph yet.
   Navy field, drafting grid, project name set like a drawing title block. */
.proj-bp {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-3);
  --bp: #0b2a3e;
  background-color: var(--bp);
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  color: #fff;
}
.proj-bp::after {
  content: ""; position: absolute; inset: 11px;
  border: 1px solid rgba(255,255,255,.14);
  pointer-events: none;
}
.proj:hover .proj-bp { transform: none; }

[data-market="Industrial"]    .proj-bp { --bp: #10303c; }
[data-market="Municipal"]     .proj-bp { --bp: #0a2c45; }
[data-market="Commercial"]    .proj-bp { --bp: #14313a; }
[data-market="Healthcare"]    .proj-bp { --bp: #0d2f4d; }
[data-market="Education"]     .proj-bp { --bp: #16293d; }
[data-market="Institutional"] .proj-bp { --bp: #1b2b38; }

.bp-rule { position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--navy-lt); opacity: .6; }
.bp-market {
  position: relative; z-index: 2;
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.48);
}
.bp-name {
  position: relative; z-index: 2;
  margin-top: .25rem;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  line-height: 1.08; color: rgba(255,255,255,.93);
}

.proj-flag {
  position: absolute; top: .8rem; left: .8rem; z-index: 3;
  padding: .22rem .65rem;
  background: var(--amber-dk); color: #fff;
  font-size: .67rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
}

.proj-body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.proj-tag {
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--navy); margin-bottom: .4rem;
}
.badge {
  display: inline-block; padding: .18rem .6rem; margin-bottom: .55rem;
  background: var(--navy-wash); color: var(--navy);
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.badge-current { background: #fbf0dc; color: var(--amber); }
.proj h3 { font-size: 1.25rem; }
.proj-meta { margin-top: .3rem; font-size: var(--fs-xs); color: var(--ink-3); }

.proj-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto; padding-top: var(--s-3);
  font-family: var(--font-display); font-size: .98rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
  transition: color .3s var(--ease);
}
.proj:hover .proj-cta { color: var(--navy); }
.proj-cta em { font-style: normal; transition: transform .3s var(--ease); }
.proj:hover .proj-cta em { transform: translateX(5px); }

.filter-empty { margin-top: var(--s-3); color: var(--ink-3); font-size: var(--fs-sm); }

@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card-in { animation: cardIn .55s var(--ease) both; }

/* ---------- Pull quote ---------- */
.pull { background: var(--ink-950); color: #fff; padding-block: clamp(4rem, 9vw, 7.5rem); }
.pull-stage { position: relative; min-height: 12rem; margin-top: var(--s-3); }
.pull-quote {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.pull-quote.is-active { opacity: 1; visibility: visible; position: relative; }
.pull-quote blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.9rem); line-height: 1.2; letter-spacing: -0.01em;
  max-width: 26ch; text-wrap: balance;
}
.pull-quote blockquote::before { content: "“"; color: var(--navy-pale); }
.pull-quote blockquote::after { content: "”"; color: var(--navy-pale); }
.pull-quote figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.pull-dots { display: flex; gap: .5rem; margin-top: var(--s-4); }
.pdot {
  position: relative;
  width: 34px; height: 3px; padding: 0; border: 0;
  background: rgba(255,255,255,.24); border-radius: 2px;
  transition: background .3s var(--ease);
}
.pdot::after {
  content: ""; position: absolute;
  left: -4px; right: -4px; top: 50%;
  height: 44px; transform: translateY(-50%);
}
.pdot:hover { background: rgba(255,255,255,.5); }
.pdot.is-active { background: var(--navy-pale); }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: var(--s-6); align-items: start; }
.about-body p + p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-sm); }

.team-list { display: grid; margin-top: var(--s-4); border-top: 1px solid var(--line); }
.team-list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.team-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.team-name span { font-family: var(--font-text); font-weight: 500; font-size: var(--fs-xs); color: var(--navy); margin-left: .4rem; }
.team-role { font-size: var(--fs-xs); color: var(--ink-3); }

.certs { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.certs-heading { font-size: var(--fs-mono); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3); }
.certs-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.certs-row img { height: 50px; width: auto; filter: grayscale(1); opacity: .5; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.certs-row img:hover { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.8); font-size: var(--fs-sm); max-width: 48ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: var(--s-6); align-items: start; }
.contact-dl { display: grid; border-top: 1px solid var(--line); }
.contact-dl > div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-2); padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-dl dt { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.contact-dl dd { margin: 0; font-size: var(--fs-sm); }
.contact-dl a { color: var(--navy); font-weight: 500; }
.contact-dl a:hover { text-decoration: underline; }

.map-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--s-3); font-size: var(--fs-sm); font-weight: 500; color: var(--navy); }
.map-link span { transition: transform .3s var(--ease); }
.map-link:hover span { transform: translateX(4px); }

.contact-form { padding: var(--s-4); background: var(--bg-tint); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.field { margin-bottom: var(--s-2); }
.field label { display: block; margin-bottom: .35rem; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit; font-size: var(--fs-sm);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,87,136,.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none' stroke='%234a5560' stroke-width='1.6'%3E%3Cpath d='M1 1.3 5.5 5.8 10 1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.3rem;
}
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.err { margin-top: .25rem; font-size: var(--fs-xs); color: #c0392b; }
.form-note { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--ink-3); }
.form-note.is-ok { color: #15784a; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink-950); color: rgba(255,255,255,.68); }
.footer-inner { display: grid; grid-template-columns: minmax(0,1.7fr) repeat(3, minmax(0,1fr)); gap: var(--s-4); padding-block: var(--s-6) var(--s-5); }
.footer-brand img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { margin-top: var(--s-2); font-size: var(--fs-xs); max-width: 28rem; }
.footer-nav { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.footer-heading { font-size: var(--fs-mono); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: .3rem; }
.footer-nav a { font-size: var(--fs-sm); transition: color .22s var(--ease); }
.footer-nav a:hover { color: #fff; }
.footer-addr { font-size: var(--fs-sm); line-height: 1.95; }
.footer-addr a { color: rgba(255,255,255,.68); }
.footer-addr a:hover { color: #fff; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-block: var(--s-3); border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-xs); color: rgba(255,255,255,.45);
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.page-head { background: var(--ink-950); color: #fff; padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.page-head p { margin-top: var(--s-3); color: rgba(255,255,255,.7); max-width: 52rem; font-size: var(--fs-sm); }
.hero-kicker { font-size: var(--fs-mono); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--navy-pale); margin-bottom: var(--s-3); }

.proj-index { columns: 3 280px; column-gap: var(--s-5); }
.proj-index li { break-inside: avoid; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.proj-index li strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.proj-index li span { font-size: var(--fs-xs); color: var(--ink-3); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: var(--s-3); font-size: var(--fs-xs); color: var(--ink-3); }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs-light { color: rgba(255,255,255,.6); }
.crumbs-light a:hover { color: #fff; }
.page-head .crumbs { color: rgba(255,255,255,.55); }
.page-head .crumbs a:hover { color: #fff; }
.page-head-compact { padding-block: clamp(3rem,6vw,5rem) clamp(2rem,4vw,3rem); }

/* ============================================================
   INDEX HERO
   ============================================================ */
.index-hero {
  position: relative;
  margin-top: -4.7rem; padding-top: 4.7rem;
  min-height: clamp(22rem, 56vh, 34rem);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.index-hero-bg {
  position: absolute; inset: 0;
  /* --cms-* variables are injected by the server; the url() is the fallback. */
  background: var(--ink-950) var(--cms-projects-hero-image, url("../assets/img/hero-norfolk.jpg")) center/cover no-repeat;
}
/* The tenders page reuses .index-hero but takes its own photo. */
.tenders-page .index-hero-bg {
  background-image: var(--cms-tenders-hero-image, url("../assets/img/hero-norfolk.jpg"));
}
.index-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(92deg, rgba(4,20,31,.93) 0%, rgba(4,20,31,.72) 50%, rgba(4,20,31,.42) 100%),
    linear-gradient(0deg, rgba(4,20,31,.9) 0%, transparent 50%);
}
.index-hero-body { position: relative; z-index: 2; padding-block: var(--s-5) var(--s-4); }
.index-hero h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); max-width: 18ch; }

.index-hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,.2);
}
.index-hero-stats strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1;
}
.index-hero-stats span { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.58); }

/* ============================================================
   BROWSE CONTROLS
   ============================================================ */
.browse { padding-block: var(--s-4) var(--s-3); border-bottom: 1px solid var(--line); background: var(--bg); }

.controls {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr));
  gap: var(--s-2);
  align-items: end;
}
.ctl label {
  display: block; margin-bottom: .35rem;
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.ctl input, .ctl select {
  width: 100%; padding: .72rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit; font-size: var(--fs-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ctl input:focus, .ctl select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,87,136,.12);
}
.ctl select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none' stroke='%234a5560' stroke-width='1.6'%3E%3Cpath d='M1 1.3 5.5 5.8 10 1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.3rem;
}
.ctl-search input { background-image: none; }

.browse-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3);
}

/* Two filter groups sit side by side, separated by a hairline so it's
   clear they're independent axes rather than one long row of options. */
.chip-sets { display: flex; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; }
.chip-set { display: flex; flex-direction: column; gap: .45rem; }
.chip-set + .chip-set {
  padding-left: var(--s-3);
  border-left: 1px solid var(--line);
}
.chip-label {
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1.1rem; border: 1px solid var(--line); border-radius: 100px;
  background: #fff; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Faceted count — dims to nothing when an option would return no results. */
.chip-n {
  font-style: normal; font-size: .72rem; font-variant-numeric: tabular-nums;
  color: var(--ink-3); transition: color .22s var(--ease);
}
.chip.is-active .chip-n { color: rgba(255,255,255,.72); }
.chip-n:empty { display: none; }

@media (max-width: 720px) {
  .chip-set + .chip-set { padding-left: 0; border-left: 0; }
}

.browse-meta { display: flex; align-items: center; gap: var(--s-3); }
.result-count { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.reset, .linkish {
  padding: 0; border: 0; background: none;
  font-size: var(--fs-xs); color: var(--navy); text-decoration: underline;
}
.reset:hover, .linkish:hover { color: var(--ink); }

.browse-results { padding-top: var(--s-5); }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--s-3); }
.loading, .no-results, .load-error { color: var(--ink-2); font-size: var(--fs-sm); }
.load-error { padding: var(--s-3); border-left: 3px solid #c0392b; background: #fff; }
.load-error code { font-size: .85em; background: var(--bg-tint); padding: .1rem .3rem; }

.proj-link { color: inherit; }
.index-grid .proj-img, .proj-img { position: relative; }

/* ============================================================
   PROJECT DETAIL
   ============================================================ */
.pj-hero {
  position: relative;
  margin-top: -4.7rem; padding-top: 4.7rem;
  min-height: clamp(24rem, 62vh, 38rem);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.pj-hero-bg {
  position: absolute; inset: 0;
  background: var(--ink-950) center/cover no-repeat;
}
.pj-hero-bg.is-empty { background-image: linear-gradient(135deg,#0d2b3d 0%,#04141f 100%); }
.pj-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,20,31,.94) 0%, rgba(4,20,31,.55) 55%, rgba(4,20,31,.30) 100%);
}
.pj-hero-body { position: relative; z-index: 2; padding-block: var(--s-5) var(--s-4); }
.pj-hero-body .badge { margin-bottom: var(--s-2); }
.pj-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 20ch; }
.pj-place { margin-top: var(--s-2); font-size: var(--fs-sm); letter-spacing: .06em; color: rgba(255,255,255,.72); }

.pj-anchors { background: var(--ink-900); border-bottom: 1px solid rgba(255,255,255,.1); position: sticky; top: 4.7rem; z-index: 90; }
.pj-anchors-inner { display: flex; gap: var(--s-4); align-items: center; overflow-x: auto; }
.pj-anchors a {
  padding: .95rem 0; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.65);
  border-bottom: 2px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.pj-anchors a:hover { color: #fff; border-bottom-color: var(--navy-pale); }
.pj-back { margin-left: auto; color: var(--navy-pale) !important; }

.pj-overview { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: var(--s-6); align-items: start; }
.pj-copy .lead { margin-bottom: var(--s-3); }
.pj-h { font-size: clamp(1.5rem,2.6vw,2.1rem); margin-top: var(--s-4); margin-bottom: .6rem; }
.pj-copy p { color: var(--ink-2); font-size: var(--fs-sm); }

/* The global reset zeroes p margins, so body copy needs its air back.
   The first paragraph is spaced by the lead's margin-bottom; every one
   after it gets its own gap. Applies to project write-ups and to the
   tender scope-of-work list. */
#pjBody p + p,
#pjBody .pj-figure + p,
.pj-copy > p:not(.eyebrow):not(.lead):not(.pj-note) + p { margin-top: var(--s-3); }
.pj-figure { margin-top: var(--s-3); width: 100%; }
.pj-note { padding: var(--s-3); background: var(--bg-tint); border-left: 3px solid var(--navy); font-size: var(--fs-sm); }
.pj-note a { color: var(--navy); font-weight: 500; text-decoration: underline; }

.pj-facts { padding: var(--s-4); background: var(--bg-tint); border-top: 3px solid var(--navy); position: sticky; top: 9rem; }
.pj-facts-head { font-size: var(--fs-mono); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-2); }
.pj-facts dl { display: grid; }
.pj-facts dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-2); padding: .65rem 0; border-bottom: 1px solid var(--line); }
.pj-facts dl > div:last-child { border-bottom: 0; }
.pj-facts dt { font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.pj-facts dd { margin: 0; font-size: var(--fs-sm); font-weight: 500; }

/* ---------- Gallery grid ---------- */
.gal-count { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.pj-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%),1fr)); gap: var(--s-2); }

/* First tile runs wide so the grid has a focal point. */
.pj-gallery .gal-item:first-child { grid-column: span 2; }

.gal-item {
  position: relative;
  display: block; width: 100%; padding: 0;
  aspect-ratio: 4/3;
  border: 0; border-radius: var(--radius);
  background-color: var(--navy-wash);
  background-size: cover; background-position: center;
  cursor: pointer; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .3s var(--ease);
}
.gal-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4,20,31,.78) 100%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gal-item:hover, .gal-item:focus-visible { transform: scale(1.015); box-shadow: 0 14px 36px rgba(4,20,31,.18); }
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }

.gal-item.is-blank {
  background-image: linear-gradient(135deg, #14313f 0%, #06131c 100%);
}

.gal-cap {
  position: absolute; left: var(--s-2); right: var(--s-2); bottom: .75rem; z-index: 2;
  font-size: var(--fs-xs); color: #fff; text-align: left;
  opacity: 0; transform: translateY(5px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { opacity: 1; transform: none; }

/* Play badge for video and embed tiles */
.gal-play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(4,20,31,.62);
  border: 2px solid rgba(255,255,255,.85);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.gal-play::before {
  content: ""; position: absolute; top: 50%; left: 54%;
  width: 0; height: 0; transform: translate(-50%,-50%);
  border-left: 17px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.gal-item.is-motion:hover .gal-play { background: var(--navy); transform: scale(1.08); }

/* ---------- Lightbox ---------- */
body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3,10,16,.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: lbIn .22s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-frame { flex: 1 1 auto; max-width: 1100px; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }

.lb-stage {
  display: flex; align-items: center; justify-content: center;
  max-height: 76vh; min-height: 12rem;
}
.lb-stage img,
.lb-stage video { max-width: 100%; max-height: 76vh; width: auto; height: auto; border-radius: var(--radius); }
.lb-stage iframe { width: 100%; aspect-ratio: 16/9; max-height: 76vh; border: 0; border-radius: var(--radius); }

.lb-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.lb-caption { color: rgba(255,255,255,.85); font-size: var(--fs-sm); }
.lb-counter { color: rgba(255,255,255,.5); font-size: var(--fs-xs); letter-spacing: .12em; white-space: nowrap; }

.lb-close, .lb-nav {
  flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  background: rgba(255,255,255,.06); color: #fff;
  cursor: pointer; line-height: 1;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.lb-nav { width: 52px; height: 52px; font-size: 2rem; padding-bottom: 4px; }
.lb-close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); width: 44px; height: 44px; font-size: 1.6rem; }

@media (max-width: 700px) {
  .pj-gallery .gal-item:first-child { grid-column: span 1; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox { padding: 1rem .5rem; }
  .gal-cap { opacity: 1; transform: none; }
}

.pj-missing { padding-block: clamp(7rem,14vw,11rem); }
.page-narrow { max-width: 44rem; }

/* Prev / next across the archive */
.pj-pager { border-top: 1px solid var(--line); background: var(--bg-tint); }
.pj-pager-inner { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.pj-pager-link {
  flex: 1 1 15rem;
  display: flex; flex-direction: column; gap: .25rem;
  padding: var(--s-4) 0;
  transition: color .25s var(--ease);
}
.pj-next { text-align: right; align-items: flex-end; }
.pj-pager-link span {
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
  transition: color .25s var(--ease);
}
.pj-pager-link strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; color: var(--ink);
  transition: color .25s var(--ease);
}
.pj-pager-link:hover span,
.pj-pager-link:hover strong { color: var(--navy); }

@media (max-width: 1000px) {
  .pj-overview { grid-template-columns: 1fr; gap: var(--s-5); }
  .pj-facts { position: static; }
}
@media (max-width: 1000px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .ctl-search { grid-column: 1 / -1; }
  .pj-anchors { top: 0; }
}
@media (max-width: 560px) {
  .controls { grid-template-columns: 1fr; }
  .browse-bar { align-items: flex-start; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .about-split, .contact-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .proj-wide { grid-column: span 1; }
  .proj-wide .proj-img { aspect-ratio: 16/10; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-1) var(--gutter) var(--s-3);
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(4,20,31,.14);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a, .site-header.is-stuck .nav a { color: var(--ink); padding: .85rem 0; border-bottom: 1px solid var(--line-2); font-size: 1.15rem; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta, .site-header.is-stuck .nav .nav-cta { margin-left: 0; margin-top: var(--s-2); color: #fff; text-align: center; justify-content: center; }

  .figures-grid { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }

  .cap { grid-template-columns: 4rem 1fr; gap: var(--s-3); }
  .utility-tag { display: none; }
  .utility-inner { justify-content: center; }
  .proj-index { columns: 2 240px; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .field-row { grid-template-columns: 1fr; }
  .contact-dl > div { grid-template-columns: 1fr; gap: .15rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .proj-index { columns: 1; }
  .certs-row { gap: var(--s-3); }
  .certs-row img { height: 40px; }
  .cta-inner .btn { width: 100%; }
}

/* ============================================================
   REDUCED MOTION / PRINT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .proj:hover { transform: none; }
  .hero-frame { transform: none; }
}

@media print {
  .utility, .site-header, .contact-form, .filters, .hero-stage, .cta-band { display: none; }
  body { background: #fff; color: #000; }
  .section-dark, .site-footer, .figures, .pull { background: #fff; color: #000; }
}

/* ============================================================
   TENDER ARCHIVE
   ============================================================ */
.tender-card.is-archived { opacity: .82; }
.tender-card.is-archived:hover { opacity: 1; }
.tender-arch {
  padding: .2rem .6rem; border-radius: 3px;
  background: var(--line); color: var(--ink-2);
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tender-archnote {
  margin-bottom: var(--s-4); padding: var(--s-3);
  background: #fff; border-left: 3px solid var(--ink-3);
  font-size: var(--fs-sm); color: var(--ink-2); max-width: 60ch;
}

/* ============================================================
   BID LIST REGISTRATION
   ============================================================ */
.reg-card {
  background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--navy); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.reg-head { max-width: 46rem; margin-bottom: var(--s-4); }
.reg-form fieldset {
  margin: 0 0 var(--s-4); padding: 0 0 var(--s-4) 0;
  border: 0; border-bottom: 1px solid var(--line);
}
.reg-form fieldset:last-of-type { border-bottom: 0; }
.reg-form legend {
  padding: 0; margin-bottom: var(--s-3);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: .02em;
}
.reg-form legend em {
  display: block; font-family: var(--font-text); font-style: normal;
  font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3);
  letter-spacing: 0; margin-top: .15rem;
}
.field-row-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* ---------- Cost code picker ---------- */
.cc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint); }
.cc-bar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3);
  flex-wrap: wrap; padding: var(--s-3); border-bottom: 1px solid var(--line);
}
.cc-search { flex: 1 1 22rem; }
.cc-search label {
  display: block; margin-bottom: .35rem;
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.cc-search input {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; font: inherit; font-size: var(--fs-sm);
}
.cc-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,87,136,.12); }
.cc-count { font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap; }
.cc-count strong {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--ink-3); margin-right: .2rem;
}
.cc.has-picks .cc-count strong { color: var(--navy); }
.cc-empty { padding: var(--s-4); text-align: center; color: var(--ink-3); font-size: var(--fs-sm); }

.cc-divs { max-height: 30rem; overflow-y: auto; }
.cc-div { border-bottom: 1px solid var(--line); }
.cc-div[hidden] { display: none; }
.cc-div > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: .8rem var(--s-3); cursor: pointer; background: #fff;
  list-style: none; transition: background .2s var(--ease);
}
.cc-div > summary::-webkit-details-marker { display: none; }
.cc-div > summary::before {
  content: "+"; flex: 0 0 auto; width: 1.1rem;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--navy);
}
.cc-div[open] > summary::before { content: "–"; }
.cc-div > summary:hover { background: var(--navy-wash); }
.cc-div-name {
  flex: 1 1 auto; font-family: var(--font-display); font-size: 1.08rem;
  font-weight: 600; letter-spacing: .02em;
}
.cc-div-n {
  font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: var(--ink-3);
  padding: .15rem .5rem; border-radius: 100px; background: var(--bg-tint);
}
.cc-div.has-picks .cc-div-n { background: var(--navy); color: #fff; }
.cc-div.has-picks .cc-div-name { color: var(--navy); }

.cc-div-body { padding: var(--s-2) var(--s-3) var(--s-3); background: var(--bg-tint); }
.cc-all {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .6rem;
  padding: .4rem .7rem; border: 1px dashed var(--navy); border-radius: var(--radius);
  background: #fff; font-size: var(--fs-xs); font-weight: 500; color: var(--navy); cursor: pointer;
}
.cc-all input { accent-color: var(--navy); }
.cc-intro { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: .6rem; max-width: 70ch; }

.cc-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cc-row { position: relative; background: #fff; }
.cc-row[hidden] { display: none; }
.cc-pick {
  display: flex; align-items: baseline; gap: .6rem; padding: .5rem .7rem;
  cursor: pointer; transition: background .15s var(--ease);
}
.cc-row:hover .cc-pick, .cc-row:focus-within .cc-pick { background: var(--navy-wash); }
.cc-pick input { accent-color: var(--navy); }
.cc-num {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-xs);
  color: var(--navy); min-width: 3.2rem;
}
.cc-name { font-size: var(--fs-sm); }

/* Description pops out on hover or keyboard focus. */
.cc-desc {
  position: absolute; left: 3.5rem; right: .5rem; top: 100%; z-index: 20;
  padding: .6rem .8rem; margin-top: -.2rem;
  background: var(--ink-950); color: rgba(255,255,255,.9);
  border-radius: var(--radius); font-size: var(--fs-xs); line-height: 1.5;
  box-shadow: 0 12px 28px rgba(4,20,31,.28);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  pointer-events: none;
}
.cc-row:hover .cc-desc, .cc-row:focus-within .cc-desc { opacity: 1; visibility: visible; transform: none; }

.cc-error {
  margin-top: var(--s-2); padding: .7rem .9rem;
  background: #fdf0ef; border-left: 3px solid #c0392b;
  font-size: var(--fs-sm); color: #8f1e18;
}

@media (max-width: 700px) {
  .field-row-3 { grid-template-columns: 1fr; }
  .cc-desc { position: static; opacity: 1; visibility: visible; transform: none;
             margin: 0 .7rem .5rem; left: auto; right: auto; }
  .cc-divs { max-height: none; }
}

/* ============================================================
   JOIN BID LIST — compact bar + dialog
   ============================================================ */
.joinbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--navy); border-radius: var(--radius);
}
.joinbar-copy { flex: 1 1 26rem; }
.joinbar-copy h2 { margin-bottom: .5rem; }
.joinbar-copy p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 56ch; }
.joinbar-btn { flex: 0 0 auto; }
.joinbar-done { max-width: 46rem; }

.reg-card-page { max-width: 60rem; margin-inline: auto; }

/* ---------- Dialog ---------- */
body.joindlg-open { overflow: hidden; }

.joindlg {
  width: min(60rem, calc(100vw - 2rem));
  max-height: min(90vh, 60rem);
  padding: 0; border: 0; border-radius: var(--radius);
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(4,20,31,.45);
  overflow: visible;
}
.joindlg::backdrop { background: rgba(3,10,16,.72); backdrop-filter: blur(4px); }

.joindlg-body {
  max-height: min(90vh, 60rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
}
.joindlg-loading { color: var(--ink-3); font-size: var(--fs-sm); text-align: center; padding: 3rem 0; }

.joindlg-close {
  position: absolute; top: .6rem; right: .6rem; z-index: 5;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink-2); font-size: 1.5rem; line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.joindlg-close:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Inside the dialog the picker has less room, so cap its scroll area lower. */
.joindlg .cc-divs { max-height: 22rem; }

@media (max-width: 700px) {
  .joinbar-btn { width: 100%; }
  .joindlg { width: 100vw; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .joindlg-body { max-height: 100vh; border-radius: 0; }
}

/* Access code field on the public estimate form */
.field-access input {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  letter-spacing: .55em; text-align: center; max-width: 10rem;
}

/* Tender phase flags */
.tender-late, .tender-upcoming {
  padding: .2rem .6rem; border-radius: 3px;
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tender-late { background: #f7e4e2; color: #8f1e18; }
.tender-upcoming { background: var(--navy-wash); color: var(--navy); }

.tender-grace {
  padding: var(--s-3); margin-bottom: var(--s-4);
  background: #fdf3f2; border-left: 3px solid #b3261e; border-radius: var(--radius);
}
.tender-grace h3 { font-size: 1.3rem; margin-bottom: .4rem; color: #8f1e18; }
.tender-grace p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 66ch; }
.tender-sent.is-late { background: #fdf3f2; border-color: #b3261e; }

/* ============================================================
   PROJECTS MAP
   ============================================================ */
.mapsec { padding-block: var(--s-5) var(--s-4); }
.mapsec[hidden] { display: none; }
.mapsec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3);
}
.mapsec-meta { display: flex; align-items: center; gap: var(--s-2); }
.map-count { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.map-reset {
  padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 100px;
  background: #fff; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.map-reset:hover { border-color: var(--navy); color: var(--navy); }

.map-shell { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* Taller than it looks like it needs to be: the region is deeper than it
   is wide, so height is what limits how far the default view can zoom. */
#projectMap { height: clamp(26rem, 64vh, 40rem); width: 100%; background: #dfe7ec; z-index: 1; }
#projectMap:focus-visible { outline: 2px solid var(--navy-lt); outline-offset: -2px; }

.map-key {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  padding: .7rem var(--s-3); border-top: 1px solid var(--line); background: #fff;
  font-size: var(--fs-xs); color: var(--ink-2);
}
.map-key li { display: flex; align-items: center; gap: .45rem; }
.key-pin {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: .62rem; font-weight: 700; color: #fff;
}
.key-pin-project { background: var(--navy); }
.key-pin-office { background: var(--amber-dk); }
.key-pin-cluster { background: var(--navy-lt); }

.map-note { margin-top: .6rem; font-size: var(--fs-xs); color: var(--ink-3); max-width: 62ch; }

/* ---------- Pins ----------
   Teardrop is a rotated square with one square corner; the label is
   counter-rotated so digits sit upright. */
.pin, .pin-cluster { background: none; border: 0; }

.pin > span {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--navy);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(4, 20, 31, .4);
}
.pin > span > i {
  transform: rotate(45deg);
  font-style: normal; line-height: 1;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: #fff;
}
.pin-many > span { background: var(--navy-lt); }

.pin-office > span {
  width: 34px; height: 34px;
  background: var(--amber-dk);
}
.pin-office > span > i { font-size: 1.05rem; }

/* ---------- Clusters ---------- */
.pin-cluster { background: none; border: 0; }
.pin-cluster > span {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-lt); border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(4,20,31,.35);
}
.pin-cluster > span > i {
  font-style: normal; line-height: 1;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.pin-cluster-md > span { width: 46px; height: 46px; background: var(--navy); }
.pin-cluster-md > span > i { font-size: 1.15rem; }
.pin-cluster-lg > span { width: 54px; height: 54px; background: var(--ink-950); }
.pin-cluster-lg > span > i { font-size: 1.3rem; }

/* ---------- Popups ---------- */
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(4,20,31,.28); }

/* Leaflet measures the content at nowrap, clamps between min/max width and
   writes an explicit px width. Do NOT set width here — overriding that
   calculation collapses the popup to a tall, narrow column. */
.leaflet-popup-content { margin: 0; }
.leaflet-popup-content-wrapper { max-width: 90vw; }

.mp { padding: var(--s-2) var(--s-3) var(--s-3); font-family: var(--font-text); }
.mp-kicker {
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy); margin: 0 0 .15rem;
}
.mp h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; margin: 0 0 .5rem; text-wrap: balance; }
.mp-addr { font-size: var(--fs-xs); color: var(--ink-2); margin: 0 0 .6rem; }
.mp-link { font-size: var(--fs-xs); font-weight: 600; color: var(--navy); }

/* A tall list would overflow a short map — most obviously on a phone held
   in landscape, where the map is only a couple of hundred pixels deep. */
.mp-list { max-height: min(15rem, 34vh); overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.mp-list li { border-top: 1px solid var(--line); }
.mp-list a { display: block; padding: .5rem 0; }
.mp-list a:hover strong { color: var(--navy); }
.mp-list strong {
  display: block; font-family: var(--font-display); font-size: 1.02rem;
  font-weight: 600; line-height: 1.25; color: var(--ink);
  text-wrap: pretty;              /* avoid a single orphaned word */
}
.mp-list span { font-size: var(--fs-xs); color: var(--ink-3); }

@media (max-width: 620px) {
  #projectMap { height: 24rem; }
  .map-key { gap: .75rem var(--s-2); }
}

/* ============================================================
   VIEW MORE
   ============================================================ */
.more-wrap {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  margin-top: var(--s-5);
}
.more-wrap .btn { min-width: 16rem; }
.more-wrap .btn em {
  font-style: normal; font-weight: 500; opacity: .72; margin-left: .45rem;
  text-transform: none; letter-spacing: 0;
}
.more-done {
  font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.more-done[hidden], .more-wrap .btn[hidden] { display: none; }

/* Brief cue on controls that arrived pre-set from a link. */
@keyframes appliedPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,87,136,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(0,87,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,87,136,0); }
}
.ctl-applied select,
.ctl-applied input { border-color: var(--navy); animation: appliedPulse 1.1s var(--ease) 2; }
.ctl-applied label { color: var(--navy); }
.chip-applied { animation: appliedPulse 1.1s var(--ease) 2; }

@media (prefers-reduced-motion: reduce) {
  .ctl-applied select, .ctl-applied input, .chip-applied { animation: none; }
}

/* ============================================================
   MARKET OVERVIEW PANEL
   Sits between the map and the filters; only present when a
   market filter is active.
   ============================================================ */
/* Sits inside the results wrap, so it needs a gap below rather than
   section padding of its own. */
.mkt { margin-bottom: var(--s-4); }
.mkt[hidden] { display: none; }

.mkt-card {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--ink-950);
  border-radius: var(--radius);
  color: #fff;
  animation: mktIn .45s var(--ease) both;
}
@keyframes mktIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

.mkt-card .eyebrow { color: var(--navy-pale); }
.mkt-card h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .3rem; }
.mkt-tag {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500; color: var(--navy-pale); margin-bottom: var(--s-3);
}

.mkt-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-4) var(--s-5);
  padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.14);
}
.mkt-card .lead { color: rgba(255,255,255,.82); }

.mkt-points { display: grid; gap: .45rem; margin-top: var(--s-3); }
.mkt-points li {
  position: relative; padding-left: 1.2rem;
  font-size: var(--fs-sm); color: rgba(255,255,255,.72);
}
.mkt-points li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--navy-lt);
}

.mkt-notable-head {
  font-size: var(--fs-mono); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .6rem;
}
.mkt-notable ul { display: grid; }
.mkt-notable li { border-top: 1px solid rgba(255,255,255,.12); }
.mkt-notable li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.mkt-notable a, .mkt-notable li {
  display: block; padding: .55rem 0;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  line-height: 1.2; color: rgba(255,255,255,.88);
}
.mkt-notable a { padding: 0; transition: color .2s var(--ease); }
.mkt-notable a:hover { color: var(--navy-pale); text-decoration: underline; }

.mkt-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  background: rgba(255,255,255,.06); color: #fff;
  font-size: 1.5rem; line-height: 1;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.mkt-close:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }

@media (max-width: 820px) {
  .mkt-grid { grid-template-columns: 1fr; }
  .mkt-card h2 { padding-right: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .mkt-card { animation: none; } }

/* Map placeholder while Leaflet is fetched on approach. */
#projectMap.is-loading {
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #dfe7ec 0 12px, #d7e1e8 12px 24px);
}
#projectMap.is-loading::after {
  content: "Loading map…";
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Error page ---------- */
.err-code {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4.5rem, 15vw, 9rem); line-height: 1;
  color: var(--navy-wash); margin-bottom: var(--s-2);
}
.err-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: var(--s-4); }
.btn-outline-dark { border-color: var(--line); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--navy); color: var(--navy); }
.page-narrow h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: var(--s-4); }
.page-narrow h3 { font-size: 1.15rem; margin-top: var(--s-3); color: var(--navy); }
.page-narrow p  { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-sm); }
.page-narrow ul { margin-top: var(--s-2); display: grid; gap: .45rem; }
.page-narrow li { position: relative; padding-left: 1.2rem; color: var(--ink-2); font-size: var(--fs-sm); }
.page-narrow li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--navy);
}

/* ============================================================
   VIEW TRANSITIONS
   Cross-document, so the archive → project move is a single
   continuous motion instead of a white flash. Browsers without
   support ignore the whole block and navigate normally.
   ============================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .28s;
  animation-timing-function: var(--ease);
}

/* The hero photo is the thread between the two pages — name it on both
   ends and the browser morphs one into the other. */
.pj-hero-bg { view-transition-name: project-hero; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ============================================================
   SKELETON CARDS
   Shown while the project feed loads, so the archive has its
   real shape immediately instead of a line of text that pops.
   ============================================================ */
.skel { pointer-events: none; }
.skel .sk-img {
  aspect-ratio: 16/10;
  background: linear-gradient(100deg, #e9eef2 30%, #f4f7f9 50%, #e9eef2 70%);
  background-size: 220% 100%;
  animation: skel 1.3s linear infinite;
}
.skel .sk-body { padding: var(--s-3); display: grid; gap: .5rem; }
.skel .sk-line {
  height: 10px; border-radius: 3px;
  background: linear-gradient(100deg, #e9eef2 30%, #f4f7f9 50%, #e9eef2 70%);
  background-size: 220% 100%;
  animation: skel 1.3s linear infinite;
}
.skel .sk-line.is-short { width: 45%; }
.skel .sk-line.is-title { height: 15px; width: 80%; }

@keyframes skel { from { background-position: 130% 0; } to { background-position: -30% 0; } }

@media (prefers-reduced-motion: reduce) {
  .skel .sk-img, .skel .sk-line { animation: none; }
}


/* ============================================================
   TOUCH TARGETS
   Desktop keeps its compact controls; anything driven by a
   finger gets the 44px minimum. Scoped to coarse pointers so
   the mouse layout is untouched.
   ============================================================ */
@media (pointer: coarse) {
  .chip, .filter, .map-reset, .reset {
    min-height: 44px;
    display: inline-flex; align-items: center;
  }
  .mp-list a { padding-block: .7rem; }
  .cc-pick { padding-block: .7rem; }
  .cc-all { padding-block: .6rem; }
  .lb-nav { width: 48px; height: 48px; }
  .lb-close, .joindlg-close, .mkt-close { width: 48px; height: 48px; }
  .nav a { padding-block: .8rem; }
  .footer-nav a, .utility-links a { padding-block: .35rem; display: inline-block; }
}
