/* =====================================================================
   CBS Heating site styles (October 2026 redesign). Used by all 22 redesigned pages.
   ===================================================================== */

/* Self-hosted fonts (SIL Open Font License: fonts/GildaDisplay-OFL.txt, fonts/WorkSans-OFL.txt).
   Gilda Display has a single regular (400) weight and is served unmodified, because its licence reserves the font name.
   Work Sans is a Latin subset in WOFF2, in the four weights the site uses. cbs-enquiry.css uses the same Work Sans files. */
@font-face { font-family: "Gilda Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/GildaDisplay-Regular.ttf") format("truetype"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/work-sans-700.woff2") format("woff2"); }

:root {
  --red: #B51F24;
  --red-dark: #8F161B;
  --red-tint: #F6E6E2;
  --ink: #171A1F;
  --ink-2: #22262C;
  --body: #383D45;
  --muted: #5B616B;
  /* Neutral surfaces (the "ivory" names are historical; the values are now cool greys). */
  --ivory: #F4F5F7;
  --ivory-2: #E9EDF1;
  --line: #D9DDE3;
  --line-dark: #353A42;
  --white: #FFFFFF;
  --r: 10px;
  --r-sm: 6px;
  --max: 1240px;
  --gutter: 28px;
  --sec: 68px;
  --gap: 28px;
  --head-h: 92px;
  --font-head: "Gilda Display", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Build marker: check on staging with getComputedStyle(document.documentElement).getPropertyValue('--cbs-css') */
  --cbs-css: "20261009b";
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-synthesis: none; }
/* Anchors and focused content stop below the sticky header. Set on the content, not as html scroll-padding,
   so focusing a control inside the sticky header itself never scrolls the page. */
main, main *, .site-footer, .site-footer * { scroll-margin-top: var(--head-h); }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--body); background: var(--white); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
/* A telephone link never breaks across lines; the sentence around it still wraps. Long email addresses may wrap. */
a[href^="tel:"] { white-space: nowrap; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* Gilda Display (regular only) for page titles and major section headings; Work Sans for everything functional. */
h1, h2 { font-family: var(--font-head); font-weight: 400; color: var(--ink); line-height: 1.14; letter-spacing: 0; margin: 0 0 .45em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.1vw, 44px); }
h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -.005em; margin: 0 0 .45em; }
h4 { font-family: var(--font-body); font-weight: 600; color: var(--ink); line-height: 1.3; }
.side-block h2, .role-key h2, .art-box__title, .pro__title { font-family: var(--font-body); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; text-wrap: wrap; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.section--tight { padding: 52px 0; }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--ink); color: #C9CDD3; }
.section--dark h2, .section--dark h3 { color: #fff; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.eyebrow--light { color: #F7C2B6; }

.section-head { margin-bottom: 32px; }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 56px; align-items: end; }
.section-head--split h2 { margin: 0; }
.section-head--split > p { margin: 0; color: var(--muted); font-size: 17px; }
.section--dark .section-head--split > p { color: #A9AFB8; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 24px; font: 700 16.5px/1.2 var(--font-body); text-decoration: none; border-radius: var(--r-sm); border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 15.5px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ivory); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--red); }
.link-arrow::after { content: ""; flex: none; margin-right: 3px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.link-arrow:hover { text-decoration: underline; }
.link-quiet { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.link-quiet:hover { color: var(--red); text-decoration-color: currentColor; }

/* ---------- Inset header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: 12px; background: transparent; transition: padding .2s; }
.page-home .site-header, .page-contact .site-header { background: var(--ivory); }
.page-home .site-header.is-scrolled, .page-contact .site-header.is-scrolled { background: none; }
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: 70px; padding: 8px 10px 8px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-radius .2s, box-shadow .2s; }
.site-header.is-scrolled { padding-top: 0; background: none; }
.site-header.is-scrolled .site-header__bar { border-top-color: transparent; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 8px 22px rgba(23, 26, 31, .08); }
.brand { flex: none; display: block; }
.brand img { width: 168px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.site-header__bar { position: relative; }
.nav__item--sub { position: static; }
.nav__link, .nav__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; font: 500 15.5px/1.2 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.nav__link:hover, .nav__toggle:hover { background: var(--ivory); color: var(--red); }
.nav__link[aria-current="page"] { color: var(--red); }
.nav__toggle svg { width: 11px; height: 11px; transition: transform .15s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Panel anchored to the header bar's right edge so it can never run off-screen at laptop widths. */
.nav__sub { position: absolute; right: 10px; top: calc(100% + 8px); width: min(820px, calc(100% - 20px)); list-style: none; padding: 14px; display: grid; grid-template-columns: .85fr 1fr 1.3fr; gap: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 34px rgba(23, 26, 31, .12); }
.nav__sub[hidden] { display: none; }
.nav__group ul { list-style: none; }
.nav__group-title { margin: 0 0 4px; padding: 4px 12px 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--red); border-bottom: 1px solid var(--line); }
.nav__sub a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3; transition: background-color .18s, color .18s; }
.nav__sub a:hover { background: var(--ivory); color: var(--red); }
.nav__sub a[aria-current="page"] { background: var(--ivory); color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.nav__sub small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
/* Desktop dropdown only: compact ceiling-film photo under the single Ceiling heating link. */
.nav__media { margin: 10px 12px 4px; }
.nav__media img { width: 100%; max-width: 230px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-sm); background: var(--ivory-2); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--red); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
/* Full-width hero: the photo spans the page under the header (a normal block, so no 100vw overflow);
   the copy stays in the centred .container, aligned with the header and the sections below. */
.page-home .site-header { background: #fff; }
.hero { position: relative; isolation: isolate; background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
/* The supplied photo is already darkened: this adds contrast mainly behind the copy, leaving the room visible on the right. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(15, 17, 21, .8) 0%, rgba(15, 17, 21, .72) 44%, rgba(15, 17, 21, .3) 68%, rgba(15, 17, 21, 0) 86%); }
.hero__inner { display: flex; align-items: center; min-height: clamp(480px, 40vw, 620px); padding-top: 56px; padding-bottom: 64px; }
.hero__copy { max-width: 620px; }
.hero h1 { color: #fff; font-size: clamp(40px, 4.9vw, 68px); line-height: 1.06; margin-bottom: 18px; }
.hero__lead { color: #E4E6EA; font-size: 18px; line-height: 1.6; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cred { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px 24px; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.cred li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 16px; }
.cred li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.cred svg { width: 22px; height: 22px; color: var(--red); flex: none; }

/* ---------- Applications ---------- */
.apps { padding-top: 56px; }
.apps__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.app { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.app__media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--ivory-2); }
.app__media img { width: 100%; height: 100%; object-fit: cover; }
.app__body { padding: 24px 28px 22px; display: flex; flex-direction: column; flex: 1; }
.app__body h3 { font-size: 26px; margin-bottom: 8px; }
.app__body > p { margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 6px; margin-bottom: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.app__links { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; margin-top: auto; padding-top: 8px; }
.app__aside { margin: 10px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--muted); }
.routes { list-style: none; display: grid; }
.route { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.route:last-child { padding-bottom: 0; }
.mini-x { width: 80px; height: 56px; display: block; }
.route__title { display: inline-block; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; padding: 2px 0; }
.route__title:hover { color: var(--red); text-decoration: underline; }
.route span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.route span a { color: var(--red); }
.route__ask { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.route__ask:hover { border-color: var(--red); color: var(--red); }

.spec { margin-top: 44px; }
.spec__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px 40px; align-items: end; margin-bottom: 18px; }
.spec__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.15; margin: 0; }
.spec__head p { margin: 0; color: var(--muted); font-size: 16.5px; }
.spec__cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.scard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ivory-2); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; }
.scard__body { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 18px; }
.scard__title { font-size: 19px; margin: 0 0 6px; }
.scard__title a { color: var(--ink); text-decoration: none; }
/* The whole card is clickable through the title link; focus outlines the card. */
.scard__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.scard__title a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.scard:focus-within { border-color: var(--red); }
.scard__body p { margin: 0 0 12px; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.scard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--red); }
.scard__more::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.scard:hover { border-color: var(--red); }
.scard:hover .scard__title a { color: var(--red); }
.spec__ask { margin-top: 8px; }

/* ---------- Signature: how it works ---------- */
.hiw__tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.hiw__tab { min-height: 44px; padding: 8px 20px; border: 0; border-radius: var(--r-sm); background: transparent; font: 700 16px var(--font-body); color: var(--ink); cursor: pointer; }
.hiw__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.hiw__tab:hover:not([aria-selected="true"]) { background: var(--ivory); }
.hiw__panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.hiw__panel[hidden] { display: none; }
.hiw__diagram { margin: 0; padding: 20px 22px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.hiw__diagram figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.hiw-svg { width: 100%; height: auto; display: block; }
.hiw-num { fill: #fff; font: 700 17px var(--font-body); }
.hiw-zone { fill: var(--muted); font: 600 16px var(--font-body); }
.hiw__title { font-size: 24px; margin-bottom: 12px; }
.legend { list-style: none; counter-reset: l; display: grid; gap: 8px; margin-bottom: 14px; }
.legend li { counter-increment: l; position: relative; padding-left: 38px; font-size: 16px; line-height: 1.45; min-height: 26px; }
.legend li::before { content: counter(l); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font: 700 13.5px/26px var(--font-body); text-align: center; }
.legend b { color: var(--ink); }
.hiw__photo { margin: 0 0 6px; display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.hiw__photo img { width: 150px; height: 96px; object-fit: cover; border-radius: var(--r-sm); background: var(--ivory-2); }
.hiw__photo figcaption { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Projects ---------- */
.projects__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; }
.projects__layout > article { background: var(--ink-2); padding: 28px; }
.feature { display: flex; flex-direction: column; gap: 6px; background: linear-gradient(160deg, #2A1D1E, var(--ink-2) 55%) !important; }
.feature .feature__figure { font: 700 108px/0.9 var(--font-body); color: #fff; letter-spacing: -.04em; margin: 0 0 10px; }
.feature h3 { font-size: 25px; }
.feature p, .highlight p { color: #BCC1C9; font-size: 16px; }
.highlight .highlight__figure { font: 700 50px/1 var(--font-body); color: #fff; margin: 0 0 12px; letter-spacing: -.03em; }
.highlight .highlight__figure span { font-size: 17px; color: #F0A595; letter-spacing: 0; font-weight: 700; }
.highlight h3 { font-size: 19px; }
.scope { display: inline-block; margin: 4px 0 0; padding: 3px 10px; font-size: 13px !important; font-weight: 600; color: #E3E6EA !important; border: 1px solid #4A515C; border-radius: 4px; }
.projects__more { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; margin-top: 4px; }
.projects__more li { padding: 16px 0 0; font-size: 16px; color: #BCC1C9; }
.projects__more b { color: #fff; }
.projects__more .scope { margin-left: 6px; }

/* ---------- Ron and process ---------- */
.ron { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.ron__portrait { position: relative; margin: 0 14px 14px 0; }
.ron__portrait::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--red); border-radius: var(--r); z-index: -1; }
.ron__portrait { isolation: isolate; }
.ron__portrait img { width: 100%; border-radius: var(--r); background: #000; aspect-ratio: 600 / 582; object-fit: cover; }
.ron__text { max-width: 640px; }
.ron__text h2 { margin-bottom: 12px; }
.ron__lead { font-size: 19px; color: var(--ink); }
.ron__actions { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 6px; }
.process { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.process__title { font-size: 20px; margin-bottom: 22px; }
/* Illustrates the order of the steps (not live project progress). */
.process__steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pstep { position: relative; }
.pstep::after { content: ""; position: absolute; top: 25px; left: 66px; right: -14px; height: 2px; background: var(--line); transform-origin: left center; }
.pstep:last-child::after { display: none; }
.pstep__marker { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); color: var(--red); }
.pstep__marker svg { width: 24px; height: 24px; }
.pstep__num { position: absolute; top: -6px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font: 700 13px/1 var(--font-body); box-shadow: 0 0 0 3px #fff; }
.pstep__title { font-size: 17.5px; margin: 0 0 4px; }
.pstep__body p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.process__note { margin: 20px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--muted); }

/* ---------- Areas and professionals ---------- */
.areas-sec { border-top: 1px solid var(--line); }
.areas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.areas h2 { margin-bottom: 16px; }
.areas__list { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 28px; margin-bottom: 14px; }
.areas__list li:first-child { grid-column: 1 / -1; }
.areas__list li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); position: relative; }
.areas__list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.areas__list b { color: var(--ink); }
.areas__list span { display: block; font-size: 14.5px; color: var(--muted); }
.areas__note { font-size: 15.5px; color: var(--muted); margin: 0; }
.pro { padding: 26px 28px; background: var(--ivory); border-radius: var(--r); border-left: 4px solid var(--red); }
.pro__title { font-size: 22px; margin-bottom: 10px; }
.pro p { font-size: 16px; margin-bottom: 6px; }

/* ---------- Enquiry and FAQ ---------- */
.enquiry { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.enquiry__form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 34px; }
.enquiry__form h2 { margin-bottom: 6px; }
.enquiry__intro { color: var(--muted); font-size: 17.5px; margin-bottom: 22px; }
.contact-opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 26px; }
.contact-opts a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; word-break: break-word; }
.contact-opts a:hover { border-color: var(--red); }
.contact-opts svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.contact-opts small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.enquiry__aside { position: sticky; top: calc(var(--head-h) + 8px); }
.faq__title { font-size: 20px; margin-bottom: 8px; }
.next-note { margin-top: 22px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-size: 15.5px; }
.next-note b { display: block; color: var(--ink); margin-bottom: 2px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; padding: 10px 0; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 16.5px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); font-weight: 700; background: #fff; }
.faq details[open] summary::after { content: "\2212"; background: var(--red); border-color: var(--red); color: #fff; }
.faq summary:hover { color: var(--red); }
.faq details p { font-size: 15.5px; margin: 0 0 14px; color: var(--body); }

/* ---------- Contact page ---------- */
.page-intro { background: var(--ivory); padding: 34px 0 30px; }
.page-intro h1 { font-size: clamp(36px, 3.9vw, 52px); line-height: 1.08; margin-bottom: 8px; }
.page-intro p { max-width: 720px; font-size: 18px; color: var(--muted); margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-side { display: grid; gap: 24px; }
.side-block h2 { font-size: 20px; margin-bottom: 8px; }
.side-block p, .side-block li { font-size: 16px; }
.side-block ul { list-style: none; display: grid; gap: 6px; }
.side-block li { padding-left: 20px; position: relative; }
.side-block li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #111317; color: #A9AFB8; font-size: 15px; padding: 52px 0 0; }
.site-footer a { color: #E7E9EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.1fr) minmax(0, .8fr) minmax(0, 1.15fr); gap: 32px 40px; }
.footer-brand img { width: 168px; background: #fff; padding: 8px 10px; border-radius: var(--r-sm); margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 300px; }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.site-footer h3 { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: #F5B6A8; margin: 0 0 4px; }
.site-footer ul { list-style: none; display: grid; gap: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; line-height: 1.4; }
/* Desktop: Ceiling above Floor in the first column, Commercial and specialist in the second. */
.footer-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ceil spec" "floor spec"; align-items: start; gap: 18px 28px; }
.footer-group:nth-child(1) { grid-area: ceil; }
.footer-group:nth-child(2) { grid-area: floor; }
.footer-group:nth-child(3) { grid-area: spec; }
.footer-contact__list { gap: 4px !important; }
.footer-contact__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.footer-contact__list svg { width: 18px; height: 18px; margin-top: 7px; color: #F5B6A8; }
.footer-contact__areas { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
.footer-contact__areas svg { margin-top: 2px; }
.footer-lower { margin-top: 40px; border-top: 1px solid #262A31; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 48px; align-items: end; padding: 20px 0 22px; }
.footer-privacy { font-size: 13.5px; line-height: 1.55; }
.footer-privacy h2 { margin-bottom: 4px; font-size: 12px; }
.footer-privacy p { margin: 0; max-width: 820px; }
.footer-bottom { display: grid; gap: 4px; justify-items: end; font-size: 13.5px; text-align: right; }
.footer-bottom p { margin: 0; }

/* ---------- Motion (restrained: 180 to 500 ms, small movements, transform and opacity only) ----------
   Everything here is switched off by the prefers-reduced-motion rule below. Content is never hidden without
   JavaScript: the reveal classes are only added by cbs-site.js, and only to blocks that start below the screen.
   Nothing loops: the diagram's heat waves play once. */
.hiw-wave { animation: rise 1.6s ease-in-out 1 both; }
@keyframes rise { 0% { opacity: .35; transform: translateY(-3px); } 100% { opacity: 1; transform: none; } }
@keyframes cbs-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero__actions { animation: cbs-rise .42s var(--ease) .1s both; }
/* Section reveal: one fade and 12 px rise, played once. */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-revealed { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
/* Sequences (process steps, commercial cards): items enter one after another; process lines draw in. */
.reveal-seq > li { opacity: 0; transform: translateY(12px); }
.reveal-seq.is-revealed > li { opacity: 1; transform: none; transition: opacity .42s var(--ease), transform .42s var(--ease); }
.reveal-seq.is-revealed > li:nth-child(2) { transition-delay: .12s; }
.reveal-seq.is-revealed > li:nth-child(3) { transition-delay: .24s; }
.reveal-seq.is-revealed > li:nth-child(4) { transition-delay: .36s; }
.reveal-seq .pstep::after { transform: scaleX(0); }
.reveal-seq.is-revealed .pstep::after { transform: none; transition: transform .45s var(--ease) .2s; }
.reveal-seq.is-revealed .pstep:nth-child(2)::after { transition-delay: .32s; }
.reveal-seq.is-revealed .pstep:nth-child(3)::after { transition-delay: .44s; }
.btn { transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.link-arrow::after, .scard__more::after { transition: transform .18s var(--ease); }
/* any-hover: works when a mouse is attached to a touch-screen laptop, not only when the mouse is the main pointer. */
@media (any-hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23, 26, 31, .12); }
  .btn:active { transform: none; box-shadow: none; }
  .link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }
  .scard:hover .scard__more::after { transform: translateX(3px) rotate(45deg); }
  .app, .story, .post__link, .sys-links a, .route, .scard { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .18s; }
  .app:hover, .story:hover, .post__link:hover, .sys-links a:hover, .scard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23, 26, 31, .1); }
  .app__media img, .post__thumb img, .scard__media img { transition: transform .5s var(--ease); }
  .app:hover .app__media img, .post__link:hover .post__thumb img, .scard:hover .scard__media img { transform: scale(1.04); }
}
/* Desktop dropdown: fades and drops in place (absolutely positioned, so nothing around it moves). cbs-site.js makes a
   closing panel inert at once, so its links can never be reached by Tab while it fades; once faded it is also hidden.
   An invisible bridge covers the gap under the button, so the pointer can travel into the panel. */
@media (min-width: 1025px) {
  html.js .nav__sub { opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s; }
  html.js .nav__sub.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  html.js .nav__sub.is-open > .nav__group { animation: cbs-rise .3s var(--ease) both; }
  html.js .nav__sub.is-open > .nav__group:nth-child(2) { animation-delay: .04s; }
  html.js .nav__sub.is-open > .nav__group:nth-child(3) { animation-delay: .08s; }
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-seq > li, html.js .nav__sub.is-open { opacity: 1 !important; transform: none !important; }
  .reveal-seq .pstep::after { transform: none !important; }
  .btn:hover, .app:hover, .story:hover, .post__link:hover, .sys-links a:hover, .scard:hover, .app:hover .app__media img, .post__link:hover .post__thumb img, .scard:hover .scard__media img { transform: none !important; }
}

/* ---------- Without JavaScript ---------- */
html:not(.js) .hiw__tabs { display: none; }
html:not(.js) .hiw__panel + .hiw__panel { margin-top: 40px; }
html:not(.js) .nav__sub { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .nav__link, .nav__toggle { padding: 8px 9px; }
}
@media (max-width: 1024px) {
  :root { --sec: 56px; --gutter: 24px; }
  .menu-btn { display: inline-flex; }
  /* Collapsed navigation: logo stays left, the call / quote / menu group sits on the right. */
  .header-actions { margin-left: auto; }
  .header-phone span { display: inline; }
  .nav { position: absolute; left: -1px; right: -1px; top: calc(100% - 2px); display: none; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 16px 30px rgba(23, 26, 31, .12); max-height: calc(100vh - var(--head-h) - 16px); max-height: calc(100dvh - var(--head-h) - 16px); overflow: auto; overscroll-behavior: contain; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; font-size: 17px; padding: 12px; }
  .nav__item--sub { position: static; }
  .nav__sub { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 6px 10px; display: block; }
  .nav__sub[hidden] { display: none; }
  .nav__group + .nav__group { margin-top: 8px; }
  .nav__sub a { min-height: 44px; }
  .nav__media { display: none; }
  .site-header .container { position: relative; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  /* minmax(0, 1fr) stops long words or URLs from widening a single-column layout */
  .apps__grid, .hiw__panel, .enquiry, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .app { flex-direction: row; }
  .app__media { flex: 0 0 34%; aspect-ratio: auto; }
  .spec__head { grid-template-columns: minmax(0, 1fr); }
  .spec__cards { gap: 14px; }
  .scard__body { padding: 14px 16px 16px; }
  .hiw__panel { gap: 22px; }
  /* Copy covers more of the photo at tablet widths, so the overlay reaches further across */
  .hero::before { background: linear-gradient(90deg, rgba(15, 17, 21, .78) 0%, rgba(15, 17, 21, .66) 60%, rgba(15, 17, 21, .26) 100%); }
  .hero__inner { min-height: 460px; padding-top: 48px; padding-bottom: 52px; }
  .projects__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature { grid-column: 1 / -1; flex-direction: row !important; align-items: flex-start; gap: 24px !important; }
  .feature__figure { font-size: 88px; }
  .ron { grid-template-columns: 280px 1fr; gap: 40px; }
  .process__steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 32px; }
  .pstep:nth-child(2)::after { display: none; }
  .pstep::after { right: -22px; }
  .areas { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand, .footer-systems { grid-column: 1 / -1; }
  .footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "ceil floor spec"; }
  .footer-brand { display: flex; align-items: center; gap: 20px; }
  .footer-brand img { margin: 0; }
  .footer-brand p { max-width: 420px; }
  .footer-lower { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .nav { display: block; position: static; box-shadow: none; border: 0; padding: 0; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  :root { --sec: 40px; --gutter: 16px; --gap: 20px; --head-h: 76px; }
  body { font-size: 16.5px; }
  .site-header { padding-top: 8px; }
  .site-header__bar { min-height: 60px; gap: 8px; padding: 6px 6px 6px 12px; }
  .brand img { width: 124px; }
  .header-actions { gap: 6px; margin-left: auto; }
  .header-phone { width: 44px; height: 44px; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
  .header-phone span { display: none; }
  .hide-xs { display: none; }
  .btn--sm { padding: 9px 14px; }
  /* Phones: full-width photo above a compact charcoal text panel (better contrast than text over the photo). */
  .hero__media { position: relative; inset: auto; z-index: auto; height: clamp(190px, 54vw, 300px); }
  .hero__img { object-position: 38% 60%; }
  .hero::before { display: none; }
  .hero__inner { min-height: 0; padding-top: 24px; padding-bottom: 28px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 42px); }
  .hero__lead { font-size: 16.5px; margin-bottom: 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cred { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 4px; }
  .cred li + li { padding-left: 0; border-left: 0; }
  .apps { padding-top: 36px; }
  .section-head { margin-bottom: 22px; }
  .app { flex-direction: column; }
  .app__media { flex: none; aspect-ratio: 16 / 8; }
  .app__body { padding: 18px 18px 16px; }
  .app__body h3 { font-size: 23px; }
  .route { grid-template-columns: 64px 1fr; gap: 12px; }
  .mini-x { width: 64px; height: 45px; }
  .route__ask { grid-column: 2; justify-self: start; min-height: 44px; margin-top: -2px; }
  .spec { margin-top: 32px; }
  .hiw__tabs { display: flex; }
  .hiw__tab { flex: 1; padding: 8px 10px; font-size: 15px; }
  .hiw__diagram { padding: 12px 10px 10px; }
  .hiw__photo { grid-template-columns: 110px 1fr; }
  .hiw__photo img { width: 110px; height: 76px; }
  .projects__layout { grid-template-columns: minmax(0, 1fr); }
  .projects__layout > article { padding: 22px 20px; }
  .feature { flex-direction: column !important; gap: 4px !important; }
  .feature__figure { font-size: 72px; }
  .projects__more { grid-template-columns: minmax(0, 1fr); }
  .ron { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  /* Phones: the portrait and its frame are centred as one unit; the frame sits evenly around the photo. */
  .ron__portrait, .about-hero .ron__portrait { width: 100%; max-width: 260px; margin: 10px auto 10px; }
  .ron__portrait::before { inset: -8px; border-radius: calc(var(--r) + 8px); }
  .process { margin-top: 36px; padding-top: 22px; }
  /* Vertical sequence: markers on the left, joined by a vertical line. */
  .process__steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pstep { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 16px; padding-bottom: 20px; }
  .pstep:last-child { padding-bottom: 0; }
  .pstep__marker { margin: 0; }
  .pstep__body { padding-top: 4px; }
  .pstep::after, .pstep:nth-child(2)::after { display: block; top: 58px; bottom: 4px; left: 25px; right: auto; width: 2px; height: auto; transform-origin: center top; }
  .pstep:last-child::after { display: none; }
  .reveal-seq .pstep::after { transform: scaleY(0); }
  .areas__list { grid-template-columns: minmax(0, 1fr); }
  .enquiry__aside { position: static; }
  .pro { padding: 20px; }
  .enquiry { gap: 28px; }
  .enquiry__form { padding: 22px 16px; }
  .contact-opts { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-brand { display: block; }
  .footer-brand img { margin-bottom: 12px; }
  .footer-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ceil floor" "spec spec"; gap: 16px 20px; }
  .footer-company ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
  .footer-bottom { grid-auto-flow: row; }
  .page-intro { padding: 24px 0 22px; }
}
@media (max-width: 759px) {
  .spec__cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .scard__media { aspect-ratio: 2 / 1; }
}
@media (max-width: 380px) {
  .site-header__bar { gap: 6px; padding-left: 10px; }
  .brand img { width: 96px; }
  .header-actions { gap: 4px; }
  .btn--sm { padding: 9px 10px; font-size: 15px; }
}

/* =====================================================================
   Service pages (prototype: ceilingheating.html). Shared by future service pages.
   ===================================================================== */
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn--outline { color: var(--ink); border-color: var(--ink); background: #fff; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.page-service .site-header { background: var(--ivory); }
.page-service .site-header.is-scrolled { background: none; }

.svc-hero { background: var(--ivory); padding: 22px 0 0; }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: center; padding-bottom: 32px; }
.svc-hero h1 { font-size: clamp(36px, 4.1vw, 56px); line-height: 1.08; margin-bottom: 14px; }
.svc-hero__lead { font-size: 18px; max-width: 600px; margin-bottom: 24px; }
.svc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-hero__media { margin: 0; }
.svc-hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.svc-hero__media figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.svc-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.svc-facts li { padding: 16px 20px 18px; display: flex; flex-direction: column; }
.svc-facts li + li { border-left: 1px solid var(--line); }
.svc-facts li:first-child { padding-left: 0; }
.svc-facts b { font-family: var(--font-body); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.25; }
.svc-facts span { font-size: 15.5px; color: var(--muted); }

.jump { background: #fff; border-bottom: 1px solid var(--line); }
.jump .container { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.jump__label { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; font-size: 15.5px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.jump a:hover { background: var(--ivory); color: var(--red); }

.svc-how__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.svc-how__grid--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.svc-how__figure { max-width: 440px; margin: 0; }
.svc-how__figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); background: var(--ivory); }
.svc-how__figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.points { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.points li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; }
.points b { display: block; font-family: var(--font-body); font-weight: 600; font-size: 17.5px; color: var(--ink); margin-bottom: 2px; }
.svc-note { font-size: 14.5px; color: var(--muted); margin: 10px 0 0; }

.fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.fit__col { padding: 20px 26px 4px 0; }
.fit__col + .fit__col { padding-left: 26px; border-left: 1px solid var(--line); }
.fit__col h3 { font-size: 20px; margin-bottom: 12px; }
.fit__col--ask { background: var(--ivory); padding-right: 22px; border-radius: 0 0 var(--r) var(--r); }
.dots { list-style: none; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.fit .ticks { gap: 8px; }
.fit .ticks li { line-height: 1.5; }

.tech { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tech__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tech__table th, .tech__table td { text-align: left; vertical-align: top; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.tech__table tr:last-child th, .tech__table tr:last-child td { border-bottom: 0; }
.tech__table th { width: 34%; font-weight: 600; color: var(--ink); background: var(--ivory); }
.tech__quote { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r); }
.tech__quote h3 { font-size: 19px; margin-bottom: 10px; }

.svc-related { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }

@media (max-width: 1024px) {
  .svc-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 28px; }
  .svc-how__grid, .svc-how__grid--photo, .tech { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fit { grid-template-columns: minmax(0, 1fr); border-top-width: 2px; }
  .fit__col, .fit__col + .fit__col { padding: 18px 0 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .fit__col--ask { padding: 18px 18px 16px; border-bottom: 0; border-radius: var(--r); margin-top: 16px; }
}
@media (max-width: 720px) {
  .svc-hero { padding-top: 14px; }
  .svc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 20px; }
  .svc-hero__media { order: -1; }
  .svc-hero__media img { aspect-ratio: 16 / 8; }
  .svc-hero__lead { font-size: 16.5px; margin-bottom: 18px; }
  .svc-hero__actions .btn { flex: 1 1 100%; }
  .svc-facts { grid-template-columns: minmax(0, 1fr); }
  .svc-facts li, .svc-facts li:first-child { padding: 9px 0; }
  .svc-facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .svc-facts b { font-size: 17px; }
  .jump .container { gap: 2px 8px; }
  .jump a { padding: 0 8px; font-size: 15px; }
  .tech__table th, .tech__table td { display: block; width: auto; padding: 10px 14px; }
  .tech__table th { border-bottom: 0; padding-bottom: 2px; background: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}

/* =====================================================================
   Service pages: compact "How it works" without a photo
   ===================================================================== */
.points--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }

/* =====================================================================
   About page
   ===================================================================== */
.page-about .site-header, .page-projects .site-header, .page-blog .site-header { background: var(--ivory); }
.page-about .site-header.is-scrolled, .page-projects .site-header.is-scrolled, .page-blog .site-header.is-scrolled { background: none; }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; padding-bottom: 34px; }
.about-hero .ron__portrait { margin: 0 14px 14px 0; }
.roles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); counter-reset: role; }
.roles > li { padding: 22px 28px 6px 0; counter-increment: role; }
.roles > li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.roles h3 { font-size: 21px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.roles h3::before { content: counter(role); flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; font-family: var(--font-body); font-weight: 700; transform: translateY(-2px); }
.roles p { font-size: 16.5px; margin: 0; }
.history { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.timeline { list-style: none; border-left: 2px solid var(--line); margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline b { display: block; font-family: var(--font-body); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 2px; }
.timeline span { font-size: 16.5px; }
.history__figure { margin: 0; }
.history__figure img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.history__figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.supply { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.supply > div { padding: 26px 28px; }
.supply > div + div { border-left: 1px solid var(--line); }
.supply h3 { font-size: 21px; margin-bottom: 8px; }
.supply p { font-size: 16.5px; }
.supply .areas__list { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.supply .areas__list li:first-child { flex-basis: 100%; }
.about-cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.about-cta__main h2 { margin-bottom: 10px; }
.about-cta__main > p { font-size: 17.5px; max-width: 560px; }
.about-cta__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 18px; }

@media (max-width: 1024px) {
  .about-hero__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
  .roles { grid-template-columns: minmax(0, 1fr); border-top-width: 2px; }
  .roles > li, .roles > li + li { padding: 18px 0 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .roles > li:last-child { border-bottom: 0; }
  .history, .about-cta { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .history__figure { max-width: 560px; margin-inline: auto; }
  .svc-how__figure { margin-inline: auto; }
}
@media (max-width: 720px) {
  .points--grid { grid-template-columns: minmax(0, 1fr); }
  .about-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 22px; }
  .about-hero .ron__portrait { order: -1; max-width: 220px; margin: 10px auto; }
  .supply { grid-template-columns: minmax(0, 1fr); }
  .supply > div { padding: 20px; }
  .supply > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .about-cta__actions .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Projects page, and the "See all projects" link on Home and About
   ===================================================================== */
.projects__link { margin: 18px 0 0; }
.link-arrow--light { color: #F5B6A8; }
.role { display: inline-block; margin: 0 0 10px; padding: 3px 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink); background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; }
.role-key { padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r); }
.role-key h2 { font-size: 20px; margin-bottom: 12px; }
.role-key dl { margin: 0; display: grid; gap: 10px; }
.role-key dt { margin: 0; }
.role-key dt .role { margin: 0; }
.role-key dd { margin: 4px 0 0; font-size: 15.5px; }
.role-key > p { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }
.projects-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
.stories { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.story { display: flex; gap: 24px; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.section--ivory .story { border-color: var(--line); }
.story__body { min-width: 0; }
.story h3 { font-size: 22px; margin-bottom: 8px; }
.story__summary { font-size: 16.5px; margin-bottom: 14px; }
.story__figure { flex: none; margin: 0; font: 700 72px/0.9 var(--font-body); color: var(--red); letter-spacing: -.04em; }
.story__figure span { display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.story__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0 0 12px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.story__meta dt { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story__meta dd { margin: 2px 0 0; font-size: 15.5px; color: var(--ink); }
.story__links { margin: 0; font-size: 15px; color: var(--muted); }
.sys-links { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sys-links a { display: block; height: 100%; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.sys-links a:hover { border-color: var(--red); }
.sys-links b { display: block; font-family: var(--font-body); font-weight: 600; font-size: 18.5px; margin-bottom: 4px; }
.sys-links span { font-size: 15.5px; color: var(--muted); }

@media (max-width: 1024px) {
  .projects-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .role-key { max-width: 560px; }
  .stories { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sys-links { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 720px) {
  .story { flex-direction: column; gap: 6px; padding: 20px; }
  .story__figure { font-size: 56px; display: flex; align-items: baseline; gap: 10px; }
  .story__figure span { margin: 0; }
  .story__meta { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .role-key { padding: 20px; }
}

/* =====================================================================
   Articles: listing (blog.html) and article pages (blog_1 to blog_8)
   ===================================================================== */
.blog-hero .container, .art-hero__inner { padding-bottom: 30px; }
.blog-hero h1, .art-hero h1 { max-width: 900px; }
.blog-hero .svc-hero__lead, .art-hero .svc-hero__lead { max-width: 760px; margin-bottom: 0; }
.blog-list { padding-top: 44px; padding-bottom: 8px; }
.post-group + .post-group { margin-top: 44px; }
.post-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.post-group__head h2 { font-size: clamp(23px, 2.2vw, 28px); margin: 0; }
.post-group__head p { margin: 0; color: var(--muted); font-size: 16px; }
.posts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post__link { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
.post__link:hover { border-color: var(--red); }
.post__link:hover .post__title { color: var(--red); }
.post__thumb { flex: none; width: 132px; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--ivory); }
.post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post__thumb--svg { display: grid; place-items: center; }
.post__thumb--svg svg { width: 86%; height: auto; }
.post__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post__title { font-size: 19px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.post__summary { font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.post__meta { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.art-meta { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.art-wrap { padding-top: 40px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 320px); gap: 56px; justify-content: space-between; align-items: start; }
.art-body { min-width: 0; font-size: 17.5px; line-height: 1.7; }
.art-body p, .art-body ul, .art-body ol { margin: 0 0 16px; }
.art-body ul, .art-body ol { padding-left: 22px; }
.art-body li { margin-bottom: 6px; }
.art-body a { overflow-wrap: anywhere; }
.art-sec { padding-top: 10px; }
.art-sec h2 { font-size: clamp(24px, 2.3vw, 30px); margin: 18px 0 10px; }
.art-figure { margin: 0 0 26px; }
.art-figure img { width: 100%; height: auto; border-radius: var(--r); }
.art-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.art-figure--diagram { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.art-figure--diagram svg { width: 100%; height: auto; }
.art-body .art-legend { padding-left: 0; margin: 12px 0 10px; gap: 6px; }
.art-body .art-legend li { margin: 0; font-size: 15.5px; }
.art-toc { margin: 0 0 18px; padding: 16px 20px; background: var(--ivory); border-radius: var(--r); }
.art-toc__title { margin: 0 0 6px !important; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.art-toc ol { margin: 0 !important; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 16px; }
.art-toc li { break-inside: avoid; margin-bottom: 4px; }
.art-note { padding: 12px 16px; background: var(--ivory); border-left: 4px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 16px; }
.art-steps { list-style: decimal; }
.art-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r); }
.art-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; background: #fff; }
.art-table th, .art-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.art-table thead th { background: var(--ivory); font-weight: 600; color: var(--ink); }
.art-table tr:last-child td { border-bottom: 0; }
.art-table a { overflow-wrap: normal; }
.art-aside { display: grid; gap: 18px; }
.art-box { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.art-box--ron { border-left: 4px solid var(--red); }
.art-box__title { font-size: 19px; margin-bottom: 10px; }
.art-box p { font-size: 15.5px; margin: 0 0 10px; }
.art-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 !important; }
.art-rel { list-style: none; display: grid; gap: 2px; }
.art-rel a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.art-rel li:last-child a { border-bottom: 0; }
.art-rel a:hover b { color: var(--red); }
.art-rel b { display: block; font-size: 16px; }
.art-rel span { display: block; font-size: 14.5px; color: var(--muted); }
.more__title { font-size: 26px; margin-bottom: 16px; }
.posts--more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts--more .post__link { flex-direction: column; }
.posts--more .post__thumb { width: 100%; aspect-ratio: 16 / 9; }
.more__all { margin: 14px 0 0; }

@media (max-width: 1024px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .art-body { max-width: 720px; }
  .art-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .posts--more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .blog-list { padding-top: 30px; }
  .post__thumb { width: 92px; }
  .post__title { font-size: 17.5px; }
  .art-body { font-size: 17px; }
  .art-toc ol { columns: 1; }
  .art-aside { grid-template-columns: minmax(0, 1fr); }
  .posts--more { grid-template-columns: minmax(0, 1fr); }
  .posts--more .post__link { flex-direction: row; }
  .posts--more .post__thumb { width: 92px; aspect-ratio: 4 / 3; }
  .art-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .art-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .art-table tbody tr:last-child { border-bottom: 0; }
  .art-table td { display: block; padding: 2px 0; border: 0; }
  .art-table td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}

/* =====================================================================
   Reviews page: third-party Trustmary widget kept inside the page width
   ===================================================================== */
.page-reviews .site-header { background: var(--ivory); }
.page-reviews .site-header.is-scrolled { background: none; }
.reviews-sec { padding-top: 40px; padding-bottom: 40px; }
/* No overflow clipping: the widget is sized to the column so its own content can wrap, and nothing is hidden. */
.reviews-embed { width: 100%; min-width: 0; }
.reviews-embed > * { max-width: 100%; box-sizing: border-box; }
.reviews-embed iframe { display: block; width: 100% !important; max-width: 100%; border: 0; }
.reviews-embed img { max-width: 100%; height: auto; }
.reviews-note { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); max-width: 760px; }

@media print { .site-header, .hero__media { display: none; } .hero { background: none; } .hero h1, .hero__lead { color: var(--ink); } }
