/* Silver Star Mechanical
   Concept: the site is drawn like a pipework schematic. Every service has a pipe colour
   (heating red, gas yellow, air cyan, water blue, drainage green) and a "manifold" strip
   shows where you are among them. */

:root {
  --ink: #0E2233;
  --ink-2: #17344C;
  --ink-3: #274A66;
  --chalk: #F2F5F7;
  --paper: #FFFFFF;
  --line: #D5DDE3;
  --silver: #C5CED6;
  --muted: #566676;
  --flame: #FF5B1F;
  --flame-d: #E84A10;
  --on-dark: rgba(255, 255, 255, 0.86);
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4.4vw, 56px);
  --sec: clamp(72px, 9vw, 128px);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 20px); }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.sec { padding-top: var(--sec); padding-bottom: var(--sec); }
.sec--tight { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.bg-chalk { background: var(--chalk); }
.bg-ink { background: var(--ink); color: var(--on-dark); }

/* ---- type ---- */
.h-xl, .h-lg, .h-md, .h-sm { font-family: var(--display); font-stretch: 112%; letter-spacing: -0.025em; color: inherit; text-wrap: balance; }
.h-xl { font-weight: 760; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.0; }
.h-lg { font-weight: 720; font-size: clamp(1.95rem, 3.6vw, 3.15rem); line-height: 1.05; }
.h-md { font-weight: 680; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; }
.h-sm { font-weight: 650; font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.012em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.6; max-width: 58ch; }
.muted { color: var(--muted); }
.bg-ink .muted, .on-dark .muted { color: var(--on-dark-2); }
.measure { max-width: 64ch; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .lead { margin-top: 16px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font-family: var(--display); font-stretch: 105%; font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-flame { background: var(--flame); color: var(--ink); }
.btn-flame:hover { background: #ff7440; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, 0.1); }
.bg-chalk .btn-line:hover, .bg-paper .btn-line:hover { background: rgba(14, 34, 51, 0.06); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(14, 34, 51, 0.07); }
.bar { height: var(--head-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); font-stretch: 112%; }
.brand-name strong { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.brand-name span { font-size: .78rem; font-weight: 560; letter-spacing: .02em; color: var(--muted); margin-top: 5px; }
.primary > ul { display: flex; align-items: center; gap: 4px; }
.primary a.nav-link, .primary .menu-toggle { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .98rem; color: var(--ink); background: transparent; border: 0; transition: background .2s; }
.primary a.nav-link:hover, .primary .menu-toggle:hover, .has-menu:hover > a.nav-link, .has-menu.is-open > a.nav-link { background: var(--chalk); }
.primary a.nav-link[aria-current="page"] { background: var(--chalk); }
.has-menu { position: relative; display: flex; align-items: center; }
.menu-toggle { margin-left: -14px; padding-left: 4px !important; }
.menu-toggle svg { transition: transform .2s; }
.has-menu.is-open .menu-toggle svg, .has-menu:hover .menu-toggle svg { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: min(560px, 92vw); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; box-shadow: 0 30px 70px rgba(14, 34, 51, 0.18); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.has-menu:hover .menu-panel, .has-menu.is-open .menu-panel, .has-menu:focus-within .menu-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu-item { display: grid; grid-template-columns: 8px 1fr; gap: 14px; padding: 12px 14px; border-radius: var(--r-sm); transition: background .15s; }
.menu-item:hover { background: var(--chalk); }
.menu-item i { width: 8px; border-radius: 4px; background: var(--c); }
.menu-item strong { display: block; font-family: var(--display); font-stretch: 108%; font-weight: 650; font-size: 1rem; line-height: 1.2; }
.menu-item span { display: block; font-size: .88rem; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.menu-all { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--chalk); font-weight: 650; }
.menu-all:hover { background: #e6ecf0; }
.bar-cta { display: flex; align-items: center; gap: 14px; }
.bar-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-stretch: 108%; font-weight: 680; font-size: 1rem; letter-spacing: -0.01em; }
.bar-phone svg { color: var(--flame-d); }
.burger { display: none; width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--chalk); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { display: none; position: fixed; inset: var(--head-h) 0 0 0; z-index: 99; background: var(--ink); color: #fff; overflow-y: auto; padding: 22px var(--gut) 120px; }
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 14px 0; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.drawer .drawer-svc { display: flex; align-items: center; gap: 14px; font-size: 1.12rem; font-weight: 600; padding: 12px 0 12px 4px; border-bottom: 0; color: var(--on-dark); }
.drawer .drawer-svc i { width: 8px; height: 26px; border-radius: 4px; background: var(--c); }
.drawer-group { padding: 6px 0 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.actionbar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; gap: 10px; padding: 10px; border-radius: 22px; background: rgba(14, 34, 51, 0.94); backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.actionbar .btn { flex: 1; min-height: 50px; padding: 0 12px; }
.actionbar .btn-line { color: #fff; }

/* ---- manifold: a pipe with one coloured outlet per service ---- */
.manifold { position: relative; color: #fff; --name: #fff; }
.manifold--light { --name: var(--ink); }
.manifold-pipe { height: 15px; border-radius: 9px; background: linear-gradient(#f3f6f8, #bcc8d1 52%, #8c9dab); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 3px 8px rgba(0, 0, 0, .22); transform-origin: left center; animation: pipe-draw .9s cubic-bezier(.2, .7, .2, 1) both; }
.manifold-list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: -8px; }
.manifold-outlet a { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 12px 4px 22px; height: 100%; }
.outlet-stub { position: relative; display: block; width: 12px; height: 36px; margin-left: 0; background: var(--c); border-radius: 0 0 4px 4px; transform-origin: top; animation: stub-drop .55s calc(.35s + var(--i) * .11s) cubic-bezier(.2, .8, .2, 1.1) both; transition: height .25s; }
.outlet-flange { position: absolute; top: -3px; left: -6px; width: 24px; height: 9px; border-radius: 3px; background: #dfe6ec; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.outlet-name { font-family: var(--display); font-stretch: 108%; font-weight: 650; font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.012em; color: var(--name); max-width: 17ch; text-wrap: balance; transition: transform .25s; }
.manifold-outlet a:hover .outlet-stub, .manifold-outlet a:focus-visible .outlet-stub { height: 52px; }
.manifold-outlet a:hover .outlet-name { transform: translateY(6px); }
.manifold-list:has(.is-current) .manifold-outlet:not(.is-current) { opacity: .62; }
.manifold-outlet.is-current .outlet-stub { width: 16px; height: 48px; margin-left: -2px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent); }
@keyframes pipe-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stub-drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---- home hero ---- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 88px 88px,
  linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 88px 88px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(32px, 4vw, 60px); padding-bottom: clamp(28px, 3.6vw, 48px); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { color: var(--on-dark); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-line { color: #fff; }
.hero-photo { position: relative; }
.hero-photo .frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.9; box-shadow: 0 40px 80px rgba(0, 0, 0, .4); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: 22px -18px -18px 22px; border: 2px solid rgba(255, 91, 31, .7); border-radius: var(--r-lg); z-index: -1; }
.hero-note { position: absolute; left: -22px; bottom: 28px; max-width: 250px; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); font-size: .95rem; line-height: 1.4; }
.hero-note strong { display: block; font-family: var(--display); font-stretch: 108%; font-size: 1.04rem; margin-bottom: 3px; }
.hero-manifold { position: relative; padding-bottom: clamp(30px, 3.4vw, 46px); }

/* ---- service cards ---- */
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.svc-card { grid-column: span 4; position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.svc-card:nth-child(1) { grid-column: span 7; }
.svc-card:nth-child(2) { grid-column: span 5; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(14, 34, 51, .14); border-color: transparent; }
.svc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--chalk); }
.svc-card:nth-child(1) .svc-media { aspect-ratio: 16 / 9.4; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.svc-card:hover .svc-media img { transform: scale(1.04); }
.svc-pipe { position: absolute; top: 0; left: 26px; width: 12px; height: 46px; background: var(--c); border-radius: 0 0 5px 5px; z-index: 2; transition: height .3s; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.svc-pipe::before { content: ""; position: absolute; top: 0; left: -6px; width: 24px; height: 8px; border-radius: 0 0 3px 3px; background: #dfe6ec; }
.svc-card:hover .svc-pipe { height: 66px; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 32px); gap: 10px; }
.svc-body p { color: var(--muted); max-width: 46ch; }
.svc-link { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-stretch: 106%; font-weight: 650; }
.svc-link .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--ink-c, #fff); transition: transform .25s; }
.svc-card:hover .svc-link .dot { transform: translateX(6px); }
.svc-card::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-card a.stretched { position: static; }
.svc-card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* ---- process: a pipe run with joints ---- */
.process { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.process-bg { position: absolute; inset: 0; opacity: .42; }
.process-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2); }
.process::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(14, 34, 51, .78) 38%, rgba(14, 34, 51, .55) 100%), linear-gradient(180deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%); }
.process > .wrap { position: relative; z-index: 2; }
.pipe-run { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 28px; counter-reset: step; }
.pipe-run::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 8px; border-radius: 5px; background: linear-gradient(#f3f6f8, #bcc8d1 55%, #8c9dab); transform-origin: left center; }
html.js .pipe-run::before { transform: scaleX(0); transition: transform 1.5s cubic-bezier(.3, .6, .2, 1); }
html.js .pipe-run.is-in::before { transform: scaleX(1); }
.pipe-run li { position: relative; padding-top: 70px; counter-increment: step; }
.pipe-run li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 4px solid #dfe6ec; font-family: var(--display); font-stretch: 112%; font-weight: 760; font-size: 1.05rem; color: #fff; }
.pipe-run li:nth-child(1)::before { border-color: var(--flame); }
.pipe-run h3 { margin-bottom: 8px; color: #fff; }
.pipe-run p { color: var(--on-dark-2); max-width: 30ch; }
.pipe-run--light::before { background: linear-gradient(#e8edf1, #c5cfd7 55%, #a6b4bf); }
.pipe-run--light li::before { background: var(--paper); border-color: var(--silver); color: var(--ink); }
.pipe-run--light li:nth-child(1)::before { border-color: var(--accent, var(--flame)); }
.pipe-run--light h3 { color: var(--ink); }
.pipe-run--light p { color: var(--muted); }

/* ---- split feature ---- */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 5.6; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .inset { position: absolute; right: -18px; bottom: -22px; width: 44%; border-radius: var(--r-md); overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 24px 50px rgba(14, 34, 51, .25); aspect-ratio: 4 / 3; }
.bg-chalk .split-media .inset { border-color: var(--chalk); }
.ticks { display: grid; gap: 22px; margin-top: 30px; }
.tick { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.tick-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tick, var(--flame)); color: var(--tick-ink, var(--ink)); flex: none; margin-top: 2px; }
.tick strong { display: block; font-family: var(--display); font-stretch: 106%; font-weight: 660; font-size: 1.12rem; line-height: 1.25; margin-bottom: 3px; }
.tick p { color: var(--muted); }

/* ---- journal / blog cards ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; position: relative; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(14, 34, 51, .12); }
.post-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--chalk); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .media img { transform: scale(1.04); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); }
.post-meta b { font-weight: 650; color: var(--ink); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--muted); font-size: 1rem; }
.post-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--lead .media { aspect-ratio: auto; min-height: 340px; }
.post-card--lead .body { padding: clamp(26px, 4vw, 52px); justify-content: center; }
.post-card--lead h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.12; }

/* ---- faq ---- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--head-h) + 28px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--display); font-stretch: 106%; font-weight: 650; font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.012em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chalk); transition: background .2s, transform .3s; }
.faq-list details[open] .pm { background: var(--flame); transform: rotate(45deg); }
.faq-list details p { padding: 0 52px 26px 0; color: var(--muted); max-width: 62ch; }
.bg-chalk .faq-list .pm { background: var(--paper); }

/* ---- call-to-action band ---- */
.cta { background: var(--flame); color: var(--ink); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -4%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 22px solid rgba(14, 34, 51, .08); }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.cta .h-xl { font-size: clamp(2.2rem, 4.8vw, 4.2rem); }
.cta p { margin-top: 18px; max-width: 46ch; font-size: 1.14rem; }
.cta-phone { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 780; font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 18px; }
.cta-lines { display: grid; gap: 4px; font-weight: 520; margin-bottom: 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 96px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-footer .brand-name strong { color: #fff; }
.site-footer .brand-name span { color: var(--on-dark-2); }
.foot-about { margin-top: 20px; max-width: 34ch; color: var(--on-dark-2); }
.foot-addr { margin-top: 18px; font-style: normal; color: var(--on-dark); line-height: 1.6; }
.foot-title { font-family: var(--display); font-stretch: 108%; font-weight: 680; font-size: 1.02rem; color: #fff; margin-bottom: 16px; }
.foot-list { display: grid; gap: 11px; }
.foot-list a { color: var(--on-dark); transition: color .15s; display: inline-flex; align-items: center; gap: 10px; }
.foot-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-list i { width: 6px; height: 16px; border-radius: 3px; background: var(--c); flex: none; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .92rem; color: var(--on-dark-2); }

/* ---- inner page hero ---- */
.page-hero { background: var(--chalk); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero--plain .page-hero-grid { grid-template-columns: 1fr; padding-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(44px, 6vw, 84px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--silver); text-underline-offset: 4px; }
.crumbs a:hover { text-decoration-color: var(--ink); }
.page-hero h1 { margin-bottom: 20px; }
.page-hero .lead { color: var(--ink-3); margin-bottom: 28px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pipe-tag { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 650; font-size: .98rem; }
.pipe-tag i { display: block; width: 36px; height: 12px; border-radius: 6px; background: var(--c); }
.hero-img { position: relative; }
.hero-img .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--silver); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::before { content: ""; position: absolute; left: -14px; top: 28px; bottom: 28px; width: 12px; border-radius: 6px; background: var(--c, var(--flame)); }
.page-manifold { padding: 0 0 clamp(40px, 5vw, 64px); background: var(--chalk); }
.page-manifold .manifold { padding-top: 6px; }

/* ---- service page parts ---- */
.cols-2 { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.sticky-col { position: sticky; top: calc(var(--head-h) + 32px); }
.prose p + p { margin-top: 1.1em; }
.prose { font-size: 1.1rem; }
.includes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.include { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--chalk); font-weight: 560; line-height: 1.35; }
.include .tick-ic { width: 30px; height: 30px; margin: 0; background: var(--c); color: var(--ink-c, #fff); }
.callout { position: relative; margin-top: 36px; padding: 26px 28px 26px 34px; border-radius: var(--r-md); background: color-mix(in srgb, var(--c) 9%, #fff); }
.callout::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 8px; border-radius: 0 6px 6px 0; background: var(--c); }
.callout strong { display: block; font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.media-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 40px; }
.media-pair .m { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.media-pair .m:first-child { aspect-ratio: 16 / 11; }
.media-pair img { width: 100%; height: 100%; object-fit: cover; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.mini-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 22px 28px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.mini-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 8px; border-radius: 0 6px 6px 0; background: var(--c); }
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(14, 34, 51, .1); }
.mini-card strong { font-family: var(--display); font-stretch: 106%; font-weight: 660; font-size: 1.1rem; line-height: 1.2; }
.mini-card span { color: var(--muted); font-size: .96rem; line-height: 1.45; }

/* ---- services index rows ---- */
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { position: relative; }
.svc-row-media .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row-media::before { content: ""; position: absolute; top: 0; left: 30px; width: 14px; height: 54px; border-radius: 0 0 6px 6px; background: var(--c); z-index: 2; }
.svc-row .pipe-tag { margin-bottom: 14px; }
.svc-row ul { margin: 22px 0 28px; display: grid; gap: 10px; }
.svc-row li { display: flex; align-items: center; gap: 12px; font-weight: 540; }
.svc-row li::before { content: ""; width: 14px; height: 6px; border-radius: 3px; background: var(--c); flex: none; }

/* ---- blog ---- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.filter a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .96rem; transition: background .2s, color .2s; }
.filter a:hover { background: var(--chalk); }
.filter a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-hero { background: var(--chalk); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.article-hero .h-xl { font-size: clamp(2.1rem, 4.4vw, 3.8rem); max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); }
.article-img { margin-top: clamp(-20px, -2vw, -8px); }
.article-img .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; box-shadow: 0 30px 70px rgba(14, 34, 51, .18); }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 740px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) 0; font-size: 1.15rem; line-height: 1.75; }
.article-body h2 { font-family: var(--display); font-stretch: 110%; font-weight: 720; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.12; margin: 2.2em 0 .6em; }
.article-body h2::before { content: ""; display: block; width: 44px; height: 8px; border-radius: 5px; background: var(--flame); margin-bottom: 16px; }
.article-body h3 { font-family: var(--display); font-stretch: 106%; font-weight: 680; font-size: 1.3rem; margin: 1.6em 0 .4em; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.3em; display: grid; gap: .55em; }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li { position: relative; padding-left: 30px; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 7px; border-radius: 4px; background: var(--flame); }
.article-body ol { list-style: decimal; }
.article-body ol li::marker { font-family: var(--display); font-weight: 760; color: var(--flame-d); }
.article-body a { text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.article-body a:hover { background: color-mix(in srgb, var(--flame) 16%, #fff); }
.article-body blockquote { margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 8px solid var(--flame); font-size: 1.25rem; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; }
.pager .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 70px rgba(14, 34, 51, .08); }
.form-card .h-md { margin-bottom: 8px; }
.field { display: grid; gap: 7px; margin-top: 20px; }
.field label { font-weight: 650; font-size: .96rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 15px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--silver); background: var(--chalk); transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(255, 91, 31, .22); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn { margin-top: 26px; width: 100%; }
.side-card { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.side-card::before { content: ""; position: absolute; left: 36px; top: 0; width: 14px; height: 56px; border-radius: 0 0 6px 6px; background: var(--flame); }
.side-card h2 { margin: 52px 0 18px; color: #fff; }
.contact-line { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-line .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--flame); }
.contact-line small { display: block; color: var(--on-dark-2); font-size: .9rem; }
.contact-line a, .contact-line b { font-family: var(--display); font-stretch: 106%; font-weight: 650; font-size: 1.12rem; color: #fff; line-height: 1.35; }
.side-links { margin-top: 18px; }
.side-svc { display: flex; align-items: center; gap: 14px; padding: 9px 0; color: var(--on-dark); font-weight: 560; }
.side-svc i { width: 8px; height: 22px; border-radius: 4px; background: var(--c); flex: none; }
.side-svc:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }


/* ---- motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html.js .pipe-run::before { transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .primary, .bar-phone { display: none; }
  .burger { display: inline-flex; }
  .hero-grid, .page-hero-grid, .split, .cols-2, .faq, .contact-grid, .cta-grid { grid-template-columns: 1fr; }
  .page-hero-grid { gap: 28px; }
  .split--flip > :first-child { order: 0; }
  .faq-head, .sticky-col { position: static; }
  .hero-photo { max-width: 620px; }
  .hero-photo .frame { aspect-ratio: 16 / 11; }
  .hero-note { left: 16px; }
  .svc-card, .svc-card:nth-child(1), .svc-card:nth-child(2) { grid-column: span 6; }
  .svc-card:nth-child(1) { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }
  .split-media .inset { right: 10px; }
  .actionbar { display: flex; }
  body { padding-bottom: 86px; }
  .cta-grid { align-items: start; }
}
@media (max-width: 760px) {
  :root { --head-h: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .bar-cta .btn { display: none; }
  .manifold-pipe { position: absolute; left: 0; top: 0; bottom: 0; width: 15px; height: auto; transform-origin: top center; animation-name: pipe-draw-y; }
  .manifold-list { grid-auto-flow: row; grid-auto-columns: auto; margin: 0 0 0 -8px; gap: 6px; padding: 14px 0; }
  .manifold-outlet a { flex-direction: row; align-items: center; gap: 16px; padding: 8px 0 8px 0; }
  .outlet-stub { width: 40px; height: 12px; border-radius: 0 4px 4px 0; transform-origin: left; animation-name: stub-out; margin-left: 0; }
  .outlet-flange { top: -6px; left: -3px; width: 9px; height: 24px; }
  .manifold-outlet a:hover .outlet-stub { width: 56px; height: 12px; }
  .manifold-outlet.is-current .outlet-stub { width: 54px; height: 16px; margin-left: 0; }
  .outlet-name { max-width: none; font-size: 1.08rem; }
  .manifold-outlet a:hover .outlet-name { transform: none; }
  .svc-card, .svc-card:nth-child(1), .svc-card:nth-child(2) { grid-column: 1 / -1; }
  .pipe-run { grid-auto-flow: row; gap: 34px; }
  .pipe-run::before { left: 18px; right: auto; top: 20px; bottom: 20px; width: 8px; height: auto; transform-origin: top center; }
  html.js .pipe-run::before { transform: scaleY(0); }
  html.js .pipe-run.is-in::before { transform: scaleY(1); }
  .pipe-run li { padding: 2px 0 0 72px; }
  .pipe-run p { max-width: none; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card--lead { grid-template-columns: 1fr; }
  .post-card--lead .media { min-height: 0; aspect-ratio: 16 / 10; }
  .includes, .media-pair, .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-photo::after { inset: 14px -8px -10px 14px; }
  .hero-note { display: none; }
  .article-img .frame { aspect-ratio: 16 / 10; }
  .btn { white-space: normal; text-align: center; }
}
@keyframes pipe-draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes stub-out { from { transform: scaleX(0); } to { transform: scaleX(1); } }
