.site-homiq {
  --bg: #f4f6f2;
  --surface: #ffffff;
  --quiet: #e8ede6;
  --ink: #17302a;
  --muted: #586862;
  --line: #d3dbd3;
  --accent: #f4b740;
  --accent-ink: #17302a;
  --action: #17302a;
  --action-ink: #ffffff;
  --night: #0f1e1f;
  --night-2: #18302f;
  --on-night: #eaf1ee;
  --on-night-muted: #9db3ae;
  --night-line: rgba(234, 241, 238, 0.14);
  --radius: 22px;
  --radius-small: 999px;
  --display: 'Bricolage Grotesque', 'Avenir Next', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', sans-serif;
  --display-stretch: normal;
  --display-weight: 700;
}

.site-intelli {
  --bg: #eef1f5;
  --surface: #ffffff;
  --quiet: #e2e7ee;
  --ink: #0b1626;
  --muted: #4c5d72;
  --line: #cbd3de;
  --accent: #3b6cff;
  --accent-ink: #ffffff;
  --action: #3b6cff;
  --action-ink: #ffffff;
  --night: #060e1a;
  --night-2: #0c1a2d;
  --on-night: #e6edf7;
  --on-night-muted: #8fa2bc;
  --night-line: rgba(143, 170, 220, 0.18);
  --c-access: #34d399;
  --c-cameras: #f5b83d;
  --c-network: #5b8dff;
  --c-cabling: #5ed3f3;
  --radius: 4px;
  --radius-small: 3px;
  --display: 'Archivo', 'Helvetica Neue', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', sans-serif;
  --display-stretch: 125%;
  --display-weight: 800;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); line-height: 1.05; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
.site-intelli h1 { letter-spacing: -0.03em; line-height: 0.98; }
.site-intelli h3 { font-stretch: 110%; font-weight: 700; }
p { margin: 0 0 1em; max-width: 66ch; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: var(--surface); padding: 8px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.meta { color: var(--muted); font-size: 0.9375rem; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); }

.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(14px); color: var(--on-night); border-bottom: 1px solid var(--night-line); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 16px; }
.wordmark { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 1.5rem; text-decoration: none; letter-spacing: -0.02em; margin: 0; }
.masthead nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.masthead nav a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; color: var(--on-night-muted); }
.masthead nav a:hover, .masthead nav a[aria-current='page'] { color: var(--on-night); border-bottom-color: var(--accent); }
.masthead nav .nav-cta { margin-left: 8px; padding: 0.55em 1.1em; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.masthead nav .nav-cta:hover, .masthead nav .nav-cta[aria-current='page'] { color: var(--accent-ink); border-color: var(--accent); }

.notices p { margin: 16px 0 0; padding: 12px 16px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius-small); }
.site-homiq .notices p { border-radius: 12px; }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 0.85em 1.5em; border: 2px solid var(--action); border-radius: var(--radius-small); background: var(--action); color: var(--action-ink); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease; }
.button:hover { filter: brightness(1.12); }
.button:active { transform: translateY(1px); }
.button-quiet { background: transparent; color: var(--ink); border-color: currentColor; }
.on-night .button { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.on-night .button-quiet { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.on-night .button-quiet:hover { border-color: var(--on-night); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

.band { padding-block: clamp(64px, 9vw, 120px); }
.band-tight { padding-block: 40px 88px; }
.band-quiet { background: var(--quiet); }
.split { display: grid; gap: 24px 72px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; }
.section-head { display: grid; gap: 8px 72px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

.on-night { background: var(--night); color: var(--on-night); }
.on-night .lede, .on-night .meta { color: var(--on-night-muted); }

/* Page heads continue the dark masthead on inner pages. */
.page-head { background: var(--night); color: var(--on-night); padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-head .lede { color: var(--on-night-muted); margin: 0; }
.page-head h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
.page-head .actions { margin-top: 28px; }
.page-head a:not(.button) { color: var(--on-night); }
.page-head .button-quiet { color: var(--on-night); border-color: var(--night-line); }
.page-head .button-quiet:hover { border-color: var(--on-night); }
.site-homiq .page-head { background: radial-gradient(60% 120% at 85% 0%, rgba(255, 181, 77, 0.22), transparent 60%), var(--night); }
.site-intelli .page-head { background: linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 40px 40px, radial-gradient(60% 120% at 85% 0%, rgba(59, 108, 255, 0.35), transparent 60%), var(--night); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; position: relative; }
.hero-copy .lede { margin-bottom: 32px; }
.hero h1 { color: var(--on-night); font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
.site-homiq .hero { background: radial-gradient(45% 60% at 72% 55%, rgba(255, 181, 77, 0.2), transparent 70%), radial-gradient(70% 90% at 0% 0%, #1d3a38, transparent 60%), var(--night); }
.site-intelli .hero { background: linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 48px 48px, radial-gradient(50% 60% at 70% 50%, rgba(59, 108, 255, 0.28), transparent 70%), var(--night); }
.site-intelli .hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 80% at 70% 50%, transparent 40%, var(--night) 100%); pointer-events: none; }
.site-intelli .hero .wrap { z-index: 1; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--on-night-muted); font-size: 0.9375rem; }
.hero-proof li { display: flex; align-items: center; gap: 10px; }
.hero-proof li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Homiq scene */
.scene { position: relative; margin: 0; --glow: #ffb54d; --living: 0.95; --kitchen: 0.8; --bedroom: 0.3; --office: 0; --waves: 1; --tv: 0; --cams: 0; --lock: 0; --temp: 0; }
.scene[data-active='movie'] { --living: 0.2; --kitchen: 0.08; --bedroom: 0; --office: 0; --waves: 1; --tv: 1; --cams: 0; --lock: 1; --temp: 0; }
.scene[data-active='away'] { --living: 0; --kitchen: 0; --bedroom: 0; --office: 0; --waves: 0; --tv: 0; --cams: 1; --lock: 1; --temp: 0; }
.scene[data-active='morning'] { --glow: #ffe2a6; --living: 0.35; --kitchen: 0.9; --bedroom: 0.65; --office: 0.45; --waves: 0.6; --tv: 0; --cams: 0; --lock: 0; --temp: 1; }
.scene svg { width: 108%; margin: -4% 0 0 -4%; height: auto; display: block; overflow: visible; }
.scene polygon, .scene ellipse, .scene path, .scene rect, .scene circle { transition: opacity 0.9s ease, fill 0.9s ease, filter 0.9s ease; }
.scene .lawn { fill: #10231f; }
.scene .slab .t, .scene .floor { fill: #223a3c; }
.scene .floor-living, .scene .floor-bedroom { fill: #2b4442; }
.scene .slab .l { fill: #142625; }
.scene .slab .r { fill: #0f1d1c; }
.scene .wall .t, .scene .post .t { fill: #6b8a88; }
.scene .wall .l, .scene .post .l { fill: #36504f; }
.scene .wall .r, .scene .post .r { fill: #2a403f; }
.scene .furn .t { fill: #4a6564; }
.scene .furn .l { fill: #344c4b; }
.scene .furn .r { fill: #2a3f3e; }
.scene .sofa .t { fill: #6a7f5c; }
.scene .sofa .l { fill: #4d5f43; }
.scene .sofa .r { fill: #3f4f37; }
.scene .bed .t { fill: #c5d3cf; }
.scene .bed .l { fill: #93a5a1; }
.scene .bed .r { fill: #7d908c; }
.scene .pillow .t { fill: #e8efed; }
.scene .pillow .l, .scene .pillow .r { fill: #b3c2bf; }
.scene .monitor .l { fill: #0c1617; }
.scene .monitor .t, .scene .monitor .r { fill: #2c3c3d; }
.scene .door .t { fill: #b0835a; }
.scene .door .l { fill: #7d5b3d; }
.scene .door .r { fill: #8f6847; }
.scene .window { fill: var(--glow); }
.scene .window[data-room='living'] { opacity: max(0.12, var(--living)); }
.scene .window[data-room='kitchen'] { opacity: max(0.12, var(--kitchen)); }
.scene .window[data-room='bedroom'] { opacity: max(0.12, var(--bedroom)); }
.scene .pool { fill: url(#pool-glow); mix-blend-mode: screen; }
.scene .pool[data-room='living'] { opacity: var(--living); }
.scene .pool[data-room='kitchen'] { opacity: var(--kitchen); }
.scene .pool[data-room='bedroom'] { opacity: var(--bedroom); }
.scene .pool[data-room='office'] { opacity: var(--office); }
.scene .tv { fill: color-mix(in srgb, #8fd0ff calc(var(--tv) * 100%), #0a1415); filter: drop-shadow(0 0 calc(var(--tv) * 18px) #6fb7ff); }
.scene .thermo { fill: #e8efed; }
.scene .speaker { fill: #dfe8e5; opacity: 0.85; }
.scene .wave { fill: none; stroke: var(--glow); stroke-width: 1.5; opacity: var(--waves); transform-box: fill-box; transform-origin: center; animation: wave 2.4s ease-out infinite; }
.scene .wave-1 { animation-delay: 0.8s; }
.scene .wave-2 { animation-delay: 1.6s; }
.scene .cone { fill: #7fe0ff; opacity: calc(var(--cams) * 0.3); mix-blend-mode: screen; animation: breathe 2.6s ease-in-out infinite; }
.scene .cam .t { fill: #f2f6f5; }
.scene .cam .l { fill: #b8c6c3; }
.scene .cam .r { fill: #9aaba8; }
.scene .lock { opacity: var(--lock); }
.scene .lock circle { fill: #34d399; filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.7)); }
.scene .lock rect { fill: #0f1e1f; }
.scene .lock path { fill: none; stroke: #0f1e1f; stroke-width: 2; }
.scene .temp { opacity: var(--temp); }
.scene .temp rect { fill: #ffffff; }
.scene .temp text { font: 700 12px var(--body); fill: var(--ink); }
.scene[data-active='away'] svg { filter: saturate(0.75) brightness(0.9); }

@keyframes wave { from { transform: scale(0.25); stroke-opacity: 0.9; } to { transform: scale(1.5); stroke-opacity: 0; } }
@keyframes breathe { 50% { fill-opacity: 0.55; } }

.app-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4px 24px; margin-top: 8px; padding: 18px 20px; border-radius: 26px; background: rgba(20, 38, 37, 0.72); border: 1px solid var(--night-line); backdrop-filter: blur(18px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); color: var(--on-night); }
.app-title { grid-column: 1 / -1; margin: 0 0 10px; font: 700 0.9375rem/1 var(--body); color: var(--on-night-muted); }
.app-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.app-scenes button { padding: 0.7em 0.8em; border-radius: 14px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.04); color: var(--on-night); font: 700 0.9375rem/1.1 var(--body); text-align: left; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.app-scenes button:hover { background: rgba(255, 255, 255, 0.1); }
.app-scenes button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.app-desc { font-size: 0.9375rem; color: var(--on-night-muted); margin-bottom: 10px; }
.app-status { margin: 0; display: grid; gap: 6px; font-size: 0.875rem; }
.app-status div { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--night-line); }
.app-status dt { color: var(--on-night-muted); }
.app-status dd { margin: 0; text-align: right; }

/* Intelli operations view */
.ops { position: relative; margin: 0; }
.ops svg { width: 100%; height: auto; display: block; overflow: visible; }
.ops .plaza { fill: rgba(17, 36, 64, 0.65); }
.ops .grid { stroke: rgba(91, 141, 255, 0.14); stroke-width: 1; }
.ops .back { fill: rgba(12, 30, 56, 0.85); stroke: rgba(140, 180, 255, 0.2); }
.ops .slab { fill: rgba(91, 141, 255, 0.05); stroke: rgba(150, 185, 255, 0.28); stroke-width: 1; }
.ops .glass-l { fill: rgba(80, 130, 230, 0.14); }
.ops .glass-r { fill: rgba(60, 105, 210, 0.24); }
.ops .mullion { stroke: rgba(170, 200, 255, 0.18); stroke-width: 1; }
.ops .mullion-h { fill: none; stroke: rgba(170, 200, 255, 0.4); stroke-width: 1; }
.ops .edge { fill: none; stroke: #a9c2f0; stroke-width: 1.5; }
.ops .roof-unit .t { fill: #3a4b66; }
.ops .roof-unit .l { fill: #1f2c40; }
.ops .roof-unit .r { fill: #28374f; }
.ops .antenna { stroke: #a9c2f0; stroke-width: 2; }
.ops .lobby-door { fill: rgba(52, 211, 153, 0.28); stroke: var(--c-access); stroke-width: 1; }
.ops .sys { transition: opacity 0.4s ease; }
.ops .riser { stroke: var(--c-cabling); stroke-width: 5; opacity: 0.35; }
.ops .run { fill: none; stroke: var(--c-cabling); stroke-width: 1.5; opacity: 0.45; }
.ops .flow { fill: none; stroke: var(--c-cabling); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 26; animation: flow 1.4s linear infinite; }
.ops .ap .dot { fill: var(--c-network); filter: drop-shadow(0 0 6px var(--c-network)); }
.ops .ap .ring, .ops .reader .ring { fill: none; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.8s ease-out infinite; }
.ops .ap .ring { stroke: var(--c-network); }
.ops .rack .t { fill: #7ea6ff; }
.ops .rack .l { fill: #3a64c9; }
.ops .rack .r { fill: #4f78dc; }
.ops .cone { fill: var(--c-cameras); opacity: 0.3; mix-blend-mode: screen; animation: breathe 3s ease-in-out infinite; }
.ops .cam .t { fill: #ffe2a0; }
.ops .cam .l { fill: #c48e22; }
.ops .cam .r { fill: #d9a133; }
.ops .reader rect { fill: var(--c-access); filter: drop-shadow(0 0 6px var(--c-access)); }
.ops .reader .ring { stroke: var(--c-access); animation-duration: 2s; }
.ops[data-active='access'] .sys:not(.sys-access),
.ops[data-active='cameras'] .sys:not(.sys-cameras),
.ops[data-active='network'] .sys:not(.sys-network),
.ops[data-active='cabling'] .sys:not(.sys-cabling) { opacity: 0.08; }
.ops[data-active='cabling'] .run { opacity: 0.9; }
.ops[data-active='cameras'] .cone { opacity: 0.32; }

@keyframes flow { to { stroke-dashoffset: -58; } }
@keyframes ping { from { transform: scale(0.3); stroke-opacity: 1; } to { transform: scale(1.6); stroke-opacity: 0; } }

.ops figcaption { margin-top: 8px; }
.ops .explorer-hint { color: var(--on-night-muted); font-size: 0.875rem; margin: 0 0 10px; }
.ops-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 0.6em 0.9em; border: 1px solid var(--night-line); border-radius: var(--radius-small); background: rgba(12, 26, 45, 0.7); color: var(--on-night); font: 600 0.875rem/1 var(--body); cursor: pointer; }
.ops-tabs button:hover { border-color: var(--on-night-muted); }
.ops-tabs button[aria-pressed='true'] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.swatch { width: 10px; height: 10px; border-radius: 2px; background: conic-gradient(var(--c-access) 0 25%, var(--c-cameras) 0 50%, var(--c-network) 0 75%, var(--c-cabling) 0); }
.swatch-access { background: var(--c-access); }
.swatch-cameras { background: var(--c-cameras); }
.swatch-network { background: var(--c-network); }
.swatch-cabling { background: var(--c-cabling); }

.feed { position: absolute; bottom: 72px; right: -24px; width: min(272px, 55%); padding: 16px 16px 6px; background: rgba(9, 20, 36, 0.78); border: 1px solid var(--night-line); border-radius: var(--radius); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.feed-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.8125rem; font-weight: 700; color: var(--on-night-muted); }
.feed-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-access); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }
.feed ul { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--night-line); font-size: 0.8125rem; transition: opacity 0.4s ease; }
.feed li[hidden] { display: none; }
.feed li.is-new { animation: arrive 0.5s ease-out; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.feed-what { font-weight: 700; color: var(--on-night); }
.feed-detail { grid-column: 2 / -1; color: var(--on-night-muted); }
.feed time { grid-row: 1; grid-column: 3; white-space: nowrap; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.feed [data-system='access'] .feed-dot { background: var(--c-access); }
.feed [data-system='cameras'] .feed-dot { background: var(--c-cameras); }
.feed [data-system='network'] .feed-dot { background: var(--c-network); }
.feed [data-system='cabling'] .feed-dot { background: var(--c-cabling); }
.ops[data-active='access'] .feed li:not([data-system='access']),
.ops[data-active='cameras'] .feed li:not([data-system='cameras']),
.ops[data-active='network'] .feed li:not([data-system='network']),
.ops[data-active='cabling'] .feed li:not([data-system='cabling']) { opacity: 0.3; }

@keyframes arrive { from { opacity: 0; transform: translateY(-8px); } }

/* Brands */
.brands { padding-block: 28px; border-bottom: 1px solid var(--line); }
.brands-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.brands p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.brands ul { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; padding: 0; list-style: none; }
.brands li { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 1.3125rem; letter-spacing: -0.02em; color: color-mix(in srgb, var(--ink) 55%, var(--bg)); }

/* Services */
.service-grid { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.service-grid > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.service-grid h3 { margin: 6px 0 0; }
.service-grid p { color: var(--muted); margin: 0; }
.icon { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); }
.site-intelli .icon-badge { border-radius: var(--radius); background: var(--night); color: var(--c-cabling); }
.site-intelli .service-grid > li { border-top: 3px solid var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 12px 0 0; list-style: none; }
.tags li { padding: 4px 10px; border-radius: 999px; background: var(--quiet); font-size: 0.8125rem; color: var(--ink); }
.site-intelli .tags li { border-radius: var(--radius-small); }

/* Audiences */
.audiences { margin: 0; display: grid; gap: 16px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.audiences div { padding: 24px 0 0; border-top: 2px solid var(--ink); }
.audiences dt { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 8px; }
.audiences dd { margin: 0; color: var(--muted); }

/* Steps as a timeline */
.steps { list-style: none; padding: 0; margin: 0 0 40px; counter-reset: step; display: grid; gap: 32px 24px; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.steps::before { content: ''; position: absolute; top: 22px; left: 22px; right: 10%; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1.125rem/1 var(--display); box-shadow: 0 0 0 8px var(--bg); position: relative; }
.band-quiet .steps li::before { box-shadow: 0 0 0 8px var(--quiet); }
.site-intelli .steps li::before { border-radius: var(--radius); }
.steps h3 { font-size: 1.125rem; }
.steps p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

input:not([type='checkbox']), select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.7em 0.85em; }
.site-intelli :is(input:not([type='checkbox']), select, textarea) { border-radius: var(--radius-small); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }

.contact-layout { display: grid; gap: 40px 64px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.fields { display: grid; gap: 18px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
.field label { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 6px; }
.field-wide { grid-column: 1 / -1; }
.service-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.service-picker legend { font-weight: 700; font-size: 0.9375rem; margin-bottom: 10px; padding: 0; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-block; padding: 0.6em 1em; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); font-size: 0.9375rem; transition: background 0.15s ease, border-color 0.15s ease; }
.pick:hover span { border-color: var(--ink); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-error, .form-error { color: #b42318; font-size: 0.9375rem; margin: 6px 0 0; }
.trap { position: absolute; left: -9999px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.summary h2 { font-size: 1.375rem; }
.next-steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: next; display: grid; gap: 14px; }
.next-steps li { counter-increment: next; display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; }
.next-steps li::before { content: counter(next); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 0.9375rem/1 var(--display); }
.site-intelli .next-steps li::before { border-radius: var(--radius); }
.next-steps span { color: var(--muted); font-size: 0.9375rem; }
.summary address { font-style: normal; color: var(--muted); }

.portfolio, .quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.portfolio img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: 16px; }
.quotes li { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.quotes blockquote { margin: 0 0 12px; font-family: var(--display); font-stretch: var(--display-stretch); font-size: 1.25rem; line-height: 1.35; }
.quotes blockquote p::before { content: '\201C'; }
.quotes blockquote p::after { content: '\201D'; }

.empty { padding: 32px 0; }

.closing { position: relative; overflow: hidden; padding-block: clamp(80px, 11vw, 144px); }
.closing h2 { font-size: clamp(2.25rem, 5vw, 4rem); color: var(--on-night); }
.closing p { color: var(--on-night-muted); font-size: 1.1875rem; }
.site-homiq .closing { background: radial-gradient(50% 90% at 100% 100%, rgba(255, 181, 77, 0.3), transparent 70%), var(--night); }
.site-intelli .closing { background: linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 48px 48px, radial-gradient(50% 90% at 100% 100%, rgba(59, 108, 255, 0.4), transparent 70%), var(--night); }

.footer { background: var(--night); color: var(--on-night-muted); padding-block: 48px; border-top: 1px solid var(--night-line); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); align-items: start; }
.footer p { margin: 0 0 4px; }
.footer .wordmark { color: var(--on-night); }
.footer address { font-style: normal; }
.footer a:not(.button) { color: var(--on-night); }
.footer .button { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

@media (max-width: 960px) {
  .hero-grid, .split, .contact-layout, .section-head { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); }
  .steps li { padding-left: 72px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .summary { position: static; }
  .scene svg { width: 100%; margin-left: 0; }
  .app-card { grid-template-columns: minmax(0, 1fr); }
  .feed { position: static; width: auto; margin-top: 20px; }
}

@media (max-width: 560px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .masthead nav { gap: 4px 16px; font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Service areas and catalog */
.area-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; font-weight: 700; }
.area-links a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.catalog-teaser { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin-bottom: 36px; }
.catalog-teaser h3 { font-size: 1.0625rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.catalog-teaser ul { list-style: none; margin: 0; padding: 0; }
.catalog-teaser li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.catalog-teaser li a { text-decoration: none; }
.catalog-teaser li a:hover { text-decoration: underline; }
.catalog-teaser li span { color: var(--muted); font-variant-numeric: tabular-nums; }

.catalog-search { margin-top: 28px; max-width: 560px; }
.catalog-search input { padding: 0.9em 1.1em; font-size: 1.0625rem; background: rgba(255, 255, 255, 0.96); border-color: transparent; }
.catalog-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 56px 120px; align-items: start; }
.catalog-nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 0.9375rem; padding-right: 8px; }
.catalog-nav p { margin: 18px 0 6px; font-weight: 700; color: var(--ink); }
.catalog-nav p:first-child { margin-top: 0; }
.catalog-nav ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); }
.catalog-nav a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.catalog-nav a:hover, .catalog-nav a.is-current { color: var(--ink); }
.catalog-nav a.is-current { font-weight: 700; }
.catalog-group + .catalog-group { margin-top: 72px; }
.catalog-group > h2 { margin-bottom: 4px; }
.catalog-group > .lede { margin-bottom: 28px; }
.catalog-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 20px; scroll-margin-top: 96px; overflow: hidden; }
.site-intelli .catalog-section { border-top: 3px solid var(--ink); }
.catalog-section header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.catalog-section header h3 { margin: 0 0 2px; }
.catalog-section header p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.catalog-section .count { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.service-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-items li { border-bottom: 1px solid var(--line); }
.service-items li:nth-child(odd) { border-right: 1px solid var(--line); }
.service-items label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 24px; cursor: pointer; height: 100%; transition: background 0.15s ease; }
.service-items label:hover { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.service-items input { position: absolute; opacity: 0; }
.item-text strong { display: block; font-size: 1rem; line-height: 1.35; }
.item-text span { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.45; margin-top: 4px; }
.item-toggle { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: background 0.15s ease, border-color 0.15s ease; margin-top: 2px; }
.site-intelli .item-toggle { border-radius: var(--radius-small); }
.item-toggle::after { content: ''; width: 10px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.service-items input:checked ~ .item-toggle { background: var(--accent); border-color: var(--accent); }
.service-items input:checked ~ .item-toggle::after { opacity: 1; }
.service-items li:has(input:checked) label { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.service-items input:focus-visible ~ .item-toggle { outline: 3px solid var(--accent); outline-offset: 2px; }
[data-item][hidden], [data-section][hidden], [data-group][hidden] { display: none; }

.quote-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: blur(14px); color: var(--on-night); border-top: 1px solid var(--night-line); transform: translateY(0); transition: transform 0.3s ease; }
.quote-bar.is-empty { transform: translateY(110%); }
.quote-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.quote-bar p { margin: 0; }
.quote-bar strong { font-size: 1.25rem; color: var(--accent); }
.site-intelli .quote-bar strong { color: var(--c-cabling); }
.quote-bar .button { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.picked-items { border: 0; margin: 0; padding: 16px 18px; min-width: 0; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.picked-items legend { font-weight: 700; font-size: 0.9375rem; padding: 0 6px; }
.picked-items ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.picked-items label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.picked-items input { width: 1.125rem; height: 1.125rem; accent-color: var(--action); }
.picked-items .meta { margin: 0; }

@media (max-width: 960px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .catalog-nav { position: static; max-height: none; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .catalog-nav p { display: none; }
  .catalog-nav ul { display: contents; }
  .catalog-nav a { white-space: nowrap; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
  .service-items { grid-template-columns: minmax(0, 1fr); }
  .service-items li:nth-child(odd) { border-right: 0; }
}

@media (max-width: 560px) {
  .catalog-section header { grid-template-columns: auto minmax(0, 1fr); }
  .catalog-section .count { grid-column: 2; }
  .service-items label { padding: 14px 18px; }
}

/* SEO pages */
.masthead nav .nav-phone { color: var(--on-night); font-weight: 700; font-variant-numeric: tabular-nums; }
.crumbs { background: var(--night); border-bottom: 1px solid var(--night-line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 10px 0; margin-block: 0; font-size: 0.875rem; color: var(--on-night-muted); }
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: 0.5; }
.crumbs a { color: var(--on-night-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-night); text-decoration: underline; }
.crumbs [aria-current] { color: var(--on-night); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.icon-badge-large { width: 120px; height: 120px; border-radius: 36px; }
.icon-badge-large .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.site-intelli .icon-badge-large { border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--night-line); }
.small-head { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }

.prose { max-width: 760px; font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.6em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }

.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-size: 1.0625rem; list-style: none; position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform 0.2s ease; }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { margin: 0 0 18px; color: var(--muted); }

.related { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.related a { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.related a:hover { border-color: var(--ink); }
.related .icon-badge { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.related .icon-badge .icon { width: 24px; height: 24px; }
.related-large a { padding: 20px 24px; font-size: 1.25rem; }

.item-more { display: block; padding: 0 24px 14px; margin-top: -6px; font-size: 0.875rem; font-weight: 700; text-decoration-color: var(--accent); }

.portfolio a { text-decoration: none; }
.portfolio a:hover h3 { text-decoration: underline; }
.portfolio h3 { margin-top: 4px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.guide-list a { display: block; height: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.guide-list a:hover { border-color: var(--ink); }
.guide-list p { color: var(--muted); margin: 0 0 6px; }
.project-cover { margin-top: -24px; position: relative; }
.project-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.carousel { position: relative; margin-block: 32px; }
.carousel-track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { flex: 0 0 100%; scroll-snap-align: start; }
.carousel figure { margin: 0; }
.carousel img, .carousel video { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ink); }
.carousel video { object-fit: contain; }
.carousel figcaption { color: var(--muted); font-size: 0.9375rem; margin-top: 8px; }
.carousel-step { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(23, 48, 42, 0.25); }
.carousel-step:hover { background: var(--accent); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-count { position: absolute; top: 12px; right: 12px; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(23, 48, 42, 0.7); color: #fff; font-size: 0.8125rem; }

.credentials { background: var(--surface); border-bottom: 1px solid var(--line); }
.credentials ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; padding-block: 22px; margin-block: 0; }
.credentials li { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--accent); }
.credentials span { color: var(--muted); font-size: 0.875rem; }

.footer-title { color: var(--on-night); font-weight: 700; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; font-size: 0.9375rem; }
.footer ul a { color: var(--on-night-muted); text-decoration: none; }
.footer ul a:hover { color: var(--on-night); text-decoration: underline; }
.footer-brand address { margin: 14px 0; line-height: 1.7; }
.footer-legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 0.875rem; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head-grid { grid-template-columns: minmax(0, 1fr); }
  .icon-badge-large { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .masthead nav .nav-phone { display: none; }
}

/* Quote builder and services page */
.quote-layout { grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 40px; }
.quote-summary { position: sticky; top: 88px; padding: 24px; border-radius: var(--radius); background: var(--night); color: var(--on-night); }
.quote-summary h2 { font-size: 1.5rem; color: var(--on-night); }
.quote-summary .meta { color: var(--on-night-muted); font-size: 0.875rem; }
.quote-summary .meta a { color: var(--on-night); }
.quote-summary .button { width: 100%; justify-content: center; margin-bottom: 14px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.quote-total strong { font: var(--display-weight) 2.25rem/1 var(--display); font-stretch: var(--display-stretch); color: var(--accent); margin-right: 6px; }
.quote-list { list-style: none; margin: 0 0 18px; padding: 0; max-height: 40vh; overflow-y: auto; }
.quote-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--night-line); font-size: 0.875rem; }
.quote-remove { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--night-line); cursor: pointer; position: relative; }
.quote-remove::before, .quote-remove::after { content: ''; position: absolute; left: 7px; top: 11px; width: 10px; height: 2px; background: var(--on-night); transform: rotate(45deg); }
.quote-remove::after { transform: rotate(-45deg); }
@media (min-width: 961px) { .quote-bar-mobile { display: none; } }

.chapter-nav { position: sticky; top: 72px; z-index: 12; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chapter-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.chapter-nav a { flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.chapter-nav a:hover { border-color: var(--ink); }
.theme { scroll-margin-top: 130px; }
.theme-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
.theme-head { position: sticky; top: 140px; }
.theme-head .icon-badge-large { margin-bottom: 24px; }
.line-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.line-cards > li { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--radius); background: var(--surface); }
.line-cards > li:only-child { grid-column: 1 / -1; }
.line-cards h3 { font-size: 1.5rem; }
.line-cards h3 a { text-decoration: none; }
.line-cards h3 a:hover { text-decoration: underline; }
.line-cards .check-list { margin-bottom: 20px; }
.line-meta { margin: 0 0 12px; color: var(--muted); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.line-link { margin-top: auto; font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.capability-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.capability-grid li { padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.capability-grid p { margin: 0; color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 14px; height: 8px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.on-night .catalog-teaser h3 { border-color: var(--on-night); color: var(--on-night); }
.on-night .catalog-teaser li { border-color: var(--night-line); }
.on-night h2 { color: var(--on-night); }
.on-night .section-head p { color: var(--on-night-muted); }

@media (max-width: 960px) {
  .quote-layout, .theme-grid, .line-cards { grid-template-columns: minmax(0, 1fr); }
  .quote-summary { display: none; }
  .theme-head { position: static; }
}

/* Guides: article with sidebar, contents, tag cloud, archive, pagination, comments */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.blog-main .guide-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
.prose h2, .prose h3 { scroll-margin-top: 96px; }
.prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose figure { margin: 1.6em 0; }
.prose figure.image-style-side, .prose figure.image-style-align-right { float: right; max-width: 45%; margin: 0.3em 0 1em 1.6em; }
.prose figure.image-style-align-left { float: left; max-width: 45%; margin: 0.3em 1.6em 1em 0; }
.prose figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 1rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--quiet); }
.blog-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.aside-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.aside-box h2 { font-size: 1.125rem; margin-bottom: 12px; }
.toc ol, .archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.toc .toc-3 { padding-left: 14px; }
.toc a, .archive-list a { color: var(--ink); text-decoration: none; }
.toc a:hover, .archive-list a:hover { text-decoration: underline; }
.archive-list span { color: var(--muted); }
.tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-inline { margin-top: 28px; }
.tag-cloud a { display: inline-flex; gap: 6px; padding: 6px 12px; border-radius: var(--radius-small); background: var(--quiet); color: var(--ink); font-size: 0.875rem; text-decoration: none; }
.tag-cloud a span { color: var(--muted); }
.tag-cloud a:hover, .tag-cloud a[aria-current] { background: var(--action); color: var(--action-ink); }
.tag-cloud a:hover span, .tag-cloud a[aria-current] span { color: inherit; }
.pagination { display: flex; gap: 20px; align-items: center; justify-content: center; margin-top: 40px; color: var(--muted); }
.pagination a { padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius-small); color: var(--ink); text-decoration: none; }
.pagination a:hover { border-color: var(--ink); }
.comments { max-width: 760px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment p { margin: 0; }
.comment .comment-meta { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.comment-meta time { color: var(--muted); font-size: 0.875rem; }
.comment-form { margin-top: 28px; }
.comments .notice { margin: 24px 0 0; padding: 14px 18px; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--quiet); }

@media (max-width: 960px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-aside { position: static; }
}

/* Sister site: Homes / Buildings switch and the other brand's matching projects. */
.sister-bar { background: var(--night); font-size: 0.8125rem; }
.sister-bar nav { display: flex; justify-content: flex-end; gap: 4px; padding-block: 6px; }
.sister-bar a, .sister-bar span { padding: 2px 12px; border-radius: var(--radius-small); color: var(--on-night-muted); text-decoration: none; }
.sister-bar span { background: var(--night-line); color: var(--on-night); }
.sister-bar a:hover { color: var(--on-night); }
.sister { padding-block: 64px; background: var(--quiet); }
.sister-head { max-width: 720px; margin-bottom: 28px; }
.sister-eyebrow { margin: 0 0 8px; color: var(--sister-accent); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sister-head h2 { margin: 0; }
.sister-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sister-cards a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--surface); border-top: 4px solid var(--sister-accent); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: 0 8px 24px rgba(11, 22, 38, 0.08); transition: transform 0.2s, box-shadow 0.2s; }
.sister-cards a:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(11, 22, 38, 0.14); }
.sister-cards img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sister-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.sister-brand { color: var(--sister-accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sister-body strong { font-family: var(--display); font-size: 1.1875rem; line-height: 1.3; }
.sister-meta { color: var(--muted); font-size: 0.875rem; }
.sister-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sister-skills span { padding: 3px 10px; border-radius: var(--radius-small); background: var(--quiet); color: var(--muted); font-size: 0.75rem; }
.sister-more { margin: 28px 0 0; }
.sister-more a { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sister-cards a { transition: none; } .sister-cards a:hover { transform: none; } }

/* Sliders: the home hero and the service, project and guide rows. */
.slider { --per: 3; --gap: 16px; position: relative; }
.slider.hero-slider { --per: 1; --gap: 0px; }
.slider .slider-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: -8px -4px; padding: 8px 4px; scroll-padding-inline: 4px; }
.hero-slider .slider-track { margin: 0; padding: 0; scroll-padding-inline: 0; }
.slider-track::-webkit-scrollbar { display: none; }
.slider .slider-track > li { position: relative; flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.hero-slider .slider-track > li { display: flex; }
.hero-slider .slider-track > li > .hero { flex: 1; min-width: 0; }
.hero-photo { display: flex; align-items: center; isolation: isolate; }
.hero-photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--night) 92%, transparent), color-mix(in srgb, var(--night) 65%, transparent) 55%, color-mix(in srgb, var(--night) 20%, transparent)); }
.hero-photo .hero-kicker { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8125rem; margin: 0 0 16px; }
.hero-photo h2 { color: var(--on-night); font-size: clamp(2.25rem, 4.2vw, 3.75rem); max-width: 16ch; }
.hero-photo .hero-copy > p:not(.hero-kicker):not(.actions) { color: var(--on-night-muted); max-width: 52ch; font-size: 1.125rem; margin-bottom: 32px; }
.slider-step { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.slider-step:hover { border-color: var(--ink); }
.slider-prev { left: -22px; }
.slider-next { right: -22px; }
.hero-slider .slider-step { border-color: var(--night-line); background: color-mix(in srgb, var(--night) 70%, transparent); color: var(--on-night); }
.hero-slider .slider-prev { left: 20px; }
.hero-slider .slider-next { right: 20px; }
.slider-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; }
.hero-slider .slider-bar { position: absolute; inset: auto 0 20px; margin: 0; }
.slider-dots { display: flex; }
.slider-dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.slider-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width 0.3s ease, background 0.3s ease; }
.slider-dots button[aria-current='true'] { width: 36px; }
.slider-dots button[aria-current='true']::before { width: 26px; background: var(--ink); }
.hero-slider .slider-dots button::before { background: var(--night-line); }
.hero-slider .slider-dots button[aria-current='true']::before { background: var(--accent); }
.slider-play { width: 32px; height: 32px; border: 1px solid var(--night-line); border-radius: 50%; background: color-mix(in srgb, var(--night) 70%, transparent); color: var(--on-night); font-size: 10px; cursor: pointer; }
.slider.is-static .slider-step, .slider.is-static .slider-bar { display: none; }
@media (max-width: 960px) { .slider { --per: 2; } .slider-step { display: none; } }
@media (max-width: 560px) { .slider { --per: 1.12; --gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .slider-dots button::before { transition: none; } }

/* Guides index: topic pills, featured guide and photo cards. */
.guides-eyebrow { color: var(--accent); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.guide-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.guide-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--night-line); border-radius: 999px; color: var(--on-night-muted); font-size: 0.875rem; text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.page-head .guide-topics a { color: var(--on-night-muted); }
.guide-topics a span { opacity: 0.6; font-size: 0.8125rem; }
.page-head .guide-topics a:hover { border-color: var(--on-night); color: var(--on-night); }
.page-head .guide-topics a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.guides-band { padding-top: clamp(40px, 5vw, 64px); }
.guide-topic { display: block; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-card-text { display: block; color: var(--muted); }
.guide-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-bottom: 40px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.guide-feature-media, .guide-card-media { display: block; overflow: hidden; background: linear-gradient(135deg, var(--night), var(--night-2)); }
.guide-feature-media img, .guide-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.guide-feature-media { min-height: 360px; }
.guide-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 52px); }
.guide-feature h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.05; margin: 0; }
.guide-feature .guide-card-text { font-size: 1.0625rem; }
.guide-more { font-weight: 700; color: var(--ink); margin-top: 6px; }
.guide-more span { display: inline-block; transition: transform 0.2s ease; }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.guide-card-media { aspect-ratio: 16 / 10; }
.guide-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 24px; }
.guide-card h3 { margin: 0; font-size: 1.1875rem; }
.guide-card .meta { margin-top: auto; padding-top: 6px; font-size: 0.875rem; }
.guide-card:hover, .guide-feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 18px 40px -22px rgba(11, 22, 38, 0.45); transform: translateY(-3px); }
.guide-card:hover img, .guide-feature:hover img { transform: scale(1.04); }
.guide-feature:hover .guide-more span { transform: translateX(4px); }
.guides-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.guides-foot p { margin: 0; max-width: none; }
.guides-foot strong { color: var(--ink); margin-right: 6px; }
.guides-foot a { color: var(--muted); margin-right: 10px; }
.guides-foot a:hover { color: var(--ink); }
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide-feature { grid-template-columns: minmax(0, 1fr); } .guide-feature-media { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } .guide-topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; } .guide-topics::-webkit-scrollbar { display: none; } .guide-topics a { flex: none; } }
@media (prefers-reduced-motion: reduce) { .guide-card, .guide-feature, .guide-card img, .guide-feature img, .guide-more span { transition: none; } .guide-card:hover, .guide-feature:hover { transform: none; } .guide-card:hover img, .guide-feature:hover img { transform: none; } }

/* Areas page: stats, regions, service map and the "anywhere" band. */
.area-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; max-width: 920px; }
.area-stats li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--night-line); border-radius: var(--radius); background: color-mix(in srgb, var(--night-2) 60%, transparent); }
.area-stats strong { font: var(--display-weight) clamp(1.5rem, 2.6vw, 2.125rem)/1 var(--display); font-stretch: var(--display-stretch); color: var(--on-night); }
.area-stats span { color: var(--on-night-muted); font-size: 0.875rem; }
.areas-band { padding-top: clamp(40px, 5vw, 64px); }
.areas-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
.area-regions { display: grid; gap: 28px; }
.area-region h2 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.area-region ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.area-region a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.area-region a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 12px 28px -18px rgba(11, 22, 38, 0.45); transform: translateY(-2px); }
.area-name { font-weight: 700; }
.area-km { margin-left: auto; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.area-chip { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.area-chip-home { background: var(--accent); color: var(--accent-ink); }
.area-map { position: sticky; top: 96px; margin: 0; padding: 20px; border-radius: var(--radius); background: var(--night); }
.area-map svg { display: block; width: 100%; height: auto; }
.area-map figcaption { color: var(--on-night-muted); font-size: 0.8125rem; margin-top: 10px; }
.area-lake { fill: color-mix(in srgb, var(--accent) 16%, var(--night)); stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 1; }
.area-ring { fill: none; stroke: color-mix(in srgb, var(--on-night) 30%, transparent); stroke-width: 1.4; stroke-dasharray: 5 6; }
.area-ring-label { fill: var(--on-night-muted); font-size: 12px; font-family: var(--body); paint-order: stroke; stroke: var(--night); stroke-width: 4px; }
.area-dot circle { fill: var(--on-night); stroke: var(--night); stroke-width: 2; transition: fill 0.15s ease, r 0.15s ease; }
.area-dot text { fill: var(--on-night-muted); font-size: 13px; font-family: var(--body); }
.area-dot:hover circle, .area-dot:focus circle { fill: var(--accent); }
.area-dot:hover text, .area-dot:focus text { fill: var(--on-night); }
.area-dot-home circle { fill: var(--accent); }
.area-dot-home text { fill: var(--on-night); font-weight: 700; font-size: 14px; }
.areas-anywhere-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.areas-anywhere h2 { margin: 0; }
.areas-anywhere p { font-size: 1.0625rem; }
@media (max-width: 960px) { .areas-layout, .areas-anywhere-grid { grid-template-columns: minmax(0, 1fr); } .area-map { position: static; order: -1; } .area-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .area-region ul { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .area-region a { transition: none; } .area-region a:hover { transform: none; } }
.areas-anywhere .accent { color: var(--accent); }
@media (max-width: 480px) { .area-stats strong { font-size: 1.375rem; } }
