/* IGM Building Solutions — site styles
   Layout concept: navy "drawing-board" bands framing calm off-white reading sections;
   genuine project photos carry title-block captions like an architect's drawing sheet. */
:root {
  --navy: #10243A;
  --navy-2: #193650;
  --navy-3: #22445F;
  --white: #FFFFFF;
  --off: #F5F6F4;
  --grey: #E7EBEF;
  --steel: #6486A5;
  --steel-ink: #46698A;   /* steel darkened for small text on light grounds (AA) */
  --steel-light: #A9C0D6; /* steel lightened for small text on navy (AA) */
  --ink: #17212B;
  --muted: #4B5966;
  --line: rgba(16, 36, 58, .14);
  --line-dark: rgba(255, 255, 255, .14);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 4rem);

  --wrap: 1240px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --radius: 3px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; font-weight: 650; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(64px, 8vw, 120px); }
.band--off { background: var(--off); }
.band--grey { background: var(--grey); }
.band--navy { background: var(--navy); color: var(--white); }
.band--navy-2 { background: var(--navy-2); color: var(--white); }
.band--tight { padding-block: clamp(48px, 6vw, 80px); }

/* Eyebrow: a dimension line with end ticks, like a drawing annotation */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--steel-ink); font-weight: 500; }
.eyebrow::before { content: ""; width: 34px; height: 9px; flex: none;
  background: linear-gradient(currentColor, currentColor) left center / 100% 1px no-repeat,
              linear-gradient(currentColor, currentColor) left center / 1px 100% no-repeat,
              linear-gradient(currentColor, currentColor) right center / 1px 100% no-repeat; }
.band--navy .eyebrow, .band--navy-2 .eyebrow, .hero .eyebrow { color: var(--steel-light); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.band--navy .section-head p, .band--navy-2 .section-head p { color: rgba(255,255,255,.78); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-3); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--grey); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; color: var(--navy); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1.5px solid var(--steel); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--navy); }
.band--navy .link-arrow, .band--navy-2 .link-arrow { color: var(--white); border-color: var(--steel-light); }

/* Utility bar + header */
.utility { background: var(--navy-2); color: rgba(255,255,255,.85); font-size: .875rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility strong { color: var(--white); font-weight: 600; }
.utility a { text-decoration: none; }
.utility .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7FD1A3; margin-right: 8px; box-shadow: 0 0 0 3px rgba(127,209,163,.2); vertical-align: 1px; }
@media (max-width: 640px) { .utility .u-right { display: none; } }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex: none; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; }
.brand-text span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-light); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; font-weight: 500; font-size: .98rem; color: rgba(255,255,255,.86); border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--steel); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.nav-toggle { display: none; background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: var(--white); border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line-dark); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); border-radius: 0; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--steel-light); background: none; }
  .header-cta .btn--light { display: none; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::after { /* faint drawing grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, #000 0%, transparent 65%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 65%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.hero h1 { font-size: var(--step-4); font-weight: 650; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--steel-light); }
.hero-lede { font-size: var(--step-1); color: rgba(255,255,255,.8); max-width: 52ch; margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }
.hero-phone { margin-top: 26px; font-family: var(--f-mono); font-size: .9rem; color: rgba(255,255,255,.7); letter-spacing: .02em; }
.hero-phone strong { color: var(--white); font-weight: 500; font-size: 1.05rem; user-select: all; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 55%; border-radius: var(--radius); }
.hero-figure::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(169,192,214,.35); border-radius: var(--radius); pointer-events: none; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-figure::before { display: none; }
}

/* Title-block caption: like the corner panel of a drawing sheet */
.titleblock { display: grid; grid-template-columns: auto 1fr; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; background: var(--white); color: var(--ink); border: 1px solid var(--navy); }
.titleblock > span { padding: 7px 10px; border-right: 1px solid var(--navy); border-bottom: 1px solid var(--line); }
.titleblock > span:nth-child(2n) { border-right: 0; font-weight: 500; }
.titleblock > span:nth-last-child(-n+2) { border-bottom: 0; }
.titleblock > span:nth-child(2n+1) { color: var(--steel-ink); }
.hero-figure .titleblock { position: absolute; right: -1px; bottom: -1px; min-width: 260px; max-width: calc(100% - 24px); }
@media (max-width: 480px) { .hero-figure .titleblock { position: static; min-width: 0; max-width: none; } }

/* Trust strip */
.facts { background: var(--navy-2); color: var(--white); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 26px 24px; border-left: 1px solid var(--line-dark); display: grid; gap: 4px; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { font-family: var(--f-display); font-stretch: 112%; font-size: 1.35rem; font-weight: 650; }
.facts span { color: rgba(255,255,255,.72); font-size: .95rem; }
@media (max-width: 860px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:nth-child(2n) { border-left: 1px solid var(--line-dark); }
  .facts li:first-child { padding-left: 16px; }
}
@media (max-width: 400px) { .facts b { font-size: 1.15rem; } }

/* Concerns */
.concerns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.concern { padding: 34px 40px 38px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.concern:nth-child(2n) { padding: 34px 0 38px 40px; border-left: 1px solid var(--line); }
.concern h3 { font-size: var(--step-2); }
.concern .q { font-family: var(--f-mono); font-size: var(--step--1); color: var(--steel-ink); letter-spacing: .04em; }
.concern p { color: var(--muted); max-width: 54ch; }
@media (max-width: 760px) { .concerns { grid-template-columns: 1fr; } .concern, .concern:nth-child(2n) { padding: 28px 0; border-left: 0; } }

/* Before / after */
.ba-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 960px) { .ba-layout { grid-template-columns: 1fr; } }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--navy-2); --pos: 50%; user-select: none; touch-action: pan-y; max-width: 100%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white);
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310243A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 24px; background-position: center; background-repeat: no-repeat; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type="range"]:focus-visible + .ba-handle::after { outline: 3px solid var(--steel-light); outline-offset: 3px; }
.ba-tag { position: absolute; top: 16px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; background: rgba(16,36,58,.85); color: var(--white); pointer-events: none; }
.ba-tag--l { left: 16px; } .ba-tag--r { right: 16px; }
.ba-copy { display: grid; gap: 18px; }
.ba-copy h2 { font-size: var(--step-3); }
.ba-copy p { color: rgba(255,255,255,.8); }
.spec { list-style: none; display: grid; border-top: 1px solid var(--line-dark); margin-top: 6px; }
.spec li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: .98rem; }
.spec li span:first-child { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-light); padding-top: 3px; }

/* Services grid */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--white); display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); transition: background .2s; min-width: 0; }
.service:hover { background: var(--off); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover .service-media img { transform: scale(1.04); }
.service-body { padding: 22px 22px 26px; display: grid; gap: 10px; align-content: start; }
.service-body h3 { font-size: 1.3rem; }
.service-body p { color: var(--muted); font-size: .98rem; }
.service-body .more { font-weight: 600; color: var(--navy); font-size: .95rem; margin-top: 4px; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Drawn panels used where no genuine photo exists (commercial, emergency) */
.drawn { width: 100%; height: 100%; display: block; background: var(--navy); }
.drawn .ln { stroke: #A9C0D6; stroke-width: 1.5; fill: none; }
.drawn .ln2 { stroke: rgba(169,192,214,.45); stroke-width: 1; fill: none; }
.drawn .fill { fill: rgba(169,192,214,.12); }
.drawn text { fill: #A9C0D6; font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; }

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; position: relative; }
.process li { counter-increment: step; padding: 0 22px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: .85rem; color: var(--steel-ink); display: block; padding-bottom: 14px; border-bottom: 1px solid var(--navy); margin-bottom: 8px; }
.process li::after { content: ""; position: absolute; top: calc(1.4em + 10px); left: 0; width: 1px; height: 9px; background: var(--navy); }
.process h3 { font-size: 1.2rem; }
.process p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 0; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* Hidden-work feature */
.hidden-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hidden-work .stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hidden-work figure { margin: 0; display: grid; gap: 8px; }
.hidden-work figure img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: var(--radius); }
.hidden-work figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-ink); }
.hidden-work .stack figure:nth-child(2) { transform: translateY(28px); }
@media (max-width: 860px) { .hidden-work { grid-template-columns: 1fr; } .hidden-work .stack figure:nth-child(2) { transform: none; } }
@media (max-width: 460px) { .hidden-work .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hidden-work .stack figure:nth-child(3) { display: none; } }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(-45deg) translateY(-3px); }

/* Gallery (home strip + projects page) */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grey); }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; height: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: var(--white); font-size: .9rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(16,36,58,.88)); pointer-events: none; }
.gallery figcaption small { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-light); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 3 / 2; height: 100%; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .gallery .wide { grid-column: span 2; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-size: .95rem; font-weight: 500; padding: 10px 16px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 100px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filters button:hover { border-color: var(--navy); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 22, 36, .94); display: grid; grid-template-rows: 1fr auto; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: calc(100vh - 120px); max-width: 100%; margin: auto; object-fit: contain; }
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--white); padding-top: 12px; }
.lightbox .lb-bar p { font-size: .95rem; min-width: 0; }
.lightbox .lb-btns { display: flex; gap: 8px; }
.lightbox button { font: inherit; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); min-width: 46px; height: 46px; cursor: pointer; padding: 0 14px; }
.lightbox button:hover { background: rgba(255,255,255,.18); }

/* Emergency band */
.emergency { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.emergency h2 { font-size: var(--step-3); }
.emergency p { color: rgba(255,255,255,.8); max-width: 56ch; }
.emergency .num { font-family: var(--f-display); font-stretch: 112%; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 650; letter-spacing: -.01em; user-select: all; display: block; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.em-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.em-list li { background: var(--navy); padding: 18px 18px; font-weight: 500; display: grid; gap: 4px; }
.em-list li span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-light); font-weight: 400; }
@media (max-width: 860px) { .emergency { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .em-list { grid-template-columns: 1fr; } }

/* About split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3.4; }
.split .copy { display: grid; gap: 18px; }
.split .copy h2 { font-size: var(--step-3); }
.split .copy p { color: var(--muted); }
.band--navy .split .copy p { color: rgba(255,255,255,.8); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy); }
.values > div { padding: 26px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.values > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.values h3 { font-size: 1.3rem; }
.values p { color: var(--muted); }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } .values > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-family: var(--f-display); font-stretch: 108%; font-weight: 600; font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--navy), var(--navy)) center / 100% 2px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 2px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--muted); max-width: 70ch; display: grid; gap: 12px; }

/* CTA band */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 14px; max-width: 56ch; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(48px, 6vw, 88px); display: grid; gap: 18px; position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero p { font-size: var(--step-1); color: rgba(255,255,255,.8); max-width: 60ch; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.crumbs { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-light); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* Services page detail blocks */
.svc-index { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-index a { text-decoration: none; padding: 9px 14px; border: 1px solid var(--line-dark); border-radius: 100px; font-size: .93rem; color: var(--white); }
.svc-index a:hover { background: rgba(255,255,255,.08); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc .copy { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 32px); }
.svc .copy h2 { font-size: var(--step-3); }
.svc .copy > p { color: var(--muted); }
.svc .pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc .pics img, .svc .pics .drawn-wrap { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.svc .pics .span2 { grid-column: span 2; aspect-ratio: 16 / 10; }
.svc .pics .drawn-wrap { overflow: hidden; }
.svc .pics .note { grid-column: span 2; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; color: var(--muted); }
.svc:nth-child(even) .copy { order: 2; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .svc .copy { position: static; } .svc:nth-child(even) .copy { order: 0; } }
.incl { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.incl li { padding-left: 18px; position: relative; font-size: .98rem; }
.incl li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--steel); }
@media (max-width: 480px) { .incl { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.channel { background: var(--white); padding: 22px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.channel .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.channel .ic svg { width: 20px; height: 20px; }
.channel h3 { font-size: 1.1rem; }
.channel p { color: var(--muted); font-size: .97rem; margin-top: 4px; }
.channel .val { font-family: var(--f-mono); font-size: 1.05rem; color: var(--ink); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.channel .val b { font-weight: 500; user-select: all; }
.copy-btn { font: inherit; font-family: var(--f-body); font-size: .82rem; font-weight: 600; border: 1px solid var(--line); background: var(--off); border-radius: var(--radius); padding: 5px 10px; cursor: pointer; color: var(--navy); }
.copy-btn:hover { border-color: var(--navy); }
.channel .actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.channel .actions .btn { min-height: 44px; padding: 0 16px; font-size: .95rem; }

.form { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; border-top: 3px solid var(--navy); }
.form h2 { font-size: var(--step-2); }
.form .intro { color: var(--muted); font-size: .98rem; margin-top: -6px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--off); border: 1.5px solid #C9D2DB; border-radius: var(--radius); padding: 12px 14px; width: 100%; min-height: 50px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(100,134,165,.25); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field .err { color: #B3261E; font-size: .88rem; font-weight: 500; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { font-weight: 500; font-size: .93rem; position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 14px; border: 1.5px solid #C9D2DB; border-radius: 100px; cursor: pointer; background: var(--white); }
.chips input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chips input:focus-visible + span { outline: 3px solid var(--steel); outline-offset: 2px; }
.form .small { font-size: .85rem; color: var(--muted); }
.form-done { background: var(--off); border: 1px solid var(--line); border-left: 3px solid var(--navy); padding: 20px; display: grid; gap: 12px; }
.form-done h3 { font-size: 1.2rem; }
.form-done pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: .82rem; background: var(--white); border: 1px solid var(--line); padding: 12px; margin: 0; max-height: 220px; overflow: auto; }

/* Prose (privacy) */
.prose { max-width: 72ch; display: grid; gap: 16px; }
.prose h2 { font-size: var(--step-2); margin-top: 20px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); font-size: .97rem; }
.site-footer .wrap { padding-block: 64px 28px; }
.f-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.f-grid h3 { font-family: var(--f-mono); font-weight: 500; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 14px; }
.f-grid ul { list-style: none; display: grid; gap: 8px; }
.f-grid a { text-decoration: none; } .f-grid a:hover { color: var(--white); text-decoration: underline; }
.f-brand p { margin-top: 16px; max-width: 36ch; }
.f-brand .num { font-family: var(--f-mono); color: var(--white); font-size: 1.1rem; margin-top: 16px; display: block; user-select: all; }
.f-base { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: rgba(255,255,255,.6); }
@media (max-width: 860px) { .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-brand { grid-column: span 2; } }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--navy); border-top: 1px solid var(--line-dark);
    padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); gap: 8px; }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; color: var(--white); text-decoration: none; font-size: .78rem; font-weight: 600; border-radius: var(--radius); background: rgba(255,255,255,.06); }
  .action-bar a:first-child { background: var(--white); color: var(--navy); }
  .action-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* Small helpers */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.center-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.note-strip { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.hero .link-arrow { color: var(--white); border-color: var(--steel-light); }
[hidden] { display: none !important; }
.hero-phone .link-arrow { font-family: var(--f-body); font-size: 1rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.form-done pre { max-width: 100%; }
/* Areas covered */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.areas > div { padding: 24px 24px 4px 0; min-width: 0; }
.areas > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.areas h3 { font-family: var(--f-mono); font-weight: 500; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-ink); margin-bottom: 12px; }
.areas ul { list-style: none; display: grid; gap: 6px; }
@media (max-width: 860px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .areas > div:nth-child(3) { padding-left: 0; border-left: 0; } .areas > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- WhatsApp + quote assistant ---------- */
:root { --wa: #1E8E4F; --wa-hover: #187A43; } /* WhatsApp-style green, darkened for AA contrast with white text */
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-hover); }
@media (max-width: 1080px) { .header-cta .btn--wa { display: none; } }
.action-bar .ab-wa { background: var(--wa); }

.compare { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.compare-copy { display: grid; gap: 16px; }
.compare-copy h2 { font-size: var(--step-3); }
.compare-copy p { color: var(--muted); max-width: 56ch; }
.compare-list { background: var(--off); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 24px; }
.compare-list h3 { font-family: var(--f-mono); font-weight: 500; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-ink); margin-bottom: 8px; }
.compare-list ol { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: c; }
.compare-list li { counter-increment: c; display: grid; grid-template-columns: 2em 1fr; gap: 2px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.compare-list li:last-child { border-bottom: 0; }
.compare-list li::before { content: counter(c); grid-row: span 2; font-family: var(--f-mono); color: var(--steel-ink); }
.compare-list b { font-weight: 600; }
.compare-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

.float-cta { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 56; display: flex; gap: 10px; align-items: center; }
.chat-launch, .wa-float { font: inherit; font-weight: 600; font-size: .98rem; display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px; border-radius: 100px; border: 0; cursor: pointer; text-decoration: none; box-shadow: 0 8px 24px rgba(16,36,58,.28); }
.chat-launch { background: var(--navy); color: var(--white); }
.chat-launch:hover { background: var(--navy-3); }
.wa-float { background: var(--wa); color: var(--white); }
.wa-float:hover { background: var(--wa-hover); }
.chat-launch svg, .wa-float svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .float-cta { display: none; } }
body.chat-open .float-cta { display: none; }

.chat { position: fixed; z-index: 80; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 40px)); height: min(620px, calc(100vh - 120px));
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 50px rgba(16,36,58,.35); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { background: var(--navy); color: var(--white); padding: 14px 14px 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat-head h2 { font-size: 1.15rem; }
.chat-head p { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel-light); margin-top: 3px; }
.chat-x { font: inherit; font-size: 1.6rem; line-height: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); cursor: pointer; flex: none; }
.chat-x:hover { background: rgba(255,255,255,.1); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--off); }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: .97rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg--me { background: var(--navy); color: var(--white); align-self: flex-end; border-bottom-right-radius: 3px; }
.msg--sum { font-family: var(--f-mono); font-size: .8rem; background: var(--white); border: 1px dashed var(--steel); max-width: 100%; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.opts button, .opts a { font: inherit; font-size: .92rem; font-weight: 500; padding: 9px 13px; border-radius: 100px; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.opts button:hover { background: var(--navy); color: var(--white); }
.opts .go { background: var(--wa); border-color: var(--wa); color: var(--white); font-weight: 600; }
.opts .go:hover { background: var(--wa-hover); }
.opts svg { width: 18px; height: 18px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #C9D2DB; border-radius: var(--radius); background: var(--off); }
.chat-form input:focus { outline: none; border-color: var(--navy); background: var(--white); }
.chat-form .btn { min-height: 46px; padding: 0 16px; }
.typing { align-self: flex-start; color: var(--muted); font-size: .9rem; font-style: italic; }
@media (max-width: 760px) {
  .chat { left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: min(86vh, 640px); border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  body.chat-open .action-bar { display: none; }
}

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars svg { width: 18px; height: 18px; fill: #E0A526; }
.review-date { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.review-body { display: grid; gap: 8px; }
.review-title { font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: 1.2rem; color: var(--ink); }
.review-body p:not(.review-title) { color: var(--muted); }
.review figcaption { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.review figcaption b { font-weight: 600; }
.review figcaption span { font-size: .9rem; color: var(--steel-ink); }
@media (max-width: 900px) { .reviews { grid-template-columns: minmax(0, 1fr); } }
.hero-rating { margin-top: 14px; }
.hero-rating a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .98rem; border-bottom: 1px solid rgba(169,192,214,.5); padding-bottom: 2px; }
.hero-rating a:hover { color: var(--white); border-color: var(--white); }
.f-email { display: inline-block; margin-top: 8px; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(169,192,214,.5); overflow-wrap: anywhere; }
.f-email:hover { border-color: var(--white); }
.channel .val b { overflow-wrap: anywhere; }

/* ---------- Phone compaction: shorter pages, less scrolling ---------- */
@media (max-width: 760px) {
  .band { padding-block: 44px; }
  .band--tight { padding-block: 36px; }
  .section-head { margin-bottom: 24px; gap: 12px; }
  .section-head p { font-size: 1.02rem; }
  .hero .wrap { padding-block: 28px 32px; gap: 22px; }
  .hero h1 { margin-top: 14px; }
  .hero-lede { font-size: 1.05rem; margin-top: 14px; }
  .hero .btn-row { margin-top: 22px; }
  .hero-figure img { aspect-ratio: 16 / 11; object-position: 50% 22%; }
  .hero-figure .titleblock { display: none; }
  .page-hero .wrap { padding-block: 32px; gap: 12px; }

  /* reviews: swipe sideways instead of stacking */
  .reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding: 0 max(20px, env(safe-area-inset-left, 0px)) 6px; scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 82%; scroll-snap-align: start; padding: 18px; }

  /* concerns: tighter */
  .concern, .concern:nth-child(2n) { padding: 18px 0; gap: 6px; }
  .concern .q { display: none; }
  .concern h3 { font-size: 1.15rem; }
  .concern p { font-size: .97rem; }

  /* before/after + compare: drop secondary detail */
  .spec { display: none; }
  .compare-list { display: none; }

  /* services: compact rows with a thumbnail */
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto; align-items: center; }
  .service-media { aspect-ratio: 1 / 1; height: 100%; }
  .service-body { padding: 12px 14px; gap: 4px; }
  .service-body h3 { font-size: 1.05rem; }
  .service-body p { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .service-body .more { display: none; }

  /* process: tighter list */
  .process { gap: 18px; }
  .process li::before { padding-bottom: 8px; margin-bottom: 4px; }
  .process p { font-size: .95rem; }

  /* emergency band */
  .em-list { display: none; }
  .emergency .num { margin: 4px 0 0; }

  /* areas: towns as compact wrapped text */
  .areas { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .areas > div, .areas > div + div, .areas > div:nth-child(3) { padding: 10px 0; border: 0; border-top: 1px solid var(--line); }
  .areas h3 { margin-bottom: 4px; }
  .areas ul { display: block; font-size: .95rem; color: var(--muted); }
  .areas li { display: inline; }
  .areas li + li::before { content: " · "; }

  .faq summary { padding: 16px 40px 16px 0; font-size: 1.05rem; }

  /* services page: photos swipe sideways */
  .svc { padding-block: 36px; gap: 18px; }
  .svc .pics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; scrollbar-width: none; }
  .svc .pics::-webkit-scrollbar { display: none; }
  .svc .pics img, .svc .pics .drawn-wrap, .svc .pics .span2 { flex: 0 0 62%; aspect-ratio: 3 / 4; scroll-snap-align: start; height: auto; }
  .svc .pics .note { flex: 0 0 60%; align-self: center; }
  .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: .92rem; gap: 6px 14px; }
  .svc-index { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
  .svc-index a { white-space: nowrap; }

  /* projects: 3 small thumbs per row */
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .gallery .wide { grid-column: span 3; }
  .gallery figcaption { display: none; }
  .gallery img { aspect-ratio: 1 / 1; }
  .gallery .wide img { aspect-ratio: 16 / 10; }
  .hidden-work .stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hidden-work .stack figure:nth-child(3) { display: grid; }

  /* about / contact */
  .split img { aspect-ratio: 16 / 11; }
  .values > div { padding: 16px 0; }
  .contact-grid > div > img { display: none; }
  .channel { padding: 16px; }

  /* footer: shorter */
  .site-footer .wrap { padding-block: 36px 20px; }
  .f-grid { gap: 22px; padding-bottom: 24px; }
  .f-grid > div:nth-child(2) { display: none; } /* services list duplicates the menu */
  .f-brand p { display: none; }
}
@media (max-width: 760px) {
  .svc .pics > img, .svc .pics > .drawn-wrap { flex: 0 0 150px; width: 150px; height: 200px; aspect-ratio: auto; }
  .svc .pics > .span2 { flex: 0 0 260px; width: 260px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .process li { padding-right: 0; }
  .process h3 { font-size: 1.02rem; }
  .process p { font-size: .88rem; }
}
@media (max-width: 760px) {
  .service { align-items: stretch; }
  .service-media { position: relative; aspect-ratio: auto; height: auto; min-height: 92px; }
  .service-media img, .service-media .drawn { position: absolute; inset: 0; width: 100%; height: 100%; }
}
/* Phone: chat sits exactly in the visible area above the keyboard (sized by chat.js) */
@media (max-width: 760px) {
  .chat { top: auto; bottom: auto; height: var(--chat-h, 86dvh); max-height: none; border-radius: 0; }
  .chat.is-docked { top: var(--chat-top, 0px); }
  .chat-head { flex: none; }
  .chat-log { overscroll-behavior: contain; }
}
