/* US Veteran Group. Direction A "Field Standard", v2 rollout (Jobsite comp) site-wide.
   Palette contrast checked (python, sRGB relative luminance), not eyeballed:
   ink #14213D on bone #F4F1EA        = 14.16:1
   bone #F4F1EA on ink #14213D        = 14.16:1
   brass-text #8A6634 on bone         = 4.62:1 (small text minimum)
   brass raw #A8804A on bone          = 3.18:1 (rules/borders/large text only, not body text)
   brass-on-dark #C9A876 on ink       = 7.11:1
   white on signal #B3261E            = 6.54:1
   bone on signal #B3261E             = 5.79:1
   ink-muted #3D4A66 on bone          = 7.86:1
   bone-muted #B9C0D1 on ink          = 8.77:1
   ink #14213D on brass raw #A8804A   = 4.45:1 (large text only: hero-navy graphic labels)
*/

:root {
  --ink: #14213D;
  --ink-muted: #3D4A66;
  --bone: #F4F1EA;
  --bone-muted: #B9C0D1;
  --brass: #A8804A;
  --brass-text: #8A6634;
  --brass-on-dark: #C9A876;
  --signal: #B3261E;
  --white: #FFFFFF;
  --border: rgba(20, 33, 61, 0.14);
  --border-dark: rgba(244, 241, 234, 0.2);
  --radius: 2px;
  --gutter: 1.25rem;
  --max: 1240px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

@media (max-width: 560px) {
  :root { --gutter: 1.5rem; }
}

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Dark-band heading rule: ANY heading inside a navy/signal band or the navy
   color-block hero is bone, full stop. This exists so a heading dropped into
   a dark section never inherits the base ink color again (the section--navy
   "How a project runs" heading did exactly that before this rule existed). */
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.section--signal h1, .section--signal h2, .section--signal h3, .section--signal h4,
.hero-navy h1, .hero-navy h2, .hero-navy h3, .hero-navy h4 {
  color: var(--bone);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }

.icon { width: 1em; height: 1em; display: inline-block; fill: currentColor; flex-shrink: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: var(--bone);
  padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  z-index: 1000; transition: top 0.15s ease;
}
.skip-link:focus { top: var(--gutter); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--brass-text);
  margin: 0 0 0.6rem;
}
.eyebrow--on-dark { color: var(--brass-on-dark); }
.eyebrow--on-signal { color: var(--bone); }

.lede { font-size: 1.08rem; color: var(--ink-muted); max-width: 58ch; }
.lede--on-dark { color: var(--bone-muted); }

.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--navy { background: var(--ink); color: var(--bone); }
.section--signal { background: var(--signal); color: var(--bone); }
.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.75rem 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--brass-text); color: var(--bone); }
.btn--primary:hover { background: #74542a; }
.btn--outline { background: transparent; color: var(--bone); border-color: rgba(244,241,234,0.55); }
.btn--outline:hover { background: rgba(244,241,234,0.12); border-color: var(--bone); }
.btn--ink-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ink-outline:hover { background: rgba(20,33,61,0.06); }
.btn--on-dark { background: var(--bone); color: var(--ink); }
.btn--on-dark:hover { background: #e3ddcf; }
.btn--danger { background: var(--signal); color: var(--white); }
.btn--danger:hover { background: #94201a; }
.btn--sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 400; background: var(--bone); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; padding-block: 0.5rem; }
.wordmark { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.wordmark__rule { width: 3px; height: 30px; background: var(--brass-text); display: block; flex-shrink: 0; }
.wordmark__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.wordmark__descriptor { display: block; margin-top: 0.3rem; font-family: var(--font-body); font-size: 0.72rem; line-height: 1.4; color: var(--bone-muted); letter-spacing: 0.02em; }
.footer-brand .wordmark__descriptor { color: var(--bone-muted); }
.site-header .wordmark__descriptor { display: none; }

.nav { display: flex; gap: 1.75rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.nav a { text-decoration: none; color: var(--ink); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brass-text); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn { display: none; }
.hamburger { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.hamburger__box { position: relative; width: 22px; height: 16px; }
.hamburger__box span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger__box span:nth-child(1) { top: 0; }
.hamburger__box span:nth-child(2) { top: 7px; }
.hamburger__box span:nth-child(3) { top: 14px; }
.hamburger[aria-expanded="true"] .hamburger__box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__box span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 390;
  background: var(--ink); color: var(--bone); padding: 1.5rem var(--gutter);
  flex-direction: column; gap: 0.25rem; overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: var(--bone); text-decoration: none; font-family: var(--font-display);
  font-weight: 600; font-size: 1.3rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border-dark);
}
.mobile-nav a[aria-current="page"] { color: var(--brass-on-dark); }
.mobile-nav .btn-row { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .hamburger { display: none; }
}
@media (max-width: 899px) {
  .nav { display: none; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero: full-bleed photo (crossfade-capable) ---------- */
.hero-v2 { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.hero-v2--page { min-height: 72svh; }
@media (max-width: 767px) {
  .hero-v2 { min-height: 88svh; }
  .hero-v2--page { min-height: 66svh; }
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: grayscale(0.25) contrast(1.06) saturate(0.92);
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(20,33,61,0.92) 0%, rgba(20,33,61,0.62) 38%, rgba(20,33,61,0.22) 68%, rgba(20,33,61,0.4) 100%),
    linear-gradient(100deg, rgba(20,33,61,0.75) 0%, rgba(20,33,61,0.28) 46%, rgba(20,33,61,0.5) 100%);
  mix-blend-mode: multiply;
}
.hero-scrim::after { content: ""; position: absolute; inset: 0; background: rgba(20,33,61,0.18); }
.hero-content { position: relative; z-index: 5; color: var(--bone); width: 100%; padding-block: clamp(2.5rem, 8vw, 4.5rem); }
.hero-content__inner { max-width: 49rem; }
.hero-content h1 { color: var(--bone); font-size: clamp(2.1rem, 3.1vw + 1rem, 3.5rem); margin-top: 0.5rem; text-wrap: balance; }
.hero-content .lede { color: var(--bone-muted); max-width: 46ch; margin-top: 1rem; font-size: 1.12rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid rgba(201,168,118,0.55); color: var(--brass-on-dark);
  border-radius: 999px; padding: 0.4rem 0.9rem; min-height: 34px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em;
}
.hero-chip .icon { width: 0.95em; height: 0.95em; }

/* ---------- Hero: navy colour-block (no photo available) ---------- */
.hero-navy { background: var(--ink); color: var(--bone); padding-block: clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero-navy__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-navy h1 { color: var(--bone); font-size: clamp(2.1rem, 3.6vw + 0.8rem, 3.3rem); margin-top: 0.5rem; text-wrap: balance; }
.hero-navy .lede { color: var(--bone-muted); margin-top: 1rem; font-size: 1.1rem; }
/* Hero navy right-hand panel: real content (a jump list, a CTA card, or a
   credential pair), never a lone decorative icon. */
.hero-navy__panel {
  position: relative; justify-self: stretch; display: flex; flex-direction: column; gap: 1rem;
  background: rgba(244,241,234,0.05); border: 1px solid var(--border-dark); border-radius: var(--radius);
  padding: 1.75rem;
}
.hero-navy__panel-title { color: var(--bone); font-size: 1.25rem; }
.hero-navy__panel-phone {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--bone); text-decoration: none;
}
.hero-navy__panel-phone:hover, .hero-navy__panel-phone:focus-visible { color: var(--brass-on-dark); }
.hero-navy__panel > .btn { align-self: flex-start; }
.hero-navy__panel > .tile-link { color: var(--brass-on-dark); margin-top: 0; }
.hero-navy__panel .credential-card--compact {
  background: rgba(244,241,234,0.05); padding: 1.35rem 1.5rem;
}
.hero-navy__panel .credential-card--compact h2 { font-size: 1.15rem; }
.hero-navy__panel .credential-card--compact p { font-size: 0.92rem; }

.hero-jumplist { list-style: none; margin: 0; padding: 0; }
.hero-jumplist li { border-bottom: 1px solid var(--border-dark); }
.hero-jumplist li:last-child { border-bottom: 0; }
.hero-jumplist a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 44px; padding: 0.8rem 0.1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--bone); text-decoration: none;
}
.hero-jumplist a:hover, .hero-jumplist a:focus-visible { color: var(--brass-on-dark); }
.hero-jumplist .icon { width: 0.9em; height: 0.9em; flex-shrink: 0; opacity: 0.75; }
@media (max-width: 860px) {
  .hero-navy__grid { grid-template-columns: 1fr; }
  .hero-navy__panel { justify-self: stretch; width: 100%; margin-top: 0.5rem; }
}

/* ---------- Hero: simple bone page hero (contact/legal/404) ---------- */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero__inner { max-width: 46rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-top: 0.5rem; text-wrap: balance; }
.page-hero .lede { margin-top: 1rem; }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bento-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  padding: 1.75rem; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 190px; transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease;
  text-decoration: none; color: inherit;
  scroll-margin-top: 96px; /* clears the sticky header when the services hero jump list targets it */
}
.bento-tile:hover, .bento-tile:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(20,33,61,0.18); }
.bento-tile--concrete { grid-column: 1 / 3; grid-row: 1 / 3; background: var(--ink); color: var(--bone); padding: 2.25rem; min-height: 340px; }
.bento-tile--concrete .icon { width: 52px; height: 52px; color: var(--brass-on-dark); margin-bottom: 1.25rem; }
.bento-tile--concrete h3 { color: var(--bone); font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.bento-tile--concrete p { color: var(--bone-muted); margin-top: 0.6rem; max-width: 34ch; }

.bento-tile--wfm { grid-column: 3 / 5; grid-row: 1 / 3; min-height: 340px; padding: 0; }
.bento-tile--wfm .bento-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.bento-tile--wfm:hover .bento-photo, .bento-tile--wfm:focus-visible .bento-photo { transform: scale(1.04); }
/* z-index:1 is load-bearing: .bento-photo is a later DOM sibling with no z-index of
   its own, so without this the photo painted on top of the scrim and hid it entirely
   regardless of the gradient's opacity (found by measuring actual rendered pixels). */
.bento-tile--wfm::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20,33,61,0.94) 0%, rgba(20,33,61,0.9) 48%, rgba(20,33,61,0) 88%); }
.bento-tile--wfm .bento-tile__body { position: relative; z-index: 2; padding: 2.25rem; }
.bento-tile--wfm h3 { color: var(--bone); font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.bento-tile--wfm p { color: var(--bone-muted); margin-top: 0.6rem; max-width: 34ch; }

.bento-tile--small { background: var(--bone); border: 1px solid var(--border); color: var(--ink); justify-content: flex-start; }
.bento-tile--small .icon { width: 34px; height: 34px; color: var(--brass-text); margin-bottom: 1rem; }
.bento-tile--small h3 { font-size: 1.2rem; }
.bento-tile--small p { color: var(--ink-muted); font-size: 0.92rem; margin-top: 0.4rem; }

.bento-tile--brass { background: var(--brass-text); border-color: var(--brass-text); color: var(--bone); }
.bento-tile--brass .icon { color: var(--bone); }
.bento-tile--brass h3 { color: var(--bone); }
.bento-tile--brass p { color: var(--bone); } /* bone on brass-text = 4.62:1; the 0.82-alpha tint measured 3.69:1 and failed AA */

.tile-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.tile-link .icon { width: 1em; height: 1em; transition: transform 0.2s ease; }
.bento-tile:hover .tile-link .icon { transform: translateX(3px); }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-tile--concrete, .bento-tile--wfm { grid-column: 1 / 3; grid-row: auto; min-height: 260px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-tile--small { grid-column: 1; }
}

/* Services page: expanded bento, fuller copy, taller tiles */
.bento--expanded .bento-tile--small { min-height: 0; padding: 2rem; }
.bento--expanded .bento-tile--small .icon { width: 40px; height: 40px; }
.bento--expanded .bento-tile--small h3 { font-size: 1.35rem; }
.bento--expanded .bento-tile--small p { font-size: 0.98rem; max-width: 32ch; }
.bento--expanded .bento-tile--concrete,
.bento--expanded .bento-tile--wfm { min-height: 400px; }

/* ---------- Condo band ---------- */
.condo-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.condo-copy h2 { color: var(--bone); }
.condo-prompt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--bone); margin-top: 1.5rem; margin-bottom: 0.9rem; }
.condo-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.condo-chip {
  border: 1px solid rgba(244,241,234,0.32); color: var(--bone-muted);
  border-radius: 999px; padding: 0.6rem 1.1rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.condo-chip:hover { border-color: var(--brass-on-dark); color: var(--bone); }
.condo-chip[aria-pressed="true"] { background: var(--brass-on-dark); color: var(--ink); border-color: var(--brass-on-dark); }
.condo-copy .btn { margin-top: 1.75rem; }
.condo-answer-panel { background: rgba(244,241,234,0.06); border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 1.75rem; min-height: 220px; }
.condo-answers-noscript li { padding-block: 0.9rem; border-bottom: 1px solid var(--border-dark); }
.condo-answers-noscript li:last-child { border-bottom: 0; }
.condo-answers-noscript h3 { color: var(--bone); font-size: 1.1rem; margin-bottom: 0.35rem; }
.condo-answers-noscript p { color: var(--bone-muted); }
#condo-answer-live { display: none; }
#condo-answer-live h3 { color: var(--brass-on-dark); font-size: 1.3rem; margin-bottom: 0.75rem; }
#condo-answer-live p { color: var(--bone); font-size: 1.05rem; }
.condo-answer-panel.js-enhanced #condo-answers-full { display: none; }
.condo-answer-panel.js-enhanced #condo-answer-live { display: block; }
@media (max-width: 820px) { .condo-grid { grid-template-columns: 1fr; } }

/* Condo band on bone (condo-restoration.html, second use, variety of tone) */
.section--bone-band { background: var(--bone); color: var(--ink); border-block: 1px solid var(--border); }
.section--bone-band .condo-copy h2,
.section--bone-band .condo-prompt { color: var(--ink); }
.section--bone-band .condo-copy .lede { color: var(--ink-muted); }
.section--bone-band .eyebrow--on-dark { color: var(--brass-text); }
.section--bone-band .condo-chip { border-color: var(--border); color: var(--ink-muted); }
.section--bone-band .condo-chip:hover { border-color: var(--brass-text); color: var(--ink); }
.section--bone-band .condo-chip[aria-pressed="true"] { background: var(--brass-text); color: var(--bone); border-color: var(--brass-text); }
.section--bone-band .condo-answer-panel { background: var(--white); border-color: var(--border); }
.section--bone-band .condo-answers-noscript li { border-bottom-color: var(--border); }
.section--bone-band .condo-answers-noscript h3 { color: var(--ink); }
.section--bone-band .condo-answers-noscript p { color: var(--ink-muted); }
.section--bone-band #condo-answer-live h3 { color: var(--brass-text); }
.section--bone-band #condo-answer-live p { color: var(--ink); }
.section--bone-band .condo-copy .btn { background: var(--brass-text); color: var(--bone); }
.section--bone-band .condo-copy .btn:hover { background: #74542a; }

/* ---------- Repair list ("what we repair") ---------- */
.repair-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.repair-item {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1.4rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
}
.repair-item .icon { width: 24px; height: 24px; color: var(--brass-text); flex-shrink: 0; margin-top: 0.15rem; }
.repair-item p { margin: 0; font-size: 1.02rem; color: var(--ink); max-width: none; }
@media (max-width: 700px) { .repair-list { grid-template-columns: 1fr; } }

/* ---------- Zig-zag / timeline (damage blocks, project steps) ---------- */
.zigzag { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); }
.zigzag-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.zigzag-item:nth-child(even) .zigzag-item__media { order: 2; }
.zigzag-item__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.zigzag-item__media img { width: 100%; height: 100%; object-fit: cover; }
.zigzag-item__copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 0.6rem; }
.zigzag-item__copy p { color: var(--ink-muted); }
@media (max-width: 760px) {
  .zigzag-item { grid-template-columns: 1fr; }
  .zigzag-item:nth-child(even) .zigzag-item__media { order: 0; }
}

/* Timeline variant: no photos, alternating left/right with a center rule (condo process).
   One content block per item; nth-child places it in the left or right grid column. */
.timeline { position: relative; display: flex; flex-direction: column; gap: 2.5rem; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0.5rem; bottom: 0.5rem; width: 1px;
  background: var(--border-dark); transform: translateX(-50%);
}
.timeline-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.timeline-item__mark {
  position: absolute; left: 50%; top: 0.15rem; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--brass-on-dark);
  border: 3px solid var(--ink); box-shadow: 0 0 0 1px rgba(201,168,118,0.4);
}
.timeline-item__content { grid-column: 1; padding-right: clamp(1.5rem, 4vw, 3rem); text-align: right; }
.timeline-item:nth-child(even) .timeline-item__content { grid-column: 2; padding-right: 0; padding-left: clamp(1.5rem, 4vw, 3rem); text-align: left; }
.timeline-item:nth-child(odd) .timeline-item__content .icon { margin-left: auto; }
.timeline-item .icon { display: block; width: 26px; height: 26px; color: var(--brass-on-dark); margin-bottom: 0.75rem; }
.timeline-item h3 { color: var(--bone); font-size: 1.3rem; margin-bottom: 0.5rem; }
.timeline-item p { color: var(--bone-muted); margin-inline: 0; }
.timeline-item:nth-child(odd) .timeline-item p { margin-left: auto; }
@media (max-width: 720px) {
  .timeline::before { left: 22px; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item__content,
  .timeline-item:nth-child(even) .timeline-item__content {
    grid-column: 1; padding-left: 3.25rem; padding-right: 0; text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-item__content .icon { margin-left: 0; }
  .timeline-item:nth-child(odd) .timeline-item p { margin-left: 0; }
  .timeline-item__mark { left: 22px; }
}

/* ---------- Gallery ---------- */
.gallery-section { padding-inline: 0; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.gallery-head .container { width: 100%; }
.gallery-head h2 { margin: 0; }
.gallery-arrows { display: flex; gap: 0.6rem; }
.gallery-arrow {
  width: 48px; height: 48px; border-radius: 999px; background: var(--ink); color: var(--bone);
  display: flex; align-items: center; justify-content: center; transition: background-color 0.18s ease, transform 0.18s ease;
}
.gallery-arrow:hover { background: var(--brass-text); }
.gallery-arrow:active { transform: scale(0.94); }
.gallery-arrow .icon { width: 20px; height: 20px; }
.gallery-track { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 0.5rem; margin-top: 2rem; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-card { flex: 0 0 auto; width: min(78vw, 360px); scroll-snap-align: start; }
.gallery-card__frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.gallery-card__frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card figcaption { margin: 0; margin-top: 0.75rem; font-size: 0.95rem; color: var(--ink-muted); max-width: 34ch; }

/* ---------- Credentials ---------- */
.credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.credential-card { background: var(--ink); color: var(--bone); padding: 2.25rem; border-radius: var(--radius); border-top: 3px solid var(--brass-on-dark); }
.credential-card h3 { font-size: 1.5rem; color: var(--bone); }
.credential-card p { color: var(--bone-muted); margin-top: 0.6rem; }
.credential-card .tile-link { color: var(--brass-on-dark); margin-top: 1.25rem; }
@media (max-width: 760px) { .credentials-grid { grid-template-columns: 1fr; } }

/* ---------- Selected projects ---------- */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.project-tile { padding: 2.25rem 1.75rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; min-height: 180px; }
.project-tile:nth-child(-n+2) { border-top: 0; }
.project-tile:nth-child(odd) { border-right: 1px solid var(--border); }
.project-tile__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.35rem); position: relative; display: inline-block; width: fit-content; }
.project-tile__name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brass-text); transform: scaleX(0); transform-origin: left; transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.project-tile:hover .project-tile__name::after, .project-tile:focus-visible .project-tile__name::after { transform: scaleX(1); }
.project-tile__city { display: block; margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-muted); letter-spacing: 0.03em; }
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-tile:nth-child(odd) { border-right: 0; }
  .project-tile:nth-child(n) { border-top: 1px solid var(--border); }
  .project-tile:first-child { border-top: 0; }
}

/* ---------- Emergency band ---------- */
.emergency-band { text-align: left; }
.emergency-band__phone { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.2rem); color: var(--white); text-decoration: none; line-height: 1; margin-top: 0.5rem; }
.emergency-band__phone:hover { color: var(--bone); }
.emergency-band p.lede { color: var(--bone); max-width: 52ch; margin-top: 1.25rem; }

/* ---------- Why us: asymmetric 2-column, not three equal cards ---------- */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.why-lead h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.why-lead p { color: var(--ink-muted); margin-top: 0.75rem; font-size: 1.05rem; max-width: 40ch; }
.why-rest { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.35rem; border-top: 1px solid var(--border); }
.why-rest .why-item { padding-top: 1.75rem; border-top: 1px solid var(--border); }
.why-rest .why-item:first-child { padding-top: 0; border-top: 0; }
.why-item h3 { font-size: 1.15rem; }
.why-item p { color: var(--ink-muted); margin-top: 0.5rem; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Final CTA ---------- */
.final-cta { text-align: left; }
.final-cta__inner { max-width: 40rem; }

/* ---------- Facts panel (about.html) ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.about-copy p { color: var(--ink-muted); font-size: 1.05rem; }
.facts-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 2rem; background: var(--white); }
.facts-panel dt { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--brass-text); }
.facts-panel dd { margin: 0.2rem 0 1.1rem; font-size: 1.05rem; }
.facts-panel dd:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.copy-needed { border: 2px dashed var(--signal); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--signal); background: rgba(179, 38, 30, 0.06); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.75rem 0.85rem; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-muted); }
.form-status { border: 1px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.15rem; margin-top: 1.25rem; display: none; font-size: 0.98rem; }
.form-status.is-visible { display: block; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }
.contact-side { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 2rem; background: var(--white); }
.contact-side h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.contact-side p { margin-bottom: 0.75rem; font-size: 0.98rem; }
.contact-side a { color: var(--brass-text); text-decoration: none; }
.contact-side a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-muted); }
.legal a { color: var(--brass-text); }
.legal-footer-link { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.legal-footer-link a { color: var(--brass-text); text-decoration: none; font-weight: 600; }
.legal-footer-link a:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.not-found { text-align: left; padding-block: clamp(4rem, 10vw, 7rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bone-muted); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .wordmark__name { color: var(--bone); }
.footer-brand address { font-style: normal; margin-top: 1rem; line-height: 1.8; }
.footer-brand address a { color: var(--bone-muted); text-decoration: none; }
.footer-brand address a:hover { color: var(--bone); }
.footer-license { margin-top: 1rem; font-size: 0.82rem; color: var(--bone-muted); }
.footer-grid h2 { font-family: var(--font-display); color: var(--bone); font-size: 1rem; margin-bottom: 0.9rem; }
.footer-links a { color: var(--bone-muted); text-decoration: none; display: block; padding-block: 0.35rem; }
.footer-links a:hover { color: var(--bone); }
.footer-bottom { border-top: 1px solid var(--border-dark); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Mobile sticky call bar (phones only) ----------
   The a11y widget trigger owns the bottom-right corner at fixed z-index
   2147483000. This bar reserves that column with padding-right so the
   trigger never sits over a tap target. */
.sticky-bar { display: none; }
@media (max-width: 767px) {
  .sticky-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    background: var(--ink); border-top: 1px solid var(--border-dark);
    padding: 0.6rem var(--gutter); padding-right: calc(var(--gutter) + 64px); gap: 0.65rem;
  }
  .sticky-bar a { flex: 1; min-height: 44px; }
  body { padding-bottom: 76px; }
}

/* The a11y widget trigger owns the bottom-right corner; nothing else is placed there. */
