/* ==========================================================================
   ATLAS RENOVATIONS — "Blueprint Light" design system v3
   Architect's blue / cool paper / Swiss grotesque / blueprint grid
   ========================================================================== */

/* Space Grotesk + Inter are loaded via <link rel="preconnect"/"stylesheet">
   in each page's <head> instead of @import here — @import is render-blocking
   and serializes the font-CSS fetch behind this whole file loading first. */

:root {
  --blue: #1B3A5B;          /* architect's blue — anchor */
  --blue-deep: #14293F;     /* near-navy for dark blocks */
  --blue-bright: #2E6FB5;   /* interactive cyan-blue */
  --blue-bright-hover: #255C99;
  --paper: #F6F7F9;         /* cool paper canvas */
  --paper-alt: #ECEFF3;     /* alt section band */
  --white: #FFFFFF;
  --steel: #5A6B7B;         /* supporting grey-blue text */
  --steel-light: #8896A4;
  --line: #D5DCE4;          /* blueprint rule line */
  --line-strong: #B9C4CF;
  --ink: #1A2530;           /* body text near-black blue */

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --sheet-max: 1300px;
  --radius: 8px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(20,41,63,0.06), 0 4px 12px rgba(20,41,63,0.05);
  --shadow-md: 0 10px 30px -12px rgba(20,41,63,0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

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

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------
   Typography — Swiss grotesque, sentence case, generous tracking control
   -------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--blue);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; }

p { max-width: 64ch; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--steel); line-height: 1.6; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--blue-bright); border-radius: 2px; }

.on-blue { background: var(--blue); color: var(--paper); }
.on-blue h1, .on-blue h2, .on-blue h3, .on-blue h4 { color: var(--white); }
.on-blue .lede { color: #B7C6D6; }
.on-blue .eyebrow { color: #7FB0E0; }
.on-blue .eyebrow::before { background: #7FB0E0; }

/* --------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------- */
/* backdrop-filter lives on a pseudo-element, not .site-header itself. A
   filter/backdrop-filter on an ancestor turns it into the containing block
   for any position:fixed descendant (per spec, same as transform) — and the
   mobile nav flyout below is fixed. With the blur on .site-header directly,
   the flyout was "fixed" relative to the 108px-tall header instead of the
   viewport, squashing it into a sliver instead of a full-screen panel. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 247, 249, 0.85);
  backdrop-filter: blur(12px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 108px; }

.logo { display: flex; align-items: center; }
.logo .mark {
  height: 76px; width: auto; display: inline-flex; align-items: center; justify-content: center;
}
.logo .mark img { height: 100%; width: auto; object-fit: contain; display: block; }

.main-nav ul { display: flex; gap: 36px; }
.main-nav a {
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; color: var(--steel);
  position: relative; padding: 4px 0; transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); }
.main-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--blue-bright); border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--blue); display: none; align-items: center; gap: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.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); }

/* --------------------------------------------------------------------
   Buttons — slightly rounded, solid / ghost
   -------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.94rem; font-weight: 600;
  padding: 13px 24px; border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--blue-bright); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-bright-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--blue); background: var(--white); transform: translateY(-2px); }
.on-blue .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.35); }
.on-blue .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------- */
section { padding-block: clamp(60px, 9vw, 128px); }
.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 { margin-top: 18px; }
.section-head .lede { margin-top: 18px; }
.band-alt { background: var(--paper-alt); }

/* --------------------------------------------------------------------
   Hero — blueprint grid backdrop, generous whitespace
   -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 30%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 30%, #000 25%, transparent 75%);
  opacity: 0.7;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy .lede { margin-top: 26px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust li { font-size: 0.88rem; font-weight: 500; color: var(--steel); display: flex; align-items: center; gap: 9px; }
.hero-trust li svg { width: 16px; height: 16px; color: var(--blue-bright); flex-shrink: 0; }

/* Hero blueprint plate — plotted site drawing */
.hero-plate {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 26px; overflow: hidden;
}
.hero-plate svg { width: 100%; height: auto; display: block; }
.hero-plate-foot {
  display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--steel-light);
}

/* --------------------------------------------------------------------
   Stat row
   -------------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 32px 28px; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; color: var(--blue); line-height: 1; letter-spacing: -0.02em; }
.stat .label { font-size: 0.86rem; color: var(--steel); margin-top: 10px; }

/* --------------------------------------------------------------------
   Services — clean cards with numbered index
   -------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3vw, 38px); display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--paper-alt); display: flex; align-items: center; justify-content: center; color: var(--blue-bright); }
.svc-icon svg { width: 24px; height: 24px; }
.svc-card .idx { font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; color: var(--steel-light); letter-spacing: 0.05em; }
.svc-card h3 { color: var(--blue); }
.svc-card p { font-size: 0.95rem; color: var(--steel); }
.svc-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.svc-card .tags li { font-size: 0.76rem; font-weight: 500; color: var(--steel); background: var(--paper-alt); padding: 5px 11px; border-radius: 999px; }
.svc-card .more { font-size: 0.88rem; font-weight: 600; color: var(--blue-bright); display: inline-flex; align-items: center; gap: 7px; transition: gap 0.2s ease; }
.svc-card .more:hover { gap: 12px; }

/* --------------------------------------------------------------------
   Domestic / commercial two-up
   -------------------------------------------------------------------- */
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
/* Contact page's form (wider) + details aside (narrower). This used to be an
   inline style on the .twoup div, which beat the mobile media query below on
   specificity, so the two-column layout never actually collapsed to one
   column on phones. Everything (the contact form and the phone/email/hours
   aside) stayed squeezed into half-width columns. */
.twoup-contact { grid-template-columns: 1.4fr 1fr; align-items: start; }
.twoup-panel { border-radius: var(--radius); padding: clamp(32px, 4vw, 52px); }
.twoup-panel.blue { background: var(--blue); color: var(--paper); }
.twoup-panel.white { background: var(--white); border: 1px solid var(--line); }
.twoup-panel h3 { margin-top: 12px; margin-bottom: 18px; }
.twoup-panel.blue h3 { color: var(--white); }
.twoup-panel ul { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.twoup-panel ul.tags { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.twoup-panel ul.tags li { flex: 0 0 auto; width: auto; align-self: flex-start; }
.twoup-panel ul:not(.tags) li { font-size: 0.96rem; line-height: 1.5; padding-left: 26px; position: relative; margin-bottom: 2px; }
.twoup-panel ul:not(.tags) li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px;
  transform: translateY(-1px);
  border: 2px solid var(--blue-bright); border-radius: 3px;
}
.twoup-panel.blue ul:not(.tags) li::before { border-color: #7FB0E0; }
/* Material tag pills — no list marker, compact rounded chips */
.twoup-panel ul.tags li { position: static; }
.twoup-panel ul.tags li::before { display: none; content: none; }
.twoup-panel.blue .lede { color: #B7C6D6; }

/* --------------------------------------------------------------------
   Process — vertical numbered timeline
   -------------------------------------------------------------------- */
.timeline { display: grid; gap: 0; max-width: 820px; }
.tl-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 30px 0;
  border-top: 1px solid var(--line); align-items: start;
}
.tl-step:last-child { border-bottom: 1px solid var(--line); }
.tl-num {
  width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--paper-alt);
  color: var(--blue); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.on-blue .tl-step { border-color: rgba(255,255,255,0.14); }
.on-blue .tl-num { background: var(--blue-deep); color: #7FB0E0; }
.tl-step h3 { margin-bottom: 6px; }
.tl-step p { color: var(--steel); font-size: 0.96rem; }
.on-blue .tl-step p { color: #B7C6D6; }

/* --------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-thumb { aspect-ratio: 4/3; background: var(--blue); position: relative; overflow: hidden; }
.project-thumb svg { width: 100%; height: 100%; }
.project-meta { padding: 20px 22px 24px; }
.project-meta .idx { font-family: var(--font-display); font-size: 0.76rem; font-weight: 500; color: var(--blue-bright); display: block; margin-bottom: 8px; letter-spacing: 0.04em; }
.project-meta h3 { font-size: 1.1rem; }
.project-meta .loc { font-size: 0.85rem; color: var(--steel); margin-top: 4px; display: block; }

/* --------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------- */
.testimonial { max-width: 900px; }
.testimonial blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.28; letter-spacing: -0.02em; color: var(--blue);
}
.on-blue .testimonial blockquote { color: var(--white); }
.testimonial cite { display: block; margin-top: 26px; font-style: normal; font-size: 0.92rem; font-weight: 500; color: var(--steel); }
.on-blue .testimonial cite { color: #B7C6D6; }

/* --------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------- */
.cta-block {
  background: var(--blue); color: var(--paper); border-radius: var(--radius);
  padding: clamp(48px, 7vw, 92px); text-align: center; position: relative; overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 70%);
}
.cta-block > * { position: relative; }
.cta-block h2 { color: var(--white); }
.cta-block .lede { color: #B7C6D6; margin-inline: auto; margin-top: 16px; }
.cta-block .hero-actions { justify-content: center; margin-top: 34px; }
.cta-block .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cta-block .btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* --------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.5vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.84rem; font-weight: 600; color: var(--blue); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 0.98rem; padding: 13px 15px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-bright); background: var(--white); }
.form-field textarea { resize: vertical; min-height: 128px; }
.form-note { font-size: 0.82rem; color: var(--steel-light); margin-top: 4px; }
.form-status { font-size: 0.9rem; font-weight: 500; margin-top: 16px; display: none; }
.form-status.visible { display: block; }
.form-status.ok { color: #2F7D4F; }
.form-status.err { color: #C0392B; }

.contact-aside { display: flex; flex-direction: column; gap: 26px; }
.contact-item { padding-left: 20px; border-left: 2px solid var(--blue-bright); }
.contact-item .k { font-size: 0.8rem; font-weight: 600; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 6px; }
.contact-item .v { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--blue); }
.contact-item .v.sm { font-size: 1rem; word-break: break-word; }

/* --------------------------------------------------------------------
   Page header (inner)
   -------------------------------------------------------------------- */
.page-header { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 52px); }
.page-header .eyebrow { margin-bottom: 18px; }
.breadcrumb { font-size: 0.86rem; color: var(--steel-light); margin-bottom: 22px; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--blue-bright); }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer { background: var(--blue-deep); color: var(--paper); padding-block: 68px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .logo { color: var(--white); margin-bottom: 4px; }
.footer-brand .logo .mark {
  height: 64px; background: #fff; border-radius: 10px; padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.footer-brand p { color: #92A4B6; font-size: 0.92rem; margin-top: 16px; max-width: 32ch; }
.footer-social {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  color: #B7C6D6; font-size: 0.88rem; font-weight: 500; transition: color 0.2s var(--ease);
}
.footer-social svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-social:hover { color: var(--white); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7FB0E0; margin-bottom: 16px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col p { font-size: 0.9rem; color: #B7C6D6; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.84rem; color: #6E8296; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #6E8296; }
.footer-bottom a:hover { color: var(--white); }

/* --------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------- */
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: var(--white); padding: 12px 20px; z-index: 200; font-size: 0.9rem; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; top: 0; }

.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */
@media (min-width: 860px) { .header-phone { display: inline-flex; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-plate { order: -1; max-width: 560px; }
  .services-grid { grid-template-columns: 1fr; }
  .twoup, .twoup-contact { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 108px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 32px var(--gutter); gap: 30px;
    transform: translateX(100%); transition: transform 0.32s var(--ease); overflow-y: auto;
    border-left: 1px solid var(--line);
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav a { font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .project-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .tl-step { grid-template-columns: 48px 1fr; gap: 18px; }
}

/* ==========================================================================
   v3.1 — Image-led engagement components (reference-inspired)
   ========================================================================== */

/* Image hero — photo with blue overlay, copy on top */
.hero-photo {
  position: relative;
  min-height: clamp(560px, 82vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
}
.hero-photo::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,41,63,0.55) 0%, rgba(20,41,63,0.72) 100%),
    var(--hero-img, none) center/cover no-repeat;
  z-index: 0;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-photo::before { animation: none; transform: none; } }
.hero-photo .hero-grid-bg {
  opacity: 0.14;
  mask-image: none; -webkit-mask-image: none;
  z-index: 1;
}
.hero-photo .container { position: relative; z-index: 2; width: 100%; }
.hero-photo .eyebrow { color: #9DC3E8; }
.hero-photo .eyebrow::before { background: #9DC3E8; }
.hero-photo h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero-photo .lede { color: #E4ECF3; max-width: 48ch; margin-top: 24px; }
.hero-photo .hero-actions { margin-top: 36px; }
.hero-photo .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-photo .btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.hero-photo .hero-trust li { color: #DCE6EF; }
.hero-photo .hero-trust li svg { color: #9DC3E8; }

/* Floating phone chip in hero */
.hero-phonechip {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  padding: 12px 20px; border-radius: 999px; margin-top: 28px;
}
.hero-phonechip .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-bright); display: flex; align-items: center; justify-content: center; }
.hero-phonechip .ic svg { width: 18px; height: 18px; color: #fff; }
.hero-phonechip .t { font-size: 0.76rem; color: #C6D5E3; }
.hero-phonechip .n { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; }

/* Trust strip */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 26px; flex-wrap: wrap; }
.trust-strip .trust-label { font-size: 0.82rem; font-weight: 600; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.trust-badges { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.trust-badge svg { width: 22px; height: 22px; color: var(--blue-bright); flex-shrink: 0; }

/* Stat counters (animated) */
.counter .num { font-variant-numeric: tabular-nums; }

/* Before / after slider (real photos) */
.ba-wrap { max-width: 1000px; margin-inline: auto; }
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; cursor: ew-resize;
  box-shadow: var(--shadow-md); user-select: none; touch-action: pan-y;
  background: var(--blue);
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%); width: 3px; background: #fff; transform: translateX(-1.5px); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,0.3); }
.ba-handle {
  position: absolute; top: 50%; left: var(--ba-pos, 50%);
  width: 52px; height: 52px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.ba-handle svg { width: 22px; height: 22px; color: var(--blue); }
.ba-label { position: absolute; bottom: 18px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(20,41,63,0.72); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.ba-label.l { left: 18px; } .ba-label.r { right: 18px; }

/* Image services showcase (overlay cards) */
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.showcase-card {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.showcase-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.showcase-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,41,63,0) 30%, rgba(20,41,63,0.86) 100%); }
.showcase-card:hover img { transform: scale(1.07); }
.showcase-card .sc-body { padding: 24px; width: 100%; }
.showcase-card h3 { color: #fff; font-size: 1.2rem; }
.showcase-card p {
  color: #D6E1EC; font-size: 0.86rem; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.showcase-card .sc-arrow { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; transition: background 0.25s ease, transform 0.25s ease; }
.showcase-card:hover .sc-arrow { background: var(--blue-bright); transform: rotate(-45deg); }
.showcase-card .sc-arrow svg { width: 18px; height: 18px; color: #fff; }

/* Split image feature block */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.feature-split.rev .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy .eyebrow { margin-bottom: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.feature-list li svg { width: 22px; height: 22px; color: var(--blue-bright); flex-shrink: 0; margin-top: 1px; }

/* Photo CTA */
.cta-photo { position: relative; border-radius: var(--radius); overflow: hidden; padding: clamp(56px,8vw,110px) clamp(24px,5vw,80px); text-align: center; color: #fff; }
.cta-photo::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,41,63,0.82), rgba(20,41,63,0.9)), var(--cta-img,none) center/cover no-repeat; }
.cta-photo > * { position: relative; z-index: 1; }
.cta-photo h2 { color: #fff; }
.cta-photo .lede { color: #DCE6EF; margin-inline: auto; margin-top: 16px; }
.cta-photo .hero-actions { justify-content: center; margin-top: 34px; }
.cta-photo .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-photo .btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

@media (max-width: 980px) {
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.rev .feature-media { order: 0; }
  .trust-strip .container { justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .showcase-card { aspect-ratio: 3/4.6; }
  .showcase-card .sc-body { padding: 16px; }
  .showcase-card h3 { font-size: 1rem; }
  .showcase-card p { font-size: 0.78rem; }
  .showcase-card .sc-arrow { width: 30px; height: 30px; top: 12px; right: 12px; }
  .ba-slider { aspect-ratio: 3/4; }
  .trust-badges { gap: 20px; }
}

/* --------------------------------------------------------------------
   Meet the CEO feature
   -------------------------------------------------------------------- */
.ceo-feature {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.ceo-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; background: var(--blue); box-shadow: var(--shadow-md);
}
.ceo-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.ceo-photo-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem);
  color: rgba(255,255,255,0.9); letter-spacing: 0.04em;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
}
/* If the image fails to load, hide the broken img and show the initials */
.ceo-photo--placeholder img { display: none; }
.ceo-copy .ceo-role {
  font-family: var(--font-display); font-weight: 600; color: var(--blue-bright);
  font-size: 1.05rem; margin-top: 8px;
}
.ceo-copy h2 { margin-top: 14px; }
.ceo-quote {
  margin-top: 28px; padding-left: 22px; border-left: 3px solid var(--blue-bright);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35; color: var(--blue); font-style: normal;
}
@media (max-width: 860px) {
  .ceo-feature { grid-template-columns: 1fr; }
  .ceo-photo { max-width: 380px; aspect-ratio: 1/1; }
}

/* --------------------------------------------------------------------
   Gallery (before/after grid)
   -------------------------------------------------------------------- */
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px);
}
.gallery-item { margin: 0; }
.gallery-item .ba-slider {
  aspect-ratio: 3/2; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.gallery-cap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.gallery-cap .g-title { font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: 1.1rem; }
.gallery-cap .g-loc { font-size: 0.88rem; color: var(--steel); }
.gallery-note { text-align: center; margin-top: clamp(32px, 5vw, 56px); color: var(--steel); }
.gallery-note a { color: var(--blue-bright); font-weight: 600; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Material tag chips (services page) */
.material-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.twoup-panel ul.tags li,
.material-tags li {
  font-size: 0.82rem; font-weight: 500; color: var(--blue);
  background: #fff; border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 8px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.material-tags li:hover,
.twoup-panel ul.tags li:hover { border-color: var(--blue-bright); color: var(--blue-bright); }

/* --------------------------------------------------------------------
   Gallery photo grid (finished work)
   -------------------------------------------------------------------- */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px); grid-auto-flow: dense;
}
.photo-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper-alt); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; transition: transform 0.6s var(--ease); }
.photo-item.wide { grid-column: span 2; }
.photo-item.wide img { aspect-ratio: 16/10; }
.photo-item:hover img { transform: scale(1.04); }
.photo-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(20,41,63,0.86), rgba(20,41,63,0));
  color: #fff;
}
.photo-item .g-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.photo-item .g-loc { font-size: 0.82rem; color: #C9D6E3; }
@media (max-width: 860px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item.wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item.wide { grid-column: span 1; }
  .photo-item.wide img { aspect-ratio: 3/4; }
}

/* Homepage featured-work strip */
.featured-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.featured-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.featured-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 0.6s var(--ease); }
.featured-item:hover img { transform: scale(1.04); }
.featured-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 15px;
  background: linear-gradient(to top, rgba(20,41,63,0.85), rgba(20,41,63,0));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
}
@media (max-width: 720px) { .featured-strip { grid-template-columns: 1fr; } .featured-item img { aspect-ratio: 16/10; } }
