/* ORBEM Climate Solutions. One stylesheet for the whole site.
   Art direction: dark, cinematic, engineered. Night and paper grounds,
   heat (amber) as the only warm colour, mono spec labels. */

/* Mundial comes from the ORBEM Adobe Fonts kit (nog6uyv), loaded in the page head.
   The fallback is Arial, sized to keep the swap gentle. */
/* Mundial comes from the ORBEM Adobe Fonts kit: the regular and bold files are preloaded
   in the head and the kit stylesheet loads without blocking. (A font-display: swap copy of
   the faces was tested in round 6d: it made the page lay out and paint twice during load and
   cost far more blocking time, so the kit's own loading is kept.) */
/* Pages whose hero is text (no hero photo) show the headline at once in the fallback and
   swap to Mundial: the same two preloaded files, with font-display: swap. Home keeps the
   kit's own loading, which measured better there. */
@font-face { font-family: "Mundial Swap"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://use.typekit.net/af/ce96c9/00000000000000007735ee08/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"); }
@font-face { font-family: "Mundial Swap"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://use.typekit.net/af/0075f2/00000000000000007735ee0e/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2"); }
@font-face { font-family: "Mundial Fallback"; src: local("Arial"); size-adjust: 102%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
/* 6q: a real bold fallback sized to Mundial Bold, so headlines keep their line count when the web font arrives */
@font-face { font-family: "Mundial Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); size-adjust: 96.5%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --night: #061a3d;
  --night-2: #0a2450;
  --navy: #0f2340;
  --blue: #004aad;
  --signal: #6ea8ff;
  --amber: #ffa41b;
  --amber-2: #ffb547;
  --ember: #ff6b2c;
  --paper: #f5f3ef;
  --concrete: #e6e2db;
  --card: #fbfaf8;
  --ink: #0e1621;
  --steel: #586474;
  --mist: #aeb9c7;
  --line-d: rgba(255, 255, 255, 0.12);
  --line-d2: rgba(255, 255, 255, 0.22);
  --line-l: rgba(14, 22, 33, 0.12);
  --line-l2: rgba(14, 22, 33, 0.24);
  --ok: #1b7a43;
  --err: #b42318;
  --err-d: #ff8a7a;

  --font: "mundial", "Mundial Fallback", Arial, sans-serif;
  --mono: var(--font);
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 18px;

  --section: clamp(72px, 9vw, 140px);
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1280px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --glow: 0 10px 30px -10px rgba(255, 164, 27, 0.55);
  --glow-2: 0 16px 40px -10px rgba(255, 164, 27, 0.75);
  --shadow: 0 1px 2px rgba(6, 26, 61, 0.06), 0 18px 48px -24px rgba(6, 26, 61, 0.35);
}

@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
::view-transition-old(root) { animation: vt-out 260ms cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 560ms cubic-bezier(0.23, 1, 0.32, 1) 60ms both; }
::view-transition-group(site-head) { animation-duration: 360ms; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px) scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(36px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
::selection { background: var(--amber); color: var(--night); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.on-night :focus-visible, .site-foot :focus-visible, .callpill:focus-visible, .consent :focus-visible { outline-color: var(--amber); }
html { scrollbar-color: #7b8796 var(--concrete); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 1.2rem + 6.4vw, 6.6rem); line-height: 0.88; }
h2 { font-size: clamp(2.2rem, 1.1rem + 3.9vw, 4.6rem); line-height: 0.92; }
h3 { font-size: clamp(1.3rem, 1.12rem + 0.6vw, 1.65rem); line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--steel); max-width: 60ch; }
.measure { max-width: 60ch; }
.muted { color: var(--steel); }
.on-night { background: var(--night); color: #fff; }
.on-night .lead, .on-night .muted, .on-night p { color: var(--mist); }
.on-night a:not(.btn) { color: var(--signal); }
.on-navy { background: var(--navy); color: #fff; }
.on-concrete { background: var(--concrete); }
.heat { background: linear-gradient(90deg, var(--amber) 0%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.04em; }

/* Mono spec label: replaces the old wide uppercase labels */
.label, .eyebrow { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.35; color: var(--steel); }
.on-night .label, .on-night .eyebrow { color: var(--mist); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--night); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--amber); --fg: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: inherit; font-weight: 750; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; box-shadow: var(--glow);
  transition: transform 180ms var(--ease-out), box-shadow 220ms ease, background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform 220ms var(--ease-out); }
.btn:active { transform: translateY(0) scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--glow-2); --bg: var(--amber-2); }
  .btn:hover svg.arrow, .arrowlink:hover svg { transform: translateX(4px); }
}
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-l2); }
.on-night .btn--line, .site-foot .btn--line, .callbar .btn--line, .menu-panel .btn--line { --fg: #fff; box-shadow: inset 0 0 0 1.5px var(--line-d2); }
@media (hover: hover) and (pointer: fine) {
  .btn--line:hover { --bg: rgba(14, 22, 33, 0.05); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .on-night .btn--line:hover { --bg: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px #fff; }
}
.btn--tel { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn.is-busy { pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.textlink { font-weight: 700; color: inherit; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.arrowlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; text-decoration: none; min-height: 44px; color: inherit; }
.arrowlink svg { width: 18px; height: 18px; color: var(--amber); transition: transform 220ms var(--ease-out); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(6, 26, 61, 0.86); color: #fff; border-bottom: 1px solid var(--line-d); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); }
.site-head__in { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: inline-flex; color: #fff; flex: none; min-height: 44px; align-items: center; }
.brand svg { width: 128px; height: auto; }
.brand svg path[fill="#004AAD"] { fill: var(--signal); }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 11px; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: #dfe6ee; transition: color 160ms ease; }
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: #fff; } .nav a:hover::after { transform: scaleX(1); } }
.head-tel { display: none; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: #fff; text-decoration: none; white-space: nowrap; min-height: 44px; }
.head-tel svg { width: 18px; height: 18px; color: var(--amber); }
.head-cta { display: none; min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.head-mob { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--tel { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-d2); }
.icon-btn--tel svg { color: var(--amber); }
.icon-btn--tel span { font-family: var(--mono); font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.icon-btn--menu { padding: 0; width: 48px; }
@media (max-width: 380px) { .brand svg { width: 100px; } .icon-btn--tel { padding: 0 10px; gap: 6px; } .icon-btn--tel span { font-size: 0.82rem; } .site-head__in { gap: 8px; } }
.menu-panel { position: fixed; inset: 72px 0 0 0; z-index: 39; background: var(--night); color: #fff; padding: 24px var(--gutter) 48px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms; }
.menu-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s; }
.menu-panel ul { list-style: none; margin: 0 0 28px; padding: 0; }
.menu-panel li + li { border-top: 1px solid var(--line-d); }
.menu-panel a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-size: 1.6rem; font-weight: 800; color: #fff; text-decoration: none; }
.menu-panel a:not(.btn) svg { width: 20px; color: var(--amber); }
.menu-panel .btn { width: 100%; margin-top: 10px; }
body.menu-open { overflow: hidden; }
@media (min-width: 1200px) {
  .nav { display: block; }
  .head-tel, .head-cta { display: inline-flex; }
  .head-mob, .menu-panel { display: none; }
  .brand svg { width: 146px; }
}
@media (min-width: 1200px) and (max-width: 1320px) { .nav a { padding: 0 8px; font-size: 0.9rem; } .site-head__in { gap: 14px; } }
.site-head--bare .site-head__in { justify-content: space-between; min-height: 64px; }
.site-head--bare .head-tel { display: inline-flex; }
@media (max-width: 899px) { .site-head--bare .head-tel span { display: none; } .site-head--bare .head-tel { width: 48px; height: 48px; justify-content: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-d2); } }

/* ---------- Sections ---------- */
section { padding-block: var(--section); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4.5vw, 72px); max-width: 880px; }
.sec-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
@media (min-width: 1100px) { .sec-indent { padding-left: 8.33%; } }
.stack { display: grid; gap: 22px; align-content: start; }
.stack-s { display: grid; gap: 12px; align-content: start; }
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: 1.15fr 0.85fr; } .split--flip > :first-child { order: 2; } }

/* Cards: clean, 1px line, 18px radius. No plate screws. */
.plate { position: relative; background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-l); box-shadow: var(--shadow); color: var(--ink); }
.on-night .plate:not(.qf) { background: var(--night-2); border-color: var(--line-d); box-shadow: none; color: #fff; }
.plate__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px 0; }
.plate__mark { display: inline-flex; align-items: center; gap: 8px; }
.plate__mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.plate__body { padding: 20px 28px 28px; }
@media (max-width: 520px) { .plate__head { padding: 16px 20px 0; } .plate__body { padding: 16px 20px 22px; } }

/* Spec sheet rows (dl) */
.fields { display: grid; margin: 0; }
.fields > div { display: grid; grid-template-columns: minmax(104px, 34%) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-l); align-items: baseline; }
.fields > div:first-child { border-top: 0; }
.on-night .fields > div { border-top-color: var(--line-d); }
.fields dt { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel); }
.on-night .fields dt { color: var(--mist); }
.fields dd { margin: 0; font-weight: 650; font-size: 1.0625rem; line-height: 1.4; }
.on-night .fields dd { color: #fff; }

/* Placeholder (content still to come from Orbem; removed in --live builds) */
.ph { display: grid; gap: 6px; padding: 16px 18px; border: 1.5px dashed #b98000; border-radius: var(--r-m); background: rgba(255, 164, 27, 0.1); color: #4d3800; font-size: 0.95rem; line-height: 1.45; }
.ph strong { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
.on-night .ph { color: #ffe0ad; border-color: var(--amber); background: rgba(255, 164, 27, 0.08); }

/* ---------- Photos ---------- */
.ph-frame { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--navy); }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform 700ms var(--ease-out), filter 600ms ease; }
.ph-frame.is-in img, a:hover .ph-frame img, .ph-frame:hover img { filter: saturate(1.55) contrast(1.02); }
a:hover .ph-frame img, a.ph-frame:hover img { transform: scale(1.05); }
.fig { margin: 0; display: grid; gap: 10px; }
.fig figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--steel); }
.on-night .fig figcaption { color: var(--mist); }
.fig .ph-frame { width: 100%; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: clamp(48px, 7vw, 112px) clamp(56px, 7vw, 112px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.9rem, 1.3rem + 5vw, 5.6rem); }
.hero__grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.hero__copy { display: grid; gap: 24px; align-content: start; }
.hero__photo { aspect-ratio: 16 / 10; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.8rem; color: var(--mist); }
.crumbs a { color: inherit !important; text-decoration: none; }
.crumbs a:hover { color: #fff !important; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
@media (max-width: 560px) { .hero__copy .actions .btn { width: 100%; } }

/* Full-bleed photo hero (home, case studies) */
.xhero { position: relative; isolation: isolate; background: var(--night); color: #fff; overflow: hidden; padding-block: clamp(40px, 6vw, 96px) clamp(48px, 6vw, 96px); }
.xhero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.xhero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.06); }
.xhero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(6, 26, 61, 0.96) 0%, rgba(6, 26, 61, 0.82) 34%, rgba(6, 26, 61, 0.35) 70%, rgba(6, 26, 61, 0.55) 100%),
  linear-gradient(180deg, rgba(6, 26, 61, 0.2) 0%, rgba(6, 26, 61, 0) 40%, rgba(6, 26, 61, 0.85) 100%); }
.grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay; background-image: url("../img/grain.webp"); }
.glow { position: absolute; z-index: -1; width: var(--s, 320px); height: var(--s, 320px); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 140, 40, 0.55) 0%, rgba(255, 107, 44, 0.22) 38%, rgba(255, 107, 44, 0) 70%); mix-blend-mode: screen; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: no-preference) {
  .glow { animation: breathe 6.5s ease-in-out infinite alternate; }
  .glow:nth-of-type(2) { animation-delay: -2.2s; animation-duration: 7.5s; }
  .glow:nth-of-type(3) { animation-delay: -4.4s; animation-duration: 8.5s; }
  .xhero__bg img { animation: settle 1600ms var(--ease-out) both; }
}
@keyframes breathe { from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1.06); } }
.xhero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .xhero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } .xhero { min-height: min(calc(100svh - 72px), 980px); display: grid; align-items: center; } }
.xhero__copy { display: grid; gap: 26px; align-content: start; max-width: 760px; }
.xhero h1 { font-size: clamp(3.2rem, 1.2rem + 6.8vw, 7.5rem); }
.xhero .lead { color: #d0d9e3; }
.xhero .eyebrow, .qpage .eyebrow { color: #d0d9e3; }
@media (max-width: 560px) { .xhero .eyebrow { font-size: 0.7rem; } }
@media (max-width: 999px) {
  .xhero { padding-top: 0; }
  .xhero__bg { inset: 0 0 auto 0; height: min(70svh, 640px); }
  .xhero__bg::after { background: linear-gradient(180deg, rgba(6, 26, 61, 0.25) 0%, rgba(6, 26, 61, 0.55) 45%, var(--night) 100%); }
  .xhero__copy { padding-top: min(34svh, 300px); }
  .xhero .glow { display: none; }
}

/* Masked line-by-line headline reveal */
.lines > span { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.lines > span > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .lines > span > span { animation: line-up 900ms var(--ease-out) both; }
  .lines > span:nth-child(2) > span { animation-delay: 90ms; }
  .lines > span:nth-child(3) > span { animation-delay: 180ms; }
  .lines > span:nth-child(4) > span { animation-delay: 270ms; }
  [data-enter] > * { animation: rise 760ms var(--ease-out) both; }
  [data-enter] > *:nth-child(2) { animation-delay: 120ms; }
  [data-enter] > *:nth-child(3) { animation-delay: 200ms; }
  [data-enter] > *:nth-child(4) { animation-delay: 280ms; }
  [data-enter] > *:nth-child(5) { animation-delay: 360ms; }
  [data-enter] > *:nth-child(6) { animation-delay: 440ms; }
  [data-enter-plate] { animation: plate-rise 900ms var(--ease-out) 200ms both; }
}
@keyframes plate-rise { from { transform: translateY(36px); } to { transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Proof numbers */

/* Ticker of project names */
.ticker { background: var(--night); color: var(--mist); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); overflow: hidden; padding: 0; }
.ticker[hidden] { display: none; }
.ticker__track { display: flex; width: max-content; gap: 0; font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.ticker__track span { padding: 16px 28px; display: inline-flex; align-items: center; gap: 28px; }
.ticker__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
@media (prefers-reduced-motion: no-preference) { .ticker__track { animation: tick 48s linear infinite; } }
@keyframes tick { to { transform: translateX(-50%); } }

/* Photo band with one statement */
.band { position: relative; isolation: isolate; min-height: clamp(420px, 70vh, 720px); display: grid; align-items: end; color: #fff; overflow: hidden; padding-block: clamp(56px, 8vw, 120px); }
.band__bg { position: absolute; inset: 0; z-index: -1; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 61, 0.15) 0%, rgba(6, 26, 61, 0.85) 100%); }
.band blockquote, .band .statement { margin: 0; max-width: 18ch; font-weight: 800; font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6.4rem); line-height: 0.9; letter-spacing: -0.02em; }

/* Big number band */
.numbers { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line-d2); }
@media (min-width: 800px) { .numbers { grid-template-columns: repeat(3, 1fr); } }
.numbers > div { padding: 28px 0; border-bottom: 1px solid var(--line-d); display: grid; gap: 10px; }
@media (min-width: 800px) { .numbers > div { padding: 28px 28px 8px 0; border-bottom: 0; } .numbers > div + div { padding-left: 28px; border-left: 1px solid var(--line-d); } }
.numbers b { font-weight: 800; font-size: clamp(4rem, 2rem + 6vw, 8.5rem); line-height: 0.85; letter-spacing: -0.03em; color: #fff; }
.numbers b .u { font-size: 0.45em; color: var(--amber); }
.numbers p { max-width: 34ch; }

/* Project rail (scroll-snap) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 400px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((min(100vw, 1280px + 2 * var(--gutter)) - 2 * var(--gutter) - 36px) / 3); } }

/* Project cards (tall photo, caption, spec) */
.projects { display: grid; gap: 18px; }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.proj { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-l); overflow: hidden; transition: transform 260ms var(--ease-out), box-shadow 260ms ease; }
.on-night .proj { background: var(--night-2); border-color: var(--line-d); color: #fff; }
.proj__photo { margin: 0; position: relative; }
.proj__photo .ph-frame { border-radius: 0; aspect-ratio: 4 / 5; }
.proj__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(6, 26, 61, 0.78); color: #fff; font-family: var(--mono); font-size: 0.74rem; backdrop-filter: blur(6px); }
.proj__body { padding: 22px 24px 24px; display: grid; gap: 14px; align-content: start; }
.proj h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.proj .fields > div { grid-template-columns: 86px 1fr; padding: 10px 0; }
.proj .fields dd { font-size: 0.97rem; }
@media (hover: hover) and (pointer: fine) { .proj:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(6, 26, 61, 0.55); } .proj:hover .ph-frame img { transform: scale(1.05); filter: saturate(1.55); } }

/* Tall project cards on the ads page (no links) */
.pstrip { display: grid; gap: 16px; }
@media (min-width: 900px) { .pstrip { grid-template-columns: repeat(3, 1fr); } }
.pcard { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--navy); color: #fff; min-height: 420px; display: grid; align-items: end; isolation: isolate; }
.pcard figure { position: absolute; inset: 0; margin: 0; z-index: -1; }
.pcard .ph-frame { height: 100%; border-radius: 0; }
.pcard .ph-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 61, 0) 30%, rgba(6, 26, 61, 0.92) 100%); }
.pcard figcaption { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: rgba(6, 26, 61, 0.7); font-family: var(--mono); font-size: 0.72rem; }
.pcard__body { padding: 24px; display: grid; gap: 8px; }
.pcard h3 { font-size: 1.75rem; }
.pcard p { color: #d6dee8; font-size: 0.97rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) { .pcard:hover img { filter: saturate(1.55); transform: scale(1.05); } }
@media (max-width: 899px) { .pcard { min-height: 360px; } }

/* Tick lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-weight: 600; line-height: 1.45; }
.ticks svg { width: 22px; height: 22px; color: #004aad; margin-top: 1px; }
.on-night .ticks svg { color: var(--amber); }
.on-night .ticks li { color: #e6ecf3; }

/* Problem rows */
.rows { display: grid; border-top: 1px solid var(--ink); }
.rows > div { display: grid; gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line-l2); }
@media (min-width: 800px) { .rows > div { grid-template-columns: minmax(260px, 0.85fr) 1.15fr; align-items: baseline; } }
.rows h3 { font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.2rem); }
.rows p { color: var(--steel); max-width: 60ch; }
.on-night .rows { border-top-color: rgba(255, 255, 255, 0.5); }
.on-night .rows > div { border-bottom-color: var(--line-d); }

/* Buildings */
.buildings { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .buildings { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .buildings { grid-template-columns: repeat(3, 1fr); } }
.buildings > div { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--r-l); border: 1px solid var(--line-l); background: var(--card); font-weight: 700; font-size: 1.125rem; line-height: 1.25; min-height: 84px; }
.on-night .buildings > div { background: var(--night-2); border-color: var(--line-d); }
.buildings svg { width: 36px; height: 36px; flex: none; }

/* Duotone icons */
.ic .fill { fill: var(--amber); opacity: 0.28; }
.ic .stroke { stroke: currentColor; }
.ic--blue .fill { fill: var(--signal); }

/* Timeline: Survey, Engineer, Deliver, Support */
.timeline { position: relative; display: grid; gap: 0; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line-l2); }
.timeline::after { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--amber), var(--ember)); transform-origin: top; transform: scaleY(var(--tl, 1)); }
.on-night .timeline::before { background: var(--line-d2); }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 22px; padding: 0 0 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .n { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--amber); border: 2px solid var(--amber); font-family: var(--mono); font-size: 0.85rem; }
.timeline h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); margin-top: 2px; }
.timeline p { margin-top: 8px; color: var(--steel); max-width: 56ch; }
.on-night .timeline p { color: var(--mist); }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .timeline::before, .timeline::after { left: 20px; right: 20px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { transform-origin: left; transform: scaleX(var(--tl, 1)); }
  .timeline li { grid-template-columns: 1fr; gap: 20px; padding: 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline::after { animation: tl-draw linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
}
@keyframes tl-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (min-width: 1000px) { @keyframes tl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } } }

/* Legacy step cards (inner pages): restyled as clean numbered cards */
.method { display: grid; gap: 14px; }
@media (min-width: 720px) { .method { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .method { grid-template-columns: repeat(4, 1fr); } }
.method .plate { padding: 26px 26px 28px; display: grid; gap: 12px; align-content: start; box-shadow: none; }
.method .plate .label { color: var(--amber); }
.on-night .method .plate .label, .method .plate .label { color: #004aad; }
.on-night .method .plate .label { color: var(--amber); }
.method h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
.method p { color: var(--steel); font-size: 1rem; }
.on-night .method p { color: var(--mist); }

/* Services */
.services { display: grid; gap: 18px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-l); overflow: hidden; transition: transform 260ms var(--ease-out), box-shadow 260ms ease; }
.on-night .svc { background: var(--night-2); border-color: var(--line-d); }
.svc .ph-frame { border-radius: 0; aspect-ratio: 4 / 3; }
.svc__body { display: grid; gap: 10px; padding: 22px 24px 24px; align-content: start; }
.svc h3 { font-size: clamp(1.7rem, 1.35rem + 1vw, 2.2rem); }
.svc p { color: var(--steel); font-size: 1rem; }
.on-night .svc p { color: var(--mist); }
@media (hover: hover) and (pointer: fine) { .svc:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(6, 26, 61, 0.5); } }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.on-night .faq { border-top-color: rgba(255, 255, 255, 0.5); }
.faq details { border-bottom: 1px solid var(--line-l2); }
.on-night .faq details { border-bottom-color: var(--line-d); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 64px; padding: 16px 0; font-weight: 750; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--amber); transition: transform 240ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 22px; max-width: 64ch; color: var(--steel); }
.on-night .faq .faq__a { color: var(--mist); }

/* Trust and accreditations */
.trust { display: grid; gap: 0; border-top: 1px solid var(--line-l2); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust > div { display: grid; gap: 4px; padding: 18px 20px 18px 0; }
@media (min-width: 900px) { .trust > div + div { padding-left: 20px; border-left: 1px solid var(--line-l); } }
.trust b { font-weight: 800; font-size: 1.5rem; line-height: 1.05; }
.trust span { color: var(--steel); font-size: 0.95rem; line-height: 1.4; }
.on-night .trust { border-top-color: var(--line-d2); }
.on-night .trust > div + div { border-left-color: var(--line-d); }
.on-night .trust span { color: var(--mist); }
.split .trust { grid-template-columns: 1fr; }
.split .trust > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-l); }
.acc[hidden] { display: none !important; }
.acc { display: grid; gap: 12px; }
.acc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.acc__list li { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-l); }
.acc__list img { height: 32px; width: auto; }

/* Map */
.map { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--night-2); border: 1px solid var(--line-d); }
.map svg { width: 100%; height: auto; }

/* Team */
.team { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.person { display: grid; gap: 14px; align-content: start; }
.person .ph-frame { aspect-ratio: 1; }
.person .ph-frame img { filter: saturate(0.85); }
.person h3 { font-size: 1.7rem; }
.person p { color: var(--steel); font-size: 0.98rem; }

/* Close (final call to action) */
.close { position: relative; overflow: hidden; }
.close__grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (min-width: 1000px) { .close__grid { grid-template-columns: 0.95fr 1.05fr; } }
.close__phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); color: #fff !important; text-decoration: none; min-height: 48px; }
.close__phone svg { width: 0.9em; height: 0.9em; color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .close__phone:hover { color: var(--amber) !important; } }

/* Prose pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.4rem); margin: 1.8em 0 0.5em; }
.prose h3 { margin: 1.5em 0 0.5em; }
.prose p, .prose li { color: var(--steel); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: #fff; padding-block: clamp(72px, 9vw, 140px) 28px; }
.site-foot a:not(.btn) { color: #fff; text-decoration: none; }
.site-foot a:not(.btn):hover { color: var(--amber); }
.foot-big { display: grid; gap: 24px; padding-bottom: clamp(48px, 6vw, 88px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-d); }
@media (min-width: 1000px) { .foot-big { grid-template-columns: 1.4fr 0.6fr; align-items: end; } }
.foot-big p.big { margin: 0; font-weight: 800; font-size: clamp(2.8rem, 1.4rem + 5vw, 6.2rem); line-height: 0.9; letter-spacing: -0.02em; color: #fff; }
.foot-big .actions { justify-content: flex-start; }
@media (min-width: 1000px) { .foot-big .actions { justify-content: flex-end; } }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid > div:first-child { grid-column: auto; } }
.foot-grid h2 { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
.foot-brand svg { width: 160px; color: #fff; }
.foot-brand svg path[fill="#004AAD"] { fill: var(--signal); }
.foot-brand p { color: var(--mist); margin-top: 16px; max-width: 34ch; font-size: 0.98rem; }
.foot-tel { font-family: var(--mono); font-size: 1.25rem; }
.foot-addr { color: var(--mist); font-style: normal; font-size: 0.95rem; line-height: 1.55; }
.foot-addr b { color: #fff; font-weight: 700; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-d); color: var(--mist); font-size: 0.875rem; }
.foot-base a { color: var(--mist) !important; }
.foot-base button { background: none; border: 0; padding: 0; font: inherit; color: var(--mist); text-decoration: underline; cursor: pointer; min-height: 40px; }
.site-foot--bare { padding-block: 18px; }
.site-foot--bare .foot-base { margin-top: 0; border-top: 0; padding-top: 0; font-size: 0.82rem; }

/* ---------- Phone call bar / pill ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 26, 61, 0.94); backdrop-filter: blur(10px); transition: transform 260ms var(--ease-out), opacity 200ms ease; }
.callbar .btn { flex: 1; min-height: 50px; font-size: 1rem; box-shadow: none; }
.callbar.is-hidden { transform: translateY(115%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .callbar { display: none; } }
@media (max-width: 899px) { body.has-callbar { padding-bottom: 74px; } }
.callpill { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 35; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--amber); color: var(--night); font-weight: 750; font-size: 1rem; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5); transition: transform 280ms var(--ease-out), opacity 200ms ease; }
.callpill svg { width: 20px; height: 20px; }
.callpill .mono { font-size: 0.95rem; }
@media (max-width: 430px) { .callpill { font-size: 0.9rem; gap: 8px; padding: 0 16px; max-width: calc(100vw - 24px); } .callpill .mono { font-size: 0.85rem; } }
.callpill.is-hidden { opacity: 0; transform: translate(-50%, 140%); pointer-events: none; }
@media (min-width: 900px) { .callpill { display: none; } }

/* ---------- Cookie banner ---------- */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 540px; margin-left: auto; display: none; gap: 14px; padding: 18px 20px; border-radius: var(--r-l); background: var(--night-2); color: #fff; border: 1px solid var(--line-d2); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6); font-size: 0.95rem; line-height: 1.45; }
.consent p { color: var(--mist); }
.consent .textlink { color: #fff; }
.consent.is-on { display: grid; }
@media (prefers-reduced-motion: no-preference) { .consent.is-on { animation: rise 320ms var(--ease-out) both; } }
.consent .actions .btn { min-height: 46px; flex: 1; font-size: 0.97rem; box-shadow: none; }
.consent .btn--line { --fg: #fff; box-shadow: inset 0 0 0 1.5px var(--line-d2); }
@media (max-width: 899px) { body.has-callbar .consent { bottom: 86px; } }

/* ---------- Quote form (paper card) ---------- */
.on-night .qf p, .on-night .starter__plate p, .on-night .qf .qf__hint { color: var(--steel); }
.on-night .qf .qf__saved { color: var(--ok); }
.on-night .qf .qf__fail { color: #6d1209; }
.on-night .qf a:not(.btn), .on-night .starter__plate a:not(.btn) { color: var(--blue); }
.on-night .qf .err { color: var(--err); }
.on-night .qf .note { color: #4d3800; }
.qf { position: relative; z-index: 2; max-width: 620px; width: 100%; background: var(--paper) !important; color: var(--ink) !important; border: 1px solid rgba(255, 255, 255, 0.5) !important; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65) !important; }
.qf .plate__head .label { color: var(--steel) !important; }
.qf__segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 28px 0; }
.qf__segs i { position: relative; height: 4px; border-radius: 4px; background: var(--concrete); overflow: hidden; }
.qf__segs i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--amber), var(--ember)); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.qf__segs i.is-done::after { transform: scaleX(1); }
@media (max-width: 520px) { .qf__segs { margin: 12px 20px 0; } }
.qf__step { display: none; }
.qf__step.is-active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .qf__step.is-active { animation: step-in 280ms var(--ease-out) both; }
  .qf__step.is-active.is-back { animation-name: step-back; }
}
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes step-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.qf fieldset, .starter fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qf legend, .qf__q { display: block; padding: 0; margin: 0 0 6px; font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.3rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.015em; color: var(--ink); }
.qf__hint { margin: 0 0 18px; color: var(--steel); font-size: 0.97rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices--5 > label:last-child { grid-column: 1 / -1; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.choice__face { display: flex; flex-direction: column; gap: 10px; min-height: 104px; padding: 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line-l); color: var(--ink); font-weight: 750; line-height: 1.2; transition: border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out), box-shadow 180ms ease; }
.choice__face svg { width: 32px; height: 32px; }
.choice__face small { display: block; font-weight: 500; color: var(--steel); font-size: 0.875rem; margin-top: 3px; line-height: 1.3; }
.choices--row .choice__face { min-height: 54px; flex-direction: row; align-items: center; justify-content: center; text-align: center; }
.choices--row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .choices--row { grid-template-columns: 1fr; } }
.choice:active .choice__face { transform: scale(0.97); background: #fff7ea; }
@media (hover: hover) and (pointer: fine) { .choice:hover .choice__face { border-color: var(--ink); } }
.choice input:checked + .choice__face { border-color: var(--amber); background: #fff7ea; box-shadow: inset 0 0 0 1.5px var(--amber), 0 8px 20px -12px rgba(255, 164, 27, 0.8); }
.choice input:focus-visible + .choice__face { outline: 2px solid var(--blue); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; border: 0; padding: 0; }
.field label, .field legend.label { font-weight: 700; font-size: 0.97rem; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--steel); }
.input { width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-l2); background: #fff; color: var(--ink); font: inherit; font-size: 1.0625rem; font-weight: 600; caret-color: var(--blue); transition: border-color 160ms ease, box-shadow 160ms ease; }
textarea.input { min-height: 96px; resize: vertical; font-weight: 500; }
.input::placeholder { color: #6b7480; font-weight: 500; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.18); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input--pc { text-transform: uppercase; max-width: 220px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
.input--pc::placeholder { text-transform: none; }
.err { display: none; color: var(--err); font-size: 0.9rem; font-weight: 650; }
.err.is-on { display: block; }
.note { display: none; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: #fff1d6; color: #4d3800; font-size: 0.95rem; line-height: 1.45; }
.note.is-on { display: block; }
.qf__nav { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.qf__nav .btn { flex: 1; box-shadow: none; }
.qf__back { flex: none !important; min-width: 54px; padding: 0 16px; --fg: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line-l2) !important; }
.qf__back svg { transform: rotate(180deg); }
.qf__legal { margin-top: 14px; font-size: 0.85rem; color: var(--steel); line-height: 1.45; }
.qf__legal a { color: var(--blue); }
.qf__saved { display: none; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.9rem; color: var(--ok); font-weight: 650; }
.qf__saved.is-on { display: flex; }
.qf__saved svg { width: 16px; height: 16px; }
.qf__fail { display: none; margin-top: 14px; padding: 14px; border-radius: 12px; background: #fde9e7; color: #6d1209; font-weight: 600; font-size: 0.95rem; }
.qf__fail.is-on { display: block; }
.qf__fail a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qf__jim { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; margin: 0; padding: 14px 28px 18px; border-top: 1px solid var(--line-l); font-size: 0.88rem; line-height: 1.4; color: var(--steel); }
.qf__jim img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.qf__jim b { color: var(--ink); }
@media (max-width: 520px) { .qf__jim { padding: 12px 20px 16px; } }

/* Answers so far: only shown once something is filled */
.jobplate { margin: 0; padding: 12px 28px 4px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line-l); }
.jobplate[hidden] { display: none; }
.jobplate > div { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-l); }
.jobplate > div[hidden] { display: none; }
.jobplate dt { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel); }
.jobplate dd { margin: 0; font-weight: 700; font-size: 0.85rem; transition: background-color 1200ms ease; border-radius: 4px; }
.jobplate dd.is-new { background-color: #ffe2b0; transition: none; }
@media (max-width: 520px) { .jobplate { padding: 10px 20px 2px; } }

/* Step one tiles high on service pages */
.starter { padding-block: clamp(48px, 6vw, 88px); }
.starter__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .starter__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.starter__plate { max-width: 620px; width: 100%; background: var(--paper) !important; color: var(--ink) !important; border-color: transparent !important; }
.starter legend { margin-bottom: 16px; }
.starter .qf__nav .btn { flex: 1; box-shadow: none; }

/* ---------- Ads page ---------- */
.qpage { position: relative; isolation: isolate; overflow: hidden; padding-block: 18px clamp(48px, 6vw, 88px); }
.qpage .xhero__bg::after { background: linear-gradient(180deg, rgba(6, 26, 61, 0.86) 0%, rgba(6, 26, 61, 0.94) 60%, var(--night) 100%); }
.qpage__grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1000px) { .qpage { padding-top: clamp(40px, 5vw, 72px); } .qpage__grid { grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; } }
.qpage h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 5.4rem); }
.qpage__copy { display: grid; gap: 18px; }
.qticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-weight: 650; color: #e6ecf3; line-height: 1.4; }
.qticks svg { width: 20px; height: 20px; color: var(--amber); margin-top: 1px; }
.qtalk { font-family: var(--mono); font-size: 0.95rem; color: var(--mist); }
.qtalk a { color: var(--amber) !important; text-decoration: none; }
@media (max-width: 999px) {
  .qpage h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 2.6rem); }
  .qpage__copy { gap: 10px; }
  .qticks { gap: 4px; }
  .qticks li { font-size: 0.93rem; }
  .qticks li:nth-child(3), .qtalk { display: none; }
}
.qtrust { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- Thank you ---------- */
.tick { width: 72px; height: 72px; }
.tick circle { fill: none; stroke: rgba(255, 164, 27, 0.25); stroke-width: 3; }
.tick path { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .tick path { animation: draw 700ms var(--ease-out) 250ms both; } }
@keyframes draw { from { stroke-dashoffset: 48; } }
.next { display: grid; gap: 16px; }
@media (min-width: 900px) { .next { grid-template-columns: repeat(3, 1fr); } }
.next .plate { padding: 26px; display: grid; gap: 10px; align-content: start; box-shadow: none; }
.next h3 { font-size: 1.9rem; }
.next p { color: var(--steel); font-size: 1rem; }

/* ---------- Diagrams ---------- */
.diagram { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-d); background: var(--night-2); }
.diagram svg { width: 100%; height: auto; }
.dtoggle { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-d2); gap: 4px; }
.dtoggle button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--mist); font: inherit; font-family: var(--mono); font-size: 0.85rem; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.dtoggle button[aria-pressed="true"] { background: var(--amber); color: var(--night); }
.ac-scene .ac-with { opacity: 0; transition: opacity 400ms ease; }
.ac-scene .ac-without { opacity: 1; transition: opacity 400ms ease; }
.ac-scene.is-with .ac-with { opacity: 1; }
.ac-scene.is-with .ac-without { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .flow { animation: flow 1.1s linear infinite; }
  .rise-flow { animation: flow 1.6s linear infinite; }
}
@keyframes flow { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* Who you will deal with (ads page, phones) */
.dealer { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line-l); max-width: 560px; }
.dealer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.dealer p { font-size: 0.95rem; line-height: 1.45; color: var(--steel); }
.dealer b { display: block; color: var(--ink); font-weight: 750; margin-bottom: 2px; }

/* ---------- Scroll reveals ---------- */
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
html.io-reveal [data-reveal], html.io-reveal [data-reveal-group] > * { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
html.io-reveal .is-in[data-reveal], html.io-reveal [data-reveal-group].is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .ticker { display: none !important; }
}

/* Case study hero: photo kept within its native width on the right */
@media (min-width: 1000px) {
  .xhero--case { min-height: 0; padding-block: 96px 112px; }
  .xhero--case .xhero__bg { left: auto; width: min(62%, 1080px); }
  .xhero--case .xhero__bg::after { background: linear-gradient(90deg, var(--night) 0%, rgba(6, 26, 61, 0.55) 35%, rgba(6, 26, 61, 0.15) 70%, rgba(6, 26, 61, 0.4) 100%); }
}
.xhero--case h1 { font-size: clamp(2.9rem, 1.3rem + 5vw, 5.8rem); max-width: 12ch; }
.bignum { display: grid; gap: 6px; margin: 0; }
.bignum > span:first-child { font-weight: 800; font-size: clamp(4.4rem, 2rem + 7vw, 9rem); line-height: 0.85; letter-spacing: -0.03em; }
.bignum small { font-size: 0.4em; color: #004aad; margin-left: 4px; }
.bignum .amber { color: #004aad; }
.spec .fields dd { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; }

/* ==========================================================================
   Motion layer (round 4 extra). Transform and opacity, plus clip-path for the
   photo wipes. Everything below is off under prefers-reduced-motion.
   ========================================================================== */

/* Amber scroll progress */
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--amber), var(--ember)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) { .scrollbar { animation: grow linear both; animation-timeline: scroll(root); } }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Header shrinks on scroll (transform only) */
.site-head { transition: transform 320ms var(--ease-out), background-color 320ms ease, box-shadow 320ms ease; }
.site-head .site-head__in { transition: transform 320ms var(--ease-out); }
.site-head .brand svg { transition: transform 320ms var(--ease-out); transform-origin: left center; }
.site-head.is-scrolled { transform: translateY(-8px); background: rgba(6, 26, 61, 0.94); box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.7); }
.site-head.is-scrolled .site-head__in { transform: translateY(4px); }
.site-head.is-scrolled .brand svg { transform: scale(0.9); }

/* Links: underline wipes in */
.textlink { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat, linear-gradient(var(--amber), var(--amber)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: background-size 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink:hover { background-size: 100% 2px, 100% 2px; } }
.arrowlink span { background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .arrowlink:hover span, a:hover .arrowlink span { background-size: 100% 2px; } }

/* Buttons: magnetic pull plus a soft amber halo */
.btn { transform: translate(var(--mx, 0px), var(--my, 0px)); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); } }
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); }
.btn:not(.btn--line) { position: relative; isolation: isolate; }
.btn:not(.btn--line)::after { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: inherit; background: radial-gradient(closest-side, rgba(255, 164, 27, 0.55), rgba(255, 164, 27, 0)); opacity: 0; transition: opacity 300ms ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .btn:not(.btn--line):hover::after { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .xhero .btn:not(.btn--line)::after, .close .btn:not(.btn--line)::after, .foot-big .btn:not(.btn--line)::after, .callpill::after { animation: halo 2.8s ease-in-out infinite; }
}
@keyframes halo { 0%, 100% { opacity: 0.15; transform: scale(0.96); } 50% { opacity: 0.85; transform: scale(1.06); } }
.callpill { isolation: isolate; }
.callpill::after { content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit; background: radial-gradient(closest-side, rgba(255, 164, 27, 0.55), rgba(255, 164, 27, 0)); opacity: 0; pointer-events: none; }

/* Card tilt with a heat glow that follows the pointer */
.tilt { transform-style: preserve-3d; position: relative; }
@media (hover: hover) and (pointer: fine) {
  .tilt { transition: transform 320ms var(--ease-out), box-shadow 320ms ease; }
  .tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
  .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 164, 27, 0.16), transparent 45%); opacity: 0; transition: opacity 300ms ease; }
  .tilt:hover::after { opacity: 1; }
}

/* Icons come alive on hover */
@media (hover: hover) and (pointer: fine) {
  .ic { transition: transform 360ms var(--ease-out); }
  .ic .fill { transition: opacity 360ms ease; }
  .choice:hover .ic, .buildings > div:hover .ic { transform: translateY(-2px) rotate(-6deg) scale(1.08); }
  .choice:hover .ic .fill, .buildings > div:hover .ic .fill { opacity: 0.55; }
}

/* Quote tiles pop and tick when chosen */
.choice__face { position: relative; }
.choice__face::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a1422' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; opacity: 0; transform: scale(0.4); transition: opacity 200ms ease, transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.choice input:checked + .choice__face::after { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: no-preference) { .choice input:checked + .choice__face { animation: pop 380ms cubic-bezier(0.34, 1.56, 0.64, 1); } }
@keyframes pop { 0% { transform: scale(0.97); } 55% { transform: scale(1.035); } 100% { transform: scale(1); } }
.choices--row .choice__face::after { top: 50%; margin-top: -11px; }

/* Home hero: slow Ken Burns, heat shimmer rings at the heater positions */
@media (prefers-reduced-motion: no-preference) {
  .xhero:not(.xhero--case) .xhero__bg { animation: kenburns 28s ease-in-out 1.6s infinite alternate; }
  .glow::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid rgba(255, 164, 27, 0.35); animation: shimmer 3.6s ease-out infinite; }
  .glow:nth-of-type(2)::after { animation-delay: -1.2s; }
  .glow:nth-of-type(3)::after { animation-delay: -2.4s; }
}
@keyframes kenburns { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.5%, -1%, 0); } }
@keyframes shimmer { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.6); } }

/* Warm-air haze canvas */
.haze { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
[data-ambient] { position: relative; isolation: isolate; }
[data-ambient] > .wrap { position: relative; z-index: 1; }

/* Photo reveal wipes as they enter view */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* (the photo wipe is applied to the inner img; see round 6f) */
  }
}
@keyframes wipe { from { clip-path: inset(0 0 100% 0 round var(--r-l)); } to { clip-path: inset(0 0 0 0 round var(--r-l)); } }
/* The clip lives on the inner img, never on .wipe itself: a fully clipped .wipe has an empty
   box, so an IntersectionObserver watching it would never see it and the photo stays blank. */
html.io-reveal .wipe img { clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-out); }
html.io-reveal .wipe.is-in img { clip-path: inset(0 0 0 0); }
.band__bg img, .proj__photo img { will-change: transform; }

/* Timeline: each step lights up in turn */
.timeline .n { transition: background-color 400ms ease, color 400ms ease, box-shadow 600ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.timeline li.is-lit .n { background: var(--amber); color: var(--night); box-shadow: 0 0 0 6px rgba(255, 164, 27, 0.18), 0 0 28px rgba(255, 164, 27, 0.55); transform: scale(1.08); }
.timeline li h3, .timeline li p { transition: opacity 500ms ease, transform 600ms var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .timeline.is-drawing::after { transition: transform 1700ms var(--ease-in-out); }
}
html.io-reveal .timeline::after { transform: scaleY(0); transition: transform 1700ms var(--ease-in-out); }
@media (min-width: 1000px) { html.io-reveal .timeline::after { transform: scaleX(0); } }
html.io-reveal .timeline.is-drawing::after { transform: none; }

/* Drifting project strip */
.rail.is-drifting { scroll-snap-type: none; scrollbar-width: none; }
.rail.is-drifting::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .rail[data-drift] { grid-auto-columns: 380px; } }

/* Air curtain diagram: particles riding the airflow */
@media (prefers-reduced-motion: no-preference) {
  .ac-dot { animation: var(--anim) var(--dur, 3s) linear infinite; animation-delay: var(--delay, 0s); }
}
@keyframes ac-out { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(460px, -30px); opacity: 0; } }
@keyframes ac-in { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(-520px, -14px); opacity: 0; } }
@keyframes ac-down { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translate(0, 250px); opacity: 0; } }
@keyframes ac-back { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(110px, 18px); } 85% { opacity: 1; } 100% { transform: translate(10px, 40px); opacity: 0; } }
@keyframes ac-bounce { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(-170px, 10px); } 85% { opacity: 1; } 100% { transform: translate(-10px, 40px); opacity: 0; } }
.ac-scene[data-playing] .dtoggle-hint { opacity: 1; }

/* Thank-you: success burst */
.tickwrap { position: relative; width: 72px; height: 72px; }
.tickwrap .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tickwrap .ring { animation: burst 1.4s var(--ease-out) 0.7s both; }
  .tickwrap .ring + .ring { animation-delay: 0.9s; }
  .tickwrap .spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--amber); opacity: 0; animation: spark 900ms var(--ease-out) 0.75s both; }
}
@keyframes burst { 0% { opacity: 0.9; transform: scale(0.8); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(10px); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(58px); } }

/* Staggered reveals: index children automatically */
[data-reveal-group] > :nth-child(1) { --i: 0; } [data-reveal-group] > :nth-child(2) { --i: 1; } [data-reveal-group] > :nth-child(3) { --i: 2; }
[data-reveal-group] > :nth-child(4) { --i: 3; } [data-reveal-group] > :nth-child(5) { --i: 4; } [data-reveal-group] > :nth-child(6) { --i: 5; }
[data-reveal-group] > :nth-child(7) { --i: 6; } [data-reveal-group] > :nth-child(8) { --i: 7; }

@media (prefers-reduced-motion: reduce) {
  .haze, .scrollbar { display: none !important; }
  .tilt:hover { transform: none !important; }
  .btn { transform: none !important; }
}

/* ==========================================================================
   Mobile pass
   ========================================================================== */
.hide-s { display: inline; }
@media (max-width: 560px) { .hide-s { display: none; } }

/* Burger that turns into a cross */
.burger { position: relative; width: 22px; height: 16px; display: block; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 7px; } .burger i:nth-child(3) { top: 14px; }
[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu */
.menu-panel { inset: 0; padding: calc(84px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 24px; background: radial-gradient(120% 60% at 100% 0%, rgba(255, 107, 44, 0.14), transparent 60%), var(--night); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { border-top: 1px solid var(--line-d); opacity: 0; transform: translateY(14px); transition: opacity 280ms var(--ease-out), transform 380ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.menu-panel.is-open .menu-list li { opacity: 1; transform: none; }
.menu-list a { display: grid !important; grid-template-columns: 34px 1fr 22px; align-items: center; min-height: 58px !important; gap: 8px; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2rem) !important; font-weight: 800; color: #fff; text-decoration: none; }
.menu-n { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--mist); letter-spacing: 0.04em; }
.menu-list a[aria-current="page"] { color: var(--amber); }
.menu-list a[aria-current="page"] .menu-n { color: var(--amber); }
.menu-list a[aria-current="page"] .menu-l::after { content: " ·"; color: var(--amber); }
.menu-foot { margin-top: auto; display: grid; gap: 10px; }
.menu-foot .btn { width: 100%; margin: 0; }
.menu-foot .label { text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--mist); }
.menu-foot .label a { color: var(--signal); min-height: 44px; display: inline-flex; align-items: center; font-size: inherit; font-weight: 500; font-family: var(--mono); }
@media (max-height: 640px) { .menu-list a { min-height: 48px !important; font-size: 1.4rem !important; } }
body.menu-open .site-head { transform: none !important; background: var(--night); }

/* Hero on phones: CTAs and call visible without scrolling */
@media (max-width: 560px) {
  .xhero__copy { padding-top: min(24svh, 190px); gap: 18px; }
  .xhero .eyebrow { display: none; }
  .xhero h1 { font-size: clamp(2.7rem, 1.4rem + 6.4vw, 3.6rem); }
  .xhero .lead { font-size: 1.02rem; line-height: 1.5; }
  .xhero .stack { gap: 18px; }
  .hero__copy .actions, .page-hero .actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .hero__copy .actions .btn, .page-hero .actions .btn { width: auto; flex: 1 1 auto; min-width: 0; padding: 0 16px; font-size: 1rem; }
  .hero__copy .actions .btn--line, .page-hero .actions .btn--line { flex: 0 1 auto; }
  .page-hero { padding-block: 32px 56px; }
  .page-hero h1, .xhero--case h1 { font-size: clamp(2.5rem, 1.3rem + 6vw, 3.4rem); }
  .hero__copy { gap: 18px; }
  .xhero__bg img { object-position: 72% 50%; }
  .xhero--case .xhero__bg img { object-position: 50% 40%; }
  /* Home mobile: the <picture> source is already cropped to this frame, so centre it. */
  .xhero--home .xhero__bg img { object-position: 50% 50%; }
  section { padding-block: 72px; }
  .sec-head { margin-bottom: 32px; gap: 14px; }
  h2 { font-size: clamp(2.05rem, 1.2rem + 4.6vw, 2.6rem); }
  .lead { font-size: 1.06rem; }
  .rows h3 { font-size: 1.55rem; }
  .band { min-height: 380px; }
  .band .statement { font-size: clamp(2.3rem, 1.3rem + 5vw, 3rem); }
  .numbers b { font-size: clamp(3.6rem, 2rem + 8vw, 4.6rem); }
  .timeline li { gap: 16px; padding-bottom: 28px; }
  .timeline h3 { font-size: 1.9rem; }
  .foot-big p.big { font-size: clamp(2.5rem, 1.4rem + 5vw, 3.2rem); }
  .foot-big .actions .btn { flex: 1 1 auto; }
  .dtoggle { width: 100%; } .dtoggle button { flex: 1; }
  .pcard { min-height: 320px; }
}
@media (max-width: 380px) {
  .hero__copy .actions .btn, .page-hero .actions .btn { padding: 0 13px; font-size: 0.95rem; }
  .btn--tel { font-size: 0.9rem; }
  .choice__face { padding: 14px 12px; min-height: 96px; }
  .choice__face small { font-size: 0.82rem; }
}

/* Tap targets */
.foot-tel, .foot-grid a[href^="mailto:"], .textlink[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }

/* Sticky bottom action bar: safe areas, one tidy row */
.callbar { gap: 10px; padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)); border-top: 1px solid var(--line-d); }
.callbar .btn { min-height: 52px; }
.callbar .btn--line { flex: 0 0 auto; padding: 0 18px; }
body.menu-open .callbar, body.menu-open .callpill { opacity: 0; pointer-events: none; }

/* Form on phones: thumb-friendly, clear errors, no zoom on focus */
.input, select, textarea { font-size: max(16px, 1.0625rem); }
.input[aria-invalid="true"] { background: #fff6f5; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.err.is-on { display: flex; gap: 6px; align-items: flex-start; }
.err.is-on::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--err); color: #fff; font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
@media (max-width: 560px) {
  .qf__segs i { height: 5px; }
  .qf__nav { position: sticky; bottom: 0; z-index: 2; margin-inline: -4px; padding: 14px 4px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(245, 243, 239, 0), var(--paper) 35%); }
  .qf__nav .btn { min-height: 56px; }
  .choices { gap: 8px; }
  .qf legend, .qf__q { font-size: 1.75rem; }
}

.ac-caption { margin-top: 4px; font-size: 0.97rem; line-height: 1.45; color: var(--mist); min-height: 2.9em; }
.ac-caption b { color: #fff; }

.qf .field label.qf__q { font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.3rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.015em; color: var(--ink); }
@media (max-width: 560px) { .qf .field label.qf__q { font-size: 1.75rem; } }


/* ==========================================================================
   Round 5: premium motion. Split headlines, flowing thermal light, pinned
   storytelling, stacking cards, sideways gallery, marquee, highlight on read,
   thermal hover, heat ripple, page transitions and film grain.
   Compositor-friendly (transform, opacity, filter) wherever possible, and
   everything is off under prefers-reduced-motion.
   ========================================================================== */

/* ---- 1. Hero: split headline that rises and unblurs ---- */
.hsplit .w { display: inline-block; }
.hsplit .c { display: inline-block; }
@media (min-width: 1000px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hsplit:not(.hsplit-chars) > .w { animation: word-in 1000ms var(--ease-out) both; animation-delay: calc(80ms + var(--i) * 70ms); }
  .hsplit .c { animation: char-in 1000ms var(--ease-out) both; animation-delay: calc(60ms + var(--i) * 26ms); }
  .hsplit-chars > .wh { animation: heat-in 1300ms var(--ease-out) both; animation-delay: calc(60ms + var(--i) * 26ms); }
}
@keyframes word-in { from { opacity: 0.001; transform: translate3d(0, 0.5em, 0); filter: blur(10px); } }
@keyframes char-in { from { opacity: 0.001; transform: translate3d(0, 0.6em, 0) rotate(5deg); filter: blur(12px); } }
@keyframes heat-in { 0% { opacity: 0.001; transform: translate3d(0, 0.5em, 0) scale(0.94); filter: blur(14px) brightness(2); } 60% { filter: blur(0) brightness(1.5); } 100% { filter: none; } }
/* Phones and touch screens: whole words rise and fade (no blur), so the first screen stays fast */
@media (max-width: 999px) and (prefers-reduced-motion: no-preference), (hover: none) and (prefers-reduced-motion: no-preference) {
  .hsplit > .w { animation: word-rise 760ms var(--ease-out) both; animation-delay: calc(60ms + var(--wi, var(--i)) * 90ms); }
  .thermal { animation: none; }
}
@keyframes word-rise { from { opacity: 0.001; transform: translate3d(0, 0.4em, 0); } }

/* Thermal light that slowly flows behind the headline */
.page-hero { isolation: isolate; }
.thermal { position: absolute; inset: -25% -15% -15% -25%; z-index: -1; pointer-events: none; opacity: 0.7; mix-blend-mode: screen;
  background:
    radial-gradient(32% 38% at 24% 42%, rgba(255, 107, 44, 0.34), rgba(255, 107, 44, 0) 70%),
    radial-gradient(26% 30% at 44% 28%, rgba(255, 164, 27, 0.26), rgba(255, 164, 27, 0) 70%),
    radial-gradient(34% 40% at 36% 72%, rgba(190, 40, 70, 0.24), rgba(190, 40, 70, 0) 70%),
    radial-gradient(28% 34% at 12% 80%, rgba(110, 168, 255, 0.14), rgba(110, 168, 255, 0) 70%),
    radial-gradient(24% 28% at 70% 18%, rgba(255, 140, 60, 0.12), rgba(255, 140, 60, 0) 70%); }
@media (prefers-reduced-motion: no-preference) { .thermal { animation: thermal-flow 24s ease-in-out infinite alternate; } }
@keyframes thermal-flow {
  0% { transform: translate3d(-4%, 3%, 0) rotate(-4deg) scale(1); }
  35% { transform: translate3d(5%, -3%, 0) rotate(5deg) scale(1.12); }
  70% { transform: translate3d(9%, 4%, 0) rotate(-2deg) scale(1.04); }
  100% { transform: translate3d(1%, -5%, 0) rotate(7deg) scale(1.14); }
}
@media (max-width: 999px) { .thermal { mix-blend-mode: normal; opacity: 0.5; inset: 10% -30% -10% -30%; } }

/* Cursor-following warm spotlight (desktop; motion.js moves it) */
.spot { position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 600ms ease; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 170, 70, 0.26), rgba(255, 107, 44, 0.1) 45%, rgba(255, 107, 44, 0) 100%); will-change: transform; }
.spot.is-on { opacity: 1; }

/* Scroll cue */
.cue { display: none; }
@media (min-width: 1000px) {
  .on-night a.cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: #d0d9e3; text-decoration: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; min-height: 44px; }
  .cue i { position: relative; width: 22px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
  .cue i::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
  .cue i::after { content: ""; position: absolute; inset: -6px; border-radius: 16px; box-shadow: 0 0 0 1.5px rgba(255, 164, 27, 0.6); opacity: 0; }
  .on-night a.cue:hover { color: #fff; }
  @media (prefers-reduced-motion: no-preference) {
    .cue { animation: rise 900ms var(--ease-out) 1400ms both; }
    .cue i::before { animation: cue-dot 1.8s var(--ease-in-out) infinite; }
    .cue i::after { animation: cue-pulse 1.8s ease-out infinite; }
  }
}
@keyframes cue-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes cue-pulse { 0% { opacity: 0.7; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.35); } }

/* ---- 2. Pinned air curtain story ---- */
.scrub { padding-block: var(--section); }
.scrub__grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (min-width: 1000px) { .scrub__grid { grid-template-columns: 0.8fr 1.2fr; } }
.scrub__copy { display: grid; gap: 20px; align-content: start; }
.scrub__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.scrub__steps li { display: grid; gap: 6px; padding-left: 18px; border-left: 2px solid var(--line-d2); transition: border-color 400ms ease, opacity 400ms ease, transform 500ms var(--ease-out); }
.scrub__steps .label { color: var(--amber); }
.scrub__steps p { font-size: 1.08rem; color: #d0d9e3; }
.scrub__stage { display: grid; gap: 14px; }
.scrub__stage .diagram svg { width: 100%; height: auto; }
.scrub__read { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.rd { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-m); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-d); }
.rd b { font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 0.9; color: #fff; font-variant-numeric: tabular-nums; }
.rd b small { font-size: 0.5em; color: var(--mist); margin-left: 2px; }
.rd .meter { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.rd .meter i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--k, 1)); background: linear-gradient(90deg, var(--signal), var(--amber) 60%, var(--ember)); border-radius: inherit; }
.rd__word { font-size: 1.35rem !important; }
.scrub__note { font-family: var(--mono); font-size: 0.75rem; color: var(--mist); }
.ph-row { padding-block: 0 24px; }
/* Scene: door lifts (--a), curtain switches on (--b), doorway sealed (--c) */
.sc-door { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(calc(1 - var(--a) * 0.92)); }
.sc-leak { opacity: calc(var(--a) * (1 - var(--c))); }
.sc-stream { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(var(--b)); opacity: var(--b); }
.sc-seal { opacity: var(--c); }
.sc-led { opacity: calc(0.25 + var(--b) * 0.75); }
.sc-warm { opacity: calc(1 - var(--a) * 0.65 * (1 - var(--c))); }
.sc-chill { opacity: calc(var(--a) * (1 - var(--c))); }
.sc-unit rect:first-child { stroke-opacity: calc(0.4 + var(--b) * 0.6); }
html.motion .scrub[data-live] { padding-block: 0; height: 300vh; }
html.motion .scrub[data-live] .scrub__pin { position: sticky; top: 72px; height: calc(100svh - 72px); display: grid; align-items: center; overflow: hidden; }
html.motion .scrub[data-live] .scrub__steps { gap: 0; }
html.motion .scrub[data-live] .scrub__steps li { opacity: 0.28; border-color: var(--line-d); }
html.motion .scrub[data-live][data-stage="1"] li[data-s="1"], html.motion .scrub[data-live][data-stage="2"] li[data-s="2"], html.motion .scrub[data-live][data-stage="3"] li[data-s="3"] { opacity: 1; border-color: var(--amber); }
html.motion .scrub[data-live] .scrub__steps li { padding-block: 10px; }
@media (max-width: 999px) {
  html.motion .scrub[data-live] { height: 240vh; }
  html.motion .scrub[data-live] .scrub__pin { top: 64px; height: calc(100svh - 64px); align-items: start; padding-top: 20px; }
  html.motion .scrub[data-live] .scrub__grid { gap: 14px; }
  html.motion .scrub[data-live] .scrub__copy { gap: 10px; }
  html.motion .scrub[data-live] .scrub__copy .eyebrow { display: none; }
  html.motion .scrub[data-live] .scrub__steps { display: grid; }
  html.motion .scrub[data-live] .scrub__steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); border-color: var(--amber); padding-block: 4px; }
  html.motion .scrub[data-live][data-stage="1"] li[data-s="1"], html.motion .scrub[data-live][data-stage="2"] li[data-s="2"], html.motion .scrub[data-live][data-stage="3"] li[data-s="3"] { transform: none; }
  html.motion .scrub[data-live] .scrub__steps p { font-size: 1rem; }
  html.motion .scrub[data-live] .scrub__stage .diagram { max-height: 38svh; }
  html.motion .scrub[data-live] .scrub__stage .diagram svg { max-height: 38svh; }
  .scrub__read { grid-template-columns: 1fr 1fr; }
  .rd { padding: 10px 12px; }
}
@media (max-height: 640px) and (max-width: 999px) { html.motion .scrub[data-live] h2 { font-size: 1.8rem; } .scrub__note { display: none; } }

/* ---- 3. Big numbers that count up with a heat sweep ---- */
.numbers--xl b { font-size: clamp(4.6rem, 1.6rem + 9vw, 11.5rem); }
.numbers-band { position: relative; overflow: clip; }
[data-sweep] { --sw: #fff; background: linear-gradient(100deg, var(--sw) 0%, var(--sw) 38%, #ffd28a 44%, var(--amber) 48%, var(--ember) 52%, var(--amber) 56%, var(--sw) 64%, var(--sw) 100%); background-size: 320% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.bignum [data-sweep] { --sw: var(--ink); }
html.motion [data-sweep].is-swept { animation: sweep 1700ms var(--ease-out) both; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.numbers--xl > div { position: relative; }
.numbers--xl > div::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--amber), var(--ember)); transition: transform 1400ms var(--ease-out); }
@media (min-width: 800px) { .numbers--xl > div + div::before { left: 28px; width: calc(100% - 28px); } }
.numbers--xl > div.is-swept::before, html:not(.motion) .numbers--xl > div::before { transform: none; }

/* ---- 4. Sections that slide over each other, stacking service cards, image masks ---- */
@media (min-width: 900px) {
  section.lift { position: relative; z-index: 1; margin-top: -48px; border-radius: 40px 40px 0 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    section.lift { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes lift { from { transform: translateY(44px); } to { transform: none; } }

.services--stack { display: grid; gap: 22px; grid-template-columns: 1fr !important; }
.services--stack .svc { position: sticky; top: calc(88px + var(--n, 0) * 22px); grid-template-rows: auto; grid-template-columns: 1fr; box-shadow: 0 -18px 40px -28px rgba(6, 26, 61, 0.45); transform-origin: 50% 0; }
.services--stack .svc:nth-child(1) { --n: 0; } .services--stack .svc:nth-child(2) { --n: 1; } .services--stack .svc:nth-child(3) { --n: 2; }
@media (min-width: 900px) {
  .services--stack { gap: 6vh; }
  .services--stack .svc { grid-template-columns: 1.1fr 0.9fr; height: min(calc(100vh - 160px), 560px); min-height: 400px; }
  .services--stack .svc .ph-frame { aspect-ratio: auto; height: 100%; position: relative; }
  .services--stack .svc .ph-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .services--stack .svc__body { align-content: center; padding: clamp(28px, 4vw, 64px); gap: 16px; }
  .services--stack .svc h3 { font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.6rem); }
  .services--stack .svc p { font-size: 1.1rem; max-width: 38ch; }
  .services--stack .label { font-size: 0.9rem; }
}
.services--stack .svc { scale: var(--sc, 1); }
@media (max-width: 899px) { .services--stack .svc .ph-frame { aspect-ratio: 16 / 10; } .services--stack .svc { top: calc(76px + var(--n, 0) * 14px); } }
.services--stack .svc::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: var(--night); opacity: var(--dim, 0); pointer-events: none; }

/* Photos: clip-path wipe plus a slow settle in scale */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .wipe img { animation: img-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  }
}
@keyframes img-settle { from { scale: 1.2; } to { scale: 1; } }
html.io-reveal .wipe img { scale: 1.2; transition: scale 1400ms var(--ease-out); }
html.io-reveal .wipe.is-in img { scale: 1; }

/* ---- 5. Sideways project gallery (pinned on desktop, swipe on phones) ---- */
.hgal { padding-block: var(--section); overflow: clip; }
.hgal__head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); align-items: end; }
@media (min-width: 900px) { .hgal__head { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.hgal__bar { height: 2px; background: var(--line-d2); border-radius: 2px; overflow: hidden; max-width: 320px; }
.hgal__bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--hp, 0.08)); background: linear-gradient(90deg, var(--amber), var(--ember)); }
.hgal__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hgal__track::-webkit-scrollbar { display: none; }
.hgal__track > * { flex: 0 0 min(84vw, 520px); scroll-snap-align: start; }
.proj--xl .proj__photo .ph-frame { aspect-ratio: 4 / 3; }
.hgal__end { display: grid; align-content: end; gap: 10px; padding: 28px; min-height: 280px; border-radius: var(--r-l); text-decoration: none; color: #fff !important; background: linear-gradient(160deg, rgba(255, 107, 44, 0.28), rgba(255, 164, 27, 0.08) 55%, rgba(255, 255, 255, 0.02)); box-shadow: inset 0 0 0 1px var(--line-d2); }
.hgal__end b { font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); line-height: 0.9; }
.hgal__end svg { width: 36px; height: 36px; color: var(--amber); transition: transform 300ms var(--ease-out); }
.hgal__end:hover svg { transform: translateX(8px); }
.hgal__track:focus-visible { outline-offset: -4px; }
.hgal.is-pinned { padding-block: 0; }
.hgal.is-pinned .hgal__pin { position: sticky; top: 72px; height: calc(100vh - 72px); display: grid; grid-template-columns: 100%; align-content: center; overflow: hidden; }
.hgal .proj { color: #fff !important; }
.hgal.is-pinned .hgal__track { overflow: visible; scroll-snap-type: none; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.hgal.is-pinned .hgal__track > .proj { flex: 0 0 clamp(520px, 44vw, 760px); display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto; }
.hgal.is-pinned .proj--xl .proj__photo .ph-frame { aspect-ratio: auto; height: min(56vh, 520px); }
.hgal.is-pinned .proj--xl .proj__body { align-content: end; padding: 28px; }
.hgal.is-pinned .hgal__end { flex: 0 0 min(420px, 30vw); min-height: 0; }

/* ---- 6. Sector marquee ---- */
.marquee { position: relative; overflow: hidden; background: var(--night); color: #fff; border-block: 1px solid var(--line-d); padding-block: clamp(18px, 2.2vw, 30px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; flex: none; }
.marquee__list li { background: var(--night); display: inline-flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); padding-right: clamp(20px, 2.4vw, 40px); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.8rem); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.marquee__list li:nth-child(even) { color: var(--mist); }
.marquee__list li::after { content: ""; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px rgba(255, 107, 44, 0.9); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: tick 70s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (max-width: 560px) { .marquee__track { animation-duration: 50s; } }
@media (prefers-reduced-motion: reduce) { .marquee__track { width: auto; } .marquee__list + .marquee__list { display: none; } .marquee__list { flex-wrap: wrap; padding-inline: var(--gutter); row-gap: 10px; } }

/* ---- 7. Key lines fill in as you read ---- */
.hl { --hl-base: rgba(14, 22, 33, 0.24); --hl-fill: var(--ink); --hl-key: #004aad; }
.on-night .hl, .on-navy .hl, .band .hl { --hl-base: rgba(255, 255, 255, 0.26); --hl-fill: #fff; --hl-key: var(--amber); }
html.motion .hl { color: transparent; background: linear-gradient(var(--hl-fill), var(--hl-fill)) 0 0 / 0% 100% no-repeat, linear-gradient(var(--hl-base), var(--hl-base)); -webkit-background-clip: text; background-clip: text; transition: background-size 1100ms var(--ease-out); }
html.motion .is-lit .hl { background-size: 100% 100%, auto; }
html.motion .hl b { font-weight: inherit; color: transparent; background: linear-gradient(90deg, var(--hl-key), var(--ember)); -webkit-background-clip: text; background-clip: text; opacity: 0; transition: opacity 500ms ease 700ms; }
html.motion .is-lit .hl b { opacity: 1; }
.hl b { font-weight: inherit; }
@keyframes hl-fill { from { background-size: 0% 100%, auto; } to { background-size: 100% 100%, auto; } }
@keyframes hl-key { from { opacity: 0; } to { opacity: 1; } }

/* ---- 8. Thermal camera view on photo cards, heat ripple on buttons ---- */
.thermo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: url(#oc-thermal) !important; opacity: 0; transition: opacity 520ms var(--ease-out); pointer-events: none; z-index: 1; will-change: opacity; }
.ph-frame.is-thermal .thermo { opacity: 0.92; }
.ph-frame .scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 230, 180, 0.22) 50%, rgba(255, 255, 255, 0)); transform: translateY(-100%); }
.ph-frame.is-thermal .scan { opacity: 1; animation: scan 1.6s var(--ease-in-out) infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.btn { position: relative; isolation: isolate; }
.btn .rip { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn .rip i { position: absolute; left: var(--rx); top: var(--ry); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 107, 44, 0.6) 40%, rgba(255, 107, 44, 0) 72%); animation: ripple 700ms var(--ease-out) forwards; }
.btn--line .rip i { background: radial-gradient(circle, rgba(255, 190, 90, 0.55), rgba(255, 107, 44, 0.3) 45%, rgba(255, 107, 44, 0) 72%); }
@keyframes ripple { from { transform: scale(0); opacity: 1; } to { transform: scale(var(--rs, 16)); opacity: 0; } }

/* ---- 9. Page transition fallback (browsers without cross-document view transitions) ---- */
html.is-leaving main, html.is-leaving .site-foot { opacity: 0; transform: translateY(-18px); transition: opacity 200ms ease, transform 240ms cubic-bezier(0.4, 0, 1, 1); }

/* ---- 10. Film grain over dark sections ---- */
html.motion section.on-night:not(.qpage), html.motion .marquee { position: relative; overflow: clip; }
html.motion section.on-night:not(.qpage):not(.own-grain)::after { content: ""; position: absolute; inset: -80px; z-index: 3; pointer-events: none; opacity: 0.07; background-image: url("../img/grain.webp"); background-size: 96px 96px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.motion section.on-night:not(.qpage):not(.own-grain)::after { animation: grain 900ms steps(6) infinite; }
  html.motion .grain { inset: -80px; animation: grain 900ms steps(6) infinite; }
}
@keyframes grain { 0% { transform: translate3d(0, 0, 0); } 20% { transform: translate3d(-32px, 18px, 0); } 40% { transform: translate3d(22px, -40px, 0); } 60% { transform: translate3d(-14px, 36px, 0); } 80% { transform: translate3d(40px, 8px, 0); } 100% { transform: translate3d(-6px, -22px, 0); } }

@media (prefers-reduced-motion: reduce) {
  .spot, .thermo, .scan, .btn .rip { display: none !important; }
  .services--stack .svc { position: relative; top: auto; scale: none; }
  .services--stack .svc::before { display: none; }
}

/* ==========================================================================
   Round 6: ORBEM blue brand system and Mundial (the type used across the
   ORBEM Group sites). Blue leads; heat (amber and ember) is an accent only.
   ========================================================================== */
:root {
  --night: #061a3d; --night-2: #0a2450; --navy: #004aad; --blue: #004aad; --blue-2: #0a5bd6; --blue-deep: #003a8c; --blue-ink: #002a66;
  --signal: #8db8ff; --sky: #eaf1fc;
  --paper: #f6f8fc; --concrete: #e9eff8; --card: #ffffff;
  --ink: #0b1a33; --steel: #4b5b73; --mist: #c1cde0;
  --heat: #ffa41b; --heat-2: #ff6b2c;
  --amber: #004aad; --amber-2: #0a5bd6;
  --line-l: rgba(0, 42, 102, 0.12); --line-l2: rgba(0, 42, 102, 0.26);
  --glow: 0 10px 28px -12px rgba(0, 74, 173, 0.6); --glow-2: 0 16px 36px -12px rgba(0, 74, 173, 0.75);
  --shadow: 0 1px 2px rgba(0, 42, 102, 0.06), 0 18px 44px -26px rgba(0, 42, 102, 0.4);
}
/* Accent blue that reads on dark grounds, heat accents on the brand blue panels */
.on-night, .site-foot, .menu-panel, .callbar, .xhero, .page-hero, .qpage, .hero, .marquee, .consent, .groupbar { --amber: #6ea8ff; --amber-2: #8db8ff; }
.on-navy, .numbers-band { --amber: var(--heat); --amber-2: #ffb547; }
.qf, .starter__plate, .plate:not(.on-night *) { --amber: #004aad; --amber-2: #0a5bd6; }

/* ---- Type: one family, two weights, a calm scale ---- */
body { font-family: var(--font); font-weight: 400; }
h1, h2, h3, h4, b, strong, .btn, .choice__face, .arrowlink, .textlink { font-weight: 700; }
h1, h2, h3 { letter-spacing: -0.015em; }
h1 { font-size: clamp(2.25rem, 1.55rem + 2.9vw, 4rem); line-height: 1.06; }
.xhero h1 { font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4.5rem); line-height: 1.04; }
.page-hero h1, .xhero--case h1, .hero h1 { font-size: clamp(2.2rem, 1.55rem + 2.5vw, 3.7rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.7vw, 2.9rem); line-height: 1.1; }
h3 { font-size: clamp(1.18rem, 1.08rem + 0.4vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em; }
.svc h3, .proj h3, .rows h3, .timeline h3, .method h3, .next h3, .person h3, .pcard h3 { font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem); line-height: 1.2; }
.services--stack .svc h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem); }
.lead { font-size: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem); line-height: 1.55; }
.label, .eyebrow { font-family: var(--font); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; }
.mono, .btn--tel, .head-tel, .icon-btn--tel span { font-family: var(--font); font-weight: 700; letter-spacing: 0.01em; }
.band .statement, .band blockquote { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; }
.numbers b, .numbers--xl b { font-size: clamp(3rem, 1.9rem + 4.2vw, 6rem); line-height: 0.95; letter-spacing: -0.03em; }
.bignum > span:first-child { font-size: clamp(3rem, 2rem + 3.8vw, 5.2rem); line-height: 0.95; }
.foot-big p.big { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.4rem); line-height: 1.05; }
.marquee__list li { font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); letter-spacing: 0; }
.qf legend, .qf__q, .qf .field label.qf__q { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; }
.menu-list a { font-size: 1.45rem !important; }
.menu-panel a:not(.btn) { font-size: 1.4rem; }
.rd b { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.hgal__end b { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.7rem); line-height: 1.05; }
.trust b { font-size: 1.2rem; }
.faq summary { font-size: clamp(1.06rem, 1rem + 0.25vw, 1.2rem); }
.fields dd { font-size: 1rem; }
.choice__face small { font-weight: 400; }
@media (max-width: 560px) {
  .xhero h1 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 2.7rem); }
  .page-hero h1, .xhero--case h1, .hero h1 { font-size: clamp(2rem, 1.4rem + 3.2vw, 2.5rem); }
  h2 { font-size: clamp(1.65rem, 1.25rem + 2.2vw, 2rem); }
  .qf legend, .qf__q, .qf .field label.qf__q { font-size: 1.4rem; }
  .numbers b, .numbers--xl b { font-size: clamp(2.8rem, 2rem + 4vw, 3.6rem); }
  .band .statement { font-size: clamp(1.8rem, 1.3rem + 2.6vw, 2.3rem); }
  .foot-big p.big { font-size: clamp(1.9rem, 1.4rem + 2.6vw, 2.4rem); }
}

/* ---- Colour: blue leads ---- */
::selection { background: var(--blue); color: #fff; }
.skip { background: var(--blue); color: #fff; }
.heat { background: linear-gradient(90deg, var(--heat), var(--heat-2)); -webkit-background-clip: text; background-clip: text; }
.on-concrete { background: var(--concrete); }
.on-navy { background: linear-gradient(135deg, #004aad 0%, #003a8c 100%); }
.btn { --bg: var(--blue); --fg: #fff; }
@media (hover: hover) and (pointer: fine) { .btn:hover { --bg: var(--blue-2); } }
.on-night .btn:not(.btn--line), .xhero .btn:not(.btn--line), .site-foot .btn:not(.btn--line), .menu-panel .btn:not(.btn--line), .close .btn:not(.btn--line) { --bg: #0a5bd6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 30px -12px rgba(10, 91, 214, 0.9); }
@media (hover: hover) and (pointer: fine) { .on-night .btn:not(.btn--line):hover, .xhero .btn:not(.btn--line):hover { --bg: #2a74e8; } }
.on-navy .btn:not(.btn--line), .starter .btn:not(.btn--line) { --bg: #fff; --fg: var(--blue); }
.starter__plate .btn:not(.btn--line) { --bg: var(--blue); --fg: #fff; }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--line-l2); }
@media (hover: hover) and (pointer: fine) { .btn--line:hover { --bg: rgba(0, 74, 173, 0.06); box-shadow: inset 0 0 0 1.5px var(--blue); } }
.btn:not(.btn--line)::after { background: radial-gradient(closest-side, rgba(70, 140, 255, 0.55), rgba(70, 140, 255, 0)); }
.callpill::after { background: radial-gradient(closest-side, rgba(70, 140, 255, 0.55), rgba(70, 140, 255, 0)); }
.btn .rip i { background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(141, 184, 255, 0.55) 40%, rgba(141, 184, 255, 0) 72%); }
.scrollbar { background: linear-gradient(90deg, #004aad, #6ea8ff); }
.qf__segs i::after { background: linear-gradient(90deg, #004aad, #3d86ff); }
.choice:active .choice__face, .choice input:checked + .choice__face { background: #eef4ff; }
.choice input:checked + .choice__face { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue), 0 8px 20px -12px rgba(0, 74, 173, 0.7); }
.choice__face::after { background-color: var(--blue); }
.choice__face svg .fill, .ic .fill { fill: rgba(0, 74, 173, 0.16); }
.on-night .ic .fill { fill: rgba(110, 168, 255, 0.22); }
.choice__face svg, .ic { color: var(--blue); }
.on-night .ic { color: #8db8ff; }
.timeline li.is-lit .n { background: var(--amber); color: var(--night); box-shadow: 0 0 0 6px rgba(110, 168, 255, 0.18), 0 0 28px rgba(110, 168, 255, 0.5); }
.hl { --hl-key: var(--blue); }
.on-night .hl, .band .hl { --hl-key: #8db8ff; }
.thermal { background:
    radial-gradient(32% 38% at 24% 42%, rgba(0, 92, 230, 0.45), rgba(0, 92, 230, 0) 70%),
    radial-gradient(26% 30% at 44% 28%, rgba(110, 168, 255, 0.28), rgba(110, 168, 255, 0) 70%),
    radial-gradient(30% 36% at 36% 74%, rgba(255, 120, 40, 0.2), rgba(255, 120, 40, 0) 70%),
    radial-gradient(28% 34% at 12% 80%, rgba(0, 74, 173, 0.35), rgba(0, 74, 173, 0) 70%); }
.spot { background: radial-gradient(closest-side, rgba(120, 170, 255, 0.26), rgba(60, 120, 230, 0.1) 45%, rgba(60, 120, 230, 0) 100%); }
.glow { background: radial-gradient(circle, rgba(255, 140, 40, 0.42) 0%, rgba(255, 107, 44, 0.16) 38%, rgba(255, 107, 44, 0) 70%); }
.on-night .ph { border-color: #ffb547; }

/* ---- White header in true logo colours, ORBEM Group bar above it ---- */
.site-head { background: rgba(255, 255, 255, 0.94); color: var(--ink); border-bottom: 1px solid var(--line-l); }
.site-head.is-scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 10px 30px -18px rgba(0, 42, 102, 0.45); }
body.menu-open .site-head { background: #fff; }
.brand { color: var(--ink); }
.brand svg path[fill="#004AAD"] { fill: #004aad; }
.nav a { color: #23324a; font-weight: 700; }
.nav a[aria-current="page"], .nav a:hover { color: var(--blue) !important; }
.head-tel { color: var(--ink); }
.head-tel svg { color: var(--blue); }
.icon-btn { color: var(--ink); }
.icon-btn--tel { background: rgba(0, 74, 173, 0.07); box-shadow: inset 0 0 0 1px rgba(0, 74, 173, 0.22); }
.icon-btn--tel svg { color: var(--blue); }
.site-head :focus-visible { outline-color: var(--blue); }
.site-head--bare .head-tel { color: var(--ink); }
@media (max-width: 899px) { .site-head--bare .head-tel { box-shadow: inset 0 0 0 1px rgba(0, 74, 173, 0.3); } }

.groupbar { background: var(--night); color: var(--mist); font-size: 0.82rem; }
.groupbar__in { display: flex; align-items: center; gap: 10px 18px; min-height: 44px; flex-wrap: wrap; }
.groupbar__lbl { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.7rem; color: #fff; }
.groupbar__lbl i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #3d86ff; vertical-align: 1px; }
.groupbar nav { display: flex; gap: 4px; margin-left: auto; }
.groupbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: #dbe5f3 !important; text-decoration: none; font-weight: 700; }
.groupbar a[aria-current] { color: #fff !important; box-shadow: inset 0 -2px 0 #3d86ff; }
.groupbar a svg { width: 13px; height: 13px; opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .groupbar a:hover { color: #fff !important; } }
@media (max-width: 560px) { .groupbar__lbl { display: none; } .groupbar nav { margin: 0 auto 0 -10px; } .groupbar a { padding: 0 9px; } }

/* ---- Group sites block (footer, about, home) ---- */
.group-sites { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gsite { position: relative; display: grid; gap: 8px; padding: 22px 22px 20px; border-radius: var(--r-l); text-decoration: none; color: var(--ink) !important; background: #fff; border: 1px solid var(--line-l); box-shadow: var(--shadow); transition: transform 260ms var(--ease-out), box-shadow 260ms ease, border-color 260ms ease; }
.gsite b { font-size: 1.2rem; }
.gsite b span { color: var(--blue); }
.gsite p { color: var(--steel) !important; font-size: 0.97rem; }
.gsite .arrowlink { min-height: 0; color: var(--blue); }
.gsite[aria-current] { background: var(--sky); border-color: rgba(0, 74, 173, 0.3); }
.gsite[aria-current] .label { color: var(--blue); }
@media (hover: hover) and (pointer: fine) { a.gsite:hover { transform: translateY(-3px); border-color: rgba(0, 74, 173, 0.4); box-shadow: 0 22px 44px -24px rgba(0, 74, 173, 0.55); } }
.on-night .gsite { background: var(--night-2); border-color: var(--line-d); color: #fff !important; box-shadow: none; }
.on-night .gsite p { color: var(--mist) !important; }
.on-night .gsite b span, .on-night .gsite .arrowlink { color: #8db8ff; }
.on-night .gsite[aria-current] { background: rgba(0, 74, 173, 0.35); border-color: rgba(110, 168, 255, 0.4); }
.foot-group { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line-d); display: grid; gap: 14px; }
.foot-group .group-sites { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.foot-group .gsite { padding: 16px 18px; }
.foot-group .gsite p { font-size: 0.9rem; }
.menu-group { display: grid; gap: 6px; }
.menu-group a { min-height: 44px !important; font-size: 1rem !important; font-weight: 700; color: #dbe5f3 !important; }

/* ---- Google Map ---- */
.gmap { margin: 0; position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--concrete); box-shadow: 0 0 0 1px var(--line-l), var(--shadow); }
.gmap__frame { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dfe9f7, #c9daf2); }
.gmap--tall .gmap__frame { aspect-ratio: 4 / 4.2; }
.gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(1.02); }
.gmap__card { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.96); color: var(--ink); box-shadow: 0 16px 36px -18px rgba(0, 42, 102, 0.55); backdrop-filter: blur(8px); }
.gmap__pin { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; }
.gmap__pin svg { width: 20px; height: 20px; }
.gmap__txt { display: grid; gap: 2px; min-width: 0; font-size: 0.9rem; line-height: 1.35; color: var(--steel); }
.gmap__txt b { color: var(--ink); font-size: 0.98rem; }
.gmap__dir { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--blue); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.gmap__dir svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .gmap__frame { aspect-ratio: 4 / 4.4; } .gmap__card { flex-wrap: wrap; } .gmap__dir { margin-left: 52px; } }

/* ---- Problem cards ---- */
.probs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.prob { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 24px 26px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line-l); box-shadow: var(--shadow); overflow: hidden; transition: transform 300ms var(--ease-out), box-shadow 300ms ease, border-color 300ms ease; }
.prob::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #004aad, #3d86ff); transform-origin: left; }
.prob::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 74, 173, 0.08), rgba(0, 74, 173, 0)); pointer-events: none; }
.prob__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; background: linear-gradient(145deg, #0a5bd6, #004aad 60%, #003a8c); color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 74, 173, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.prob__ic svg { width: 30px; height: 30px; color: #fff; }
.prob__ic .ic .fill { fill: rgba(255, 255, 255, 0.22); }
.prob h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); color: var(--ink); }
.prob p { color: var(--steel); font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .prob:hover { transform: translateY(-4px); border-color: rgba(0, 74, 173, 0.35); box-shadow: 0 24px 48px -26px rgba(0, 74, 173, 0.6); }
  .prob:hover .prob__ic .ic { transform: translateY(-1px) rotate(-6deg) scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) {
  .probs.is-in .prob::before, .probs .prob::before { animation: bar-in 900ms var(--ease-out) both; animation-delay: calc(200ms + var(--i, 0) * 90ms); }
}
@keyframes bar-in { from { transform: scaleX(0); } }

/* ---- Brochure preview ---- */
.brochure { position: relative; display: block; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 210 / 297; text-decoration: none; perspective: 1200px; }
.brochure__page, .brochure__cover { position: absolute; inset: 0; border-radius: 10px; }
.brochure__page { background: #fff; box-shadow: 0 18px 40px -22px rgba(0, 42, 102, 0.5); }
.brochure__page--2 { transform: translate(14px, 10px) rotate(2.5deg); }
.brochure__page--3 { transform: translate(26px, 18px) rotate(5deg); background: #eef3fb; }
.brochure__cover { display: grid; align-content: space-between; padding: 12% 11%; color: #fff; overflow: hidden;
  background: radial-gradient(90% 60% at 85% 10%, rgba(110, 168, 255, 0.45), rgba(110, 168, 255, 0) 60%), radial-gradient(70% 50% at 10% 100%, rgba(255, 140, 50, 0.35), rgba(255, 140, 50, 0) 60%), linear-gradient(160deg, #0a5bd6 0%, #004aad 45%, #002a66 100%);
  box-shadow: 0 30px 60px -28px rgba(0, 42, 102, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 500ms var(--ease-out); transform-origin: left center; }
.brochure__logo svg { width: 62%; height: auto; color: #fff; }
.brochure__logo svg path[fill="#004AAD"] { fill: #8db8ff; }
.brochure__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-top: auto; }
.brochure__sub { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #cfe0fb; margin-top: 10px; }
.brochure__lines { display: grid; gap: 8px; margin-top: 22px; }
.brochure__lines i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); width: 70%; }
.brochure__lines i:nth-child(2) { width: 52%; } .brochure__lines i:nth-child(3) { width: 34%; background: var(--heat); }
.brochure__tag { position: absolute; right: -10px; bottom: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 700; font-size: 0.9rem; box-shadow: 0 14px 30px -14px rgba(0, 42, 102, 0.6); }
.brochure__tag svg { width: 18px; height: 18px; transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) { .brochure:hover .brochure__cover { transform: rotateY(-14deg); } }
.btn svg.dl { transform: rotate(90deg); }
.site-foot .gsite { background: var(--night-2); border-color: var(--line-d); color: #fff !important; box-shadow: none; }
.site-foot .gsite p { color: var(--mist) !important; }
.site-foot .gsite b span, .site-foot .gsite .arrowlink { color: #8db8ff; }
.site-foot .gsite[aria-current] { background: rgba(0, 74, 173, 0.35); border-color: rgba(110, 168, 255, 0.4); }
.site-foot .gsite[aria-current] .label { color: #8db8ff; }

/* ---- Illustrated diagrams (round 6) ---- */
@property --a { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --b { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --c { syntax: "<number>"; inherits: true; initial-value: 1; }
.diagram { border: 1px solid rgba(110, 168, 255, 0.28); background: #0a2352; box-shadow: 0 30px 60px -34px rgba(0, 20, 60, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.scene { display: block; width: 100%; height: auto; }
.ac-scene { --a: 1; --b: 0; --c: 0; transition: --b 900ms var(--ease-out), --c 1400ms var(--ease-out) 300ms; }
.ac-scene.is-with { --b: 1; --c: 1; }
.sc-person--warm { opacity: calc(1 - var(--a) * (1 - var(--c))); }
.sc-person--cold { opacity: calc(var(--a) * (1 - var(--c))); }
.sc-merc { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(calc(1 - 0.6 * var(--a) * (1 - var(--c)))); }
.sc-tag { opacity: var(--b); }
.sc-snow circle { opacity: 0.8; }
.flow--fast { animation-duration: 0.7s !important; }
.flow--slow { animation-duration: 1.8s !important; }
@media (prefers-reduced-motion: no-preference) {
  .sc-snow circle { animation: snow 5s linear infinite; animation-delay: calc(var(--d) * -1); }
  .sc-stars circle { animation: twinkle 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
  .sc-glow { animation: breathe-s 3.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .hb-rise { animation: hb-rise 4.2s linear infinite; animation-delay: var(--d); }
  .hb-wave { animation: hb-wave 3.2s linear infinite; animation-delay: var(--d); }
  .hb-fan { animation: spin 1.1s linear infinite; }
  .hb-pool { animation: breathe-s 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .hb-tube { animation: tube 2.4s ease-in-out infinite alternate; }
}
@keyframes snow { from { transform: translate(0, -20px); } to { transform: translate(var(--x, 0px), 300px); } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes breathe-s { from { opacity: 0.6; transform: scale(0.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes hb-rise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 0.95; } 70% { opacity: 0.8; } 100% { transform: translate(var(--x, 0px), -200px); opacity: 0; } }
@keyframes hb-wave { 0% { transform: translateY(0) scaleX(0.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(210px) scaleX(1.25); opacity: 0; } }
.hb-wave { transform-box: fill-box; transform-origin: 50% 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tube { from { fill: #ff6b2c; } to { fill: #ffb547; } }
.hb-p { fill: #8dbbff; }
.hb-p--warm { fill: #ffa64d; }
.scrub__stage .diagram svg { width: 100%; height: auto; }
.scrub .rd .meter i { background: linear-gradient(90deg, #6ea8ff, #3d86ff 55%, var(--heat)); }
/* Outline buttons stay outline (the blue button rule above must not fill them) */
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-l2); }
.on-night .btn--line, .xhero .btn--line, .page-hero .btn--line, .hero .btn--line, .site-foot .btn--line, .callbar .btn--line, .menu-panel .btn--line, .on-navy .btn--line { --bg: rgba(255, 255, 255, 0.04); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
@media (hover: hover) and (pointer: fine) { .on-night .btn--line:hover, .xhero .btn--line:hover, .site-foot .btn--line:hover { --bg: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px #fff; } }
.btn--line svg { color: currentColor; }
.btn--tel svg { color: #8db8ff; }
.qpage h1 { font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.6rem); line-height: 1.06; }
@media (max-width: 560px) { .qpage h1 { font-size: clamp(1.9rem, 1.4rem + 2.8vw, 2.3rem); } }
.hl b, html.motion .hl b { background-image: linear-gradient(90deg, var(--hl-key), var(--hl-key)); }
.on-navy .label, .on-navy .eyebrow, .numbers-band .label { color: #d6e4fa; }
.on-navy p, .on-navy .lead { color: #e6eefb; }
.icon-btn--tel svg { width: 18px; height: 18px; stroke-width: 2.2; }
.site-foot .label, .site-foot h2.label, .on-night .gsite .label, .site-foot .gsite .label { color: var(--mist); }
@keyframes prob-in { from { transform: translateY(44px) scale(0.97); } to { transform: none; } }

/* ---- Projects page: case studies (round 6b) ---- */
.cs-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cs-jump a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); color: #fff !important; text-decoration: none; font-weight: 700; transition: background-color 200ms ease, box-shadow 200ms ease; }
.cs-jump a .label { color: #8db8ff; }
@media (hover: hover) and (pointer: fine) { .cs-jump a:hover { background: rgba(0, 74, 173, 0.45); box-shadow: inset 0 0 0 1px #6ea8ff; } }
.cs-list { padding-block: clamp(56px, 7vw, 112px); }
.cs-list .wrap { display: grid; gap: clamp(28px, 4vw, 56px); }
.cs { display: grid; gap: 0; border-radius: 24px; background: #fff; border: 1px solid var(--line-l); box-shadow: 0 1px 2px rgba(0, 42, 102, 0.06), 0 30px 60px -40px rgba(0, 42, 102, 0.45); overflow: hidden; scroll-margin-top: 96px; }
@media (min-width: 1000px) { .cs { grid-template-columns: 1fr 1.05fr; } .cs--flip .cs__media { order: 2; } }
.cs__media { position: relative; display: grid; align-content: start; background: linear-gradient(160deg, #004aad, #002a66); color: #fff; }
.cs__photo { margin: 0; position: relative; }
.cs__photo .ph-frame { border-radius: 0; aspect-ratio: 4 / 3; }
@media (min-width: 1000px) { .cs__photo .ph-frame { aspect-ratio: auto; height: clamp(340px, 36vw, 480px); } .cs__photo .ph-frame img { width: 100%; height: 100%; object-fit: cover; } }
.cs__photo figcaption { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 26, 61, 0.78); color: #fff; font-size: 0.78rem; font-weight: 700; backdrop-filter: blur(6px); }
.cs__stats { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cs__stats li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.cs__stats b { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.cs__stats b small { font-size: 0.55em; margin-left: 3px; color: var(--heat); }
.cs__stats li > span { font-size: 0.86rem; color: #d6e4fa; line-height: 1.35; }
.cs__stats li:first-child { background: #fff; box-shadow: none; }
.cs__stats li:first-child b { color: var(--blue); }
.cs__stats li:first-child > span { color: var(--steel); }
.cs__body { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3.4vw, 48px); }
.cs__num { color: var(--blue); }
.cs__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs__tags li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--sky); color: var(--ink); font-size: 0.92rem; }
.cs__tags li b { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.cs h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.12; }
.cs__story { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-l); }
.cs__story > div { display: grid; gap: 6px; padding: 16px 0 16px 18px; border-bottom: 1px solid var(--line-l); position: relative; }
.cs__story > div::before { content: ""; position: absolute; left: 0; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.12); }
.cs__story > div:last-child::before { background: var(--heat); box-shadow: 0 0 0 4px rgba(255, 164, 27, 0.18); }
@media (min-width: 700px) { .cs__story > div { grid-template-columns: 150px 1fr; gap: 18px; } }
.cs__story dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); padding-top: 3px; }
.cs__story dd { margin: 0; color: var(--steel); font-size: 1.02rem; line-height: 1.55; display: grid; gap: 10px; }
.cs__story > div:last-child dd { color: var(--ink); font-weight: 700; }
.cs__cta { justify-self: start; margin-top: 4px; }
.cs .ph { font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .cs__stats li { transition: transform 300ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) { .cs__stats li:hover { transform: translateY(-2px); } }
@media (max-width: 560px) { .cs__stats { grid-template-columns: 1fr 1fr; padding: 14px; } .cs__stats li:first-child { grid-column: 1 / -1; } .cs-jump a { flex: 1 1 auto; justify-content: center; } }
@media (min-width: 1000px) {
  .cs__media { grid-template-rows: 1fr auto; }
  .cs__photo { height: 100%; }
  .cs__photo .ph-frame { height: 100%; min-height: 360px; position: relative; }
  .cs__photo .ph-frame img { position: absolute; inset: 0; }
}
.cs__stats b [data-count] { font-size: inherit; }
.cs__stats li:first-child b small { color: var(--blue); }


/* ==========================================================================
   Round 6c: scroll reveals on every page, both ways. motion.js tags each
   heading, text block, card, image, stat and list item below the hero (.rv),
   adds .in as it comes into view and removes it once it is fully off screen.
   Hidden states only apply after html.motion (set after the first pass), so
   nothing already on screen moves, and with reduced motion nothing is hidden.
   Transitions run only while going in; the reset is instant and off screen.
   ========================================================================== */
html.motion [data-reveal], html.motion [data-reveal-group] > *, html.motion .prob, html.motion .cs, html.motion .cs__stats li,
html.motion .wipe, html.motion .wipe img, html.motion .timeline::after { animation: none !important; }

html.motion .rv { opacity: 0; transform: translate3d(0, 34px, 0); }
html.motion .rv.in { opacity: 1; transform: none; transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 900ms var(--ease-out); transition-delay: calc(var(--ri, 0) * 80ms); }
html.motion :is(.probs, .buildings, .team, .projects, .numbers, .group-sites, .next, .method, .cs__stats, .trust) > .rv:not(.in) { transform: translate3d(0, 44px, 0) scale(0.97); }
html.motion :is(.sec-head, .stack, .stack-s) > :is(h2, h3).rv:not(.in) { transform: translate3d(0, 26px, 0); }
html.motion .hgal__track > .rv:not(.in) { transform: translate3d(60px, 0, 0); }
html.motion .cs__tags > .rv:not(.in) { transform: translate3d(0, 12px, 0) scale(0.92); }

/* Photos: wipe up and settle each time they enter */
/* Round 6f: the wipe clips the inner img only, so the observed .wipe keeps a real box */
html.motion .wipe.rvw img { clip-path: inset(100% 0 0 0); scale: 1.16; }
html.motion .wipe.rvw.in img { clip-path: inset(0 0 0 0); scale: 1; transition: clip-path 1000ms cubic-bezier(0.65, 0, 0.25, 1) 80ms, scale 1500ms var(--ease-out) 80ms; }

/* Big numbers: the rule above each figure redraws with the heat sweep */
html.motion .numbers--xl.rvs > div::before { transition: none; transform: scaleX(0); }
html.motion .numbers--xl.rvs > div.is-swept::before { transform: none; transition: transform 1400ms var(--ease-out); }

/* ---- Survey, Engineer, Deliver, Support ---- */
.timeline li { grid-template-rows: auto 1fr; align-content: start; }
.timeline .n { width: 42px; height: 42px; background: var(--blue); color: #fff; border: 2px solid #fff; font-family: var(--font); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; box-shadow: 0 0 0 5px rgba(0, 74, 173, 0.12), 0 8px 18px -8px rgba(0, 74, 173, 0.8); }
.on-night .timeline .n { background: #0a5bd6; border-color: rgba(255, 255, 255, 0.9); color: #fff; box-shadow: 0 0 0 5px rgba(61, 134, 255, 0.18), 0 0 22px rgba(61, 134, 255, 0.45); }
.timeline::after { background: linear-gradient(90deg, #004aad, #3d86ff 70%, var(--heat)); }
@media (max-width: 999px) { .timeline::after { background: linear-gradient(180deg, #004aad, #3d86ff 70%, var(--heat)); } .timeline::before, .timeline::after { left: 20px; } }
.on-night .timeline::after { background: linear-gradient(90deg, #3d86ff, #8db8ff 70%, var(--heat)); }
@media (max-width: 999px) { .on-night .timeline::after { background: linear-gradient(180deg, #3d86ff, #8db8ff 70%, var(--heat)); } }
html.motion .timeline.rvt::after { transform: scaleY(0); transition: none; }
@media (min-width: 1000px) { html.motion .timeline.rvt::after { transform: scaleX(0); } }
html.motion .timeline.rvt.is-drawing::after { transform: none; transition: transform 1500ms cubic-bezier(0.45, 0.05, 0.3, 1); }
html.motion .timeline.rvt li .n { transform: scale(0.5); opacity: 0.25; transition: none; }
html.motion .timeline.rvt.is-drawing li .n { transform: none; opacity: 1; animation: dot-pop 760ms cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(140ms + var(--i, 0) * 380ms); }
html.motion .timeline.rvt li h3, html.motion .timeline.rvt li p { opacity: 0; transform: translate3d(0, 20px, 0); transition: none; }
html.motion .timeline.rvt.is-drawing li h3, html.motion .timeline.rvt.is-drawing li p { opacity: 1; transform: none; transition: opacity 600ms ease, transform 800ms var(--ease-out); transition-delay: calc(360ms + var(--i, 0) * 380ms); }
html.motion .timeline.rvt.is-drawing li p { transition-delay: calc(460ms + var(--i, 0) * 380ms); }
@keyframes dot-pop {
  0% { transform: scale(0.5); opacity: 0.25; }
  55% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 0 10px rgba(61, 134, 255, 0.28), 0 0 36px rgba(61, 134, 255, 0.85); }
  100% { transform: scale(1); opacity: 1; }
}

/* Lighter on phones and touch screens: shorter travel, quicker, less stagger */
@media (max-width: 999px), (hover: none) {
  html.motion .rv:not(.in), html.motion :is(.probs, .buildings, .team, .projects, .numbers, .group-sites, .next, .method, .cs__stats, .trust) > .rv:not(.in) { transform: translate3d(0, 18px, 0); }
  html.motion .hgal__track > .rv:not(.in) { transform: translate3d(28px, 0, 0); }
  html.motion .rv.in { transition-duration: 520ms, 640ms; transition-delay: calc(var(--ri, 0) * 50ms); }
  html.motion .wipe.rvw img { scale: 1.08; }
}
@media (max-width: 999px) {
  html.motion .timeline.rvt.is-drawing::after { transition-duration: 2200ms; }
  html.motion .timeline.rvt.is-drawing li .n { animation: none; transform: scale(0.5); opacity: 0.25; }
  html.motion .timeline.rvt.is-drawing li h3, html.motion .timeline.rvt.is-drawing li p { opacity: 0; transform: translate3d(0, 14px, 0); transition: none; }
  html.motion .timeline.rvt li.lit .n { animation: dot-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 60ms both; transform: none; opacity: 1; }
  html.motion .timeline.rvt li.lit h3, html.motion .timeline.rvt li.lit p { opacity: 1; transform: none; transition: opacity 500ms ease 220ms, transform 650ms var(--ease-out) 220ms; }
  html.motion .timeline.rvt li.lit p { transition-delay: 300ms; }
}
/* Skip rendering work for sections far below the fold until they come near
   (not the pinned, sticky or measured ones). Sizes are remembered once seen. */
@media (max-width: 999px) {
  main > section:not(:first-child):not(.scrub):not(.no-cv), main > .marquee, .site-foot { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
  main > .marquee { contain-intrinsic-size: auto 80px; }
  .scrub__stage .diagram { content-visibility: auto; aspect-ratio: 800 / 480; contain-intrinsic-size: auto 358px auto 215px; }
}

/* Decorative <i> and <em> never pull an italic face */
i, em, cite, address { font-style: normal; }

/* ==========================================================================
   Round 6d: performance
   ========================================================================== */
/* Map facade */
.gmap__frame { overflow: hidden; }
.gmap__static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gmap__marker { position: absolute; left: 50%; top: 48.7%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9), 0 0 0 12px rgba(0, 74, 173, 0.25), 0 8px 18px rgba(0, 42, 102, 0.5); }
.gmap__load { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--blue); font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; box-shadow: 0 12px 28px -12px rgba(0, 42, 102, 0.6), inset 0 0 0 1px rgba(0, 74, 173, 0.2); white-space: nowrap; }
.gmap__load svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .gmap__load:hover { background: var(--blue); color: #fff; } }
.gmap__attr { position: absolute; right: 8px; top: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); color: #3a4a60; font-size: 0.68rem; }
.gmap__frame.is-live .gmap__static, .gmap__frame.is-live .gmap__marker, .gmap__frame.is-live .gmap__attr { display: none; }
.gmap__frame iframe { z-index: 1; }

/* Grain: a tiny pre-made noise tile (cheap to draw, far too small to be the largest paint) */
.grain { background-size: 96px 96px; }

/* Diagrams and the marquee only animate while on screen: an inherited value, read only by
   the animated parts, so pausing never makes the browser re-check the whole page */
html.motion .diagram:not(.anim-on), html.motion .marquee:not(.anim-on) { --ps: paused; }
.flow, .rise-flow, .ac-dot, .hb-rise, .hb-wave, .hb-fan, .hb-pool, .hb-tube, .sc-snow circle, .sc-stars circle, .sc-glow, .marquee__track { animation-play-state: var(--ps, running) !important; }

body.text-hero { --font: "Mundial Swap", "Mundial Fallback", Arial, sans-serif; font-family: var(--font); }

/* ==========================================================================
   Round 6e: ads landing page as a pure funnel
   ========================================================================== */
.site-head--funnel .site-head__in { justify-content: flex-start; }
.qpage--funnel { padding-block: 18px clamp(40px, 5vw, 72px); }
.qpage--funnel .qpage__grid { grid-template-areas: "copy" "form" "get"; gap: 16px; }
.qpage--funnel .qpage__copy { grid-area: copy; gap: 10px; }
.qpage--funnel .qpage__form { grid-area: form; }
.qpage--funnel .qget { grid-area: get; }
@media (min-width: 1000px) {
  .qpage--funnel { padding-top: clamp(36px, 4vw, 64px); }
  .qpage--funnel .qpage__grid { grid-template-columns: 0.95fr 1.05fr; grid-template-areas: "copy form" "get form"; column-gap: 64px; row-gap: 28px; align-items: start; }
  .qpage--funnel .qpage__copy { align-self: end; }
}
.qsub { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.45; color: #dbe5f3 !important; font-weight: 700; }
.qget { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-l); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.qget h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8db8ff; }
.qget__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qget__list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.qget__list svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #0a5bd6; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.qget__list .ic .fill { fill: rgba(255, 255, 255, 0.22); }
.qget__list span { display: grid; gap: 2px; color: var(--mist); font-size: 0.97rem; line-height: 1.45; }
.qget__list b { color: #fff; font-size: 1.05rem; }
@media (max-width: 560px) {
  .qpage--funnel { padding-top: 14px; }
  .qpage--funnel .qpage__grid { gap: 12px; }
  .qpage--funnel h1 { font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.1rem); }
  .qsub { font-size: 1rem; }
  .qget { padding: 18px; }
}
.site-foot--funnel .foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; }
.site-foot--funnel button { min-height: 44px; }
.site-foot--funnel a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Round 6h: the approach band, sized and lit like a hero ---- */
.band--hero { min-height: clamp(560px, 88vh, 880px); align-items: center; padding-block: clamp(88px, 10vw, 160px); background: var(--night); }
.band--hero .band__bg::after { background:
    linear-gradient(90deg, rgba(4, 18, 44, 0.86) 0%, rgba(4, 18, 44, 0.62) 34%, rgba(4, 18, 44, 0.18) 64%, rgba(4, 18, 44, 0) 82%),
    linear-gradient(0deg, rgba(4, 18, 44, 0.5) 0%, rgba(4, 18, 44, 0) 38%); }
.band--hero .band__bg img { object-position: 60% 50%; }
.band--hero .statement { max-width: none; font-weight: 700; font-size: clamp(2.5rem, 0.9rem + 4.5vw, 6rem); line-height: 1.02; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.band--hero .ln { display: block; overflow: clip; overflow-clip-margin: 0.12em; padding-block: 0.04em 0.08em; }
.band--hero .ln > span { display: inline-block; }
.band--hero .ln--key { margin-top: 0.14em; }
.band--hero .ln--key { line-height: 1.2; padding-left: 0.02em; }
.band--hero .ln--key i { font-style: normal; background: var(--blue); color: #fff; padding: 0.02em 0.24em 0.08em; border-radius: 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 760px) {
  .band--hero { min-height: clamp(520px, 78svh, 680px); align-items: end; padding-block: 72px 56px; }
  .band--hero .band__bg::after { background: linear-gradient(180deg, rgba(4, 18, 44, 0.12) 0%, rgba(4, 18, 44, 0.3) 38%, rgba(4, 18, 44, 0.9) 100%); }
  .band--hero .band__bg img { object-position: 50% 50%; }
  .band--hero .statement { font-size: clamp(2.3rem, 1.2rem + 5.6vw, 3.1rem); }
}
/* Lines rise into place on a timer (not tied to scroll), so they always finish */
html.motion .band--hero [data-lines] .ln > span { transform: translate3d(0, 108%, 0); transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1); }
html.motion .band--hero [data-lines] .ln--key > span { transition-delay: 160ms; }
html.motion .band--hero [data-lines].is-lit .ln > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .band--hero [data-lines] .ln > span { transform: none !important; } }

/* ---- Round 6i: Reznor Guardian EC on the door air curtains page ---- */
.unit { background: var(--paper, #fff); }
.unit__top, .unit__mount { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.unit__mount { margin-top: clamp(48px, 6vw, 96px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-l, rgba(14, 22, 33, 0.12)); }
@media (min-width: 1000px) {
  .unit__top { grid-template-columns: 1fr 1fr; }
  .unit__mount { grid-template-columns: 1fr 1fr; }
}
.unit__shot { margin: 0; }
.unit__shot img { display: block; width: 100%; height: auto; max-width: 1200px; }
.unit__shot--white { background: #fff; border-radius: var(--r-l); padding: clamp(20px, 3vw, 40px); box-shadow: inset 0 0 0 1px rgba(14, 22, 33, 0.08), 0 24px 48px -32px rgba(6, 26, 61, 0.35); }
.unit__shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted, #5a6675); }
.unit__specs dd { font-weight: 400; }
.unit__docs-h { margin-top: 12px; }
.unit__docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.unit__docs a::after { content: " \2197"; }
.unit__video { margin-top: 4px; }

/* ---- Round 6j: Meet the ORBEM team (about) and the Jim strip (home) ---- */
.tm .sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.tm__inner { position: relative; height: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(141, 184, 255, 0.16); border-radius: var(--r-l); overflow: hidden; transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out), border-color 300ms ease; }
.tm__photo { position: relative; aspect-ratio: 1; background: #0b2a5c; overflow: hidden; }
.tm__photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.03); transition: filter 600ms ease, transform 900ms var(--ease-out); }
/* Duotone: navy shadows, ORBEM blue mids; colour returns on hover */
.tm__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #004aad 0%, #061a3d 100%); mix-blend-mode: color; opacity: 0.6; transition: opacity 600ms ease; pointer-events: none; }
.tm__text { display: grid; gap: 8px; padding: clamp(20px, 2.4vw, 28px); }
.tm__text h3 { margin: 0; color: #fff; }
.tm__text p { margin: 0; color: #c9d7ee; }
.tm__div { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8db8ff; }
.tm__role { font-weight: 700; color: #fff !important; }
@media (hover: hover) and (pointer: fine) {
  .tm__card:hover .tm__inner, .tm__lead:hover .tm__inner { transform: translateY(-6px); border-color: rgba(141, 184, 255, 0.4); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 74, 173, 0.5); }
  .tm__card:hover .tm__photo img, .tm__lead:hover .tm__photo img { filter: none; transform: scale(1.03); }
  .tm__card:hover .tm__photo::after, .tm__lead:hover .tm__photo::after { opacity: 0; }
}
@media (hover: none) { .tm__photo::after { opacity: 0.35; } .tm__photo img { filter: grayscale(0.6) contrast(1.04); } }
.tm__lead .tm__inner { display: grid; background: linear-gradient(135deg, rgba(0, 74, 173, 0.32), rgba(255, 255, 255, 0.03) 60%); }
.tm__lead .tm__text { align-content: center; gap: 12px; padding: clamp(24px, 4vw, 56px); }
.tm__lead .tm__text h3 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.tm__lead .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 860px) { .tm__lead .tm__inner { grid-template-columns: minmax(280px, 440px) 1fr; } .tm__photo--lead { aspect-ratio: auto; min-height: 100%; } }
.tm__grp { margin: clamp(48px, 6vw, 80px) 0 20px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8db8ff; }
.tm__grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 640px) { .tm__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tm__grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tm__inner, .tm__photo img, .tm__photo::after { transition: none; } }

.on-night .rows p { color: #c9d7ee; }

/* ---- Round 6k ---- */
/* Four stacking service cards */
.services--stack .svc:nth-child(4) { --n: 3; }
/* Air curtain card: the 720px photo is never shown larger than its source. On wide
   screens it sits whole over a blurred copy of itself instead of being stretched. */
.svc__blur { display: none; }
@media (min-width: 900px) {
  .svc--native .svc__blur { display: block; position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(0.55) saturate(1.2); }
  .services--stack .svc--native .ph-frame img { object-fit: contain; max-width: 720px; margin: auto; left: 0; right: 0; }
}
/* Quote form: six segments, six building tiles, text-only insulation tiles, tick boxes */
.qf__segs--6 { grid-template-columns: repeat(6, 1fr); }
.choices--6 { grid-template-columns: 1fr 1fr; }
.choices--text .choice__face { min-height: 58px; flex-direction: row; align-items: center; }
.choice--tick .choice__face::after { border-radius: 6px; }
/* Click-to-load video */
.vfacade { margin: 0; }
.vfacade__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--night-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.vfacade__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(0.9); }
.vfacade__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; border: 0; background: linear-gradient(180deg, rgba(6, 26, 61, 0) 30%, rgba(6, 26, 61, 0.55)); color: #fff; cursor: pointer; font: inherit; }
.vfacade__btn { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px rgba(0, 74, 173, 0.3), 0 18px 40px -12px rgba(0, 0, 0, 0.7); transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.vfacade__btn svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.vfacade__lbl { font-weight: 700; letter-spacing: 0.02em; }
.vfacade__play:hover .vfacade__btn, .vfacade__play:focus-visible .vfacade__btn { transform: scale(1.07); box-shadow: 0 0 0 12px rgba(0, 74, 173, 0.35), 0 18px 40px -12px rgba(0, 0, 0, 0.7); }
.vfacade__play:focus-visible { outline: 3px solid #8db8ff; outline-offset: -3px; }
.vfacade__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vfacade figcaption { margin-top: 10px; font-size: 0.85rem; color: #c9d7ee; }
/* Client logo banner (only once approved) */
.logos { overflow: hidden; }
.logos__track { display: flex; width: max-content; animation: logos 40s linear infinite; }
.logos__list { display: flex; gap: 56px; padding: 12px 28px; margin: 0; list-style: none; align-items: center; }
.logos__list img { height: 40px; width: auto; filter: grayscale(1); opacity: 0.8; }
@keyframes logos { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos__track { animation: none; flex-wrap: wrap; } }
/* Case study photo gallery */
.cs-gal { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .cs-gal { grid-template-columns: 1fr 1fr; } }
.cs-gal .ph-frame { aspect-ratio: 4 / 3; }
.cs-gal .ph-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.svc-after { margin-top: 24px; }
@media (min-width: 900px) { .services.services--two { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cs__stats li:first-child:nth-last-child(2) { grid-column: auto; } }
.foot-addr span { display: block; }

/* =====================================================================
   Round 6q: mobile polish. Everything below is phone and tablet only
   (899px and down), apart from the phone pill icon fix, which is global.
   ===================================================================== */

/* A1. Header phone pill: the icon never shrinks; a round icon button on small phones */
.icon-btn--tel svg { flex: none; width: 18px; height: 18px; }
@media (max-width: 480px) {
  .head-mob .icon-btn--tel { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
  .head-mob .icon-btn--tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .head-mob { gap: 8px; }
  .icon-btn--menu { width: 48px; min-width: 48px; height: 48px; }
}

/* A9. Gutters and section rhythm */
@media (min-width: 375px) and (max-width: 899px) { :root { --gutter: 20px; } }
@media (max-width: 374px) { :root { --gutter: 16px; } }
@media (max-width: 899px) {
  .sec-head { gap: 12px; margin-bottom: 28px; }
  .sec-head .stack-s { gap: 12px; }
  .scrub + .band, .scrub + .band--hero { margin-top: 0; }
  .scrub:has(+ .band) { padding-bottom: 0; }
}

/* A10. Line breaks */
@media (max-width: 899px) {
  h1, h2, h3 { text-wrap: balance; }
  p, .lead { text-wrap: pretty; }
}

/* A2. Home service cards: title above the photo, each card leaves its title as a tab */
@media (max-width: 767px) {
  .services--stack .svc { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; top: calc(84px + var(--n, 0) * 60px); }
  .services--stack .svc__body { order: -1; padding: 16px 20px 18px; gap: 8px; }
  .services--stack .svc__body .label { line-height: 1; }
  .services--stack .svc h3 { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.5rem); line-height: 1.15; }
  .services--stack .svc .ph-frame { aspect-ratio: 16 / 9; height: auto; }
  .services--stack .svc .ph-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .services--stack .svc--native .ph-frame img { object-fit: cover; max-width: none; }
  .services--stack { gap: 16px; }
  .services--stack .svc { transition: transform 120ms var(--ease-out); }
  .services--stack .svc:active { transform: scale(0.985); }
}

/* A3. Footer */
@media (max-width: 599px) {
  .foot-grid > .stack-s { grid-column: 1 / -1; }
  .foot-grid a[href^="mailto:"] { white-space: nowrap; }
  .foot-addr span { display: inline; }
  .foot-addr span + span::before { content: ", "; }
  .foot-addr b { display: block; }
  .site-foot .group-sites { gap: 10px; }
  .site-foot .gsite { padding: 16px; gap: 6px; }
}
@media (max-width: 899px) {
  body.has-callbar { padding-bottom: 0; }
  body.has-callbar .site-foot { padding-bottom: calc(28px + 74px + env(safe-area-inset-bottom)); }
}

/* A4. Quote form Next bar: solid, with a hairline and shadow only while stuck */
@media (max-width: 899px) {
  .qf__nav { position: sticky; bottom: 0; z-index: 2; margin-inline: -4px; padding: 12px 4px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); transition: box-shadow 200ms ease; }
  .qf__nav.is-stuck { box-shadow: 0 -1px 0 var(--line-l), 0 -12px 24px -14px rgba(6, 26, 61, 0.35); }
  .qf .choices { margin-bottom: 12px; }
  .qf__sentinel { display: block; height: 1px; margin-top: -1px; pointer-events: none; }
}
.choice input:checked + .choice__face::after { animation: tick-pop 160ms var(--ease-out) both; }
@keyframes tick-pop { from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .choice input:checked + .choice__face::after { animation: none; } }

/* A5. Home hero fold (6r: raised to 480px for real iPhones; the CTA pair is set in the 6r block) */
@media (max-width: 480px) {
  .xhero { min-height: auto; }
  .xhero__copy { padding-top: min(14svh, 120px); gap: 14px; }
  .xhero .eyebrow { display: block; }
  .xhero h1 { font-size: clamp(2.05rem, 1.1rem + 4.6vw, 2.45rem); line-height: 1.04; }
  .xhero .stack { gap: 16px; }
}

/* A6. Spec rows stack on small phones */
@media (max-width: 430px) {
  .fields > div, .proj .fields > div { grid-template-columns: 1fr; gap: 4px; }
  .fields dt { font-size: 12px; }
  .fields dd, .proj .fields dd, .spec .fields dd { font-size: 16px; font-weight: 600; }
}

/* A7. Swipeable rails */
@media (max-width: 767px) {
  .projects { grid-auto-flow: column; grid-auto-columns: 84vw; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .projects::-webkit-scrollbar { display: none; }
  .projects > * { scroll-snap-align: start; }
  .rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .rail-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-l2, rgba(14, 22, 33, 0.25)); transition: width 220ms var(--ease-out), background 220ms ease; }
  .rail-dots i.is-on { width: 22px; background: var(--blue); }
}
@media (min-width: 768px) { .rail-dots { display: none; } }
@media (max-width: 599px) {
  .cs-jump { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; white-space: nowrap; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .cs-jump::-webkit-scrollbar { display: none; }
  .cs-jump a { flex: 0 0 auto !important; min-height: 44px; scroll-snap-align: start; }
}
@media (min-width: 360px) and (max-width: 559px) {
  .buildings { grid-template-columns: 1fr 1fr; gap: 10px; }
  .buildings > div { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; height: 100%; }
}

/* A8. Tap targets of at least 44px */
@media (max-width: 899px) {
  .crumbs a { position: relative; display: inline-block; }
  .crumbs a::after { content: ""; position: absolute; inset: -14px -6px; }
  .foot-grid li a { min-height: 44px; }
  .foot-base a, .foot-base button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .foot-base span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
  .textlink { position: relative; }
  .textlink::after { content: ""; position: absolute; inset: -12px -2px; }
  .fields dd a, .gmap__dir, .groupbar a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Extras 1. Call bar: spring in, never over the menu or a focused field */
@media (max-width: 899px) {
  .callbar { transition: transform 320ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 180ms ease; }
  .callbar.is-hidden { transform: translateY(110%); }
  body.menu-open .callbar, body.form-focus .callbar { transform: translateY(110%); opacity: 0; pointer-events: none; }
}

/* Extras 2. Menu: starts under the header, contained scroll, quick burger morph */
.menu-panel { overscroll-behavior: contain; }
.menu-panel.is-placed { padding-top: 20px; }
.burger i { transition-duration: 120ms, 120ms; }

/* Extras 3. Touch feedback */
@media (hover: none) {
  .btn, .plate, .choice__face, .proj, .pcard { transition: transform 120ms var(--ease-out); }
  .btn:active, .plate:active, .choice:active .choice__face, .proj:active { transform: scale(0.98); }
}

/* Extras 4. A slow settle on the home hero photo */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .xhero__bg img { animation: hero-settle 12s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
}
@keyframes hero-settle { from { scale: 1.06; } to { scale: 1; } }

/* Extras 5. Lighter reveals on phones */
@media (max-width: 899px) {
  html.motion .rv:not(.in) { transform: translate3d(0, 24px, 0); }
  html.motion .rv.in { transition-duration: 450ms, 450ms; }
}

/* 6q follow-ups from the 390 screenshots */
@media (max-width: 899px) {
  /* The hero photo fades out instead of ending in a hard edge across the proof row */
  .xhero__bg { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  /* Case study cards in the swipe rail: a shorter photo so the facts show */
  .projects .proj__photo .ph-frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
  /* Stacked service cards: the number sits in the corner so each tab shows the whole title */
  .services--stack .svc__body { position: relative; padding: 14px 52px 18px 20px; }
  .services--stack .svc__body > .label { position: absolute; top: 16px; right: 18px; }
  .services--stack .svc h3 { font-size: 1.2rem; line-height: 1.15; }
}

/* 6q performance: the round 5 rule meant to stop the thermal drift on phones was
   overridden by the later animation rule, so it ran on every phone. Stop it here
   (phones and tablets only; desktop keeps it). */
@media (max-width: 899px) { .thermal { animation: none; } }

/* =====================================================================
   Round 6r: home hero format, approved headline, shiny primary CTA
   ===================================================================== */

/* Part C: the bold subheading under the home headline (all widths) */
.xhero__sub { margin: 0; color: #fff; font-weight: 700; font-size: clamp(1.2rem, 1.02rem + 0.75vw, 1.6rem); line-height: 1.32; letter-spacing: -0.005em; max-width: 34em; text-wrap: pretty; }
.xhero .heat { white-space: nowrap; }

/* A2, A3, A4: the home hero on phones (480px and down) */
@media (max-width: 480px) {
  .xhero h1 { font-size: clamp(2.3rem, 1.25rem + 4.9vw, 2.75rem); line-height: 1.06; text-wrap: balance; }
  .xhero__copy { gap: 14px; }
  .xhero .stack { gap: 14px; }
  .xhero__sub { font-size: clamp(1.15rem, 0.98rem + 0.75vw, 1.28rem); line-height: 1.34; }
  .xhero .lead { font-size: 1rem; line-height: 1.5; margin-top: -2px; }
  /* One clean rule for the CTA pair: primary on top, the call button under it, both full width */
  .xhero .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 6px; }
  .xhero .actions .btn { width: 100%; min-height: 54px; height: auto; padding: 0 20px; font-size: 1.0625rem; white-space: nowrap; flex: none; }
  .xhero .actions .btn svg { flex: none; }
  /* Proof row: same words, sentence case, quieter labels so they read in two or three lines */
  /* A clear gap before the quote card so it does not sit on the stats */
  .xhero__grid { gap: 44px; }
}

/* Part B: shiny gradient primary CTA (sitewide). Solid primary buttons only: not outline,
   phone, back or cookie buttons. The sheen sits on ::before; ::after keeps the halo. */
.btn:not(.btn--line):not(.btn--tel):not(.consent .btn) {
  --fg: #fff;
  background: linear-gradient(120deg, #002a66 0%, #003a8c 26%, #004aad 58%, #0a5bd6 100%);
  background-size: 140% 100%; background-position: 0% 50%;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 0 0 1px rgba(141, 184, 255, 0.22), 0 10px 26px -12px rgba(0, 58, 140, 0.85);
  transition: transform 180ms var(--ease-out), box-shadow 220ms ease, background-position 420ms var(--ease-out);
}
.btn:not(.btn--line):not(.btn--tel):not(.consent .btn)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.42) 49%, rgba(200, 225, 255, 0.18) 54%, rgba(255, 255, 255, 0) 64%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .btn:not(.btn--line):not(.btn--tel):not(.consent .btn)::before { animation: cta-sheen 3.8s cubic-bezier(0.45, 0, 0.2, 1) 1.2s infinite; }
}
/* The light crosses in about a second, then rests */
@keyframes cta-sheen { 0% { background-position: 130% 0; } 28%, 100% { background-position: -30% 0; } }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn--line):not(.btn--tel):not(.consent .btn):hover {
    background-position: 100% 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 0 0 1px rgba(141, 184, 255, 0.34), 0 16px 34px -12px rgba(10, 91, 214, 0.95), 0 0 0 4px rgba(10, 91, 214, 0.14);
  }
}
.btn:not(.btn--line):not(.btn--tel):not(.consent .btn):active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.97); }
.btn:not(.btn--line):not(.btn--tel):not(.consent .btn)[aria-disabled="true"] { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) {
  .btn:not(.btn--line):not(.btn--tel):not(.consent .btn)::before { animation: none; opacity: 0; }
  .btn, .btn:hover, .btn:active { transform: none !important; }
  .btn::after { animation: none !important; }
}

/* =====================================================================
   Round 6s: home page, less text and more impact (index.html only).
   Hero rules are scoped to .xhero--home so the case study heroes do not change.
   ===================================================================== */

/* Hero: eyebrow, headline, one line, call to action */
.xhero--home h1 { letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
.xhero--home .xhero__sub { font-weight: 700; font-size: clamp(1.15rem, 0.8rem + 1vw, 1.55rem); line-height: 1.3; max-width: 32ch; text-wrap: balance; }
@media (min-width: 481px) {
  .xhero--home .xhero__copy { gap: 30px; }
  .xhero--home .eyebrow { margin-bottom: -8px; }
  .xhero--home .stack { gap: 40px; }
}
@media (min-width: 1000px) {
  /* The quote card keeps 480px; the copy column takes the rest so the first sentence of the headline stays on one line */
  .xhero--home .xhero__grid { grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; }
  .xhero--home .xhero__copy { max-width: none; }
  .xhero--home h1 { font-size: clamp(2.4rem, 10.8vw - 70px, 4.9rem); }
  /* No fixed tall section now the proof row has gone: the card and the scroll hint set the height */
  .xhero.xhero--home { min-height: 0; padding-block: clamp(56px, 6vw, 96px) clamp(96px, 8vw, 128px); }
}
@media (max-width: 480px) {
  .xhero--home h1 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .xhero--home .xhero__copy { gap: 16px; }
  .xhero--home .stack { gap: 24px; margin-top: 2px; }
  .xhero--home .xhero__sub { max-width: none; }
  .xhero--home .actions { margin-top: 0; }
  /* Phones show one clear action; the number is in the header icon and the call bar */
  .xhero--home .actions .btn--tel { display: none; }
}

/* Short section heads take the full width; short sections sit a little tighter on desktop */
.sec-head--short { max-width: none; margin-bottom: clamp(28px, 3.4vw, 56px); }
@media (min-width: 900px) { .sec-short { padding-block: calc(var(--section) * 0.82); } }
.hgal__head { margin-bottom: clamp(24px, 3vw, 40px); }

/* Shorter service card titles can be a step bigger on desktop */
@media (min-width: 768px) { .services--stack .svc h3 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem); } }

/* Numbers band: a big figure and one label each; the word figure wraps cleanly */
.numbers--xl b.numbers__word { font-size: clamp(2.6rem, 1.2rem + 3.6vw, 5.4rem); line-height: 0.95; letter-spacing: -0.025em; }
.numbers--xl b.numbers__word .amber { margin: 0 0.08em; }
.numbers--xl > div { align-content: start; }

/* Home case study cards: one short line instead of the facts table */
.proj__line { margin: 0; font-size: 1rem; line-height: 1.5; color: #d0d9e3; max-width: 40ch; }

/* =====================================================================
   Round 6t: home page, headings only (index.html only)
   ===================================================================== */
/* Hero: headline, one short line, Get a quote */
.xhero--home .xhero__sub { max-width: none; }
@media (min-width: 481px) { .xhero--home .stack { gap: 32px; } }

/* Case study cards: the title sits on the photo, so the card has no empty body */
.proj--min { position: relative; grid-template-rows: 1fr; grid-template-columns: 1fr; }
.proj--min .proj__photo { height: 100%; margin: 0; }
.proj--min .proj__photo .ph-frame { height: 100%; aspect-ratio: 4 / 5; }
.proj--min .proj__body { position: absolute; inset: auto 0 0 0; padding: 72px 24px 22px; gap: 4px; align-content: end; background: linear-gradient(180deg, rgba(6, 26, 61, 0) 0%, rgba(6, 26, 61, 0.78) 55%, rgba(6, 26, 61, 0.92) 100%); pointer-events: none; }
.proj--min h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; }
.proj__loc { font-size: 0.95rem; color: #d0d9e3; }
.hgal.is-pinned .hgal__track > .proj--min { grid-template-columns: 1fr; }
.hgal.is-pinned .proj--xl.proj--min .proj__photo .ph-frame { height: min(62vh, 560px); aspect-ratio: auto; }
.hgal.is-pinned .proj--xl.proj--min .proj__body { padding: 96px 32px 28px; }
.hgal.is-pinned .hgal__track > .proj--min { flex-basis: clamp(360px, 30vw, 460px); }

/* Steps and rows that are now titles only sit a little tighter */
.timeline li:has(> div > h3:only-child) { padding-bottom: 22px; }
@media (min-width: 1000px) { .timeline li:has(> div > h3:only-child) { padding-bottom: 0; } }
.scrub__steps li:not(:has(p)) { padding-block: 6px; }
/* 6t: the highlighted sentence always starts its own line, so each sentence keeps a line on desktop */
.xhero--home h1 > .wh { display: block; width: fit-content; }

/* =====================================================================
   Round 6u: USP row under the home hero CTA (index.html only)
   Labels come first in the markup (valid dl); CSS shows the figure above.
   ===================================================================== */
.usp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; margin: 0; padding: 0; border-top: 1px solid var(--line-d2); }
.usp > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 8px; padding: 18px 18px 0 0; }
.usp > div + div { padding-left: 18px; border-left: 1px solid var(--line-d); }
.usp dd { grid-row: 1; align-self: end; margin: 0; font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); line-height: 0.95; letter-spacing: -0.02em; color: #fff; }
.usp dd small { font-size: 0.5em; letter-spacing: 0; }
.usp dd.usp__word { font-size: clamp(1.15rem, 0.95rem + 0.75vw, 1.6rem); line-height: 1.05; }
.usp dd .amber { color: var(--amber); }
.usp dd.usp__word .amber { margin: 0 0.08em; }
@media (min-width: 1000px) { .usp dt { font-size: 0.95rem; } }
.usp dt { grid-row: 2; align-self: start; font-size: 0.875rem; line-height: 1.35; color: #b9c6d6; text-wrap: balance; }
@media (min-width: 481px) { .xhero--home .stack { row-gap: 32px; } .xhero--home .usp { margin-top: 8px; } }
.usp dd { white-space: nowrap; }
.usp dd.usp__word { white-space: normal; }
/* Phones: the labels would wrap to three lines in a row of three, so each item gets its own line */
@media (max-width: 599px) {
  .usp { grid-template-columns: 1fr; grid-template-rows: none; }
  .usp > div { grid-row: auto; grid-template-rows: none; grid-template-columns: 47% minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 11px 0; }
  .usp > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-d); }
  .usp dd { grid-row: 1; grid-column: 1; align-self: center; font-size: 1.5rem; }
  .usp dd.usp__word { font-size: 1.15rem; white-space: nowrap; }
  .usp dt { grid-row: 1; grid-column: 2; align-self: center; font-size: 0.875rem; text-wrap: pretty; }
  .xhero--home .usp { margin-top: 4px; }
}
/* A subtle staggered fade-in */
@media (prefers-reduced-motion: no-preference) {
  .usp > div { animation: rise 700ms var(--ease-out) both; animation-delay: 420ms; }
  .usp > div:nth-child(2) { animation-delay: 540ms; }
  .usp > div:nth-child(3) { animation-delay: 660ms; }
}

/* Round 6v: the home headline is always two lines, "Efficient Equipment." then "Lower Bills."
   The size follows the screen width so the first line never wraps. */
.xhero--home h1 { white-space: nowrap; }
@media (min-width: 481px) and (max-width: 999px) { .xhero--home h1 { font-size: clamp(2.6rem, 9.5vw, 5rem); } }

/* Round 6w: keep the hero line under the headline to two lines where the column is narrowest */
@media (min-width: 1000px) and (max-width: 1199px) { .xhero--home .xhero__sub { font-size: 1.15rem; } }

/* Round 6x: with fewer than five client logos the row sits still and centred, with no gaps */
.logos--static .logos__track { width: auto; animation: none; justify-content: center; }
.logos--static .logos__list { flex-wrap: wrap; justify-content: center; }

/* Round 6z: Brighouse office. The map pin sits on Brighouse in the regional preview. */
.gmap__marker { left: 48.4%; top: 43.6%; }
.office { display: grid; gap: 18px; align-items: start; }
@media (min-width: 640px) { .office { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; } }
.office__photo { margin: 0; }
.office__photo .ph-frame { aspect-ratio: 1 / 1; border-radius: var(--r-l); overflow: hidden; }
.office__photo img { width: 100%; height: 100%; object-fit: cover; }
.office-gal { display: grid; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 700px) { .office-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.office-gal .ph-frame { aspect-ratio: 3 / 2; border-radius: var(--r-l); overflow: hidden; }
.office-gal img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .office .fields > div { grid-template-columns: 1fr; gap: 4px; } }
.office .fields a[href^="mailto:"] { white-space: nowrap; }
/* Round 6z follow-up: a short line about the office location */
.office__info { display: grid; gap: 14px; align-content: start; }
.office__note { margin: 0; color: var(--steel); line-height: 1.55; max-width: 60ch; }
.on-night .office__note { color: #d0d9e3; }
.office__note--lead { margin: -4px 0 clamp(18px, 2.4vw, 28px); font-size: 1.0625rem; }

/* =====================================================================
   Round 7a: directors and office on the home page
   ===================================================================== */
.dirs__grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .dirs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .dirs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.dir { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-l); }
@media (min-width: 600px) { .dir { grid-template-columns: 120px minmax(0, 1fr); } }
.dir__photo { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0b2a5c; }
.dir__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dir__text { display: grid; gap: 4px; }
.dir__text h3 { margin: 0; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.2; }
.dir__div { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.dir__role { margin: 0; font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.dir__text p:last-child { margin: 4px 0 0; color: var(--steel); font-size: 0.95rem; line-height: 1.5; }
@media (min-width: 1000px) {
  .dir { grid-template-columns: 1fr; padding: 0; overflow: hidden; gap: 0; }
  .dir__photo { border-radius: 0; }
  .dir__text { padding: 18px 20px 22px; }
}
.dirs__cta { margin-top: clamp(22px, 3vw, 36px); }
.office-home__photo { margin: 0; }
.office-home__photo .ph-frame { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; }
.office-home__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.office-home__addr { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--ink); }
.office-home__addr svg { width: 20px; height: 20px; flex: none; color: var(--blue); }

/* Round 7b: office gallery with the portrait staircase. Phones stack; from 900px the
   reception is wide, the staircase runs down the right, meeting room and workspace below. */
.office-gal__item { position: relative; margin: 0; border-radius: var(--r-l); overflow: hidden; }
.office-gal .office-gal__item .ph-frame { aspect-ratio: 3 / 2; border-radius: 0; height: 100%; }
.office-gal .office-gal__item--staircase .ph-frame { aspect-ratio: 4 / 5; }
.office-gal__item img { width: 100%; height: 100%; object-fit: cover; }
.office-gal__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; font-size: 0.82rem; line-height: 1.35; color: #fff; background: linear-gradient(180deg, rgba(6, 26, 61, 0) 0%, rgba(6, 26, 61, 0.85) 100%); pointer-events: none; }
@media (min-width: 900px) {
  .office-gal { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "rec rec stair" "meet work stair"; }
  .office-gal__item--reception { grid-area: rec; }
  .office-gal__item--staircase { grid-area: stair; }
  .office-gal__item--meeting-room { grid-area: meet; }
  .office-gal__item--workspace { grid-area: work; }
  .office-gal .office-gal__item--reception .ph-frame { aspect-ratio: 2 / 1; }
  .office-gal .office-gal__item--staircase .ph-frame { aspect-ratio: auto; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .office-gal { grid-template-columns: 1fr 1fr; grid-template-areas: "rec rec" "stair meet" "stair work"; }
  .office-gal__item--reception { grid-area: rec; }
  .office-gal__item--staircase { grid-area: stair; }
  .office-gal__item--meeting-room { grid-area: meet; }
  .office-gal__item--workspace { grid-area: work; }
  .office-gal .office-gal__item--staircase .ph-frame { aspect-ratio: auto; }
}

/* Round 7c: interior strip under the home office section. Phones swipe it; from 900px four tiles. */
.office-strip { margin-top: clamp(24px, 3vw, 40px); }
.office-strip__list { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
.office-strip__list::-webkit-scrollbar { display: none; }
.office-strip__item { margin: 0; scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.office-strip__item .ph-frame { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; }
.office-strip__item img { width: 100%; height: 100%; object-fit: cover; }
.office-strip__item:last-child img { object-position: 50% 40%; }
.office-strip__item figcaption { font-size: 0.8rem; line-height: 1.4; color: var(--steel); }
@media (min-width: 600px) { .office-strip__list { grid-auto-columns: 44%; } }
@media (min-width: 900px) { .office-strip__list { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; gap: 18px; } }

/* ==========================================================================
   Dec 2026: call-back-first form, compact cookie choice, funnel call button and footer
   ========================================================================== */
/* Funnel header: a labelled call button, always visible */
.site-head--funnel .site-head__in { justify-content: space-between; }
.head-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--blue, #004aad); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.head-call svg { width: 18px; height: 18px; color: #fff; flex: none; }
.head-call__n { display: none; }
.head-call:focus-visible { outline: 2px solid var(--blue, #004aad); outline-offset: 3px; }
@media (min-width: 640px) { .head-call__l { display: none; } .head-call__n { display: inline; } }

/* Funnel footer: who we are, where, and the number */
.foot-biz { display: grid; gap: 4px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-d, rgba(255,255,255,.14)); font-size: 0.95rem; line-height: 1.5; color: var(--mist); }
.foot-biz b { color: #fff; }
.foot-biz address { font-style: normal; }
.foot-biz__tel { gap: 8px; font-weight: 700; color: #fff; text-decoration: none; }
.foot-biz__tel svg { width: 18px; height: 18px; }

/* Cookie choice: one slim strip, buttons beside the text where there is room */
.consent--compact { gap: 10px; padding: 12px 14px; font-size: 0.86rem; line-height: 1.4; max-width: 620px; }
.consent--compact.is-on { display: flex; flex-wrap: wrap; align-items: center; }
.consent--compact p { flex: 1 1 260px; margin: 0; }
.consent--compact .actions { display: flex; gap: 8px; flex: 0 0 auto; margin: 0; }
.consent--compact .actions .btn { min-height: 44px; padding: 0 16px; font-size: 0.9rem; flex: 0 0 auto; }
@media (max-width: 560px) {
  .consent--compact { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .consent--compact .actions { flex: 1 1 100%; }
  .consent--compact .actions .btn { flex: 1; }
}

/* Form: progress for four steps, a back link in the plate head, field hints */
.qf__segs--4 { grid-template-columns: repeat(4, 1fr); }
.qf__segs--5 { grid-template-columns: repeat(5, 1fr); }
.qf__backlink { display: none; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px; margin-left: auto; margin-right: 10px; border: 0; background: none; color: var(--blue, #004aad); font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; }
.qf__backlink svg { width: 16px; height: 16px; transform: rotate(180deg); }
.qf__backlink[hidden] { display: none !important; }
.field__hint { margin-top: 4px; font-size: 0.85rem; color: var(--steel); }
.qf__step[data-step="contact"] .qf__legal { margin-top: 2px; margin-bottom: 12px; }
@media (max-width: 560px) {
  /* Mobile: the Next button takes the full width; Back moves up to the plate head */
  .qf__backlink { display: inline-flex; }
  .qf__nav .qf__back { display: none; }
  .qf__nav .btn { width: 100%; }
}

/* Thank-you extras */
.tyx-sec { padding-block: 0 clamp(40px, 6vw, 80px); }
.tyx-wrap { max-width: 680px; }
.tyx .plate__body { display: grid; gap: 14px; }
.tyx__q { font-size: 0.97rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tyx .qf__saved { font-size: 1rem; }
.tyx[hidden] { display: none !important; }

/* Open cookie choice: keep the sticky Next button clear of it */
@media (max-width: 560px) { .consent-open .qf__nav { bottom: var(--consent-h, 0px); } }
/* The quote page section clipped its background with overflow: hidden, which also stopped
   the sticky Next button from sticking. clip keeps the clipping without that side effect. */
@supports (overflow: clip) { .qpage { overflow: clip; } }
.tyx .field[hidden], .tyx .qf__nav[hidden] { display: none !important; }
