/* ==========================================================================
   Trident Plumbers - shared styles for the content pages.
   The design system of the new home page (tailwind.config.cjs, app/globals.css) written as plain CSS:
   the same tokens, type, spacing, panels, buttons, header and footer.
   Breakpoints as Tailwind: sm 640px, md 768px, lg 1024px, xl 1280px, 2xl 1536px.
   ========================================================================== */

/* ---------- Fonts (self-hosted, same files as the Next.js pages) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(../../assets/fonts/ibm-plex-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../../assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../../assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../../assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../../assets/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../../assets/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../../assets/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../../assets/fonts/inter-latin-600-normal.woff2) format("woff2"); }

/* While IBM Plex Sans loads, text is drawn in Arial scaled to Plex's widths and line metrics, so lines break in the
   same places and nothing jumps when the web font arrives (measured in the browser: Plex 400 is 1.3% wider
   than Arial, Plex 600/700 2.3%/1% narrower than Arial Bold). Same faces in app/globals.css. */
@font-face { font-family: "IBM Plex Sans Fallback"; font-weight: 300 500; src: local("Arial"), local("ArialMT"); size-adjust: 101.3%; ascent-override: 101.2%; descent-override: 27.1%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Sans Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 97.7%; ascent-override: 104.9%; descent-override: 28.1%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Sans Fallback"; font-weight: 700 900; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 99%; ascent-override: 103.5%; descent-override: 27.8%; line-gap-override: 0%; }

/* ---------- Tokens (tailwind.config.cjs) ---------- */
:root {
  --ink: #081634;            /* page background */
  --ink-900: #0d1e46;        /* panels, Trident navy */
  --ink-800: #142a5c;
  --ink-700: #1d3a78;
  --signal: #2b77bb;         /* Trident blue */
  --signal-400: #4d95d6;
  --signal-600: #1f5f99;
  --red: #e42624;            /* Trident red */
  --red-hover: #f03b39;
  --blueprint: #7dd3fc;
  --white: #ffffff;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;      /* body text */
  --slate-400: #94a3b8;      /* secondary text */
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;      /* control borders */
  --slate-800: #1e293b;      /* panel borders */

  --f-sans: "IBM Plex Sans", "IBM Plex Sans Fallback", "Inter", system-ui, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-glow: 0 0 0 1px rgba(43, 119, 187, .45), 0 10px 40px -10px rgba(43, 119, 187, .6);
  --shadow-glow-red: 0 0 0 1px rgba(228, 38, 36, .4), 0 10px 40px -10px rgba(228, 38, 36, .6);
  --shadow-panel: 0 0 0 1px rgba(148, 163, 184, .08), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --grid-lines: linear-gradient(to right, rgba(77, 149, 214, .09) 1px, transparent 1px), linear-gradient(to bottom, rgba(77, 149, 214, .09) 1px, transparent 1px);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius-sm: 6px;          /* rounded-md: buttons, controls */
  --radius: 12px;            /* rounded-xl: menus, small cards */
  --radius-lg: 16px;         /* rounded-2xl: panels */
  --header-h: 72px;
  --section-y: 64px;         /* py-16 */
  --gutter: 20px;            /* px-5 */
}
@media (min-width: 640px) { :root { --section-y: 96px; --gutter: 32px; } }   /* sm:py-24, sm:px-8 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--slate-800); }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; tab-size: 4; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--ink); color: var(--slate-300);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
a { color: inherit; text-decoration: inherit; }
:where(p, figure, blockquote, dl, dd, ol, ul) { margin: 0; }
:where(ol, ul) { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: transparent; padding: 0; cursor: pointer; }
input, select, textarea { color-scheme: dark; }
[hidden] { display: none !important; }
::selection { background: rgba(43, 119, 187, .55); color: #fff; }
:focus-visible { outline: 2px solid var(--signal-400); outline-offset: 3px; }
[id] { scroll-margin-top: 96px; }
hr { height: 0; border-top-width: 1px; border-color: var(--slate-800); margin: 32px 0; }
table { border-collapse: collapse; text-indent: 0; }
strong, b { font-weight: 700; }
small { font-size: 80%; }

:where(h1, h2, h3, h4, h5, h6) { margin: 0; font-family: var(--f-sans); color: #fff; font-size: inherit; font-weight: inherit; }
/* Content headings (low specificity, so component classes win) */
:where(main) :where(h1) { font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
:where(main) :where(h2), .h2 { font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: #fff; }
:where(main) :where(h3), .h3 { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
:where(main) :where(h4), .h4 { font-size: 19px; font-weight: 600; line-height: 1.35; color: #fff; }
:where(main) :where(h5), .h5 { font-size: 17px; font-weight: 600; line-height: 1.4; color: #fff; }
:where(main) :where(h6) { font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }
@media (min-width: 640px) {
  :where(main) :where(h2), .h2 { font-size: 39px; }
  :where(main) :where(h3), .h3 { font-size: 24px; }
  :where(main) h2.h3, :where(main) .h3 { font-size: 30px; }
}
:where(main) :where(p, ul, ol, dl, blockquote, figure, table) + :where(p, ul, ol, dl, blockquote, figure, table) { margin-top: 1em; }

/* Links inside running text */
:where(main) :where(p, li, dd, td, th, figcaption, address, blockquote) a:not([class]) {
  color: var(--signal-400); text-decoration: underline; text-decoration-color: rgba(77, 149, 214, .45);
  text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
:where(main) :where(p, li, dd, td, th, figcaption, address, blockquote) a:not([class]):hover { color: #fff; text-decoration-color: var(--red); }

.container, .container-x { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 100; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
  border-radius: 4px; background: var(--red); padding: 8px 16px; color: #fff; }
.icon { width: 1em; height: 1em; display: inline-block; flex: none; }
.lucide { flex: none; }
.text-center { text-align: center; }

/* ---------- Eyebrow (mono label with a red rule), also used for the older "pill" and "h6" labels ---------- */
.eyebrow, .pill, p.h6, .page-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: .25em; text-transform: uppercase;
  color: var(--signal-400);
}
.eyebrow::before, .pill::before, p.h6::before, .page-hero-kicker::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--red); }

/* ---------- Section rhythm and headings (components/SectionHeading.tsx) ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head.is-center, .section-head.is-stacked { flex-direction: column; align-items: flex-start; gap: 0; max-width: 768px; margin-bottom: 56px; }
.section-head.is-center { align-items: center; text-align: center; margin-inline: auto; }
.section-head.is-center h2, .section-head.is-stacked h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.02em; }
.section-intro { margin: 20px 0 0; font-size: 16px; line-height: 1.625; color: var(--slate-400); }
@media (min-width: 640px) {
  .section-head.is-center h2, .section-head.is-stacked h2 { font-size: 48px; line-height: 1.15; }
  .section-intro { font-size: 18px; }
}
.section-head-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--signal-400); transition: color .15s var(--ease); }
.section-head-link:hover { color: #fff; }
.section-head-link .icon { transition: transform .2s var(--ease); }
.section-head-link:hover .icon { transform: translateX(3px); }
.text-dim { color: var(--slate-500); }
.text-signal { color: var(--signal); }

/* ---------- Panels and cards (.panel in app/globals.css) ---------- */
.panel {
  border-radius: var(--radius-lg); border: 1px solid rgba(30, 41, 59, .8);
  background: rgba(13, 30, 70, .7); box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--slate-800);
  background: var(--ink-900); transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: rgba(77, 149, 214, .4); box-shadow: 0 0 0 1px rgba(43, 119, 187, .25), 0 18px 50px -24px rgba(43, 119, 187, .55); }
.bg-grid { background-image: var(--grid-lines); background-size: 64px 64px; }

/* ---------- Buttons (.btn-signal and .btn-ghost in app/globals.css) ---------- */
.btn, .btn-signal, .cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-sm); background: var(--red); padding: 12px 20px;
  font-family: var(--f-sans); font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; text-decoration: none; text-align: center; cursor: pointer;
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover, .btn-signal:hover, .cp-btn:hover, .btn:focus-visible, .btn-signal:focus-visible, .cp-btn:focus-visible { background: var(--red-hover); color: #fff; box-shadow: var(--shadow-glow-red); }
.btn-ghost, .btn.btn-ghost, .cp-btn.cp-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--slate-700); border-radius: var(--radius-sm); background: transparent; padding: 12px 20px;
  font-family: var(--f-sans); font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: normal; text-transform: none; color: #fff;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.btn-ghost:hover, .btn.btn-ghost:hover, .cp-btn.cp-btn-ghost:hover,
.btn-ghost:focus-visible, .btn.btn-ghost:focus-visible, .cp-btn.cp-btn-ghost:focus-visible { border-color: var(--signal-400); color: var(--signal-400); background: transparent; box-shadow: none; }
.btn .lucide, .btn-signal .lucide, .btn-ghost .lucide, .cp-btn .lucide { width: 16px; height: 16px; }
.btn .icon, .btn-ghost .icon { width: 16px; height: 16px; font-size: 16px; }
.btn-md, .btn-lg { padding: 12px 20px; }

/* Header, its pop-ups and the phone menu drawer: chrome.css (shared with the Next.js pages). */

/* ==========================================================================
   Footer (components/Footer.tsx)
   ========================================================================== */
.site-footer { position: relative; border-top: 1px solid var(--slate-800); background: var(--ink); }
.footer-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background-image: linear-gradient(to right, transparent, rgba(43, 119, 187, .6), transparent); }
.footer-grid { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-tagline { margin-top: 20px; max-width: 384px; font-size: 14px; line-height: 1.625; color: var(--slate-400); }
.footer-title { margin: 0; font-family: var(--f-mono); font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: .25em; text-transform: uppercase; color: var(--slate-400); }
.footer-title--touch { margin-top: 24px; }
.footer-contact { margin-top: 12px; list-style: none; font-size: 14px; line-height: 20px; }
.footer-contact > li + li { margin-top: 12px; }
.footer-contact a { display: flex; gap: 12px; color: var(--slate-300); }
.footer-contact a:hover { color: var(--signal); }
.footer-ico { width: 16px; height: 16px; flex: none; color: var(--signal); }
.footer-ico--pin { margin-top: 2px; }
.footer-social { display: flex; gap: 8px; margin-top: 24px; list-style: none; }
.footer-social a {
  display: grid; height: 40px; width: 40px; place-items: center; border-radius: 8px; border: 1px solid var(--slate-800);
  color: var(--slate-400); transition: color .15s var(--ease), border-color .15s var(--ease);
}
.footer-social a:hover { border-color: var(--signal); color: var(--signal); }
.footer-social .lucide { width: 16px; height: 16px; }
.footer-links { margin-top: 20px; list-style: none; font-size: 14px; line-height: 20px; }
.footer-links > li + li { margin-top: 12px; }
.footer-links a { color: var(--slate-300); }
.footer-links a:hover { color: var(--signal); }
.footer-links--regions a:hover { color: var(--signal-400); }
.footer-dim { color: var(--slate-400); }
.footer-bottom { border-top: 1px solid rgba(30, 41, 59, .8); }
.footer-bottom-row {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 24px; padding-bottom: 24px; font-size: 12px; line-height: 16px; color: var(--slate-400);
}
@media (min-width: 640px) { .footer-bottom-row { flex-direction: row; } }
.footer-bottom-row a:hover { color: var(--signal); }

/* ==========================================================================
   Page banners: dark, the photo as a muted layer on the right, blueprint grid (components/Hero.tsx)
   ========================================================================== */
.page-hero, .post-hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--ink);
  padding: calc(var(--header-h) + 56px) 0 56px; border-bottom: 1px solid rgba(30, 41, 59, .6);
}
.page-hero::before, .post-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: var(--hero-img, none) var(--hero-pos, center) / cover no-repeat;
  opacity: .5; filter: saturate(.75);
  -webkit-mask-image: linear-gradient(to left, #000 20%, rgba(0, 0, 0, .35) 60%, transparent 92%);
  mask-image: linear-gradient(to left, #000 20%, rgba(0, 0, 0, .35) 60%, transparent 92%);
}
.page-hero::after, .post-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(480px 480px at 100% 0%, rgba(43, 119, 187, .22), transparent 70%),
    radial-gradient(520px 420px at -10% 80%, rgba(43, 119, 187, .1), transparent 70%),
    linear-gradient(to right, var(--ink) 0%, rgba(8, 22, 52, .82) 42%, rgba(8, 22, 52, .35) 100%),
    linear-gradient(to top, var(--ink) 0%, rgba(8, 22, 52, 0) 45%);
}
/* blueprint grid lines drifting slowly, faded towards the edges */
.page-hero-inner::before, .post-hero-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grid-lines); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 50%, #000 15%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero-inner::before, .post-hero-inner::before { animation: grid-pan 6s linear infinite; }
}
@keyframes grid-pan { from { background-position: 0 0; } to { background-position: 64px 64px; } }
.page-hero-inner, .post-hero-inner { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.page-hero h1, .post-hero h1 { max-width: 900px; margin: 0; font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: #fff; }
.page-hero-kicker { margin-bottom: 20px; }
.page-hero-lead { max-width: 640px; margin: 24px 0 0; font-size: 18px; line-height: 1.625; color: var(--slate-300); }
@media (min-width: 640px) {
  .page-hero, .post-hero { padding: calc(var(--header-h) + 80px) 0 80px; }
  .page-hero h1 { font-size: 56px; }
}
@media (min-width: 1024px) {
  .page-hero, .post-hero { padding: calc(var(--header-h) + 96px) 0 96px; }
  .page-hero h1 { font-size: 64px; }
}
@media (max-width: 767px) {
  .page-hero::before, .post-hero::before {
    opacity: .35;
    -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 95%); mask-image: linear-gradient(to bottom, #000 10%, transparent 95%);
  }
}

/* Depth on scroll: the banner photo drifts down more slowly than the page as the banner scrolls away
   (scroll-driven, on the compositor). Decorative, so other browsers keep a still photo. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: exit)) {
    .page-hero, .post-hero, .cp-hero { view-timeline: --page-banner block; }
    .page-hero::before, .post-hero::before, .cp-hero::before {
      animation: banner-parallax linear both; animation-timeline: --page-banner; animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes banner-parallax { to { translate: 0 32%; } }

/* Breadcrumbs at the top of the banner */
.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; font-size: 13px; line-height: 1.5; }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; color: var(--slate-400); }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--slate-600); }
.breadcrumbs a { color: var(--slate-300); text-decoration: none; transition: color .15s var(--ease); }
.breadcrumbs a:hover { color: var(--signal-400); }
.breadcrumbs [aria-current] { color: var(--slate-400); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .breadcrumbs [aria-current] { max-width: 30ch; } }

/* ==========================================================================
   Shared blocks
   ========================================================================== */

/* Numbers (components/Metrics.tsx) */
.stats-band { position: relative; overflow: hidden; padding-block: var(--section-y); }
.stats-band::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background: url(../../mep/drawings/cold-water-typical.webp) center / cover no-repeat;
}
.stats-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink), rgba(8, 22, 52, .7), var(--ink)); }
.stats-band > .container { position: relative; z-index: 1; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--slate-800); background: var(--slate-800);
}
.stat, .counter-card { display: block; background: rgba(8, 22, 52, .9); padding: 24px; transition: background-color .3s var(--ease); }
.stat:hover, .counter-card:hover { background: var(--ink-900); }
.stat-number {
  display: block; width: fit-content; font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
  background-image: linear-gradient(to bottom right, #fff, var(--slate-400)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat:hover .stat-number, .counter-card:hover .stat-number { background-image: linear-gradient(to bottom right, #fff, var(--signal-400)); }
.stat-title { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; color: #fff; }
@media (min-width: 640px) {
  .stat { padding: 36px; }
  .stat-number { font-size: 60px; }
  .stat-title { font-size: 16px; }
}
@media (max-width: 639px) { .stats-grid { grid-template-columns: 1fr; } }
/* stacked numbers beside a photo (commercial and residential pages) */
.counter-stack {
  display: grid; gap: 1px; align-content: center; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--slate-800); background: var(--slate-800);
}
.counter-card { padding: 22px 26px; }
.counter-card .stat-number { font-size: 44px; }
.counter-card.is-blue { background: linear-gradient(135deg, rgba(43, 119, 187, .32), rgba(13, 30, 70, .95) 70%); }

/* Value, vision and mission (components/ValueSection.tsx) */
.value-section { padding-block: var(--section-y); }
.value-card {
  display: grid; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--slate-800);
  background: var(--ink-900); box-shadow: var(--shadow-panel);
}
@media (min-width: 1024px) { .value-card { grid-template-columns: 1.25fr 1fr 1fr; } }
.value-intro { position: relative; isolation: isolate; padding: 32px; }
.value-intro::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .25; background: var(--value-img, url(../../img/2023/11/pexels-pixabay-372796.jpg)) center / cover no-repeat; }
.value-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom right, rgba(13, 30, 70, .9), rgba(8, 22, 52, .8)); }
.value-heading { margin: 0 0 20px; }
.value-intro p { color: var(--slate-300); }
.value-col { padding: 32px; border-top: 1px solid var(--slate-800); }
.value-col h3 { font-size: 24px; font-weight: 300; line-height: 1.3; letter-spacing: 0; }
.value-col p { color: var(--slate-400); }
.divider { display: block; width: 48px; height: 3px; margin: 20px 0; background: var(--red); }
@media (min-width: 640px) { .value-intro, .value-col { padding: 48px; } }
@media (min-width: 1024px) { .value-col { border-top: 0; border-left: 1px solid var(--slate-800); } }

/* Logos on white tiles (components/GroupBrands.tsx) */
.logo-heading { margin: 0; text-align: center; font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--red); }
@media (min-width: 640px) { .logo-heading { font-size: 31px; } }
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; list-style: none; }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logo-grid a, .logo-grid .logo-tile-static {
  display: flex; height: 112px; align-items: center; justify-content: center; border-radius: var(--radius);
  border: 1px solid var(--slate-800); background: rgba(255, 255, 255, .95); padding: 20px;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.logo-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.logo-grid img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }

/* Call to action over a photo (components/CtaBand.tsx) */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cta-img, url(../../img/2023/11/pexels-ps-photography-67184.jpg)) center / cover no-repeat; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--ink), transparent, var(--ink)), rgba(13, 30, 70, .8);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; max-width: 768px; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.cta-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 32px; border-radius: var(--radius);
  background: var(--signal); color: #fff; font-size: 32px; box-shadow: var(--shadow-glow);
}
.cta-icon .icon, .cta-icon svg { width: 32px; height: 32px; }
.cta-inner h2 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: #fff; }
.cta-text { max-width: 600px; margin: 20px auto 0; font-size: 16px; line-height: 1.625; color: var(--slate-300); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta-inner > .btn { margin-top: 32px; }
.cta-band--compact { padding: 80px 0; }
@media (min-width: 640px) {
  .cta-band { padding: 128px 0; }
  .cta-band--compact { padding: 96px 0; }
  .cta-inner h2 { font-size: 39px; }
}
@media (max-width: 639px) { .cta-actions { flex-direction: column; align-items: stretch; width: 100%; } }

/* Accordions (projects, FAQ) */
.accordion { list-style: none; }
.acc-item {
  overflow: hidden; border-radius: var(--radius); border: 1px solid var(--slate-800); background: rgba(13, 30, 70, .55);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.acc-item + .acc-item { margin-top: 12px; }
.acc-item:has(> .acc-title > .acc-head[aria-expanded="true"]) {
  border-color: rgba(77, 149, 214, .4); background: var(--ink-900);
  box-shadow: 0 0 0 1px rgba(43, 119, 187, .15), 0 18px 50px -28px rgba(43, 119, 187, .6);
}
.acc-title { margin: 0; font: inherit; letter-spacing: normal; text-transform: none; }
.acc-head {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px;
  border: 0; background: transparent; text-align: left; color: #fff;
  font-family: var(--f-sans); font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: 0;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.acc-head:hover { background: rgba(29, 58, 120, .35); }
.acc-head .icon { flex: none; font-size: 20px; color: var(--signal-400); }
.acc-head .icon-arrow-up { display: none; }
.acc-head[aria-expanded="true"] .icon-arrow-up { display: inline-block; }
.acc-head[aria-expanded="true"] .icon-arrow-down { display: none; }
.acc-body { padding: 4px 24px 24px; color: var(--slate-300); line-height: 1.65; }
@media (max-width: 639px) { .acc-head { padding: 16px 18px; font-size: 15px; } .acc-body { padding: 4px 18px 20px; } }
/* Opening and closing: the answer fades in (entry from @starting-style); where the browser can animate to
   "height: auto" it also slides open and shut, so the questions below glide instead of jumping. */
@media (prefers-reduced-motion: no-preference) {
  [data-accordion] .acc-body {
    transition: opacity .3s var(--ease), translate .35s var(--ease-out), display .35s;
    transition-behavior: allow-discrete;
  }
  [data-accordion] .acc-body[hidden] { opacity: 0; }
  @starting-style { [data-accordion] .acc-body { opacity: 0; translate: 0 -6px; } }
  @supports (interpolate-size: allow-keywords) {
    [data-accordion] { interpolate-size: allow-keywords; }
    [data-accordion] .acc-body {
      height: auto; overflow: clip; overflow-clip-margin: 6px;
      transition: height .4s var(--ease-out), padding-block .4s var(--ease-out), opacity .3s var(--ease), translate .35s var(--ease-out), display .4s;
      transition-behavior: allow-discrete;
    }
    [data-accordion] .acc-body[hidden] { height: 0; padding-block: 0; }
    @starting-style { [data-accordion] .acc-body { height: 0; padding-block: 0; } }
  }
}

/* Project details table and photos inside the accordions */
.project-table {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
  border: 1px solid var(--slate-800); border-radius: var(--radius); font-size: 14px; line-height: 1.6;
}
.project-table th, .project-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--slate-800); }
.project-table tr:last-child > * { border-bottom: 0; }
.project-table th { width: 22%; font-weight: 600; color: #fff; background: rgba(20, 42, 92, .45); }
.project-table td { color: var(--slate-300); border-left: 1px solid var(--slate-800); }
.project-table td p { margin: 0; }
.project-table td p + p { margin-top: 2px; }
.project-figure { max-width: var(--w, 100%); margin: 16px 0 0; }
.project-figure img, .acc-body > img { width: auto; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--slate-800); }
.project-figure figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--slate-400); }
@media (max-width: 639px) {
  .project-table, .project-table tbody, .project-table tr, .project-table th, .project-table td { display: block; width: auto; }
  .project-table th { padding: 12px 16px 2px; border-bottom: 0; background: transparent;
    font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--signal-400); }
  .project-table td { padding: 0 16px 12px; border-left: 0; }
  .project-table tr + tr { border-top: 1px solid var(--slate-800); }
}

/* Chips (blog categories) */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(77, 149, 214, .35); background: rgba(43, 119, 187, .12); color: #a9cdee;
  font-size: 12px; font-weight: 600; line-height: 1.5; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.chip-light { background: rgba(255, 255, 255, .06); border-color: rgba(203, 213, 225, .3); color: var(--slate-200); }
.chip-light:hover { background: #fff; border-color: #fff; color: var(--ink-900); }

/* Lists with check marks, and tags */
.check-list { display: grid; gap: 10px; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--slate-300); }
.check-list .icon { flex: none; margin-top: 3px; font-size: 18px; color: var(--signal-400); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-list li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--slate-700); background: rgba(13, 30, 70, .7); color: var(--slate-200); font-size: 13px; line-height: 1.5; }

/* Small form message (newsletter) */
.form-message { flex-basis: 100%; margin: 8px 0 0; font-size: 14px; color: var(--signal-400); }
.form-message:empty { display: none; }
.form-message.is-error { color: #fca5a5; }

/* ---------- Scroll reveal: blocks rise and fade in as they scroll into view (chrome.css has the keyframes and,
   for browsers without view timelines, the data-reveal fallback that site-ui.ts applies). Nested blocks do not
   move twice; neighbours in a row come in one after another. Nothing moves for reduced motion. ---------- */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  /* These boxes hide their overflow only to round their corners or crop decoration. overflow: hidden would also
     make each one a scroll container, and the blocks inside would then measure their reveal against that box
     instead of the page (and stop half-faded). overflow: clip crops the same without that side effect. */
  main :is(.stats-band, .stats-grid, .counter-stack, .cta-band, .why-list, .svc-why, .rs-closing, .cp-sec) { overflow: clip; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    main :is(.section-head, .reveal, .post-card, .stat, .counter-card, .cta-inner, .team-card, .logo-grid > li, .cert-list > li,
      .story-main, .story-side, .value-card, .cs-card, .rs-card, .acc-item, .ct-box, .office-card, .office-map, .ct-appointment-media,
      .ct-appointment-form, .deliver-card, .process-steps > li, .svc-panel, .related-card, .why-list > li, .svc-photo, .svc-glance,
      .cp-card, .cp-step, .cp-gallery figure, .cp-table-wrap, .cp-list > li, .cp-photo, .cp-acc-item, .pj-row, .legal-body > section,
      .blog-head, .post-nav-link, .post-author):not(:is(.post-content, .office-map-frame, .section-head, .reveal, .post-card, .team-card, .story-main, .story-side, .value-card,
        .cs-card, .rs-card, .acc-item, .ct-box, .office-card, .office-map, .ct-appointment-media, .ct-appointment-form, .deliver-card,
        .svc-panel, .related-card, .cp-card, .cp-step, .cp-photo, .cp-acc-item, .pj-row, .blog-head, .post-author) *) {
      animation: sd-reveal linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i, 0) * 28px) entry calc(200px + var(--i, 0) * 28px);
    }
    main :is(.post-card, .stat, .counter-card, .team-card, .logo-grid > li, .cert-list > li, .cs-card, .rs-card, .ct-box, .office-card,
      .deliver-card, .process-steps > li, .related-card, .why-list > li, .cp-card, .cp-step, .cp-gallery figure, .cp-list > li):nth-child(3n + 2) { --i: 1; }
    main :is(.post-card, .stat, .counter-card, .team-card, .logo-grid > li, .cert-list > li, .cs-card, .rs-card, .ct-box, .office-card,
      .deliver-card, .process-steps > li, .related-card, .why-list > li, .cp-card, .cp-step, .cp-gallery figure, .cp-list > li):nth-child(3n + 3) { --i: 2; }
  }
}

/* Reduced motion: hover lifts, zooms and drifting backgrounds stay still (colour and shadow feedback remain). */
@media (prefers-reduced-motion: reduce) {
  .section-head-link:hover .icon, .logo-grid a:hover { transform: none; }
}

@media print {
  .site-header { position: static; background: var(--ink); }
  .page-hero-inner::before, .post-hero-inner::before { animation: none; }
}
