/* TotalComm Solutions — revamp candidate v2 (private preview)
   Theme: light only (tokens on :root). Dark mode removed 28 Nov 2026 at the owner's request. */
:root {
  --bg: #f4f7fa;
  --bg-2: #eaf0f5;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --glass: rgba(255, 255, 255, .72);
  --ink: #0b1b2b;
  --ink-2: #22364a;
  --muted: #55697d;
  --line: rgba(10, 50, 82, .12);
  --line-2: rgba(10, 50, 82, .22);
  --brand: #1C6293;
  --brand-strong: #0A3252;
  --accent: #1aa6d1;
  --accent-soft: rgba(26, 166, 209, .14);
  --hero-ink: #0b1b2b;
  --shadow: 0 24px 60px -28px rgba(10, 40, 70, .35);
  --shadow-sm: 0 8px 24px -14px rgba(10, 40, 70, .3);
  --tbc-bg: #fff1c9; --tbc-ink: #6b4a00;
  --ok: #1d7a4a; --err: #b3261e;
  --iso-ground: #dfe8f0; --iso-slab-t: #f7fafc; --iso-slab-r: #b9c8d5; --iso-slab-l: #cfdae4;
  --iso-wall-l: #ffffff; --iso-wall-r: #eaf0f5; --iso-glass: rgba(120, 175, 215, .25); --iso-mullion: rgba(10, 50, 82, .18);
  --iso-furn-t: #e8eef4; --iso-furn-r: #b3c3d1; --iso-furn-l: #c9d5df;
  --iso-dark-t: #3a5268; --iso-dark-r: #1c2e40; --iso-dark-l: #283f55;
  --iso-run: #9fb3c4; --iso-win: #cfe0ee; --iso-win-o: 0;
  --sky-1: #dbe7f1; --sky-2: #f3f7fa; --tower-1: #c4d3e0; --tower-2: #d6e1ea; --tower-3: #e6edf3; --tower-win: rgba(28, 98, 147, .25);
  --radius: 18px;
  --wrap: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); transition: background-color .4s var(--ease), color .4s var(--ease); overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.no-js [data-js-only] { display: none !important; }
.tbc { background: var(--tbc-bg); color: var(--tbc-ink); font-size: .72em; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; vertical-align: .12em; letter-spacing: 0; text-transform: none; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: .98rem; font-weight: 650; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-weight: 650; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- preview ribbon ---------- */
.review-ribbon { position: relative; z-index: 120; background: #0b1b2b; color: #cfe0ee; font-size: .78rem; padding: 7px 0; }
.review-ribbon .wrap { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 600px) { .review-ribbon .wrap > span:last-child { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.menu-open { background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom-color: var(--line); }
.header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: var(--header-h); }
.brand { justify-self: start; display: block; line-height: 0; }
.brand img { width: 128px; height: auto; }

.pill-nav { justify-self: center; }
.pill-nav > ul { list-style: none; margin: 0; padding: 5px; display: flex; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); align-items: center; }
.pill-nav > ul > li { position: relative; }
.pill-nav .top { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 550; line-height: 1.4; background: none; border: 0; font-family: inherit; cursor: pointer; }  /* same line height for links and the dropdown buttons, so all six line up */
.pill-nav .top:hover, .pill-nav .top[aria-expanded="true"], .pill-nav .top[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.pill-nav .top .chev { width: 10px; height: 10px; transition: transform .25s; }
.pill-nav .top[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px); width: min(780px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 18px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s var(--ease), visibility .22s; }
.mega.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega a.item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.mega a.item:hover { background: var(--surface-2); }
.mega a.item strong { display: block; font-size: .95rem; font-weight: 650; }
.mega a.item span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.mega .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); }
.mega .ico svg { width: 22px; height: 22px; }
.mega-feature { border-radius: 16px; padding: 20px; background: linear-gradient(160deg, #0A3252, #061524); color: #dbe9f5; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; position: relative; overflow: hidden; }
.mega-feature h4 { color: #fff; font-size: 1.1rem; margin-bottom: .35em; }
.mega-feature p { font-size: .87rem; color: #b8cde0; margin-bottom: 12px; }
.mega-feature a { color: #fff; }
.mega-feature .glow { position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(70,209,245,.45), transparent 65%); }
.mega.narrow { width: min(420px, 92vw); grid-template-columns: 1fr; }

.header-tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-tools .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); background: transparent; text-decoration: none; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

/* mobile menu */
.mobile-menu { display: none; }
@media (max-width: 1080px) {
  .pill-nav, .header-tools .call-btn, .header-tools .btn { display: none; }
  .header-in { grid-template-columns: 1fr auto; }
  .brand img { width: 118px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
  .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 99; overflow-y: auto; padding: 8px 24px 140px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu h2 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 24px 0 4px; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu a { display: block; padding: 12px 0; font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .no-js .mobile-menu { position: static; opacity: 1; visibility: visible; transform: none; padding-bottom: 20px; }
}

/* mobile action bar */
.action-bar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .action-bar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .action-bar .btn { min-height: 50px; padding: 0 10px; }
}

/* section rail */
.rail { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 14px; }
.rail a { display: flex; align-items: center; gap: 10px; justify-content: flex-end; text-decoration: none; color: var(--muted); font-size: .68rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; }
.rail a .lbl { opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; white-space: nowrap; background: var(--glass); padding: 3px 8px; border-radius: 6px; }
.rail a:hover .lbl, .rail a:focus-visible .lbl { opacity: 1; transform: none; }
.rail a .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background .25s, border-color .25s, transform .25s; }
.rail a.active { color: var(--ink); }
.rail a.active .dot { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
@media (max-width: 1320px) { .rail { display: none; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; } .js .reveal[data-delay="2"] { transition-delay: .16s; } .js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(50px, 6vw, 80px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.band { background: var(--bg-2); }
.panel-dark { background: #050b12; color: #dce8f3; }
.panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark .lede, .panel-dark .muted { color: #93a8bc; }
.panel-dark .kicker { color: #6fd3f2; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - 30px), 940px); margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 70%, var(--bg)); }
.hero-scene > svg, .hero-scene > canvas, .hero-scene > video { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.hero-scene > canvas { pointer-events: none; }
.hero-scene .t1 { fill: var(--tower-1); } .hero-scene .t2 { fill: var(--tower-2); } .hero-scene .t3 { fill: var(--tower-3); }
.hero-scene .tw { fill: var(--tower-win); }
.hero-scene .veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 34%, transparent 66%); }
.hero-scene .fade { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; width: 100%; padding-top: 30px; padding-bottom: 90px; }
.hero h1 { color: var(--hero-ink); }
.hero h1 .ln { display: block; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; font-size: .88rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }
.hero-card { justify-self: end; width: min(430px, 100%); background: var(--glass); border: 1px solid var(--line); border-radius: 26px; padding: 14px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.hero-card .mark { background: #fff; border-radius: 18px; overflow: hidden; }
.hero-card .mark img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 8px 6px; }
.hero-card .row p { margin: 0; font-size: .86rem; color: var(--muted); }
.hero-card .row strong { color: var(--ink); display: block; font-size: .95rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1.5px; height: 34px; background: linear-gradient(var(--muted), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-in { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 50px; }
  .hero-card { justify-self: start; }
  .hero-scene .veil { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent), var(--bg) 62%); }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* ---------- capability marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 52s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; font-size: 1.02rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 14px 30px; } .marquee-track [aria-hidden] { display: none; } }

/* ---------- scale cards ---------- */
.scale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scale-card { position: relative; border-radius: 22px; overflow: hidden; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; text-decoration: none; isolation: isolate; background: #0a1826; }
.scale-card .media-slot { position: absolute; inset: 0; z-index: -2; transition: transform 1.2s var(--ease); }
.scale-card .art { position: absolute; inset: 0 0 auto 0; height: 72%; z-index: -1; display: grid; place-items: center; padding: 30px; transition: transform 1.2s var(--ease); }
.scale-card .art svg { width: 100%; height: 100%; }
.scale-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,10,18,0) 40%, rgba(4,10,18,.92) 100%); }
.scale-card:hover .media-slot, .scale-card:hover .art { transform: scale(1.05); }
.scale-card .tag { position: absolute; top: 20px; left: 20px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 999px; }
.scale-card h3 { color: #fff; font-size: 1.7rem; }
.scale-card p { color: #c5d6e5; font-size: .95rem; }
.scale-card .link-arrow { color: #fff; }
@media (max-width: 900px) { .scale-grid { grid-template-columns: 1fr; } .scale-card { min-height: 380px; } }

/* media slot (placeholder for approved photography / Higgsfield media) */
.media-slot { position: relative; overflow: hidden; background: radial-gradient(80% 60% at 70% 20%, rgba(70,209,245,.22), transparent 60%), linear-gradient(160deg, #123a5e 0%, #071524 70%); }
.media-slot::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.media-slot img, .media-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-id { position: absolute; right: 12px; top: 12px; z-index: 3; font: 600 .66rem/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; color: #d9f3fb; background: rgba(0,0,0,.45); border: 1px dashed rgba(217,243,251,.5); padding: 6px 8px; border-radius: 8px; }

/* ---------- explorer (The Connected Building) ---------- */
.explorer-shell { border-radius: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.explorer-top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { font: inherit; font-size: .9rem; font-weight: 650; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 18px; min-height: 40px; cursor: pointer; transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.explorer-top .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.explorer-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.explorer-stage { position: relative; min-height: 540px; background: radial-gradient(90% 70% at 50% 45%, var(--accent-soft), transparent 70%), var(--surface-2); display: grid; place-items: center; padding: 12px; overflow: hidden; }
.explorer-stage .scene { grid-area: 1 / 1; width: 100%; max-width: 760px; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.explorer-stage .scene.off { opacity: 0; transform: translateY(18px) scale(.97); pointer-events: none; }
.explorer-side { padding: 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zone-btn { width: 100%; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; text-align: left; font: inherit; font-weight: 650; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-height: 58px; cursor: pointer; transition: border-color .25s, background .25s; }
.zone-btn:hover { border-color: var(--line-2); }
.zone-btn .num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.zone-btn .num svg { width: 18px; height: 18px; }
.zone-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.zone-btn[aria-pressed="true"] .num { background: var(--accent); color: #04121d; }
.zone-panel { border-radius: 16px; background: var(--surface-2); padding: 20px; animation: panelIn .45s var(--ease); }
.zone-panel h3 { margin-bottom: .3em; }
.zone-panel p { color: var(--muted); font-size: .96rem; }
.zone-panel ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.zone-panel li { font-size: .92rem; padding-left: 20px; position: relative; color: var(--ink-2); }
.zone-panel li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.zone-panel .links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.zone-panel .links .btn { min-height: 44px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.no-js .zone-panel { margin-bottom: 10px; }
.explorer-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 980px) { .explorer-body { grid-template-columns: 1fr; } .explorer-side { border-left: 0; border-top: 1px solid var(--line); } .explorer-stage { min-height: 0; } }
@media (max-width: 520px) { .seg button { padding: 8px 12px; font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .zone-panel { animation: none; } .explorer-stage .scene { transition: none; } }

/* isometric scenes */
.iso .ground { fill: var(--iso-ground); }
.iso .shade { fill: #000; opacity: .12; }
.iso .f-top { fill: var(--iso-slab-t); } .iso .f-r { fill: var(--iso-slab-r); } .iso .f-l { fill: var(--iso-slab-l); }
.iso .wall-l { fill: var(--iso-wall-l); } .iso .wall-r { fill: var(--iso-wall-r); }
.iso .glass { fill: var(--iso-glass); }
.iso .mullion { stroke: var(--iso-mullion); stroke-width: 1; fill: none; }
.iso .win { fill: var(--iso-win); opacity: var(--iso-win-o); }
.iso .furn .f-top { fill: var(--iso-furn-t); } .iso .furn .f-r { fill: var(--iso-furn-r); } .iso .furn .f-l { fill: var(--iso-furn-l); }
.iso .dark .f-top { fill: var(--iso-dark-t); } .iso .dark .f-r { fill: var(--iso-dark-r); } .iso .dark .f-l { fill: var(--iso-dark-l); }
.iso .roof .f-top { fill: #6c8193; } .iso .roof .f-r { fill: #42566a; } .iso .roof .f-l { fill: #546a7e; }
.iso .wood .f-top { fill: #d9c4a6; } .iso .wood .f-r { fill: #a98d6c; } .iso .wood .f-l { fill: #bfa482; }
.iso .soft .f-top { fill: #9db3c6; } .iso .soft .f-r { fill: #6f889d; } .iso .soft .f-l { fill: #8299ad; }
.iso .green { fill: #3f8f6b; } .iso .green-2 { fill: #2f7556; } .iso .pot .f-top { fill: #c9b8a2; } .iso .pot .f-r { fill: #8d7a63; } .iso .pot .f-l { fill: #a8937a; }
.iso .road { fill: #c4cfd9; }
.iso .run { fill: none; stroke: var(--iso-run); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.iso .flow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 5 16; opacity: 0; }
.iso .screen { fill: #0e1b28; } .iso .led { fill: #6c8297; }
.iso .door { fill: #6f879c; } .iso .door-leaf { fill: #9db1c3; transition: transform .8s var(--ease); }
.iso .reader { fill: #1c2e40; } .iso .gate { fill: #9fb3c4; }
.iso .cam { fill: #0A3252; } .iso .cam-hi { fill: #2a6c9e; } .iso .lens { fill: #050d16; }
.iso .cone { fill: url(#coneGrad); opacity: 0; }
.iso .wave { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.iso .marker .m-bg { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.iso .marker .m-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.iso .marker text { font: 700 11px/1 -apple-system, system-ui, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.iso .marker { cursor: pointer; }
.iso .caption { fill: var(--muted); font: 500 11px -apple-system, system-ui, sans-serif; }
.iso .zone * { transition: fill .35s, stroke .35s, opacity .35s; }
.iso[data-active="network"] [data-zone="network"] .flow { opacity: .95; animation: flow 1s linear infinite; }
.iso[data-active="network"] [data-zone="network"] .run { stroke: var(--brand); }
.iso[data-active="network"] [data-zone="network"] .led { fill: var(--accent); animation: blink 1.2s steps(2) infinite; }
.iso[data-active="security"] [data-zone="security"] .cone { opacity: .85; animation: sweep 4.5s ease-in-out infinite alternate; }
.iso[data-active="security"] [data-zone="security"] .cam { fill: var(--brand); }
.iso[data-active="access"] [data-zone="access"] .reader { fill: var(--accent); }
.iso[data-active="access"] [data-zone="access"] .door-leaf { opacity: .35; }
.iso[data-active="access"] [data-zone="access"] .gate { fill: var(--accent); }
.iso[data-active="av"] [data-zone="av"] .screen { fill: var(--brand); }
.iso[data-active="av"] [data-zone="av"] .wave { animation: ripple 2.1s ease-out infinite; }
.iso[data-active="av"] [data-zone="av"] .wave.w2 { animation-delay: .7s; }
.iso[data-active="av"] [data-zone="av"] .wave.w3 { animation-delay: 1.4s; }
.iso[data-active="security"] .marker[data-zone="security"] .m-bg, .iso[data-active="network"] .marker[data-zone="network"] .m-bg,
.iso[data-active="access"] .marker[data-zone="access"] .m-bg, .iso[data-active="av"] .marker[data-zone="av"] .m-bg { fill: var(--accent); stroke: var(--accent); }
.iso[data-active="security"] .marker[data-zone="security"] .m-ring, .iso[data-active="network"] .marker[data-zone="network"] .m-ring,
.iso[data-active="access"] .marker[data-zone="access"] .m-ring, .iso[data-active="av"] .marker[data-zone="av"] .m-ring { animation: ring 1.8s ease-out infinite; }
.iso .sweep { transform-box: view-box; }
@keyframes flow { to { stroke-dashoffset: -42; } }
@keyframes blink { 50% { fill: var(--iso-dark-t); } }
@keyframes sweep { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.9); } }
@media (prefers-reduced-motion: reduce) {
  .iso [data-zone] .flow, .iso [data-zone] .cone, .iso [data-zone] .wave, .iso .marker .m-ring, .iso [data-zone] .led { animation: none !important; }
  .iso[data-active="av"] [data-zone="av"] .wave { opacity: .6; }
}

/* ---------- system stack (sticky storytelling) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.story-visual { position: sticky; top: calc(var(--header-h) + 20px); height: calc(100vh - var(--header-h) - 40px); max-height: 700px; display: grid; place-items: center; }
.stack { width: 100%; max-width: 540px; overflow: visible; }
.stack .layer { transition: transform .9s var(--ease); }
.stack .plate { fill: rgba(255,255,255,.035); stroke: rgba(160,210,245,.22); stroke-width: 1.2; transition: fill .5s, stroke .5s; }
.stack .detail { stroke: rgba(160,210,245,.3); fill: none; stroke-width: 1.3; transition: stroke .5s; }
.stack .dfill { fill: rgba(160,210,245,.28); transition: fill .5s; }
.stack .lbl { fill: #6f869b; font: 600 11px -apple-system, system-ui, sans-serif; letter-spacing: .14em; transition: fill .5s; }
.stack .layer.on .plate { fill: rgba(70,209,245,.13); stroke: #46d1f5; }
.stack .layer.on .detail { stroke: #46d1f5; }
.stack .layer.on .dfill { fill: #46d1f5; }
.stack .layer.on .lbl { fill: #fff; }
.stack .beam { stroke: #46d1f5; stroke-width: 1.4; stroke-dasharray: 3 7; opacity: .55; animation: flow 1.4s linear infinite; }
.story-steps { display: grid; }
.chapter { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.chapter .idx { font: 600 .78rem ui-monospace, Menlo, monospace; color: #6fd3f2; letter-spacing: .12em; margin-bottom: 14px; }
.chapter h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.08; }
.chapter p { color: #9fb3c6; font-size: 1.06rem; max-width: 32em; }
.chapter ul { list-style: none; padding: 0; margin: 6px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chapter li { font-size: .86rem; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #d4e3ef; }
.chapter .link-arrow { color: #fff; }
.no-js .story-visual { position: static; height: auto; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-visual { position: sticky; top: var(--header-h); height: 30vh; z-index: 2; background: linear-gradient(#050b12 80%, transparent); margin: 0 -24px; padding: 6px 24px 16px; }
  .stack { height: 100%; width: auto; }
  .chapter { min-height: 62vh; }
}
@media (prefers-reduced-motion: reduce) { .stack .layer { transition: none; } .stack .beam { animation: none; } }

/* ---------- lifecycle ---------- */
.lifecycle { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.lifecycle::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line-2); }
.lifecycle .bar { position: absolute; left: 0; top: 23px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.no-js .lifecycle .bar { transform: scaleX(1); }
.stage .n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); font-weight: 700; color: var(--muted); position: relative; z-index: 1; transition: border-color .4s, color .4s, background .4s; }
.stage.lit .n { border-color: var(--accent); color: var(--ink); background: var(--surface-2); box-shadow: 0 0 0 6px var(--accent-soft); }
.stage h3 { margin-top: 18px; font-size: 1.15rem; }
.stage p { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) {
  .lifecycle { grid-template-columns: 1fr; gap: 0; }
  .lifecycle::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .lifecycle .bar { left: 23px; top: 0; width: 2px; height: 100%; transform: scaleY(var(--p, 0)); transform-origin: top; }
  .no-js .lifecycle .bar { transform: scaleY(1); }
  .stage { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 26px; }
  .stage h3 { margin-top: 10px; }
}

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind { position: relative; border-radius: 20px; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; isolation: isolate; text-decoration: none; }
.ind .media-slot { position: absolute; inset: 0; z-index: -2; transition: transform 1s var(--ease); }
.ind::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(3,9,16,.92)); }
.ind:hover .media-slot { transform: scale(1.06); }
.ind h3 { color: #fff; margin-bottom: .3em; }
.ind p { color: #c3d4e3; font-size: .92rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.ind:hover p, .ind:focus-visible p { max-height: 8em; opacity: 1; }
.ind .ico { position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); display: grid; place-items: center; }
.ind .ico svg { width: 22px; height: 22px; color: #fff; }
@media (hover: none) { .ind p { max-height: none; opacity: 1; } }
@media (max-width: 960px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ind-grid { grid-template-columns: 1fr; } .ind { min-height: 250px; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: .95rem; }
.card ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--muted); font-size: .93rem; }
.card .link-arrow { margin-top: auto; }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards.four, .cards.two { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: 1.12rem; font-weight: 650; color: var(--ink); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--muted); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details > div { padding: 0 0 24px; color: var(--muted); max-width: 46em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 80px); background: linear-gradient(135deg, #0A3252, #061524 70%); color: #d6e5f2; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(70,209,245,.35), transparent 60%); z-index: -1; }
.cta-band h2 { color: #fff; max-width: 14em; }
.cta-band p { color: #a9c0d4; max-width: 36em; font-size: 1.1rem; }
.cta-band .cta-row { margin-top: 28px; }
.cta-band .btn-primary { background: #fff; color: #0A3252; }
.cta-band .btn-primary:hover { background: #46d1f5; color: #04121d; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 70px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; right: -15%; top: -50%; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, var(--accent-soft), transparent 65%); z-index: -1; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); max-width: 15em; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--muted); }
.page-hero .cta-row { margin-top: 28px; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.media-frame { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: var(--shadow); }
.media-frame .media-slot { position: absolute; inset: 0; }
.media-frame .cap { position: absolute; left: 16px; bottom: 16px; z-index: 2; color: #e3eef7; font-size: .85rem; max-width: 80%; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%231aa6d1' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/14px no-repeat; }
.note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 16px 18px; border-radius: 10px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.spec > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec > div:nth-child(odd) { padding-right: 24px; }
.spec h3 { font-size: 1.1rem; }
.spec p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 700px) { .spec { grid-template-columns: 1fr; } .spec > div:nth-child(odd) { padding-right: 0; } }

/* ---------- form ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form h2 { font-size: 1.3rem; margin: 6px 0 16px; }
.form .group + .group { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 22px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.field .hint { display: block; font-size: .87rem; color: var(--muted); margin: -4px 0 8px; font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; padding: 13px 15px; min-height: 52px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 16px; min-height: 52px; cursor: pointer; font-weight: 600; color: var(--ink) !important; margin: 0 !important; transition: border-color .2s, background .2s; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 18px; height: 18px; accent-color: var(--brand); }
.svc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-choices .choice { width: 100%; }
@media (max-width: 520px) { .svc-choices { grid-template-columns: 1fr; } }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field.invalid .svc-choices .choice { border-color: var(--err); }
.err-msg { color: var(--err); font-weight: 600; font-size: .9rem; margin-top: 6px; display: none; }
.field.invalid .err-msg { display: block; }
.optional { font-weight: 400; color: var(--muted); }
.error-summary { border: 2px solid var(--err); border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.error-summary h2 { font-size: 1.1rem; color: var(--err); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--err); }
.status { border-radius: 12px; padding: 16px 18px; margin-top: 16px; }
.status.ok { border: 2px solid var(--ok); }
.status.fail { border: 2px solid var(--err); }
.status h2 { font-size: 1.1rem; margin-bottom: .3em; }
.test-double { margin-top: 18px; font-size: .85rem; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 12px; }
.test-double label { display: inline-flex; gap: 6px; align-items: center; }
.contact-card { background: linear-gradient(160deg, #0A3252, #061524); color: #d6e5f2; border-radius: 26px; padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card h2 { color: #fff; font-size: 1.5rem; }
.contact-card a:not(.btn) { color: #8fdcf5; }
.contact-card dl { margin: 18px 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .94rem; }
.contact-card dt { font-weight: 650; color: #fff; }
.contact-card dd { margin: 0; }
.contact-card .btn { width: 100%; margin-bottom: 10px; }
.contact-card .btn-primary { background: #fff; color: #0A3252; }
.contact-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.contact-card .small { font-size: .88rem; color: #a9c0d4; }

/* ---------- footer (compact, one grid: head row, four equal columns, wordmark, legal) ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 26px; font-size: .92rem; color: var(--muted); overflow: hidden; }
.footer-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-logo { display: block; line-height: 0; }
.footer-logo img { width: 132px; height: auto; }
.footer-tag { margin: 0; max-width: 46ch; line-height: 1.5; }
.footer-cta { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; padding-top: 30px; }
.site-footer h2 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; line-height: 1.2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; line-height: 1.35; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer a.btn-primary { color: var(--bg); }
.site-footer a.btn-primary:hover { color: #fff; }
.footer-big { font-size: clamp(2.6rem, 8.4vw, 7.25rem); font-weight: 800; letter-spacing: -.05em; line-height: .82; margin: 36px auto 18px; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; white-space: nowrap; text-align: center; width: 100%; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 18px; font-size: .82rem; }
@media (max-width: 960px) {
  .footer-head { grid-template-columns: auto 1fr; }
  .footer-cta { grid-column: 1 / -1; justify-self: start; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-head { grid-template-columns: 1fr; gap: 16px; }
  .footer-logo img { width: 116px; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}
.rail.off { opacity: 0; pointer-events: none; }
.rail { transition: opacity .25s; }
.iso .cam-g .f-top { fill: #2a6c9e; } .iso .cam-g .f-r { fill: #0A3252; } .iso .cam-g .f-l { fill: #154a72; }
.iso[data-active="security"] [data-zone="security"] .cam-g .f-top { fill: var(--accent); }
.iso .gate-g .gate { fill: #9fb3c4; }
.explorer-stage .scene { max-height: 620px; }
.no-js .explorer-stage .scene { grid-area: auto; }
.no-js .explorer-stage { grid-auto-flow: row; gap: 20px; }
.hero-scene .skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 78%; }

/* ---------- hero film panel (H-H1) ---------- */
.film-section { padding: 0 0 clamp(36px, 5vw, 64px); }
.film { margin: 0; }
.film-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #071524; box-shadow: var(--shadow); border: 1px solid var(--line); }
.film-frame .film-poster, .film-frame picture, .film-frame img, .film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film-frame video { opacity: 0; transition: opacity .4s var(--ease); }
.film-frame video.is-playing { opacity: 1; }
.film-ctl { position: absolute; right: 14px; bottom: 14px; z-index: 3; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(4,10,18,.55); color: #fff; font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* desktop scrub: full-screen film pinned while the section scrolls past (city view -> rooftop, and back) */
.film-tour, .film-mark, .film-cta, .film-progress { display: none; }
.film-section.is-scrub { height: 320vh; padding: 0; margin-bottom: clamp(36px, 5vw, 64px); }
.film-section.is-scrub > .wrap { position: sticky; top: 0; height: 100vh; max-width: none; padding: 0; }
.film-section.is-scrub .film, .film-section.is-scrub .film-frame { height: 100%; }
.film-section.is-scrub .film-frame { aspect-ratio: auto; border-radius: 0; border: 0; box-shadow: none; }
.film-section.is-scrub .film-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 10, 20, .78) 0%, rgba(3, 10, 20, .45) 32%, rgba(3, 10, 20, 0) 58%),
              linear-gradient(0deg, rgba(3, 10, 20, .55) 0%, rgba(3, 10, 20, 0) 22%); }
.film-section.is-scrub .film-ctl { display: none; }
.is-scrub .film-tour { display: block; position: absolute; z-index: 2; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); top: 50%; transform: translateY(-40%); width: min(460px, 40vw); color: #fff; }
.film-chapter { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.film-chapter.on { opacity: 1; transform: none; }
.film-chapter .n { font-size: .78rem; letter-spacing: .18em; color: #6fd3f2; font-weight: 650; }
.film-chapter h2 { margin: 12px 0 14px; font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.04; letter-spacing: -.025em; color: #fff; }
.film-chapter p { margin: 0; font-size: 1.08rem; color: rgba(232, 242, 250, .86); }
.is-scrub .film-mark { display: block; position: absolute; z-index: 2; width: 0; height: 0; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.film-mark.on { opacity: 1; }
.film-mark .ring { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #46d1f5; box-shadow: 0 0 0 6px rgba(70, 209, 245, .18), 0 0 24px rgba(70, 209, 245, .55); animation: film-ping 1.8s ease-out infinite; }
.film-mark .lbl { position: absolute; left: 40px; top: -16px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(4, 12, 22, .72); border: 1px solid rgba(70, 209, 245, .5); color: #fff; font-size: .85rem; font-weight: 650; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film-mark .lbl::before { content: ""; position: absolute; right: 100%; top: 50%; width: 16px; height: 1px; background: #46d1f5; }
.film-mark.flip .lbl { left: auto; right: 40px; }
.film-mark.flip .lbl::before { right: auto; left: 100%; }
@keyframes film-ping { 0% { transform: scale(.85); } 70% { transform: scale(1.12); } 100% { transform: scale(.85); } }
.is-scrub .film-cta { display: inline-flex; position: absolute; z-index: 2; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 72px; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); background: #fff; color: #0b1b2b; }
.film-cta.on { opacity: 1; transform: none; }
.is-scrub .film-progress { display: block; position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 34px; width: 140px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.film-progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #46d1f5; }
.is-scrub .film figcaption { position: absolute; z-index: 2; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 24px; margin: 0; color: rgba(232, 242, 250, .75); }
.is-scrub .film figcaption .slot-id { display: none !important; }
.film-hint { font-weight: 650; color: #fff; }
@media (max-width: 860px) { .film.has-portrait .film-frame { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; } }

/* ---------- explorer: approved photoreal still under the drawing ---------- */
.iso .scene-photo { pointer-events: none; }
.iso.has-photo .geo > :not(.zone) { display: none; }
.iso.has-photo .zone > :not(.flow):not(.cone):not(.wave) { display: none; }
.iso.has-photo .caption { fill: var(--muted); }

/* ---------- Enterprise Networks pilot clip (H-X1b) ---------- */
.explorer-stage .pilot { position: absolute; inset: 0; z-index: 4; background: var(--surface-2); display: grid; place-items: center; }
.explorer-stage .pilot video { width: 100%; height: 100%; object-fit: contain; }
.pilot-back { position: absolute; left: 14px; bottom: 14px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; backdrop-filter: blur(8px); }
.pilot-toggle { display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; }

/* 3D logo (transparent cut of TotalComm_Solutions_3D.png); lifted slightly on dark backgrounds */
.logo-3d { display: block; }
@media (max-width: 1080px) { .brand img { width: 108px; } }

/* language switch (EN / FR) */
.lang-switch { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-decoration: none; }
.lang-switch:hover { border-color: var(--ink); }
.mobile-lang { margin: 28px 0 0; }
.mobile-lang .lang-switch { height: 40px; letter-spacing: 0; font-size: .95rem; }

/* ---------- home-page logo intro (first visit only; skipped for reduced motion; any click or key skips it) ---------- */
html.intro body::before { content: ""; position: fixed; inset: 0; z-index: 1000; background: radial-gradient(ellipse at 50% 45%, #ffffff 0%, var(--bg) 70%); opacity: 1; transition: opacity .6s var(--ease); }
html.intro-out body::before { opacity: 0; transition: opacity .5s var(--ease) .2s; }
html.intro .site-header .brand img { opacity: 0; }
.intro-logo { position: fixed; z-index: 1001; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; }
.intro-logo img { display: block; width: 100%; height: auto; }
.intro-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask: url(/assets/img/totalcomm-3d-mark-640.png) center / 100% 100% no-repeat; mask: url(/assets/img/totalcomm-3d-mark-640.png) center / 100% 100% no-repeat; mix-blend-mode: screen; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@keyframes intro-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.intro-lines .hero h1 .ln { animation: intro-rise .75s var(--ease) .38s both; }
html.intro-lines .hero h1 .ln:nth-child(2) { animation-delay: .47s; }
html.intro-lines .hero h1 .ln:nth-child(3) { animation-delay: .56s; }
html.intro-lines .hero .kicker, html.intro-lines .hero .lede, html.intro-lines .hero .cta-row, html.intro-lines .hero .hero-meta { animation: intro-fade .7s var(--ease) both; animation-delay: .68s; }
html.intro-lines .hero .kicker { animation-delay: .3s; }

/* ---------- explorer photo scenes (reviewed stills): overview with numbered markers, push-in to each system's close-up ---------- */
.explorer-stage .photo-scene { max-width: 880px; }
.ph-box { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0d1a27; box-shadow: 0 18px 40px -24px rgba(6, 22, 38, .55); }
.ph { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .55s var(--ease), transform .9s var(--ease); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-master { opacity: 1; transform: none; }
.photo-scene[data-view="zone"] .ph-master { opacity: 0; transform: scale(1.9); }
.photo-scene[data-view="zone"][data-active="security"] [data-zone-ph="security"],
.photo-scene[data-view="zone"][data-active="network"] [data-zone-ph="network"],
.photo-scene[data-view="zone"][data-active="access"] [data-zone-ph="access"],
.photo-scene[data-view="zone"][data-active="av"] [data-zone-ph="av"] { opacity: 1; transform: none; }
.pm { position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font: 750 .85rem/1 inherit; color: #04121d; background: #fff; box-shadow: 0 0 0 4px rgba(70, 209, 245, .35), 0 6px 16px rgba(4, 18, 29, .35); transition: transform .25s var(--ease), opacity .35s var(--ease), background .25s; }
.pm:hover, .pm:focus-visible { transform: scale(1.12); }
.pm::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #46d1f5; opacity: 0; }
.photo-scene[data-active="security"] .pm[data-zone="security"], .photo-scene[data-active="network"] .pm[data-zone="network"],
.photo-scene[data-active="access"] .pm[data-zone="access"], .photo-scene[data-active="av"] .pm[data-zone="av"] { background: #46d1f5; }
.photo-scene[data-active="security"] .pm[data-zone="security"]::after, .photo-scene[data-active="network"] .pm[data-zone="network"]::after,
.photo-scene[data-active="access"] .pm[data-zone="access"]::after, .photo-scene[data-active="av"] .pm[data-zone="av"]::after { animation: pm-ping 1.8s ease-out infinite; }
@keyframes pm-ping { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }
.photo-scene[data-view="zone"] .pm { opacity: 0; pointer-events: none; }
.ph-back { position: absolute; z-index: 3; left: 12px; top: 12px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(4, 14, 24, .62); color: #fff; font: 650 .85rem/1 inherit; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.ph-back::before { content: "\2190"; margin-right: 8px; }
.photo-scene[data-view="zone"] .ph-back { opacity: 1; pointer-events: auto; }
.ph-cap { position: absolute; z-index: 2; right: 12px; bottom: 10px; font-size: .72rem; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .55); pointer-events: none; }
.photo-scene[data-scene="enterprise"] .ph-cap { color: rgba(10, 30, 50, .7); text-shadow: none; }
.photo-scene[data-scene="enterprise"][data-view="zone"] .ph-cap { color: rgba(10, 30, 50, .7); }
@media (max-width: 700px) { .ph-box { aspect-ratio: 4 / 5; } .explorer-stage .photo-scene { max-width: 520px; } .pm { display: none; } .ph-master img { transform: scale(1.45); } }  /* phones: zoom the overview onto the building; the system buttons below the picture drive it: the system buttons below the picture drive it */
@media (prefers-reduced-motion: reduce) { .ph, .photo-scene[data-view="zone"] .ph-master { transition: opacity .2s; transform: none; } .pm::after { animation: none !important; } }
@media (max-width: 860px) { .film.has-portrait-poster .film-frame { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; } }

/* ---------- service-page close-up band (H-M1 on Networks & Cabling) ---------- */
.macro-band { position: relative; margin: 0; height: clamp(320px, 42vw, 640px); overflow: hidden; background: #04142a; }
.macro-band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.macro-band figcaption { position: absolute; right: 16px; bottom: 12px; font-size: .78rem; color: rgba(227, 238, 247, .8); }
@media (max-width: 700px) { .macro-band { height: auto; aspect-ratio: 4 / 5; } .macro-band img { transform: scale(1.12); } }

/* ---------- explorer scroll tour (desktop): the panel pins and the page scroll steps through every building and system ---------- */
.explorer-runway { position: relative; }
.explorer-shell.is-tour { position: sticky; }
.explorer-shell.is-tour .explorer-stage { min-height: min(540px, calc(100vh - 340px)); }
.explorer-top { position: relative; }
.tour-bar { position: absolute; left: 16px; right: 16px; bottom: -2px; height: 3px; display: flex; gap: 6px; pointer-events: none; }
.tour-bar span { flex: 1; border-radius: 3px; overflow: hidden; background: var(--line); }
.tour-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.explorer-shell.is-tour { max-height: var(--tour-h, none); display: flex; flex-direction: column; }
.explorer-shell.is-tour .explorer-body { flex: 1 1 auto; min-height: 0; }
.explorer-shell.is-tour .explorer-stage { min-height: 0; }
.explorer-shell.is-tour .explorer-side { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.explorer-shell.is-tour .explorer-foot { display: none; }   /* the picture carries its own "Illustrative render" label */
@media (max-height: 880px) {
  .explorer-shell.is-tour .explorer-side { padding: 14px 16px; gap: 10px; }
  .explorer-shell.is-tour .zone-list { gap: 6px; }
  .explorer-shell.is-tour .zone-btn { padding-top: 6px; padding-bottom: 6px; min-height: 46px; }
  .explorer-shell.is-tour .zone-panel p { font-size: .9rem; margin-bottom: .6em; }
  .explorer-shell.is-tour .zone-panel { padding: 16px; }
  .explorer-shell.is-tour .explorer-top { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- section stills: tall frames on phones use the 9:16 versions ---------- */
.media-slot picture { position: absolute; inset: 0; }
@media (max-width: 600px) {
  .media-frame:has(.media-slot picture source) { aspect-ratio: 4 / 5; }
  .scale-card { min-height: 520px; }
}
.media-slot:has(img)::before { display: none; }

/* ---------- hero film scrub on phones (9:16 film) ---------- */
@media (max-width: 860px) {
  .film-section.is-scrub { height: 300svh; }
  .film-section.is-scrub > .wrap { height: 100svh; }
  .film-section.is-scrub .film .film-frame { max-height: none; aspect-ratio: auto; width: 100%; margin: 0; }
  .film-section.is-scrub .film-frame::before { background: linear-gradient(180deg, rgba(3, 10, 20, .78) 0%, rgba(3, 10, 20, .35) 34%, rgba(3, 10, 20, 0) 55%),
    linear-gradient(0deg, rgba(3, 10, 20, .6) 0%, rgba(3, 10, 20, 0) 26%); }
  .is-scrub .film-tour { left: 20px; right: 20px; width: auto; top: calc(var(--header-h) + 18px); transform: none; }
  .film-chapter h2 { font-size: clamp(1.6rem, 7.4vw, 2.2rem); }
  .film-chapter p { font-size: .98rem; }
  .is-scrub .film-mark { display: none; }          /* the phone film never reaches the rooftop camera */
  .is-scrub .film-cta { left: 20px; right: 20px; bottom: 76px; justify-content: center; }
  .is-scrub .film-progress { left: 20px; right: auto; bottom: 58px; width: calc(100% - 40px); }
  .is-scrub .film figcaption { left: 20px; right: 20px; bottom: 22px; font-size: .78rem; }
}
