/*
 * 👋 Hé, je bent in de CSS beland. Respect.
 *
 * Terwijl je hier toch bent: als je ooit een developer nodig hebt
 * die software, domotica of maatwerk oplossingen bouwt —
 * of gewoon wil praten over pixels en protocollen —
 * stuur een mailtje naar info@digivise.be
 *
 * 🌐 https://digivise.be
 */


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 16px; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:root {
  --bg:            #ffffff;
  --bg-subtle:     #fafafa;
  --bg-muted:      #f4f4f5;
  --bg-section:    #f7f7f8;

  --border:        #e4e4e7;
  --border-strong: #d4d4d8;

  --text-primary:  #09090b;
  --text-secondary:#52525b;
  --text-muted:    #a1a1aa;

  --accent:        #111111;
  --accent-2:      #2d2d2d;

  --blue:          #2563eb;
  --blue-hover:    #1d4ed8;
  --blue-light:    #dbeafe;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-2xl:    32px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:     0 20px 40px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  --shadow-xl:     0 40px 80px rgba(0,0,0,.12), 0 20px 40px rgba(0,0,0,.07);

  --container:     1240px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:        180ms;
  --t-med:         360ms;
  --t-slow:        700ms;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-weight: 400;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.site-header {
  position: fixed;
  top: 35px; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.80);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: padding var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.site-header.scrolled {
  padding: 10px 0;
  top: 0;
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-desktop a:not(.btn) {
  color: var(--text-secondary);
  transition: color var(--t-fast) var(--ease);
}
.nav-desktop a:not(.btn):hover { color: var(--text-primary); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-mobile a:not(.btn) {
  padding: 14px 4px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:not(.btn):last-child { border-bottom: 0; }
.nav-mobile-cta { margin-top: 12px; width: 100%; }
.btn-nav-cta {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
  font-weight: 600;
  justify-content: center;
}
.btn-nav-cta:hover {
  background: #2563eb;
  color: #fff;
}
.nav-mobile.open { display: flex; animation: slideDown var(--t-med) var(--ease); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--t-med) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:disabled,
.btn-primary[disabled] {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}
.btn-ghost {
  background: var(--bg);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--bg-muted);
}
.btn-light {
  background: #fff;
  color: var(--accent);
}
.btn-light:hover {
  background: var(--bg-muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm  { padding: 9px 16px; font-size: 0.86rem; }
.btn-lg  { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--blue);
  border-radius: 2px;
}
.eyebrow-light { color: rgba(255,255,255,0.85); }
.eyebrow-light::before { background: rgba(255,255,255,0.6); }

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.9rem, 3.5vw + 0.5rem, 3.2rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.4rem, 1.5vw + 0.7rem, 1.85rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.accent { color: var(--blue); }

.hero {
  position: relative;
  padding: 160px 0 80px;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(37, 99, 235, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  opacity: 0.65;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
}
.hero-content { max-width: 640px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title {
  font-size: clamp(2.2rem, 4.5vw + 0.5rem, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 26px;
}
.hero-lede {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.5;
}
.hero-body {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual { position: relative; }
.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 5;
  background: var(--bg-muted);
}
.hero-visual-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 12s ease;
}
.hero-visual-frame:hover img { transform: scale(1.05); }

.hero-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-stat:first-of-type { top: 24px; left: 24px; }
.hero-stat-2 { bottom: 24px; right: 24px; }
.hero-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.hero-stat-lbl {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 28px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 760px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }
.strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.strip-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
}
.strip-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.section { padding: clamp(70px, 10vh, 130px) 0; position: relative; }
.section-alt { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 18px;
  max-width: 580px;
  line-height: 1.6;
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 100px;
  align-items: center;
}
.feature:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 70px; }
  .feature-reverse .feature-media { order: 2; }
}
.feature-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.feature-media:hover img { transform: scale(1.04); }
.feature-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-sm);
}
.feature-body { max-width: 560px; }
.feature-lede {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.55;
}
.feature-text {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.feature-foot {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-primary);
}
.feature-foot strong { color: var(--blue); font-weight: 700; }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45em;
  width: 16px; height: 16px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px 280px;
    gap: 20px;
  }
  .gallery-tall { grid-row: span 2; }
  .gallery-wide { grid-column: span 2; }
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  min-height: 240px;
  display: block;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  opacity: 0.85;
}
.gallery-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: start;
}
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1.3fr; gap: 80px; }
}
.why-list { display: grid; gap: 0; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 4px;
  border-top: 1px solid var(--border);
  transition: padding var(--t-med) var(--ease);
}
.why-list li:last-child { border-bottom: 1px solid var(--border); }
.why-list li:hover { padding-left: 12px; }
.why-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  min-width: 32px;
  letter-spacing: -0.01em;
}
.why-list h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.why-list p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-cta { padding: clamp(60px, 8vh, 100px) 0 clamp(70px, 10vh, 120px); }
.cta-card {
  position: relative;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(37,99,235,0.35), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 80% 100%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 100%, #000, transparent 70%);
  pointer-events: none;
}
.cta-title {
  position: relative;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw + 0.5rem, 3rem);
  margin-bottom: 16px;
}
.cta-sub {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 560px;
  line-height: 1.6;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  transition: color var(--t-fast) var(--ease);
}
.contact-item:first-child { border-top: 0; }
@media (min-width: 720px) {
  .contact-item {
    padding: 24px 28px 24px 0;
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 28px;
  }
  .contact-item:first-child { padding-left: 0; border-left: 0; }
}
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.contact-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color var(--t-fast) var(--ease);
}
.contact-item:hover .contact-value { color: #93c5fd; }

.cta-actions { position: relative; }

.section-head-row {
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head-row h2 { margin-bottom: 0; }

.reviews-score-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.reviews-score-inline .reviews-score-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}
.reviews-score-inline .review-stars svg { width: 15px; height: 15px; }
.reviews-score-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.review-card-featured {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: var(--blue-light);
}

.review-stars {
  display: flex;
  gap: 3px;
}
.review-stars svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}

.review-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  flex: 1;
  quotes: none;
}
.review-card-featured .review-quote {
  font-size: 1.06rem;
  color: var(--text-primary);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.review-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.review-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.site-footer {
  background: #0f1117;
  color: rgba(255,255,255,0.65);
  padding: 0;
}
.footer-tag,
.footer-inner,
.footer-meta,
.footer-links { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .footer-meta { text-align: left; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .hero { padding: 140px 0 60px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-stat:first-of-type { top: 14px; left: 14px; padding: 10px 14px; }
  .hero-stat-2 { bottom: 14px; right: 14px; padding: 10px 14px; }
  .hero-stat-num { font-size: 1.1rem; }
  .feature { margin-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

.bk-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted, #64748b);
  margin-bottom: 4px;
}

[hidden] { display: none !important; }

:root {
  --section-y: clamp(56px, 7.5vh, 96px);
}

.section { padding: var(--section-y) 0; }
.section-head { margin-bottom: 44px; max-width: 700px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw + 0.45rem, 2.7rem); }
.section-sub { font-size: 1rem; margin-top: 14px; }

.hero { padding: 130px 0 64px; }
.hero-title { font-size: clamp(2rem, 3.8vw + 0.4rem, 3.6rem); margin-bottom: 18px; }
.hero-lede { font-size: 1.05rem; margin-bottom: 14px; }
.hero-body { margin-bottom: 26px; font-size: 0.96rem; }
@media (max-width: 560px) { .hero { padding: 120px 0 50px; } }

.strip { padding: 18px 0; }
.strip-num { font-size: 0.72rem; }
.strip-text { font-size: 0.88rem; }

.ex-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) { .ex-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 760px) { .ex-grid--four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) and (max-width: 1100px) { .ex-grid--four { grid-template-columns: repeat(2, 1fr); } }

.ex-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.ex-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.ex-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.ex-card:hover::before { opacity: 1; }

.ex-card[data-modal-disabled="true"] { cursor: default; }
.ex-card[data-modal-disabled="true"]:hover::before { opacity: 0; }
.ex-card[data-modal-disabled="true"] .ex-more { display: none; }
.ex-card--featured {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 65%);
  border-color: rgba(37,99,235,0.18);
}
.ex-card--featured::before { opacity: 0; }

/* Smarthome classic rubber stamp */
#smarthome { }
.sh-head { position: relative; }
.sh-stamp {
  position: absolute;
  right: -360px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 14px 22px;
  border: 3px solid #059669;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #059669;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  font-family: inherit;
  z-index: 0;
}
.sh-stamp-top {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #059669;
  border-bottom: 1.5px solid #059669;
  width: 100%;
  text-align: center;
  padding-bottom: 4px;
}
.sh-stamp-main {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #059669;
  line-height: 1.15;
  text-align: center;
}
.sh-stamp-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #059669;
  border-top: 1.5px solid #059669;
  width: 100%;
  text-align: center;
  padding-top: 4px;
}
@media (max-width: 1100px) { .sh-stamp { display: none; } }

/* Mobile badge (shown only on small screens, only for woning context) */
.sh-badge-mobile {
  display: none;
}
@media (max-width: 1100px) {
  .sh-badge-mobile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(5,150,105,.25);
    margin-top: 8px;
  }
}

/* Software card — purple/indigo accent */
.ex-card--software {
  background: linear-gradient(160deg, #faf8ff 0%, #ffffff 60%);
  border-color: rgba(109,40,217,0.15);
}
.ex-card--software::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}
.ex-icon--software {
  background: #f3efff;
  color: #7c3aed;
}
.ex-num--software { color: #7c3aed; }

.ex-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.ex-num {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
}
.ex-card h3 {
  font-size: 1.18rem;
  margin: 2px 0 4px;
  line-height: 1.25;
  letter-spacing: -0.018em;
}
.ex-card > p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}
.ex-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.ex-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ex-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.7;
}

.flow-section {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(37,99,235,0.06), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .flow-grid { grid-template-columns: 1fr 1.15fr; gap: 70px; }
}

.flow-text { max-width: 520px; }
.flow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.flow-tag-new {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #92400e;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  border-radius: 99px;
  padding: 2px 8px;
  line-height: 1.4;
}
.flow-audience {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
  margin-top: -4px;
}
.flow-audience svg { flex-shrink: 0; }
.flow-tag-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e3a5f 0%, var(--blue) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.flow-section h2 {
  font-size: clamp(1.7rem, 3vw + 0.5rem, 2.6rem);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.flow-section .lede {
  font-size: 1.02rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.55;
}
.flow-section .desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 22px;
}
.flow-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
}
.flow-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.flow-features li svg {
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 4px;
}
.flow-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.flow-cta .micro {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.flow-interactive-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
  transition: opacity .5s ease;
}
.flow-interactive-hint svg { flex-shrink: 0; opacity: .6; animation: flowHintBounce 2s ease-in-out infinite; }
@keyframes flowHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.flow-side-item[data-flow-page] { cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.flow-side-item[data-flow-page]:hover:not(.active) { background: rgba(0,0,0,.04); color: var(--text-primary); }

.flow-row-sub { font-size: 0.68rem; color: var(--text-tertiary, #94a3b8); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.flow-status-tag { flex-shrink: 0; font-size: 0.66rem; font-weight: 600; padding: 2px 7px; border-radius: 99px; }
.flow-status-tag.green { background: #dcfce7; color: #15803d; }
.flow-status-tag.amber { background: #fef3c7; color: #92400e; }
.flow-status-tag.blue  { background: #dbeafe; color: #1d4ed8; }

.flow-avatar { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-size: 0.62rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.flow-layer-pill { font-size: 0.63rem; font-weight: 600; padding: 2px 7px; border-radius: 99px; border: 1.5px solid var(--lc, #3b82f6); color: var(--lc, #3b82f6); cursor: pointer; }
.flow-layer-pill.active { background: var(--lc, #3b82f6); color: #fff; }

.flow-drawing-canvas { display: flex; flex-direction: column; gap: 0; overflow: hidden; padding: 0 !important; }

@keyframes flowFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.flow-chart { display: flex; align-items: flex-end; gap: 6px; height: 52px; padding: 0 4px; }
.flow-chart-bar { flex: 1; background: #e0e7ff; border-radius: 4px 4px 0 0; height: var(--h, 50%); display: flex; align-items: flex-end; justify-content: center; transition: height .4s var(--ease); position: relative; }
.flow-chart-bar.is-active { background: var(--blue); }
.flow-chart-bar span { font-size: 0.55rem; color: var(--text-muted); position: absolute; bottom: -14px; }
.flow-chart-bar.is-active span { color: var(--blue); font-weight: 600; }

.flow-head-actions { display: flex; align-items: center; gap: 6px; }
.flow-search-box { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; color: var(--text-muted); background: #f1f5f9; border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; }
.flow-btn-sm { font-size: 0.66rem; font-weight: 600; color: #fff; background: var(--blue); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.flow-btn-ghost { font-size: 0.72rem; color: var(--text-muted); cursor: pointer; padding: 2px 5px; border-radius: 4px; border: 1px solid var(--border); line-height: 1; }

.flow-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; min-height: 0; }
.flow-kanban-col { display: flex; flex-direction: column; gap: 6px; }
.flow-kanban-colhead { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 600; color: var(--text-secondary); padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.flow-kanban-colhead .flow-count { font-size: 0.58rem; background: #f1f5f9; border-radius: 99px; padding: 1px 6px; color: var(--text-muted); font-weight: 700; margin-left: auto; }
.flow-kanban-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.flow-kanban-card.highlight { border-left: 2.5px solid #f59e0b; }
.flow-kanban-title { font-size: 0.74rem; font-weight: 600; color: var(--text-primary); }
.flow-kanban-meta { font-size: 0.62rem; color: var(--text-muted); }
.flow-kanban-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; }
.flow-kanban-date { font-size: 0.58rem; color: var(--text-muted); }
.flow-avatar-sm { width: 18px; height: 18px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-size: 0.52rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-row-dot.blue { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

.flow-table { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.flow-table-head { display: grid; grid-template-columns: 1.4fr 1fr 0.6fr; gap: 8px; padding: 6px 10px; background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.flow-table-row { display: grid; grid-template-columns: 1.4fr 1fr 0.6fr; gap: 8px; padding: 7px 10px; border-bottom: 1px solid rgba(0,0,0,.04); align-items: center; }
.flow-table-row:last-child { border-bottom: 0; }
.flow-table-cell { font-size: 0.74rem; color: var(--text-primary); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-table-cell.muted { color: var(--text-muted); font-size: 0.68rem; }
.flow-table-cell .flow-avatar { width: 20px; height: 20px; font-size: 0.54rem; flex-shrink: 0; }

.flow-cal { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: 1; min-height: 0; }
.flow-cal-header { display: grid; grid-template-columns: 36px repeat(5, 1fr); background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 0.62rem; font-weight: 600; color: var(--text-secondary); }
.flow-cal-header span { padding: 5px 4px; text-align: center; }
.flow-cal-body { display: grid; grid-template-columns: 36px repeat(5, 1fr); }
.flow-cal-time { font-size: 0.56rem; color: var(--text-muted); padding: 4px 4px; text-align: right; font-family: ui-monospace, monospace; border-top: 1px solid rgba(0,0,0,.04); }
.flow-cal-cell { border-top: 1px solid rgba(0,0,0,.04); border-left: 1px solid rgba(0,0,0,.04); padding: 2px; min-height: 30px; }
.flow-cal-event { font-size: 0.58rem; font-weight: 600; padding: 3px 5px; border-radius: 4px; line-height: 1.25; }
.flow-cal-event small { font-weight: 400; opacity: .7; }
.flow-cal-event.blue { background: #dbeafe; color: #1d4ed8; }
.flow-cal-event.green { background: #dcfce7; color: #15803d; }
.flow-cal-event.amber { background: #fef3c7; color: #92400e; }

.flow-eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flow-eq-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.flow-eq-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.flow-eq-icon.blue { background: #dbeafe; color: #2563eb; }
.flow-eq-icon.green { background: #dcfce7; color: #16a34a; }
.flow-eq-icon.amber { background: #fef3c7; color: #d97706; }
.flow-eq-name { font-size: 0.74rem; font-weight: 600; color: var(--text-primary); }
.flow-eq-loc { font-size: 0.62rem; color: var(--text-muted); }
.flow-eq-bar { height: 4px; background: #f1f5f9; border-radius: 99px; overflow: hidden; margin-top: 3px; }
.flow-eq-fill { height: 100%; background: var(--blue); border-radius: 99px; transition: width .6s var(--ease); }
.flow-eq-fill.green { background: #16a34a; }
.flow-eq-fill.amber { background: #d97706; }
.flow-eq-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.flow-eq-pct { font-size: 0.60rem; color: var(--text-muted); font-weight: 600; font-family: ui-monospace, monospace; }

.flow-zoom { font-size: 0.60rem; font-weight: 600; color: var(--text-muted); margin-left: auto; font-family: ui-monospace, monospace; }
.flow-drawing-coords { font-size: 0.56rem; color: var(--text-muted); margin-left: auto; font-family: ui-monospace, monospace; letter-spacing: 0.03em; }
.flow-drawing-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #f8fafc;
}
.flow-drawing-tool {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--t-fast) var(--ease);
}
.flow-drawing-tool.active,
.flow-drawing-tool:hover { background: var(--border); color: var(--text-primary); }
.flow-drawing-sep { width: 1px; height: 14px; background: var(--border); margin: 0 2px; }
.flow-drawing-badge { width: 10px; height: 10px; border-radius: 50%; }
.flow-floorplan {
  flex: 1;
  width: 100%;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}
.flow-drawing-legend {
  display: flex;
  gap: 10px;
  padding: 5px 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #f8fafc;
}
.flow-drawing-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}
.flow-legend-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

.flow-visual {
  position: relative;
  perspective: 1600px;
}
.flow-glow {
  position: absolute;
  inset: -10% -8% -10% -8%;
  background: radial-gradient(60% 50% at 50% 50%, rgba(37,99,235,0.10), transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(20px);
}
.flow-preview {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 60px -28px rgba(15,23,42,0.28),
    0 8px 22px -10px rgba(15,23,42,0.10);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transition: transform .8s var(--ease);
}
.flow-preview:hover { transform: perspective(1600px) rotateY(-1deg) rotateX(0.5deg); }

.flow-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.flow-preview-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #e2e8f0;
}
.flow-preview-bar i:nth-child(1) { background: #fca5a5; }
.flow-preview-bar i:nth-child(2) { background: #fcd34d; }
.flow-preview-bar i:nth-child(3) { background: #86efac; }
.flow-preview-url {
  margin-left: 10px;
  font-size: 0.70rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 12px;
  letter-spacing: 0.01em;
}

.flow-preview-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 320px;
}
.flow-side {
  padding: 14px 10px;
  background: #fafbfc;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.flow-side-title {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 8px 10px 6px;
  font-weight: 700;
}
.flow-side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.78rem;
}
.flow-side-item.active {
  background: #eff6ff;
  color: var(--blue);
  font-weight: 600;
}
.flow-side-item svg { width: 13px; height: 13px; flex-shrink: 0; }

.flow-main {
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.flow-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flow-main-head h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.flow-pill {
  font-size: 0.64rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.flow-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.flow-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
}
.flow-stat-lbl {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  font-weight: 600;
}
.flow-stat-num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  letter-spacing: -0.02em;
}
.flow-stat-num.up { color: #16a34a; }

.flow-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.flow-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
}
.flow-row-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
  margin-left: 6px;
}
.flow-row-dot.warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.flow-row-name {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-row-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .flow-preview-body { grid-template-columns: 1fr; min-height: 0; }
  .flow-side { display: none; }
  .flow-preview { transform: none; }
  .flow-preview:hover { transform: none; }
  .flow-interactive-hint { display: none; }
}

.why-list li { padding: 22px 4px; }
.section-cta { padding: var(--section-y) 0 calc(var(--section-y) + 8px); }
.cta-card { padding: clamp(36px, 5vw, 64px); }
.cta-sub { margin-bottom: 36px; }
.contact-grid { margin-bottom: 32px; }
.contact-item { padding: 20px 0; }
@media (min-width: 720px) { .contact-item { padding: 20px 24px 20px 0; } .contact-item:not(:first-child) { padding-left: 24px; } }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  height: 35px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 0.775rem;
  color: var(--text-secondary);
  transition: transform var(--t-med) var(--ease);
}
.topbar.topbar--hidden { transform: translateY(-100%); }
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.topbar-div {
  display: block;
  width: 1px; height: 13px;
  background: var(--border-strong);
  opacity: 0.5;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.topbar-link:hover { color: var(--text-primary); }
.topbar-link svg { opacity: 0.6; flex-shrink: 0; }
.topbar-partners {
  display: flex;
  gap: 6px;
  align-items: center;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid;
}
.topbar-badge--unifi {
  color: #1d71b8;
  border-color: rgba(29,113,184,0.28);
  background: rgba(29,113,184,0.06);
}
.topbar-badge--loxone {
  color: #2e7d32;
  border-color: rgba(46,125,50,0.28);
  background: rgba(46,125,50,0.06);
}
.topbar-link--cta {
  font-weight: 600;
  color: var(--blue);
}
.topbar-link--cta:hover { color: var(--blue-dark, #1d4ed8); }
@media (max-width: 760px) {
  .topbar-partners { display: none; }
  .topbar-right .topbar-div { display: none; }
  .topbar-left .topbar-link:last-child,
  .topbar-left .topbar-div:last-child { display: none; }
}
@media (max-width: 480px) {
  .topbar { display: none !important; }
  .site-header { top: 0 !important; }
}

.footer-partners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-partners-label {
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  white-space: nowrap;
}
.footer-partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  transition: background var(--t-fast) var(--ease);
}
.fp strong { font-weight: 600; color: rgba(255,255,255,0.92); }
.fp span { color: rgba(255,255,255,0.45); font-size: 0.76rem; }
.fp--unifi { border-color: rgba(29,113,184,0.30); }
.fp--unifi strong { color: #7ec8ff; }
.fp--loxone { border-color: rgba(46,125,50,0.30); }
.fp--loxone strong { color: #86efac; }

.footer-cols {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0 40px;
}
.footer-brand-link { text-decoration: none; }
.footer-brand-link .brand-name { color: #fff; }
.footer-tagline {
  margin: 14px 0 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.50);
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  margin: 0 0 16px;
}
.footer-col-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.footer-col-links a:hover { color: #fff; }
.footer-col-links--plain li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
}
.footer-col-links--plain a {
  color: rgba(255,255,255,0.52);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.80rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom p { margin: 0; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}
.footer-legal a,
.footer-legal-btn {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.40);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--t-fast) var(--ease);
}
.footer-legal a:hover,
.footer-legal-btn:hover { color: rgba(255,255,255,0.80); }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-partners { gap: 12px 18px; padding: 22px 0; }
}

@keyframes cbIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-bar {
  position: fixed;
  /* Always anchor to viewport edges — avoids the left:50%+translate trick which
     breaks when the page has horizontal overflow (left% uses document width). */
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 500;
  /* Cap width on wide screens so it doesn't span the full desktop viewport */
  max-width: 680px;
  /* Centre horizontally using auto margins inside a flex/block context */
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 4px 6px -1px rgba(0,0,0,0.05),
    0 20px 50px -8px rgba(0,0,0,0.14);
  animation: cbIn 0.4s var(--ease) both;
}
.cookie-bar-inner {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-bar-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-bar-text {
  flex: 1;
  min-width: 0;
}
.cookie-bar-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.cookie-bar-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cookie-bar-desc a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.815rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  font-family: inherit;
  transition: all var(--t-fast) var(--ease);
  letter-spacing: -0.005em;
  line-height: 1;
}
.cb-btn--accept {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 1px 3px rgba(37,99,235,0.30);
}
.cb-btn--accept:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.cb-btn--reject {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.cb-btn--reject:hover { color: var(--text-primary); border-color: var(--text-primary); background: var(--bg-subtle); }
.cb-btn--settings {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  font-weight: 500;
}
.cb-btn--settings:hover { color: var(--text-secondary); background: var(--bg-subtle); }
.cb-btn--save {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 1px 3px rgba(37,99,235,0.30);
}
.cb-btn--save:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-modal:not([hidden]) { display: flex; }
.cookie-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,0.40);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.cookie-modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow:
    0 4px 6px -1px rgba(0,0,0,0.06),
    0 24px 60px -8px rgba(0,0,0,0.22);
  animation: cbIn 0.32s var(--ease) both;
}

.cookie-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
}
.cookie-modal-head-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.cookie-modal-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.cookie-modal-intro {
  font-size: 0.80rem;
  color: var(--text-secondary);
  line-height: 1.50;
  margin: 0;
}
.cookie-modal-x {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--bg-muted);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.cookie-modal-x:hover { background: var(--border); color: var(--text-primary); }

.cm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.cm-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: default;
  flex: 1;
  min-width: 0;
}
.cm-row label.cm-info { cursor: pointer; }
.cm-info strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}
.cm-info span {
  font-size: 0.775rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.cm-toggle--locked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cm-toggle-wrap {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.cm-toggle-wrap input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  width: 100%; height: 100%;
}
.cm-pip {
  display: block;
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s var(--ease);
}
.cm-pip::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
  transition: transform 0.2s var(--ease);
}
.cm-toggle-wrap input:checked ~ .cm-pip { background: var(--blue); }
.cm-toggle-wrap input:checked ~ .cm-pip::after { transform: translateX(18px); }
.cm-toggle-wrap input:focus-visible ~ .cm-pip { outline: 2px solid var(--blue); outline-offset: 2px; }

.cm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 22px 20px;
}

/* Cookie bar: stack buttons on any viewport where they'd overflow the bar.
   The bar itself is max 680px wide; three buttons + icon + text don't fit
   in a single row below ~700px. */
@media (max-width: 700px) {
  .cookie-bar { bottom: 16px; }
  .cookie-bar-inner { flex-wrap: wrap; gap: 10px; }
  .cookie-bar-desc { white-space: normal; }
  /* Stack all buttons vertically — button text can be arbitrarily long on legal pages */
  .cookie-bar-actions { flex-basis: 100%; width: 100%; flex-direction: column; gap: 6px; }
  .cookie-bar-actions .cb-btn--accept { order: 1; width: 100%; justify-content: center; }
  .cookie-bar-actions .cb-btn--reject { order: 2; width: 100%; justify-content: center; }
  .cookie-bar-actions .cb-btn--settings { order: 3; width: 100%; justify-content: center; }
}

@media (max-width: 540px) {
  .cookie-modal { padding: 0; }
  .cookie-modal-card { border-radius: 20px 20px 0 0; max-width: 100%; }
  .cm-actions { flex-direction: column; }
  .cm-actions .cb-btn { width: 100%; justify-content: center; }
}

.legal-body {
  padding-top: 150px;
  min-height: 100vh;
}
.legal-content {
  max-width: 720px;
  /* Only set vertical padding — horizontal comes from .container's clamp() padding */
  padding-top: 48px;
  padding-bottom: 96px;
}
.legal-content .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.legal-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 8px;
}
.legal-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 22px 0 6px;
}
.legal-content p, .legal-content li {
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--text-secondary);
}
.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin: 10px 0 14px;
}
.legal-content li { margin-bottom: 5px; }
.legal-content a { color: var(--blue); text-underline-offset: 2px; }
.legal-content strong { color: var(--text-primary); font-weight: 600; }
.legal-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-primary);
}
.legal-table {
  /* Wrap in a scrollable block so wide tables scroll horizontally instead of
     stretching the page. border-collapse still renders correctly in all browsers
     when display is switched to block. */
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 0.88rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.5;
  vertical-align: top;
}
.legal-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.legal-table tr:hover td { background: var(--bg-alt); }
.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0 24px;
}
.legal-contact-block {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}

.av-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 960px;
  padding-bottom: 96px;
}
.av-toc {
  position: sticky;
  top: 96px;
}
.av-toc-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.av-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}
.av-toc-list li { margin-bottom: 2px; }
.av-toc-list a {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.4;
  transition: color 0.15s;
}
.av-toc-list a:hover { color: var(--blue); }
.av-body { min-width: 0; }
.av-article {
  border-top: 1px solid var(--border);
  padding-top: 36px;
  margin-top: 36px;
}
.av-article:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.av-article h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.av-art-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.av-article p,
.av-article li {
  font-size: 0.895rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.av-article p strong {
  color: var(--text-primary);
  font-weight: 600;
}
.av-article ul,
.av-article ol {
  padding-left: 20px;
  margin: 10px 0 14px;
}
.av-article li { margin-bottom: 6px; }
.av-callout {
  background: color-mix(in srgb, var(--surface-2, #f5f5f7) 80%, transparent);
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.av-callout--warn { border-left-color: #f59e0b; }
.av-callout p { margin-bottom: 0; font-size: inherit; }
@media (max-width: 820px) {
  .av-layout { grid-template-columns: 1fr; gap: 32px; }
  .av-toc { display: none; }
}

.topbar-info {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  white-space: nowrap;
}
.topbar-info svg { opacity: 0.55; flex-shrink: 0; }
.topbar-status {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.16);
  flex-shrink: 0;
}
@media (max-width: 980px) {
  .topbar-info--hide-md,
  .topbar-div--hide-md { display: none !important; }
}
@media (max-width: 760px) {
  .topbar-left .topbar-info:nth-of-type(2),
  .topbar-left .topbar-div:nth-of-type(1) { display: none; }
  .topbar-right .topbar-link:first-child { display: none; }
  .topbar-right .topbar-div { display: none; }
}

.hero-window {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 60px -28px rgba(15,23,42,0.30),
    0 10px 24px -12px rgba(15,23,42,0.12);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}
.hero-window-bar {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f6f7f9 0%, #eef0f3 100%);
  border-bottom: 1px solid var(--border);
}
.hero-window-dots {
  display: inline-flex;
  gap: 6px;
}
.hero-window-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.hero-window-dots i:nth-child(1) { background: #ff5f57; }
.hero-window-dots i:nth-child(2) { background: #febc2e; }
.hero-window-dots i:nth-child(3) { background: #28c840; }
.hero-window-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
  padding: 4px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  max-width: 100%;
}
.hero-window-url svg { color: #16a34a; opacity: 0.85; flex-shrink: 0; }
.hero-window-spacer { display: block; }
.hero-window-body {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
}
.hero-window-body img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 12s ease;
}
.hero-window:hover .hero-window-body img { transform: scale(1.04); }

.hero-window-body .hero-stat:first-of-type { top: 16px; left: 16px; }
.hero-window-body .hero-stat-2 { bottom: 16px; right: 16px; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 0.95fr; gap: 70px; }
}
@media (max-width: 560px) {
  .hero-window { max-width: 100%; }
  .hero-window-body .hero-stat:first-of-type { top: 12px; left: 12px; padding: 8px 12px; }
  .hero-window-body .hero-stat-2 { bottom: 12px; right: 12px; padding: 8px 12px; }
}

button.ex-card {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
button.ex-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.ex-more {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -0.005em;
}
.ex-more svg { transition: transform .25s var(--ease); }
button.ex-card:hover .ex-more svg { transform: translateX(3px); }

.ex-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vw, 28px);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.ex-modal:not([hidden]) { display: flex; }
.ex-modal.is-open { opacity: 1; }
.ex-modal-bg {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ex-modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 1040px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 36px 80px -20px rgba(15,23,42,0.40);
  overflow: hidden;
  outline: none;
  transform: translateY(8px) scale(0.985);
  transition: transform .25s var(--ease);
}
.ex-modal.is-open .ex-modal-card { transform: translateY(0) scale(1); }

.ex-modal-head {
  position: relative;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}
.ex-modal-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.ex-modal-vendor {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 10px;
  border-radius: 999px;
}
.ex-modal-vendor--green { color: #166534; background: #dcfce7; }
.ex-modal-vendor--neutral { color: var(--text-secondary); background: var(--bg-subtle); }
.ex-modal-vendor--software { color: #5b21b6; background: #ede9fe; }
.ex-modal-num {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ex-modal-head h2 {
  font-size: clamp(1.4rem, 2vw + 0.4rem, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 60px 8px 0;
}
.ex-modal-head p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin: 0 60px 0 0;
  line-height: 1.6;
  max-width: 680px;
}
.ex-modal-x {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ex-modal-x:hover { background: var(--bg-subtle); color: var(--text-primary); }

.ex-modal-body {
  padding: 24px 28px 26px;
  overflow-y: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ex-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) { .ex-modal-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.ex-modal-col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.ex-modal-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.ex-modal-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.90rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.ex-modal-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 2px solid var(--blue);
}
.ex-modal-list strong { color: var(--text-primary); font-weight: 600; }

.ex-modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ex-modal-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 4 / 3;
}
.ex-modal-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.ex-modal-gallery figure:hover img { transform: scale(1.06); }
.ex-modal-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px 8px;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.65) 100%);
}
@media (max-width: 640px) {
  .ex-modal-gallery { grid-template-columns: 1fr 1fr; }
  .ex-modal-gallery figure:nth-child(3) { grid-column: span 2; aspect-ratio: 16/9; }
}

/* ---- Software modal: code block hero ---- */
.sw-hero {
  margin-bottom: 28px;
}
.sw-code-block {
  background: #0f0f1a;
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  padding: 22px 26px 18px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
  position: relative;
}
.sw-code-block::before {
  content: '● ● ●';
  position: absolute;
  top: 10px; left: 16px;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.2);
}
.sw-code-line {
  display: block;
  white-space: pre;
}
.sw-code-line.sw-blank { height: 0.6em; }
.sw-indent { padding-left: 2ch; }
.sw-tok-kw  { color: #c792ea; }
.sw-tok-var { color: #82aaff; }
.sw-tok-fn  { color: #c3e88d; }
.sw-tok-obj { color: #ffcb6b; }
.sw-tok-key { color: #f07178; }
.sw-tok-comment { color: rgba(255,255,255,0.35); font-style: italic; }
.sw-code-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: #c792ea;
  border-radius: 2px;
  animation: sw-blink 1.1s step-start infinite;
  vertical-align: text-bottom;
}
@keyframes sw-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (max-width: 600px) {
  .sw-code-block { font-size: 11.5px; padding: 18px 16px 14px; }
}

.ex-modal-foot {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fbfcfe;
  flex-wrap: wrap;
}
.ex-modal-foot-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.net-stage {
  position: relative;
  border-radius: 14px;
  background:
    radial-gradient(700px 280px at 50% 50%, rgba(37,99,235,0.07), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border);
  padding: 14px 14px 8px;
  overflow: hidden;
}
.net-svg { width: 100%; height: auto; display: block; }
.net-node circle, .net-node rect {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 2;
}
.net-node--key circle, .net-node--key rect {
  fill: var(--blue);
  stroke: var(--blue);
}
.net-node--key text { fill: #fff; }
.net-leaf circle { fill: #fff; stroke: #16a34a; stroke-width: 2; }
.net-leaf text:first-of-type { fill: #16a34a; }
.net-node text {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  fill: var(--blue);
  letter-spacing: 0.02em;
}
.net-lbl {
  font-size: 10px !important;
  font-weight: 500 !important;
  fill: var(--text-muted) !important;
  letter-spacing: 0.04em;
}
.net-pulse {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0.5;
  transform-origin: 280px 180px;
  animation: netPulse 2.6s ease-out infinite;
}
@keyframes netPulse {
  0%   { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.6);  opacity: 0; }
}
.net-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 6px 6px 4px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}
.net-legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}

.net-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 700px) {
  .net-split { grid-template-columns: 1fr; }
}
.net-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.net-gallery {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 8px;
}
@media (max-width: 640px) {
  .net-gallery { grid-template-columns: 1fr; }
  .net-gallery-side { display: none; }
}
.net-gallery-main {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 16 / 9;
}
.net-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.net-gallery-main:hover img { transform: scale(1.04); }
.net-gallery-main figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 0.70rem;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(transparent, rgba(0,0,0,0.60));
  pointer-events: none;
}
.net-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.net-gallery-side figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  flex: 1;
  min-height: 0;
}
.net-gallery-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.net-gallery-side figure:hover img { transform: scale(1.06); }
.net-gallery-side figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 7px 10px;
  font-size: 0.67rem;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(transparent, rgba(0,0,0,0.60));
  pointer-events: none;
}

.net-intro {
  font-size: 0.90rem;
  line-height: 1.70;
  color: var(--text-secondary);
  margin: 0;
}

.net-use-cases {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.net-use-case {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.net-uc-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.net-use-case strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.net-use-case p {
  font-size: 0.825rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.net-specsheet {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.net-spec-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.net-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.net-spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.4;
}
.net-spec-list li:last-child { border-bottom: none; }
.net-spec-list li span {
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 60px;
}
.net-spec-list li strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.net-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.net-spec-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.715rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.lox-stage {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 16px;
  display: grid;
  gap: 14px;
}
.lox-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lox-scene-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 8px;
}
.lox-scene {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  font-family: inherit;
}
.lox-scene:hover { color: var(--text-primary); border-color: var(--border-strong); }
.lox-scene.is-active {
  background: #166534;
  border-color: #166534;
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(22,101,52,0.5);
}

.lox-house svg { width: 100%; height: auto; display: block; }
.lox-house-outline {
  fill: #fff;
  stroke: var(--border-strong);
  stroke-width: 2;
}
.lox-wall { stroke: var(--border-strong); stroke-width: 2; }
.lox-room-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--text-muted);
  text-transform: uppercase;
}
.lox-light {
  fill: #fbbf24;
  opacity: 0;
  transition: opacity .6s ease;
  filter: blur(0.4px);
}
.lox-light.on { opacity: 0.18; }
.lox-ico circle { fill: #cbd5e1; transition: fill .4s ease; }
.lox-ico path { stroke: #cbd5e1; stroke-width: 2; transition: stroke .4s ease; }
.lox-ico.on circle { fill: #f59e0b; }
.lox-ico.on path { stroke: #f59e0b; }
.lox-blinds rect { fill: #94a3b8; opacity: 0; transition: opacity .4s ease, height .5s ease; }
.lox-blinds[data-state="closed"] rect { opacity: 0.45; height: 14px; }
.lox-blinds[data-state="half"]   rect { opacity: 0.32; height: 7px; }
.lox-blinds[data-state="open"]   rect { opacity: 0; }

.lox-readouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lox-readout {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
}
.lox-readout-lbl {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.lox-readout-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  letter-spacing: -0.01em;
}
@media (max-width: 560px) {
  .lox-readouts { grid-template-columns: 1fr 1fr; }
}

.plan-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.plan-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.plan-tab svg { opacity: 0.7; }
.plan-tab:hover { color: var(--text-primary); }
.plan-tab.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 600;
}
.plan-tab.is-active svg { opacity: 1; }

.plan-stage {
  position: relative;
  min-height: 320px;
}
.plan-panel {
  display: none;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.plan-panel.is-active { display: grid; animation: planIn .35s var(--ease); }
@keyframes planIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) { .plan-panel { grid-template-columns: 1fr; } }

.plan-canvas {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fcfcfd;
  padding: 8px;
  overflow: hidden;
}
.plan-svg { width: 100%; height: auto; display: block; }
.plan-walls rect, .plan-walls line {
  fill: none;
  stroke: #0f172a;
  stroke-width: 2;
}
.plan-elec path {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  animation: planFlow 14s linear infinite;
}
@keyframes planFlow { to { stroke-dashoffset: -200; } }
.plan-san--cold path  { fill: none; stroke: #2563eb; stroke-width: 2; }
.plan-san--hot path   { fill: none; stroke: #dc2626; stroke-width: 2; }
.plan-san--drain path { fill: none; stroke: #475569; stroke-width: 2; stroke-dasharray: 6 4; }
.plan-vent--supply path { fill: none; stroke: #0284c7; stroke-width: 2.4; }
.plan-vent--return path { fill: none; stroke: #f97316; stroke-width: 2.4; stroke-dasharray: 5 4; }
.plan-heat--loop path {
  fill: none;
  stroke: #dc2626;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.85;
}
.plan-heat--pipe line {
  stroke: #dc2626;
  stroke-width: 1.5;
  opacity: 0.5;
}
.plan-sym circle, .plan-sym rect {
  fill: #fff;
  stroke: #0f172a;
  stroke-width: 1.5;
}
.plan-sym text {
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  fill: var(--text-secondary);
  text-anchor: middle;
}
.plan-meta {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-meta h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.018em;
}
.plan-meta p {
  font-size: 0.90rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
.plan-bullets {
  list-style: none;
  padding: 0; margin: 4px 0 0;
  display: grid;
  gap: 7px;
}
.plan-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.plan-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 720px) {
  .ex-modal-card { border-radius: 14px; max-height: calc(100vh - 16px); }
  .ex-modal-head { padding: 22px 22px 18px; }
  .ex-modal-head h2, .ex-modal-head p { margin-right: 48px; }
  .ex-modal-body { padding: 20px 18px 22px; }
  .ex-modal-foot { padding: 14px 18px; }
}

.gallery { display: none !important; }

.proj-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.proj-stat {
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
  min-width: 110px;
}
.proj-stat:first-child { border-left: 0; }
.proj-stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1;
}
.proj-stat-num span {
  font-size: 0.95rem;
  color: var(--blue);
  margin-left: 2px;
  font-weight: 700;
}
.proj-stat-lbl {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
}
@media (max-width: 720px) {
  .proj-stats { width: 100%; }
  .proj-stat { flex: 1; padding: 12px 14px; min-width: 0; }
  .proj-stat-num { font-size: 1.25rem; }
}

.proj-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 980px) {
  .proj-showcase { grid-template-columns: 1fr 240px; gap: 24px; align-items: start; }
}

.proj-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) {
  .proj-feature { grid-template-columns: 1.4fr 1fr; gap: 22px; padding: 16px; }
}
.proj-feature-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-muted);
  aspect-ratio: 16 / 11;
  isolation: isolate;
}
.proj-feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .35s var(--ease), transform 8s ease;
}
.proj-feature-media.is-loading img { opacity: 0.4; transform: scale(1.04); }
.proj-feature-overlay {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
}
.proj-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-sm);
}
.proj-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 3;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.proj-feature-media:hover .proj-nav { opacity: 1; }
.proj-nav:hover { background: #fff; }
.proj-nav:focus-visible { opacity: 1; }
.proj-nav--prev { left: 12px; }
.proj-nav--next { right: 12px; }

.proj-feature-info {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
}
.proj-meta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
}
.proj-feature-info h3 {
  font-size: clamp(1.25rem, 1.6vw + 0.4rem, 1.6rem);
  margin: 2px 0 4px;
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.proj-feature-info p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.proj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.proj-chip {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.proj-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
@media (min-width: 980px) {
  .proj-rail {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 520px;
    padding-right: 6px;
  }
}
.proj-rail::-webkit-scrollbar { height: 6px; width: 6px; }
.proj-rail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.proj-thumb {
  position: relative;
  flex: 0 0 180px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-align: left;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  display: block;
}
@media (min-width: 980px) {
  .proj-thumb { flex: 0 0 auto; width: 100%; display: grid; grid-template-columns: 70px 1fr; align-items: stretch; }
}
.proj-thumb img {
  width: 100%; height: 110px;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
@media (min-width: 980px) {
  .proj-thumb img { height: 100%; min-height: 70px; }
}
.proj-thumb:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.proj-thumb:hover img { transform: scale(1.05); }
.proj-thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.proj-thumb.is-active::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}
.proj-thumb-cap {
  display: block;
  padding: 8px 10px 9px;
  font-size: 0.78rem;
}
.proj-thumb-cap b {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.proj-thumb-cap i {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.section-head-row { align-items: flex-end; }
@media (max-width: 720px) {
  .section-head-row { flex-direction: column; align-items: stretch; }
}

.cs-head-wrap { margin-bottom: 28px; }
.cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cs-head .section-sub { margin-top: 12px; max-width: 560px; color: var(--text-secondary); }
.cs-controls { display: flex; gap: 10px; }
.cs-arrow {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-fast) var(--ease);
  box-shadow: var(--shadow-sm);
}
.cs-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cs-arrow:disabled { opacity: 0.35; cursor: not-allowed; transform: none; background: #fff; color: var(--text-muted); border-color: var(--border); }

.cs-track-wrap {
  position: relative;
  margin-bottom: 36px;
  
}
.cs-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px clamp(20px, 5vw, 80px) 28px;
  scrollbar-width: none;
}
.cs-track::-webkit-scrollbar { display: none; }

.cs-card {
  flex: 0 0 min(440px, 82vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.cs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.cs-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-muted); }
.cs-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cs-card:hover .cs-media img { transform: scale(1.05); }
.cs-num {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font: 600 12px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  padding: 8px 12px; border-radius: 999px;
}
.cs-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.cs-meta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
}
.cs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }
.cs-body h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.3; }
.cs-body p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cs-chip {
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
}

.cs-progress {
  margin: 0 clamp(20px, 5vw, 80px);
  height: 3px; border-radius: 999px; background: var(--border);
  overflow: hidden;
}
.cs-progress span {
  display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  border-radius: 999px;
  transition: width var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.cs-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.cs-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.cs-stats > div { display: flex; flex-direction: column; gap: 2px; }
.cs-stats b { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.cs-stats b span { color: var(--blue); font-weight: 600; }
.cs-stats i { font-style: normal; font-size: 13px; color: var(--text-muted); letter-spacing: 0.02em; }
.cs-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 600; font-size: 15px;
  text-decoration: none; padding: 10px 0;
  transition: gap var(--t-fast) var(--ease);
}
.cs-link:hover { gap: 14px; }

@media (max-width: 720px) {
  .cs-card { flex-basis: 86vw; }
  .cs-controls { display: none; }
  .cs-stats { gap: 24px; }
  .cs-stats b { font-size: 22px; }
}

.section-cta .cta-card { display: none !important; } 

.contact-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-card-left {
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(ellipse 600px 400px at 0% 0%, rgba(37,99,235,0.06), transparent 60%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 20px;
}
.contact-card-left h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; margin: 0; }
.contact-lede { color: var(--text-secondary); font-size: 15px; line-height: 1.65; margin: 0; max-width: 460px; }

.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list-ico {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(37,99,235,0.08);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list > li > div { display: flex; flex-direction: column; gap: 2px; }
.contact-list-lbl { font-size: 12px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-list-val { font-size: 15px; color: var(--text-primary); font-weight: 600; text-decoration: none; }
a.contact-list-val:hover { color: var(--blue); }

.contact-availability {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.contact-status {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
  position: relative; flex-shrink: 0;
}
.contact-status::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid #22c55e;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.contact-availability strong { display: block; font-size: 14px; color: var(--text-primary); font-weight: 600; }
.contact-availability span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.contact-form {
  padding: clamp(32px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 4px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field > span { font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; }
.cf-field > span em { font-style: normal; color: var(--text-muted); font-weight: 400; }
.cf-field input,
.cf-field textarea {
  font: 400 14px/1.5 'Inter', sans-serif;
  color: var(--text-primary);
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  width: 100%;
  resize: vertical;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--text-muted); }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.cf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.cf-pills label { cursor: pointer; }
.cf-pills input { position: absolute; opacity: 0; pointer-events: none; }
.cf-pills span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.cf-pills label:hover span { border-color: var(--border-strong); color: var(--text-primary); }
.cf-pills input:checked + span {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 2px 6px rgba(37,99,235,0.25);
}

.btn-block { width: 100%; justify-content: center; margin-top: 8px; }
.cf-fine { font-size: 12px; color: var(--text-muted); margin: 0; text-align: center; }
.cf-fine a { color: var(--blue); text-decoration: none; }
.cf-fine a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card-left { border-right: none; border-bottom: 1px solid var(--border); }
  .cf-row { grid-template-columns: 1fr; }
}

.cs-track-wrap, .cs-head, .cs-foot, .cs-controls { display: none !important; }

/* ============================================================
   PARTNERS SLIDER
   ============================================================ */
.partners-strip {
  border-top: 1px solid var(--border);
  background: var(--bg-section, #f8fafc);
  padding: 20px 0;
  overflow: hidden;
}
.partners-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 16px;
}
.partners-slider {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 120px, black calc(100% - 120px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 120px, black calc(100% - 120px), transparent 100%);
}
.partners-slider:has(.partners-track--static) {
  -webkit-mask-image: none;
  mask-image: none;
  overflow: visible;
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: partners-scroll 28s linear infinite;
}
.partners-track--static {
  animation: none !important;
  width: 100% !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 56px;
}
.partners-strip:hover .partners-track {
  animation-play-state: paused;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-dist, -50%)); }
}
.partners-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.25s;
  text-decoration: none;
}
.partners-item:hover { opacity: 0.75; }
.partners-item img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: grayscale(0%);
  transition: filter 0.25s;
}
.partners-item:hover img { filter: grayscale(0%); }
.partners-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.bento-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 36px;
}
.bento-lede {
  max-width: 380px; color: var(--text-secondary);
  font-size: 15px; line-height: 1.65; margin: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 320px 320px;
  gap: 16px;
}
.bento-cell--hero { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.bento-cell--a    { grid-column: 3; grid-row: 1; }
.bento-cell--b    { grid-column: 4; grid-row: 1; }
.bento-cell--c    { grid-column: 3; grid-row: 2; }
.bento-cell--d    { grid-column: 4; grid-row: 2; }

/* Fallback when fewer than 5 projects are active */
.bento--auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-template-rows: auto !important;
}
.bento--auto .bento-cell { grid-column: auto; grid-row: auto; min-height: 280px; height: 280px; }

.bento-cell {
  position: relative; overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--bg-muted);
  text-decoration: none; color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bento-cell img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
  z-index: 0;
}
.bento-cell:hover img { transform: scale(1.06); }
.bento-cell::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,23,0) 30%, rgba(15,17,23,0.85) 100%);
  z-index: 1;
  transition: opacity var(--t-med) var(--ease);
}
.bento-cell:hover::before { background: linear-gradient(180deg, rgba(15,17,23,0.1) 0%, rgba(15,17,23,0.92) 100%); }

.bento-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 22px 24px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
}
.bento-overlay h3 {
  margin: 0; font-size: 18px; font-weight: 700; color: #fff;
  letter-spacing: -0.005em;
}
.bento-overlay p {
  margin: 4px 0 0; color: rgba(255,255,255,0.85);
  font-size: 14px; line-height: 1.55;
  max-width: 460px;
}
.bento-meta {
  font-size: 12px; color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;
  margin-top: 4px;
}
.bento-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.bento-tags span {
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 999px;
}

.bento-cell--hero .bento-overlay { padding: 32px 36px; gap: 4px; }
.bento-cell--hero .bento-overlay h3 { font-size: 26px; }

.bento-foot {
  margin-top: 28px;
  display: flex; justify-content: center;
}
.bento-counts {
  display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px; color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.bento-counts b { color: var(--text-primary); font-weight: 700; }
.bento-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: 280px 220px 220px 220px; }
  .bento-cell--hero { grid-column: 1 / span 2; grid-row: 1; }
  .bento-cell--a    { grid-column: 1; grid-row: 2; }
  .bento-cell--b    { grid-column: 2; grid-row: 2; }
  .bento-cell--c    { grid-column: 1; grid-row: 3; }
  .bento-cell--d    { grid-column: 2; grid-row: 3; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: repeat(5, 240px); }
  .bento-cell, .bento-cell--hero, .bento-cell--a, .bento-cell--b, .bento-cell--c, .bento-cell--d {
    grid-column: 1; grid-row: auto;
  }
  .bento-counts { gap: 10px; padding: 12px 18px; font-size: 13px; }
}

.contact-card { display: none !important; } 

.section-cta {
  background:
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(37,99,235,0.07), transparent 60%),
    var(--bg-subtle);
}

.mc {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px) 0;
}
.mc .eyebrow { margin-bottom: 4px; }
.mc-title {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.mc-sub {
  font-size: 17px; line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0;
}

.mc-actions {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px;
}
.mc-call {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-secondary); font-size: 14px;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.mc-call svg { color: var(--blue); }
.mc-call b { color: var(--text-primary); font-weight: 600; }
.mc-call:hover { color: var(--text-primary); }

.mc-trust {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
}
.mc-trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  font-weight: 500;
}
.mc-trust svg { color: var(--blue); flex-shrink: 0; }

@media (max-width: 600px) {
  .mc-actions { flex-direction: column; gap: 16px; }
  .mc-trust { gap: 14px 20px; }
}

.mc, .contact-card { display: none !important; } 

.section-cta {
  background: var(--bg-subtle);
}

.cp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cp-left {
  background: #0f1117;
  padding: clamp(36px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cp-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 560px 400px at -10% -10%, rgba(37,99,235,0.22), transparent 55%),
    radial-gradient(ellipse 400px 300px at 110% 110%, rgba(37,99,235,0.10), transparent 55%);
  pointer-events: none;
}

.cp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 16px;
  text-decoration: none;
}

.cp-intro { display: flex; flex-direction: column; gap: 12px; }
.cp-title {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.015em;
  color: #fff; margin: 0;
}
.cp-sub {
  color: rgba(255,255,255,0.65);
  font-size: 15px; line-height: 1.65; margin: 0;
}

.cp-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 20px;
  counter-reset: none;
}
.cp-steps li {
  display: flex; gap: 16px; align-items: flex-start;
}
.cp-step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font: 600 12px/1 'Inter', sans-serif;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center;
}
.cp-steps strong {
  display: block;
  color: #fff; font-size: 14px; font-weight: 600;
  margin-bottom: 3px;
}
.cp-steps span {
  color: rgba(255,255,255,0.55);
  font-size: 13px; line-height: 1.5;
}

.cp-contacts {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cp-contact-item {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.cp-contact-item:hover { color: #fff; }
.cp-contact-item svg { color: var(--blue); flex-shrink: 0; }

.cp-avail {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-top: auto;
}
.cp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  flex-shrink: 0;
  position: relative;
}
.cp-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 1.5px solid #22c55e;
  animation: cp-pulse 2.2s ease-out infinite;
}
@keyframes cp-pulse {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.cp-form {
  background: #fff;
  padding: clamp(36px, 5vw, 60px);
  display: flex; flex-direction: column; gap: 18px;
}
.cp-form-title {
  font-size: 20px; font-weight: 700;
  color: var(--text-primary); margin: 0;
}
.cp-form-sub {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.55; margin: -6px 0 0;
}

.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-field { display: flex; flex-direction: column; gap: 6px; }
.cp-field > span {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.02em;
}
.cp-field > span em { font-style: normal; color: var(--text-muted); font-weight: 400; }

.cp-field input,
.cp-field textarea {
  font: 400 14px/1.5 'Inter', sans-serif;
  color: var(--text-primary);
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%; resize: vertical;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.cp-field input::placeholder,
.cp-field textarea::placeholder { color: var(--text-muted); }
.cp-field input:focus,
.cp-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.cp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.cp-pills label { cursor: pointer; }
.cp-pills input { position: absolute; opacity: 0; pointer-events: none; }
.cp-pills span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.cp-pills label:hover span { border-color: var(--border-strong); color: var(--text-primary); }
.cp-pills input:checked + span {
  background: var(--blue); color: #fff;
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(37,99,235,0.28);
}

.cp-submit {
  width: 100%; justify-content: center;
  margin-top: 6px;
}
.cp-fine {
  font-size: 12px; color: var(--text-muted);
  text-align: center; margin: 0;
}
.cp-fine a { color: var(--blue); text-decoration: none; }
.cp-fine a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .cp { grid-template-columns: 1fr; }
  .cp-left { gap: 24px; }
  .cp-avail { margin-top: 0; }
  .cp-row { grid-template-columns: 1fr; }
}

.cp, .mc, .contact-card { display: none !important; } 

.section-cta {
  background: var(--bg);
}

.ct {
  max-width: 980px;
  margin: 0 auto;
}

.ct-head {
  text-align: center;
  margin-bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ct-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.ct-sub {
  font-size: 16px; line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0;
}

.ct-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.ct-aside {
  display: flex; flex-direction: column; gap: 24px;
  padding-top: 4px;
}
.ct-info {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.ct-info li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ct-info li:first-child { padding-top: 0; }
.ct-info-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ct-info-val {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
}
a.ct-info-val:hover { color: var(--blue); }

.ct-avail {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--text-muted);
  font-weight: 500;
  padding-top: 4px;
}
.ct-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
  flex-shrink: 0;
}

.ct-form {
  display: flex; flex-direction: column; gap: 18px;
}
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field > span {
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.ct-field > span em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 400;
}

.ct-field input,
.ct-field textarea {
  font: 400 14px/1.5 'Inter', sans-serif;
  color: var(--text-primary);
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  width: 100%;
  resize: vertical;
  transition: border-color var(--t-fast) var(--ease);
}
.ct-field textarea {
  padding: 12px 0;
  min-height: 100px;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--text-muted);
}
.ct-field input:hover,
.ct-field textarea:hover {
  border-bottom-color: var(--border-strong);
}
.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-bottom-color: var(--text-primary);
}

.ct-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ct-fine {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  flex: 1; min-width: 220px;
}
.ct-fine a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}
.ct-fine a:hover { color: var(--text-primary); }

@media (max-width: 760px) {
  .ct-grid { grid-template-columns: 1fr; gap: 40px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-actions { flex-direction: column-reverse; align-items: stretch; }
  .ct-actions .btn { justify-content: center; }
}

.bento--compact {
  grid-template-rows: 240px 240px;
  gap: 12px;
}
.bento--compact .bento-cell { border-radius: var(--radius-xl); }
.bento--compact .bento-overlay { padding: 16px 18px; }
.bento--compact .bento-overlay h3 { font-size: 15px; }
.bento--compact .bento-cell--hero .bento-overlay { padding: 22px 24px; }
.bento--compact .bento-cell--hero .bento-overlay h3 { font-size: 21px; }
.bento--compact .bento-overlay p { font-size: 13px; line-height: 1.5; max-width: 380px; }
.bento--compact .bento-meta { font-size: 11px; }
.bento--compact .bento-tags span { padding: 4px 8px; font-size: 10px; }
@media (max-width: 980px) {
  .bento--compact { grid-template-rows: 220px 180px 180px; }
}
@media (max-width: 600px) {
  .bento--compact { grid-template-rows: repeat(5, 200px); }
}

.sh {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "stage panel"
    "auto  panel";
  gap: 16px 24px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}
.sh-stage { grid-area: stage; }
.sh-panel { grid-area: panel; align-self: stretch; }
.sh-auto  { grid-area: auto; align-self: end; }

@media (max-width: 1100px) {
  .sh {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "stage" "auto" "panel";
    max-width: 720px;
  }
  .sh-panel { align-self: auto; }
}

@media (max-width: 720px) {
  .sh {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: none;
    width: 100%;
  }
  
  .sh-panel {
    display: contents;
  }
  
  .sh-stage,
  .sh-auto,
  .sh-panel > .sh-panel-block,
  .sh-panel > .sh-info {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .sh-panel > .sh-panel-block { order: 1; }   
  .sh-stage                   { order: 2; }
  .sh-panel > .sh-info        { order: 3; }
  .sh-auto                    { order: 4; }
  
  .sh-panel > .sh-energy,
  .sh-panel > .sh-feats { display: none; }

  
  .sh-panel > .sh-panel-block {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .sh-panel > .sh-info { padding: 12px 14px; }
  .sh-info-desc { font-size: 12.5px; }

  
  .sh-auto { padding: 14px; }
  .sh-auto-head { gap: 6px; }
  .sh-auto-sub { display: none; }
  .sh-auto-grid { gap: 6px; min-width: 0; }

  
  .sh-pill {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "ico name   status"
      "ico meta   meta";
    column-gap: 10px;
    row-gap: 1px;
    align-items: center;
    padding: 9px 12px;
  }
  .sh-pill-ico    { grid-area: ico; align-self: center; }
  .sh-pill-body   { display: contents; }
  .sh-pill-name   { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sh-pill-meta   { grid-area: meta; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sh-pill-status {
    grid-area: status;
    justify-self: end;
    font-size: 9px;
    padding: 3px 7px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  
  .sh-stage { aspect-ratio: 5 / 4; }

  
  .sh-room-label { display: none; }

  
  .sh-hud { z-index: 2; }
  .sh-hud--tl { top: 3px; left: 3px; }
  .sh-hud--tr { top: 3px; right: 3px; }
  .sh-hud--bl { bottom: 22px; left: 3px; }
  .sh-stat {
    min-width: 0;
    padding: 1.5px 3px;
    gap: 0;
    border-radius: 3px;
    border-width: 0.5px;
    line-height: 1;
  }
  .sh-stat-ico { display: none; }
  .sh-stat-lbl { font-size: 3.5px; letter-spacing: 0.02em; }
  .sh-stat-val { font-size: 4px; margin-top: 0.5px; }
  .sh-stat-val strong { font-size: 5px; }

  
  .sh-caption { padding: 4px 10px; bottom: 6px; gap: 6px; }
  .sh-caption-time { font-size: 8.5px; letter-spacing: 0.04em; }
  .sh-caption-name { font-size: 10px; }
}

@media (max-width: 480px) {
  .sh-scenes { gap: 4px; }
  .sh-scene { padding: 8px 2px; gap: 2px; }
  .sh-scene span { font-size: 10px; }
  .sh-scene svg { width: 16px; height: 16px; }
  .sh-pill { padding: 8px 10px; }
  .sh-pill-name { font-size: 11.5px; }
  .sh-pill-meta { font-size: 10px; }
  .sh-pill-status { font-size: 8.5px; padding: 2px 5px; }
  
  .sh-stat { padding: 1px 2.5px; }
  .sh-stat-lbl { font-size: 3px; }
  .sh-stat-val { font-size: 3.5px; }
  .sh-stat-val strong { font-size: 4.5px; }
}

.sh-auto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.18);
}
.sh-auto-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.sh-auto-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}
.sh-auto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 880px) {
  .sh-auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .sh-auto-grid { grid-template-columns: 1fr; }
}

.sh-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.sh-pill::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #cbd5e1;
  transition: background 0.3s var(--ease);
}
.sh-pill.is-active::before  { background: #2563eb; }
.sh-pill.is-saving::before  { background: #10b981; }
.sh-pill.is-warning::before { background: #f59e0b; }
.sh-pill.is-idle  { opacity: 0.6; }

.sh-pill-ico {
  flex: 0 0 auto;
  color: #64748b;
  transition: color 0.3s var(--ease);
}
.sh-pill.is-active  .sh-pill-ico { color: #2563eb; }
.sh-pill.is-saving  .sh-pill-ico { color: #10b981; }
.sh-pill.is-warning .sh-pill-ico { color: #d97706; }

.sh-pill-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.sh-pill-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-pill-meta {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-pill-status {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
}
.sh-pill.is-active  .sh-pill-status { color: #1d4ed8; background: #dbeafe; }
.sh-pill.is-saving  .sh-pill-status { color: #047857; background: #d1fae5; }
.sh-pill.is-warning .sh-pill-status { color: #b45309; background: #fef3c7; }

.sh-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.sh-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #cbd5e1;
  transition: background 0.3s var(--ease);
}
.sh-card.is-active {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 6px 18px -10px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}
.sh-card.is-active::before { background: #2563eb; }
.sh-card.is-saving::before { background: #10b981; }
.sh-card.is-warning::before { background: #f59e0b; }
.sh-card.is-idle  { opacity: 0.62; }

.sh-card-ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  transition: all 0.3s var(--ease);
}
.sh-card.is-active .sh-card-ico { background: #eff6ff; color: #2563eb; }
.sh-card.is-saving .sh-card-ico { background: #ecfdf5; color: #10b981; }
.sh-card.is-warning .sh-card-ico { background: #fffbeb; color: #d97706; }

.sh-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sh-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.sh-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.sh-card-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  white-space: nowrap;
}
.sh-card.is-active  .sh-card-status { color: #2563eb; }
.sh-card.is-saving  .sh-card-status { color: #10b981; }
.sh-card.is-warning .sh-card-status { color: #d97706; }
.sh-card-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #475569;
}
.sh-card-meta {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.sh-stage {
  --sh-sky-a: #f0c98a;
  --sh-sky-b: #b97c3a;
  --sh-sun-op: 1;
  --sh-sun-y: 140px;
  --sh-moon-op: 0;
  --sh-stars-op: 0;
  --sh-clouds-op: 0.55;

  --sh-house-tone: #f1f3f6;
  --sh-roof-tone: #2a3344;

  --sh-win-bedroom: 0;
  --sh-win-bathroom: 0;
  --sh-win-office: 0;
  --sh-win-kitchen: 0;
  --sh-win-living: 0.85;
  --sh-win-garage: 0;
  --sh-door-light: 0.7;

  --sh-solar-glow: 0;
  --sh-battery-fill: 76%;
  --sh-battery-color: #10b981;

  
  --sh-flow-solar-battery: 0;
  --sh-flow-solar-house: 1;
  --sh-flow-solar-ev: 0;
  --sh-flow-battery-house: 1;
  --sh-flow-grid-house: 0;
  --sh-flow-house-ev: 0;

  --sh-flow-speed: 1.6s;
  --sh-flow-color-solar: #f59e0b;
  --sh-flow-color-battery: #10b981;
  --sh-flow-color-grid: #94a3b8;
  --sh-flow-color-ev: #3b82f6;

  position: relative;
  width: 100%;
  min-width: 0;
  background: #0b0f1a;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -28px rgba(8, 14, 30, 0.55), 0 2px 0 rgba(255,255,255,0.04) inset;
  aspect-ratio: 1000 / 600;
  isolation: isolate;
}

.sh-house-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sh-sky-a { stop-color: var(--sh-sky-a); transition: stop-color 1s var(--ease); }
.sh-sky-b { stop-color: var(--sh-sky-b); transition: stop-color 1s var(--ease); }

.sh-sun {
  opacity: var(--sh-sun-op);
  transform: translateY(calc(var(--sh-sun-y) - 140px));
  transition: opacity 1s var(--ease), transform 1.4s var(--ease);
  transform-origin: center;
  transform-box: fill-box;
}
.sh-sun-body { fill: #fde68a; filter: drop-shadow(0 0 16px rgba(253,230,138,0.7)); }

.sh-moon {
  opacity: var(--sh-moon-op);
  transition: opacity 1.2s var(--ease);
}
.sh-moon-body { fill: #e2e8f0; }
.sh-moon-crater { fill: #94a3b8; opacity: 0.5; }

.sh-stars {
  opacity: var(--sh-stars-op);
  transition: opacity 1.2s var(--ease);
}
.sh-stars circle { fill: #f8fafc; }
.sh-stars circle:nth-child(odd) { animation: sh-twinkle 3.2s ease-in-out infinite; }
.sh-stars circle:nth-child(even) { animation: sh-twinkle 4.6s ease-in-out 0.6s infinite; }

@keyframes sh-twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.sh-clouds { opacity: var(--sh-clouds-op); transition: opacity 1s var(--ease); }
.sh-clouds ellipse { fill: rgba(255,255,255,0.85); }
.sh-clouds--back  { animation: sh-cloud-drift 60s linear infinite; }
.sh-clouds--front { animation: sh-cloud-drift 38s linear infinite; }
@keyframes sh-cloud-drift {
  0%   { transform: translateX(-80px); }
  100% { transform: translateX(900px); }
}

.sh-bird {
  opacity: 0;
  animation: sh-bird-fly 14s linear infinite;
}
@keyframes sh-bird-fly {
  0%   { transform: translate(-30px, 90px) scale(1); opacity: 0; }
  10%  { opacity: var(--sh-bird-op, 0); }
  50%  { transform: translate(450px, 60px) scale(1); opacity: var(--sh-bird-op, 0); }
  90%  { opacity: var(--sh-bird-op, 0); }
  100% { transform: translate(1050px, 110px) scale(1); opacity: 0; }
}

.sh-sun-rays {
  opacity: calc(var(--sh-sun-op) * 0.55);
  transition: opacity 1s var(--ease);
}
.sh-sun-rays line { stroke: #fde68a; stroke-width: 2.5; stroke-linecap: round; }
.sh-sun-rays-spin {
  transform-origin: 0 0;
  animation: sh-sun-spin 32s linear infinite;
}
@keyframes sh-sun-spin {
  to { transform: rotate(360deg); }
}

.sh-smoke { opacity: var(--sh-smoke-op, 0); transition: opacity 0.8s var(--ease); }
.sh-smoke-puff {
  fill: rgba(200, 210, 220, 0.55);
  animation: sh-smoke-rise 4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.sh-smoke-puff--2 { animation-delay: 1.3s; }
.sh-smoke-puff--3 { animation-delay: 2.6s; }
@keyframes sh-smoke-rise {
  0%   { transform: translate(0, 0) scale(0.4); opacity: 0.7; }
  60%  { opacity: 0.5; }
  100% { transform: translate(-12px, -55px) scale(1.4); opacity: 0; }
}

.sh-curtain {
  fill: rgba(241, 217, 168, 0.85);
  stroke: rgba(0,0,0,0.08);
  stroke-width: 0.5;
  transform-box: fill-box;
  transition: transform 1.4s var(--ease);
}
.sh-curtain--l { transform-origin: left center; transform: scaleX(var(--sh-curtain-l, 0)); }
.sh-curtain--r { transform-origin: right center; transform: scaleX(var(--sh-curtain-r, 0)); }
.sh-curtains[data-curtain="bedroom"] { --sh-curtain-l: var(--sh-curtain-bedroom, 0); --sh-curtain-r: var(--sh-curtain-bedroom, 0); }
.sh-curtains[data-curtain="living"]  { --sh-curtain-l: var(--sh-curtain-living, 0);  --sh-curtain-r: var(--sh-curtain-living, 0); }
.sh-curtains[data-curtain="office"]  { --sh-curtain-l: var(--sh-curtain-office, 0);  --sh-curtain-r: var(--sh-curtain-office, 0); }

.sh-roof-fan { opacity: 0.85; }
.sh-roof-fan-bg { fill: #1c2230; stroke: rgba(255,255,255,0.1); stroke-width: 0.6; }
.sh-roof-fan-blades {
  fill: #cbd5e1;
  transform-origin: center;
  animation: sh-fan-spin var(--sh-fan-speed, 0s) linear infinite;
}
.sh-roof-fan-hub { fill: #475569; }
@keyframes sh-fan-spin {
  to { transform: rotate(360deg); }
}

.sh-garden-bulb {
  fill: #fde68a;
  opacity: var(--sh-garden-op, 0);
  transition: opacity 0.8s var(--ease);
}
.sh-garden-glow {
  fill: rgba(253, 230, 138, 0.55);
  filter: blur(4px);
  opacity: var(--sh-garden-op, 0);
  transition: opacity 0.8s var(--ease);
  animation: sh-garden-flicker 4s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes sh-garden-flicker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.sh-ground-shadow { fill: rgba(0,0,0,0.35); filter: blur(4px); }

.sh-foundation { fill: #2d3441; }

.sh-tree { transition: opacity 1s var(--ease); }
.sh-trunk { fill: #3d2a1a; }
.sh-foliage { fill: #2f6b3b; }

.sh-pole { stroke: #4b5563; stroke-width: 2.5; stroke-linecap: round; }
.sh-pole-cap { fill: #4b5563; }
.sh-pole-wire {
  fill: none;
  stroke: #475569;
  stroke-width: 1.5;
}

.sh-roof-shadow { transition: opacity 0.8s var(--ease); }
.sh-chimney { fill: #2a3344; }
.sh-chimney-cap { fill: #1a2230; }

.sh-solar-bg { stroke: #0b1a32; stroke-width: 0.6; }
.sh-solar-line { stroke: rgba(120, 170, 230, 0.55); stroke-width: 0.8; }
.sh-solar-glow {
  fill: rgba(253, 230, 138, 0.28);
  opacity: var(--sh-solar-glow);
  transition: opacity 0.8s var(--ease);
  mix-blend-mode: screen;
  filter: blur(2px);
}

.sh-house-body { stroke: rgba(0,0,0,0.08); stroke-width: 0.5; }
.sh-floor-line { stroke: rgba(0,0,0,0.12); stroke-width: 1; stroke-dasharray: 2 4; }

.sh-window {
  fill: #2b3344;
  stroke: rgba(0,0,0,0.2);
  stroke-width: 0.8;
  transition: fill 0.8s var(--ease);
}
.sh-mullion { stroke: #1a2030; stroke-width: 1.2; }

.sh-win-glow {
  fill: url(#shWinGlow);
  filter: blur(6px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.sh-room[data-room="bedroom"]  .sh-win-glow { opacity: var(--sh-win-bedroom); }
.sh-room[data-room="bathroom"] .sh-win-glow { opacity: var(--sh-win-bathroom); }
.sh-room[data-room="office"]   .sh-win-glow { opacity: var(--sh-win-office); }
.sh-room[data-room="kitchen"]  .sh-win-glow { opacity: var(--sh-win-kitchen); }
.sh-room[data-room="living"]   .sh-win-glow { opacity: var(--sh-win-living); }
.sh-room[data-room="garage"]   .sh-win-glow { opacity: var(--sh-win-garage); }

.sh-room[data-room="bedroom"]  .sh-window { fill: color-mix(in srgb, #ffd28a calc(var(--sh-win-bedroom) * 100%), #2b3344); }
.sh-room[data-room="bathroom"] .sh-window { fill: color-mix(in srgb, #cfe9ff calc(var(--sh-win-bathroom) * 100%), #2b3344); }
.sh-room[data-room="office"]   .sh-window { fill: color-mix(in srgb, #d6e4ff calc(var(--sh-win-office) * 100%), #2b3344); }
.sh-room[data-room="kitchen"]  .sh-window { fill: color-mix(in srgb, #ffe1a8 calc(var(--sh-win-kitchen) * 100%), #2b3344); }
.sh-room[data-room="living"]   .sh-window { fill: color-mix(in srgb, #ffd29a calc(var(--sh-win-living) * 100%), #2b3344); }

.sh-room-label {
  fill: rgba(255,255,255,0.45);
  font-size: 9px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sh-door-body { fill: #2a3344; stroke: rgba(0,0,0,0.18); stroke-width: 0.6; }
.sh-door-knob { fill: #fbbf24; }
.sh-door-light {
  fill: #ffd29a;
  opacity: var(--sh-door-light);
  transition: opacity 0.8s var(--ease);
}

.sh-garage-body { fill: #cdd2db; stroke: rgba(0,0,0,0.12); stroke-width: 0.6; }
.sh-garage-panel { stroke: #8a93a3; stroke-width: 0.8; }

.sh-battery-body {
  fill: #ffffff;
  stroke: rgba(0,0,0,0.18);
  stroke-width: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}
.sh-battery-screen { fill: #0b0f1a; }
.sh-battery-pct {
  fill: #d1fae5;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
}
.sh-battery-bar-bg { fill: rgba(0,0,0,0.08); }
.sh-battery-bar-fill {
  fill: var(--sh-battery-color);
  transform: scaleX(calc(var(--sh-battery-fill) / 100%));
  transform-origin: left center;
  transform-box: fill-box;
  transition: transform 1s var(--ease), fill 0.6s var(--ease);
}
.sh-battery-led-bg { fill: var(--sh-battery-color); transition: fill 0.6s var(--ease); }
.sh-battery-led-bolt { fill: #ffffff; }
.sh-battery-lbl {
  fill: #6b7280;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: inherit;
}

.sh-charger-body { fill: #1f2937; }
.sh-charger-led {
  fill: var(--sh-flow-color-ev);
  opacity: var(--sh-flow-house-ev);
  transition: opacity 0.6s var(--ease);
  animation: sh-charger-pulse 1.4s ease-in-out infinite;
}
@keyframes sh-charger-pulse {
  0%, 100% { opacity: calc(var(--sh-flow-house-ev) * 1); }
  50% { opacity: calc(var(--sh-flow-house-ev) * 0.4); }
}
.sh-charger-cable { fill: none; stroke: #1f2937; stroke-width: 1.4; }

.sh-car-shadow { fill: rgba(0,0,0,0.45); filter: blur(2px); }
.sh-car-body { fill: #e8ecf4; stroke: rgba(0,0,0,0.18); stroke-width: 0.6; }
.sh-car-window { fill: #2c3e57; opacity: 0.85; }
.sh-car-wheel { fill: #1f2937; stroke: #94a3b8; stroke-width: 1; }
.sh-car-port { fill: var(--sh-flow-color-ev); opacity: var(--sh-flow-house-ev); transition: opacity 0.6s var(--ease); }

.sh-flow {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-dasharray: 6 8;
  animation: sh-flow-march var(--sh-flow-speed) linear infinite;
  filter: drop-shadow(0 0 3px currentColor);
  pointer-events: none;
}
.sh-flow[data-flow="solar-battery"] { color: var(--sh-flow-color-solar); stroke: currentColor; opacity: var(--sh-flow-solar-battery); }
.sh-flow[data-flow="solar-house"]   { color: var(--sh-flow-color-solar); stroke: currentColor; opacity: var(--sh-flow-solar-house); }
.sh-flow[data-flow="solar-ev"]      { color: var(--sh-flow-color-solar); stroke: currentColor; opacity: var(--sh-flow-solar-ev); }
.sh-flow[data-flow="battery-house"] { color: var(--sh-flow-color-battery); stroke: currentColor; opacity: var(--sh-flow-battery-house); }
.sh-flow[data-flow="grid-house"]    { color: var(--sh-flow-color-grid); stroke: currentColor; opacity: var(--sh-flow-grid-house); }
.sh-flow[data-flow="house-ev"]      { color: var(--sh-flow-color-ev); stroke: currentColor; opacity: var(--sh-flow-house-ev); }

@keyframes sh-flow-march {
  to { stroke-dashoffset: -40; }
}

.sh-hud {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.sh-hud--tl { top: 12px; left: 12px; }
.sh-hud--tr { top: 12px; right: 12px; }
.sh-hud--bl { bottom: 50px; left: 12px; }
.sh-hud--br { bottom: 50px; right: 12px; }

.sh-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  color: #f8fafc;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.45);
  min-width: 0;
  pointer-events: auto;
}
.sh-stat-ico { color: #fbbf24; flex: 0 0 auto; width: 13px; height: 13px; }
.sh-stat[data-tone="house"] .sh-stat-ico { color: #60a5fa; }
.sh-stat[data-tone="battery"] .sh-stat-ico { color: var(--sh-battery-color); }
.sh-stat[data-tone="autarkie"] .sh-stat-ico { color: #34d399; }

.sh-stat-lbl {
  display: block;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
  line-height: 1.1;
}
.sh-stat-val {
  display: block;
  font-size: 9px;
  font-weight: 600;
  margin-top: 1px;
  color: #f8fafc;
}
.sh-stat-val strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.sh-caption {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.45);
}
.sh-caption-time {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
}
.sh-caption-name {
  font-size: 10px;
  font-weight: 700;
  color: #f8fafc;
}

.sh-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.18);
}

.sh-panel-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-panel-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.sh-scenes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.sh-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
}
.sh-scene svg { color: inherit; }
.sh-scene:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1e40af;
  transform: translateY(-1px);
}
.sh-scene.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6);
}

.sh-info {
  background: linear-gradient(135deg, #f0f6ff 0%, #fdf4ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-info-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.sh-info-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.sh-info-time {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.06em;
}
.sh-info-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}
.sh-info-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sh-room-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  transition: all 0.2s var(--ease);
}
.sh-room-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
}
.sh-room-chip.is-on { color: #b45309; border-color: rgba(245, 158, 11, 0.4); background: #fffbeb; }
.sh-room-chip.is-on::before { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }

.sh-energy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sh-energy-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.sh-energy-row.is-active {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.1);
}
.sh-energy-row:not(.is-active) { opacity: 0.45; }
.sh-energy-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot, #94a3b8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, #94a3b8) 18%, transparent);
}
.sh-energy-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.sh-energy-val {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.sh-feats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.sh-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}
.sh-feat svg { color: #10b981; flex: 0 0 auto; }

@media (max-width: 1100px) {
  .sh-stage { aspect-ratio: 1000 / 600; }
}

.ct, .cp, .mc, .contact-card { display: none !important; }

.section-cta { background: var(--bg-subtle); }

.bk {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.bk-left { padding-top: 8px; }
.bk-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
  margin: 14px 0 18px;
}
.bk-sub {
  font-size: 16px; line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 440px;
}
.bk-bullets {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.bk-bullets li {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-primary);
  font-weight: 500;
}
.bk-bullets svg { color: var(--blue); flex-shrink: 0; }

.bk-quick {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.bk-quick-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-secondary); text-decoration: none;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.bk-quick-link svg { color: var(--blue); }
.bk-quick-link:hover { color: var(--text-primary); }
.bk-quick-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ── Persona strip ───────────────────────────────────────────────────── */
.bk-persona {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}
.bk-persona-watermark {
  position: absolute;
  right: -16px; bottom: -40px;
  font-size: 220px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(0,0,0,0.035);
  user-select: none;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}
.bk-persona-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bk-persona-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}
.bk-persona-name {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.bk-persona-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.bk-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: var(--shadow-md);
}
.bk-card-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.bk-card-eyebrow {
  font-size: 11px; color: var(--blue);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.bk-card h3 {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary); margin: 0;
}

.bk-step { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bk-step-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.bk-step-lbl b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font: 600 10px/1 'Inter', sans-serif;
  letter-spacing: 0.04em;
}

.bk-days-nav {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.bk-days-btn {
  flex: 0 0 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.bk-days-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.bk-days-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.bk-days-track {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.bk-days {
  display: flex;
  gap: 6px;
  width: 100%;
  
  transform: translateX(calc(var(--bk-offset, 0) * -1 * ((100% + 6px) / 5)));
  transition: transform 0.3s var(--ease);
}
.bk-days label {
  flex: 0 0 calc((100% - 24px) / 5);
  cursor: pointer;
}
.bk-days input { position: absolute; opacity: 0; pointer-events: none; }
.bk-days span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--t-fast) var(--ease);
}
.bk-days i {
  font-style: normal;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.bk-days b {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.bk-days label:hover span { border-color: var(--border-strong); }
.bk-days input:checked + span {
  background: var(--text-primary);
  border-color: var(--text-primary);
}
.bk-days input:checked + span i,
.bk-days input:checked + span b { color: #fff; }

.bk-slot-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.bk-slot-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bk-slot-group-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bk-slot-group-lbl i { font-style: normal; }
.bk-chips-head {
  display: none;
}
.bk-step--inline {
  margin-top: 18px;
}
.bk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bk-chip { cursor: pointer; }
.bk-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bk-chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: 600 13px/1 'Inter', sans-serif;
  color: var(--text-primary);
  transition: all var(--t-fast) var(--ease);
}
.bk-chip span em {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.bk-chip:hover span {
  border-color: var(--blue);
  color: var(--blue);
}
.bk-chip:hover span em { background: var(--blue); }
.bk-chip input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.32);
}
.bk-chip input:checked + span em {
  background: #fff;
  transform: scale(1.15);
}

.bk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-modes label { cursor: pointer; }
.bk-modes input { position: absolute; opacity: 0; pointer-events: none; }
.bk-modes span {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--t-fast) var(--ease);
}
.bk-modes svg { color: var(--text-muted); margin-bottom: 4px; transition: color var(--t-fast) var(--ease); }
.bk-modes em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.bk-modes i { font-style: normal; font-size: 12px; color: var(--text-muted); }
.bk-modes label:hover span { border-color: var(--border-strong); }
.bk-modes input:checked + span {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.bk-modes input:checked + span svg { color: var(--blue); }

.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-field { display: block; }
.bk-field input,
.bk-field textarea {
  font: 400 14px/1.5 'Inter', sans-serif;
  color: var(--text-primary);
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.bk-field textarea { resize: vertical; min-height: 80px; }
.bk-field input::placeholder,
.bk-field textarea::placeholder { color: var(--text-muted); }
.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
#bkReasonWrap { margin-top: 8px; }
.bk-field + .bk-field { margin-top: 8px; }
.bk-row + .bk-field { margin-top: 8px; }
.bk-row .bk-field + .bk-field { margin-top: 0; }

.bk-submit {
  width: 100%; justify-content: center;
  margin-top: 4px;
}
.bk-fine {
  font-size: 12px; color: var(--text-muted);
  text-align: center; margin: 0;
}
.bk-fine a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.bk-fine a:hover { color: var(--text-primary); }

@keyframes bkSuccessIn {
  0%   { opacity: 0; transform: translateY(18px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0)   scale(1);    }
}
@keyframes bkCheckPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1);   opacity: 1; }
}
.bk-success-card {
  text-align: center;
  padding: 40px 28px;
  gap: 12px;
  animation: bkSuccessIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bk-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  margin: 0 auto 4px;
  animation: bkCheckPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.bk-success-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.bk-success-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 340px;
  margin-inline: auto;
}
.bk-success-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 4px;
}

@media (max-width: 880px) {
  .bk { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .bk-days { grid-template-columns: repeat(5, 1fr); }
  .bk-slots { grid-template-columns: repeat(2, 1fr); }
  .bk-modes { grid-template-columns: 1fr; }
  .bk-row { grid-template-columns: 1fr; }
}

.sh-tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 28px;
  padding: 5px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.sh-head + .sh-tabs { display: flex; justify-content: center; width: max-content; }
.sh-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sh-head + .sh-tabs { margin-left: auto; margin-right: auto; }

#shTitle { min-height: 3.9em; }
#shSub   { min-height: 4.8em; }

.sh-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #64748b);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s var(--ease, ease);
}
.sh-tab svg { transition: transform .35s var(--ease, ease); }
.sh-tab:hover { color: var(--text-primary, #0f172a); }
.sh-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.sh-tab.is-active svg { transform: scale(1.1); }
.sh-context[hidden] { display: none; }
.sh-context { animation: shCtxFade .45s var(--ease, ease); }
@keyframes shCtxFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .sh-tab { padding: 8px 14px; font-size: 12px; }
  .sh-tab svg { width: 14px; height: 14px; }
  .sh-tabs { margin-bottom: 18px; }
}

#scrollTopBtn {
  display: none;
}
@media (max-width: 720px) {
  #scrollTopBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 900;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: rgba(255,255,255,0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  }
  #scrollTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
  }
  #scrollTopBtn:active {
    transform: scale(0.92);
  }
}

.shb-stage {
  --shb-sky-a: #cce8ff;
  --shb-sky-b: #5fa8e6;
  --shb-sun-op: 1;
  --shb-moon-op: 0;
  --shb-stars-op: 0;
  --shb-clouds-op: 0.5;
  --shb-solar-glow: 1;
  --shb-bld-light: 1;       
  --shb-cam-cone-op: 0.85;
  --shb-cam-sweep-state: running;
  --shb-anpr-op: 1;
  --shb-anpr-sweep-state: running;
  --shb-boom-rot: 80deg;    
  --shb-anpr-readout-op: 0;
  --shb-car-anim-state: running;
  --shb-headlight-op: 0;
  --shb-path-glow: 0;
  --shb-skyline-op: 0.65;
  --shb-battery-fill: 82%;
  --shb-battery-color: #10b981;
  --shb-flow-speed: 1.0s;
  --shb-logo-glow: 0.85;
  --shb-ev-spot-op: 0.55;
  --shb-cable-op: 1;
}

.shb-svg .shb-sky-a { stop-color: var(--shb-sky-a); }
.shb-svg .shb-sky-b { stop-color: var(--shb-sky-b); }

.shb-sun         { opacity: var(--shb-sun-op); transition: opacity .8s var(--ease, ease); }
.shb-sun-body    { fill: #fbbf24; }
.shb-moon        { opacity: var(--shb-moon-op); transition: opacity .8s var(--ease, ease); }
.shb-moon-body   { fill: #e2e8f0; }
.shb-stars       { opacity: var(--shb-stars-op); transition: opacity .8s var(--ease, ease); fill: #f1f5f9; }
.shb-clouds      { opacity: var(--shb-clouds-op); transition: opacity .8s var(--ease, ease); fill: rgba(255,255,255,0.85); animation: shbCloudDrift 60s linear infinite; }
@keyframes shbCloudDrift {
  0%   { transform: translateX(-30px); }
  100% { transform: translateX(60px); }
}

.shb-skyline { opacity: var(--shb-skyline-op); fill: rgba(15, 23, 42, 0.55); transition: opacity .8s var(--ease, ease); }
.shb-ground  {  }

.shb-trunk   { fill: #3a2615; }
.shb-foliage { fill: #2d5a3d; }

.shb-bld-body  {  }
.shb-bld-glass { mix-blend-mode: screen; opacity: 0.65; }
.shb-mull      { stroke: rgba(0,0,0,0.45); stroke-width: 1.2; }

.shb-windows .shb-win {
  fill: #0e1a2c;
  opacity: 0;
  transition: opacity .6s var(--ease, ease), fill .6s var(--ease, ease);
}

.shb-stage[data-scene="ops"]    .shb-win { fill: #ffe5a8; opacity: calc(var(--shb-bld-light) * 0.55); }
.shb-stage[data-scene="arrival"] .shb-win[data-floor="1"],
.shb-stage[data-scene="arrival"] .shb-win[data-floor="2"] { fill: #ffe5a8; opacity: 0.45; }
.shb-stage[data-scene="arrival"] .shb-win[data-floor="3"] { fill: #ffd58a; opacity: 0.25; }
.shb-stage[data-scene="leave"]   .shb-win[data-floor="1"],
.shb-stage[data-scene="leave"]   .shb-win[data-floor="2"] { fill: #ffd58a; opacity: 0.4; }
.shb-stage[data-scene="watch"]   .shb-win[data-floor="1"] { fill: #6ee7b7; opacity: 0.18; }

.shb-stage[data-scene="ops"] .shb-win:nth-child(3n)  { animation: shbWinFlicker 8s ease-in-out infinite; }
.shb-stage[data-scene="ops"] .shb-win:nth-child(7n)  { animation: shbWinFlicker 11s ease-in-out infinite; animation-delay: -3s; }
@keyframes shbWinFlicker {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.78; }
}

.shb-roof-edge   { fill: #0a0e18; }
.shb-roof-hvac   { fill: #2a3142; }
.shb-antenna     { stroke: #475569; stroke-width: 1.5; }
.shb-antenna-tip { fill: #ef4444; animation: shbBlink 2s ease-in-out infinite; }
@keyframes shbBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.shb-solar-line { stroke: rgba(255,255,255,0.18); stroke-width: 0.8; }
.shb-solar-glow {
  fill: #fde68a;
  opacity: calc(var(--shb-solar-glow) * 0.45);
  filter: blur(6px);
  transition: opacity .8s var(--ease, ease);
}

.shb-logo { opacity: var(--shb-logo-glow); transition: opacity .6s var(--ease, ease); }
.shb-logo-bg { fill: rgba(255,255,255,0.06); stroke: rgba(255,255,255,0.18); stroke-width: 0.5; }
.shb-logo text { fill: #fff; font-size: 6.5px; font-weight: 800; letter-spacing: 1px; font-family: Inter, sans-serif; }

.shb-door       { fill: rgba(56, 189, 248, 0.18); stroke: rgba(125, 211, 252, 0.5); stroke-width: 0.8; }
.shb-door-split { stroke: rgba(125, 211, 252, 0.45); stroke-width: 0.8; }
.shb-door-glow  { fill: url(#shbWinGlow); opacity: calc(var(--shb-bld-light) * 0.6); }
.shb-canopy     { fill: #1a2332; stroke: rgba(255,255,255,0.08); stroke-width: 0.5; }

.shb-bat-body     { fill: #1f2937; stroke: #334155; stroke-width: 1; }
.shb-bat-screen   { fill: #0a0e18; stroke: #22d3ee; stroke-width: 0.5; }
.shb-bat-pct      { fill: #22d3ee; font-size: 10px; font-weight: 700; font-family: Inter, monospace; }
.shb-bat-bar-bg   { fill: rgba(255,255,255,0.08); }
.shb-bat-bar-fill { fill: var(--shb-battery-color); width: var(--shb-battery-fill, 82%); transition: width .8s var(--ease, ease), fill .6s var(--ease, ease); }
.shb-bat-lbl      { fill: rgba(255,255,255,0.55); font-size: 5.5px; letter-spacing: 1px; font-weight: 700; }

.shb-cam            { opacity: var(--shb-cam-cone-op); transition: opacity .6s var(--ease, ease); }
.shb-cam-body       { fill: #0f172a; stroke: #475569; stroke-width: 0.8; }
.shb-cam-led        { fill: #ef4444; animation: shbBlink 1.4s ease-in-out infinite; }
.shb-cam-pole       { stroke: #475569; stroke-width: 1.5; }
.shb-cam-cone       {  }
.shb-cam-scanline   {
  stroke: #22d3ee;
  stroke-width: 1;
  opacity: 0.7;
  stroke-dasharray: 3 4;
  animation: shbCamScanline 2.4s linear infinite;
}
@keyframes shbCamScanline {
  0%   { transform: translateY(-30px); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { transform: translateY(20px); opacity: 0; }
}

.shb-drone {
  transform: translate(0, 0);
  animation: shbDronePatrol 18s ease-in-out infinite, shbDroneBob 2.4s ease-in-out infinite;
}
@keyframes shbDronePatrol {
  0%   { transform: translate(280px, 280px); }
  25%  { transform: translate(680px, 240px); }
  50%  { transform: translate(820px, 310px); }
  75%  { transform: translate(440px, 270px); }
  100% { transform: translate(280px, 280px); }
}
@keyframes shbDroneBob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -4px; }
}
.shb-drone-prop   { fill: rgba(148, 163, 184, 0.5); animation: shbDronePropSpin 0.15s linear infinite; }
@keyframes shbDronePropSpin { from { transform: scaleX(1); } 50% { transform: scaleX(0.2); } to { transform: scaleX(1); } }
.shb-drone-blink  { animation: shbBlink 0.6s ease-in-out infinite; }
.shb-drone-beam   { opacity: 0.45; }

.shb-hvac-blades {
  transform-origin: center;
  transform-box: fill-box;
}

.shb-zones { opacity: var(--shb-zones-op, 1); transition: opacity .6s var(--ease, ease); }
.shb-zone-bg   { fill: rgba(15, 23, 42, 0.55); stroke: rgba(255,255,255,0.08); stroke-width: 0.5; }
.shb-zone-dot--cool { fill: #38bdf8; animation: shbBlink 3s ease-in-out infinite; }
.shb-zone-dot--warm { fill: #fb923c; animation: shbBlink 3.5s ease-in-out infinite; }
.shb-zone-txt  { fill: #e2e8f0; font-size: 7px; font-weight: 700; font-family: Inter, monospace; }

.shb-louver {
  fill: rgba(30, 41, 59, 0.85);
  stroke: rgba(255,255,255,0.1);
  stroke-width: 0.3;
  transform-origin: center;
  transform-box: fill-box;
  transform: scaleY(var(--shb-louver-y, 0.15));
  transition: transform .9s var(--ease, ease);
}
.shb-louvers { opacity: var(--shb-louvers-op, 1); transition: opacity .6s var(--ease, ease); }

.shb-inv-led--g { fill: #22c55e; animation: shbBlink 2s ease-in-out infinite; }
.shb-inv-led--y { fill: #fbbf24; animation: shbBlink 1.3s ease-in-out infinite; }

.shb-truck-cargo   { fill: #e2e8f0; stroke: #94a3b8; stroke-width: 0.6; }
.shb-truck-cab     { fill: #1e3a8a; }
.shb-truck-cab-win { fill: rgba(186, 230, 253, 0.55); }
.shb-truck-line    { stroke: rgba(0,0,0,0.15); stroke-width: 0.5; }
.shb-truck-shadow  { fill: rgba(0,0,0,0.45); }
.shb-truck-light   { fill: #fde68a; opacity: var(--shb-headlight-op); }
.shb-truck-logo    { fill: #1e3a8a; font-size: 4px; font-weight: 800; letter-spacing: 0.5px; font-family: Inter, sans-serif; }
.shb-truck {
  
  transform: translate(1200px, 528px);
  animation: shbTruckArrive 24s ease-in-out infinite;
  animation-play-state: var(--shb-truck-state, paused);
}
@keyframes shbTruckArrive {
  0%,  6%   { transform: translate(1200px, 528px); opacity: 1; }   
  20%       { transform: translate(960px, 528px); }                 
  32%       { transform: translate(960px, 528px); }                 
  52%       { transform: translate(540px, 528px); }                 
  62%       { transform: translate(540px, 528px); }                 
  78%       { transform: translate(1200px, 528px); opacity: 1; }    
  100%      { transform: translate(1200px, 528px); opacity: 0; }
}

.shb-dock-bay  { fill: rgba(15, 23, 42, 0.85); stroke: rgba(255,255,255,0.12); stroke-width: 0.5; }
.shb-dock-line { stroke: rgba(255,255,255,0.18); stroke-width: 0.4; stroke-dasharray: 2 2; }
.shb-dock-led  { fill: #22c55e; animation: shbBlink 1.6s ease-in-out infinite; opacity: var(--shb-dock-op, 1); }

.shb-person         { opacity: var(--shb-people-op, 1); transition: opacity .6s var(--ease, ease); }
.shb-person-head    { fill: #fde047; stroke: #92400e; stroke-width: 0.4; }
.shb-person-body    { fill: #2563eb; }
.shb-person-shadow  { fill: rgba(0,0,0,0.35); }
.shb-person-leg     { stroke: #0f172a; stroke-width: 2; stroke-linecap: round; transform-origin: top; transform-box: fill-box; }
.shb-person--1 {
  
  animation: shbWalk1 16s linear infinite;
  animation-play-state: var(--shb-people-state, running);
}
.shb-person--2 {
  animation: shbWalk2 20s linear infinite;
  animation-play-state: var(--shb-people-state, running);
}
.shb-person--3 .shb-person-leg { animation: shbStepIdle 1.4s ease-in-out infinite alternate; }
@keyframes shbWalk1 {
  0%   { transform: translate(360px, 470px); }
  100% { transform: translate(580px, 470px); }
}
@keyframes shbWalk2 {
  0%   { transform: translate(680px, 470px); }
  100% { transform: translate(440px, 470px); }
}
@keyframes shbStepIdle {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}

.shb-facebox {
  
  animation: shbWalk1 16s linear infinite;
  animation-play-state: var(--shb-people-state, running);
  opacity: var(--shb-people-op, 1);
  pointer-events: none;
}
.shb-facebox-frame path { stroke: #22d3ee; stroke-width: 1.4; fill: none; stroke-linecap: square; }
.shb-facebox-rect { fill: rgba(34, 211, 238, 0.05); stroke: rgba(34, 211, 238, 0.5); stroke-width: 0.5; stroke-dasharray: 2 2; animation: shbFaceBoxPulse 2s ease-in-out infinite; }
.shb-facebox-label { animation: shbFaceLabel 4s ease-in-out infinite; }
@keyframes shbFaceBoxPulse {
  0%, 100% { stroke-opacity: 0.5; }
  50%      { stroke-opacity: 1; }
}
@keyframes shbFaceLabel {
  0%, 8%   { opacity: 0; transform: translate(0, -36px); }
  14%, 92% { opacity: 1; transform: translate(0, -38px); }
  100%     { opacity: 0; }
}

.shb-flag-cloth {
  transform-origin: left;
  transform-box: fill-box;
  animation: shbFlagWave 2.8s ease-in-out infinite;
}
@keyframes shbFlagWave {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  50%      { transform: skewY(-4deg) scaleX(0.96); }
}

.shb-lot         { fill: #1a2030; }
.shb-park-lines line { stroke: rgba(255,255,255,0.2); stroke-width: 1.2; stroke-dasharray: 3 3; }
.shb-ev-spot rect { fill: rgba(34, 211, 238, 0.08); stroke: rgba(34, 211, 238, 0.45); stroke-width: 1; opacity: var(--shb-ev-spot-op); transition: opacity .6s var(--ease, ease); }
.shb-ev-spot text { fill: #22d3ee; font-size: 8px; font-weight: 700; letter-spacing: 1px; }

.shb-path-bulb { fill: #fde68a; opacity: var(--shb-path-glow); transition: opacity .8s var(--ease, ease); }
.shb-path-glow { fill: #fde68a; opacity: calc(var(--shb-path-glow) * 0.35); filter: blur(3px); transition: opacity .8s var(--ease, ease); }

.shb-ch-body { fill: #1f2937; stroke: rgba(34, 211, 238, 0.5); stroke-width: 0.8; }
.shb-ch-led  { fill: #22d3ee; animation: shbChargePulse 1.8s ease-in-out infinite; }
@keyframes shbChargePulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.shb-car-shadow         { fill: rgba(0,0,0,0.4); }
.shb-car-body           { fill: #1e3a8a; }
.shb-car-body--ev       { fill: #0f766e; }
.shb-car-body--arrival  { fill: #b91c1c; }
.shb-car-window         { fill: rgba(186, 230, 253, 0.55); }
.shb-car-wheel          { fill: #0f172a; }
.shb-car-cable          { stroke: #22d3ee; stroke-width: 1.5; fill: none; opacity: var(--shb-cable-op); }
.shb-car-headlight      { opacity: var(--shb-headlight-op); transition: opacity .6s var(--ease, ease); }
.shb-plate              { fill: #fff; stroke: #0f172a; stroke-width: 0.4; }

.shb-car-anim {
  
  transform: translate(-80px, 528px);
  opacity: 0;
  animation: shbCarArrive 24s var(--ease, ease) infinite;
  animation-play-state: var(--shb-car-anim-state);
}
@keyframes shbCarArrive {
  0%    { transform: translate(-80px, 528px); opacity: 0; }   
  3%    { transform: translate(-80px, 528px); opacity: 1; }   
  9%    { transform: translate(60px, 528px); }                
  15%   { transform: translate(60px, 528px); }                
  27%, 97% { transform: translate(660px, 528px); opacity: 1; } 
  100%  { transform: translate(-80px, 528px); opacity: 0; }   
}

.shb-car-depart {
  transform: translate(-80px, 528px);
  opacity: 0;
  animation: shbCarDepart 24s var(--ease, ease) infinite;
  animation-play-state: var(--shb-car-depart-state, paused);
}
@keyframes shbCarDepart {
  0%, 4%   { transform: translate(420px, 528px); opacity: 0; }  
  7%       { transform: translate(420px, 528px); opacity: 1; }  
  22%      { transform: translate(130px, 528px); }               
  30%      { transform: translate(130px, 528px); }               
  45%      { transform: translate(-80px, 528px); opacity: 1; }  
  48%, 100% { transform: translate(-80px, 528px); opacity: 0; } 
}

.shb-gate-base   { fill: #1f2937; stroke: #475569; stroke-width: 0.8; }
.shb-boom        { fill: #fbbf24; }
.shb-boom-stripes rect { fill: #b91c1c; }

.shb-boom-pivot--car {
  transform-origin: 0 0;
  transform-box: fill-box;
  transform: rotate(80deg); 
}

.shb-stage[data-scene="arrival"] .shb-boom-pivot--car {
  animation: shbCarGateCycle 24s ease-in-out infinite;
}

.shb-stage[data-scene="leave"] .shb-boom-pivot--car {
  animation: shbCarDepartGate 24s ease-in-out infinite;
}

.shb-gate-led--car { fill: #ef4444; }
.shb-stage[data-scene="arrival"] .shb-gate-led--car { animation: shbCarGateLed 24s ease-in-out infinite; }
.shb-stage[data-scene="leave"]   .shb-gate-led--car { animation: shbCarDepartLed 24s ease-in-out infinite; }

@keyframes shbCarGateCycle {
  
  0%,  12%  { transform: rotate(80deg); }   
  16%, 28%  { transform: rotate(0deg); }    
  32%, 100% { transform: rotate(80deg); }   
}
@keyframes shbCarGateLed {
  0%,  12%  { fill: #ef4444; }
  16%, 28%  { fill: #22c55e; }
  32%, 100% { fill: #ef4444; }
}
@keyframes shbCarDepartGate {
  
  0%,  20%  { transform: rotate(80deg); }   
  26%, 46%  { transform: rotate(0deg); }    
  50%, 100% { transform: rotate(80deg); }   
}
@keyframes shbCarDepartLed {
  0%,  20%  { fill: #ef4444; }
  26%, 46%  { fill: #22c55e; }
  50%, 100% { fill: #ef4444; }
}

.shb-boom-pivot--truck {
  transform-origin: 100% 50%;
  transform-box: fill-box;
  transform: rotate(0deg);
  animation: shbTruckGateCycle 24s ease-in-out infinite;
  animation-play-state: var(--shb-truck-state, paused);
}
@keyframes shbTruckGateCycle {
  
  0%,  14%  { transform: rotate(0deg); }      
  18%, 82%  { transform: rotate(80deg); }     
  86%, 100% { transform: rotate(0deg); }      
}
.shb-gate-led--truck { fill: #ef4444; animation: shbTruckGateLed 24s ease-in-out infinite; animation-play-state: var(--shb-truck-state, paused); }
@keyframes shbTruckGateLed {
  0%,  14%  { fill: #ef4444; }
  18%, 82%  { fill: #22c55e; }
  86%, 100% { fill: #ef4444; }
}

.shb-anpr           { opacity: var(--shb-anpr-op); transition: opacity .6s var(--ease, ease); }
.shb-anpr-pole      { stroke: #475569; stroke-width: 1.5; }
.shb-anpr-arm       { stroke: #475569; stroke-width: 1.5; }
.shb-anpr-body      { fill: #0f172a; stroke: #475569; stroke-width: 0.8; }
.shb-anpr-lens      { fill: #22d3ee; opacity: 0.85; }
.shb-anpr-led       { fill: #22c55e; animation: shbBlink 1.6s ease-in-out infinite; }
.shb-anpr-beam      { fill: rgba(34, 211, 238, 0.18); }
.shb-anpr-line      {
  stroke: #22d3ee;
  stroke-width: 1.2;
  opacity: 0.9;
  animation: shbAnprScan 24s ease-in-out infinite;
  animation-play-state: var(--shb-anpr-sweep-state);
}
@keyframes shbAnprScan {
  0%, 11%   { transform: translateY(0); opacity: 0; }
  13%       { transform: translateY(0); opacity: 1; }
  17%       { transform: translateY(60px); opacity: 1; }
  19%, 100% { transform: translateY(60px); opacity: 0; }
}

.shb-anpr-readout       { opacity: 0; animation: shbAnprReadout 24s ease-in-out infinite; animation-play-state: var(--shb-anpr-sweep-state); }
.shb-anpr-readout rect  { fill: rgba(34, 197, 94, 0.95); stroke: #16a34a; stroke-width: 0.6; }
.shb-anpr-readout text  { fill: #fff; font-size: 6px; font-weight: 700; letter-spacing: 1px; font-family: Inter, monospace; }
@keyframes shbAnprReadout {
  0%, 17%   { opacity: 0; transform: translateY(-4px); }
  20%, 30%  { opacity: 1; transform: translateY(0); }
  34%, 100% { opacity: 0; }
}

.shb-pole       { stroke: #475569; stroke-width: 1.6; }
.shb-pole-cap   { fill: #475569; }
.shb-pole-wire  { stroke: #475569; stroke-width: 0.8; fill: none; }

.shb-flows .sh-flow[data-flow="solar-bld"]      { stroke: #f59e0b; }
.shb-flows .sh-flow[data-flow="solar-battery"]  { stroke: #fbbf24; }
.shb-flows .sh-flow[data-flow="solar-ev"]       { stroke: #22d3ee; }
.shb-flows .sh-flow[data-flow="battery-bld"]    { stroke: #10b981; }
.shb-flows .sh-flow[data-flow="grid-bld"]       { stroke: #94a3b8; }
.shb-flow--data { stroke: #a78bfa !important; stroke-dasharray: 3 4; }

.shb-stage[data-scene="watch"] .shb-car--ev    { opacity: 0.6; }
.shb-stage[data-scene="watch"] .shb-car--parked:nth-of-type(2),
.shb-stage[data-scene="watch"] .shb-car--parked:nth-of-type(3) { opacity: 0.4; }
.shb-stage[data-scene="leave"] .shb-car--parked:nth-of-type(3) { opacity: 0.3; }

@keyframes imgShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.img-loading {
  background: linear-gradient(
    105deg,
    #f1f2f4 30%,
    #e4e6e8 50%,
    #f1f2f4 70%
  ) !important;
  background-size: 300% 100% !important;
  animation: imgShimmer 1.6s ease-in-out infinite;
}

