:root,
[data-theme="light"] {
  --bg-primary: #f7f5f0;
  --bg-secondary: #efeae0;
  --bg-photo-staging: #e8e9ec; /* light grayish — photo stage (not white/cream) */
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f5f1e8;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --border-subtle: rgba(15, 23, 42, 0.085);
  --border-highlight: rgba(15, 23, 42, 0.15);
  --border-gold: rgba(178, 130, 40, 0.38);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #576579;

  --gold-primary: #a8791e;
  --gold-light: #855c0f;
  --gold-text: #7d5712; /* AA-safe gold text on light surfaces */
  --gold-on-dark: #d8ae5e; /* bright gold text on always-dark chips/panels */
  --gold-grad-mid: #96690f; /* light gradient: all stops >= 3:1 (large text) */
  --gold-grad-tail: #a8791e;
  --gold-glow: rgba(168, 121, 30, 0.12);
  --crimson-brand: #e31e44;
  --emerald-nature: #76b82a;
  --emerald-bright: #15803d;
  --cyan-iot: #0284c7;
  --whatsapp-green: #22c55e;

  --shadow-lg: 0 24px 56px -14px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-card: 0 12px 30px -8px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 22px 46px -16px rgba(15, 23, 42, 0.22);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-base: 0.24s;
  --focus-ring: 0 0 0 3px rgba(168, 121, 30, 0.35);
}

[data-theme="dark"] {
  --bg-primary: #07090e;
  --bg-secondary: #0c1018;
  --bg-photo-staging: #818589; /* Twilight: mid gray so black switches read */
  --bg-surface: #111723;
  --bg-surface-elevated: #171f2f;
  --bg-glass: rgba(11, 15, 23, 0.82);

  --border-subtle: rgba(255, 255, 255, 0.075);
  --border-highlight: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(216, 174, 94, 0.36);

  --text-primary: #f8fafc;
  --text-secondary: #9ba8be;
  --text-muted: #8b97ab;

  --gold-primary: #d8ae5e;
  --gold-light: #f3d48b;
  --gold-text: #d8ae5e;
  --gold-on-dark: #f3d48b;
  --gold-grad-mid: #d8ae5e;
  --gold-grad-tail: #e59934;
  --gold-glow: rgba(216, 174, 94, 0.16);
  --crimson-brand: #e31e44;
  --emerald-nature: #76b82a;
  --emerald-bright: #34d399;
  --cyan-iot: #38bdf8;
  --whatsapp-green: #22c55e;

  --shadow-lg: 0 28px 68px -16px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-card: 0 16px 38px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-hover: 0 26px 56px -18px rgba(0, 0, 0, 0.85);
  --focus-ring: 0 0 0 3px rgba(216, 174, 94, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Subtle Architectural Grid Background */
.bg-architectural-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 25%, transparent 80%);
}

[data-theme="light"] .bg-architectural-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(216, 174, 94, 0.32);
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

.img-failed {
  opacity: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

.section-pad {
  padding: clamp(64px, 8vw, 112px) 0;
}

.text-center {
  text-align: center;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-grad-mid) 55%, var(--gold-grad-tail) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-emerald {
  color: var(--emerald-bright);
}

/* ==========================================================================
   TOP UTILITY BAR & STICKY HEADER
   ========================================================================== */
.top-utility-bar {
  position: relative;
  z-index: 101;
  background: #040609;
  color: #94a3b8;
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 0;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-badges,
.utility-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #cbd5e1;
}

.utility-pill svg {
  color: var(--gold-primary);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green {
  background: var(--emerald-nature);
  box-shadow: 0 0 8px var(--emerald-nature);
}

.utility-divider {
  opacity: 0.2;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 500;
}

.utility-link:hover {
  color: var(--gold-primary);
}

.utility-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 600;
}

.utility-whatsapp:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.45);
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.45);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Official logo container — crisp on light and dark surfaces alike */
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  flex-shrink: 0;
}

.brand-mark img {
  height: 44px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-gnext,
.brand-g {
  color: var(--crimson-brand);
}

.brand-sub {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--gold-text);
  letter-spacing: 0.1em;
}

.brand-tagline {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-origin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: 999px;
}

[data-theme="light"] .main-nav {
  background: rgba(15, 23, 42, 0.03);
}

.nav-link {
  padding: 7px 13px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--gold-glow);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), inset 0 0 0 1px var(--border-gold);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 11px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mobile-menu-btn:hover {
  border-color: var(--border-gold);
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  display: block;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-cta-short { display: none; }

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ebd08c 0%, #c8963e 100%);
  color: #07090e;
  box-shadow: 0 8px 24px -4px rgba(216, 174, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(216, 174, 94, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--gold-text);
  border-color: var(--border-gold);
  background: var(--gold-glow);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px -4px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(34, 197, 94, 0.5);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.028em;
}

.section-subtitle {
  font-size: clamp(0.97rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
}

/* ==========================================================================
   HERO + INTERACTIVE LIVE PICTORIAL ROOM SIMULATOR
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 52px 0 96px;
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  top: -150px;
  right: 5%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 174, 94, 0.13) 0%, rgba(56, 189, 248, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 46px);
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  color: var(--gold-text);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-nature);
  box-shadow: 0 0 0 0 rgba(118, 184, 42, 0.7);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(118, 184, 42, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(118, 184, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(118, 184, 42, 0); }
}

.hero-title {
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-lead {
  font-size: clamp(0.97rem, 1.1vw, 1.06rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Unified Architectural Differentiators Dock (Clean, Organized 2x2 Matrix) */
.hero-features-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hfd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: background 0.2s ease;
}

.hfd-item:nth-child(odd) {
  border-right: 1px solid var(--border-subtle);
}

.hfd-item:nth-child(-n+2) {
  border-bottom: 1px solid var(--border-subtle);
}

.hfd-item:hover {
  background: var(--bg-surface-elevated);
}

.hfd-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hv-gold { background: rgba(216, 174, 94, 0.14); color: var(--gold-text); }
.hv-cyan { background: rgba(56, 189, 248, 0.14); color: var(--cyan-iot); }
.hv-green { background: rgba(118, 184, 42, 0.14); color: var(--emerald-nature); }
.hv-crimson { background: rgba(227, 30, 68, 0.14); color: var(--crimson-brand); }

.hfd-text {
  min-width: 0;
}

.hfd-text strong {
  display: block;
  font-size: 0.89rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.hfd-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Interactive Room Simulator Card (Generous Showcase Scale) */
.simulator-card {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
}

.sim-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--emerald-bright);
  letter-spacing: 0.09em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  animation: pulseRing 1.8s infinite;
}

.sim-room-title {
  font-size: 0.90rem;
  font-weight: 700;
  margin-top: 2px;
  color: var(--text-primary);
}

.sim-telemetry {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.70rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.telemetry-chip b {
  font-weight: 600;
  color: var(--text-primary);
}

/* Simulator Viewport (Rich Architectural Aspect Ratio) */
.sim-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #04060a;
  user-select: none;
}

.sim-room-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.sim-img-base {
  z-index: 1;
  transition: opacity 0.35s ease;
}

.sim-img-lit {
  z-index: 2;
  opacity: 0.92;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Architectural Shading HUD Overlay (Top Right of Window) */
.sim-window-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 198px;
  background: rgba(7, 10, 16, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  padding: 8px 11px;
  color: #f8fafc;
  z-index: 4;
  pointer-events: none;
}

.swh-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.69rem;
  margin-bottom: 4px;
}

.swh-row:last-of-type {
  margin-bottom: 0;
}

.swh-label {
  color: #94a3b8;
  font-weight: 500;
}

.swh-val {
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold-on-dark);
  font-size: 0.68rem;
}

.swh-mosquito-pill {
  display: none;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.64rem;
  font-weight: 600;
  color: #4ade80;
}

.swh-mosquito-pill.active {
  display: flex;
}

/* Pictorial Hotspots (Refined Architectural Glass Nodes) */
.room-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(8, 11, 18, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.room-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: var(--gold-primary);
  background: rgba(12, 16, 26, 0.94);
}

.room-hotspot.hotspot-active {
  border-color: rgba(216, 174, 94, 0.78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 2.5px rgba(216, 174, 94, 0.16);
}

.hs-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.hs-icon svg {
  width: 13px;
  height: 13px;
}

.room-hotspot.hotspot-active .hs-icon {
  background: linear-gradient(135deg, rgba(216, 174, 94, 0.35), rgba(216, 174, 94, 0.16));
  color: var(--gold-on-dark);
}

.hs-fan-spin svg {
  animation: spinFan 1.8s linear infinite;
}

@keyframes spinFan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hs-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.hs-label strong {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hs-label small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: #94a3b8;
}

/* Voice Toast inside Viewport */
.voice-feedback-toast {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #f8fafc;
  padding: 7px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 6;
  white-space: nowrap;
}

.voice-feedback-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.2px;
}

.voice-wave span {
  width: 2.2px;
  height: 10px;
  background: var(--cyan-iot);
  border-radius: 2px;
  animation: waveBounce 0.8s ease-in-out infinite;
}

.voice-wave span:nth-child(2) { animation-delay: 0.15s; height: 14px; }
.voice-wave span:nth-child(3) { animation-delay: 0.3s; height: 9px; }
.voice-wave span:nth-child(4) { animation-delay: 0.45s; height: 13px; }

@keyframes waveBounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1.15); }
}

/* Simulator Controls Panel */
.sim-controls-panel {
  padding: 13px 18px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Direct Photo Instance Matrix (Collision-Proof Balanced 2x2 and 2-Row Alignment) */
.sim-direct-matrix {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sdm-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sdm-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#lightInstancePills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

#curtainInstancePills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.sdm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  width: 100%;
}

.sdm-pill svg {
  flex-shrink: 0;
}

.sdm-pill:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.sdm-pill.active {
  background: var(--gold-glow);
  color: var(--gold-text);
  border-color: var(--gold-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-warm {
  background: #f5b95f;
  box-shadow: 0 0 6px rgba(245, 185, 95, 0.8);
}

.dot-pink {
  background: #f472b6;
  box-shadow: 0 0 6px rgba(244, 114, 182, 0.85);
}

.dot-cinema {
  background: #6366f1;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.85);
}

.dot-off {
  background: #334155;
  border: 1px solid #64748b;
}

.sim-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-control-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--gold-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sim-control-hint {
  font-size: 0.69rem;
  color: var(--text-muted);
}

.scene-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 6px;
}

.scene-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 8px;
  border-radius: 9px;
  font-size: 0.70rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.scene-btn:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.scene-btn.active {
  background: var(--gold-glow);
  color: var(--gold-text);
  border-color: var(--gold-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sim-sliders-row {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  gap: 14px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.sim-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.70rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.sim-slider-group label strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
  font-size: 0.70rem;
}

/* Custom Range Sliders */
.sim-slider-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  outline: none;
  cursor: pointer;
}

.sim-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid #07090e;
  box-shadow: 0 0 10px rgba(216, 174, 94, 0.65);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sim-slider-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.sim-voice-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.voice-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan-iot);
}

.voice-chip {
  background: rgba(56, 189, 248, 0.08);
  color: var(--cyan-iot);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-chip:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--cyan-iot);
  transform: translateY(-1px);
}

/* ==========================================================================
   AUDIENCE PERSONA SWITCHER
   ========================================================================== */
.audience-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.persona-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.persona-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-card);
}

.persona-tab:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.persona-tab.active {
  background: linear-gradient(145deg, var(--bg-surface-elevated), var(--bg-surface));
  border-color: var(--gold-primary);
  color: var(--text-primary);
  box-shadow: 0 14px 32px -8px rgba(216, 174, 94, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pt-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: all 0.22s ease;
}

.persona-tab.active .pt-icon-box {
  background: var(--gold-glow);
  border-color: var(--border-gold);
  color: var(--gold-text);
}

.pt-text strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.pt-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.persona-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.persona-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  align-items: center;
}

.persona-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--emerald-bright);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.persona-main-info h3 {
  font-size: 1.58rem;
  margin-bottom: 14px;
}

.persona-main-info p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.96rem;
}

.persona-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.persona-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 0.91rem;
  color: var(--text-secondary);
}

.persona-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.persona-checklist li strong {
  color: var(--text-primary);
}

.persona-cta-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.persona-metrics-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 20px 24px;
  border-radius: var(--radius-md);
}

.pm-stat-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pm-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold-text);
}

.pm-unit {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.pm-stat-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.pm-highlight {
  border-color: var(--border-gold);
  background: var(--gold-glow);
}

.pm-Quote {
  font-style: italic;
  font-size: 0.89rem;
  color: var(--text-primary);
}

/* ==========================================================================
   CAD-GRADE INTERACTIVE TOUCH SWITCH SANDBOX & HARDWARE CATALOG
   ========================================================================== */
.interactive-switch-showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  box-sizing: border-box;
}

.iss-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  margin-bottom: 8px;
}

.iss-description h3 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.iss-description p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.iss-live-status {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iss-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.iss-status-row span {
  color: var(--text-secondary);
}

.iss-status-row strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.79rem;
}

.iss-status-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Architectural Stone Mounting Stage + Obsidian Glass Switch Plate */
.virtual-switch-stage {
  padding: 24px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 232, 185, 0.16), transparent 70%),
    linear-gradient(145deg, #2b2722 0%, #1c1916 100%);
  border: 1px solid rgba(216, 174, 94, 0.25);
  box-shadow: inset 0 2px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Real Hardware Photography View */
.vs-photo-view {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vs-photo-frame {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(216, 174, 94, 0.42);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.75), 0 0 0 4px #0a0c0f;
  background: var(--bg-photo-staging);
  aspect-ratio: 16 / 10;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-photo-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #000;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.3),
    0 3px 6px rgba(15, 23, 42, 0.18);
  transition: opacity 0.25s ease, box-shadow 0.3s ease;
}

.vs-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold-on-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* Hardware Product Cards */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
}

/* Desktop: balanced 3-up catalogue with the sensor card as a wide feature */
@media (min-width: 1161px) {
  .hardware-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hardware-grid .hw-card:nth-child(5) {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
  }

  .hardware-grid .hw-card:nth-child(5) .hw-img-wrap {
    flex: 1 1 50%;
    aspect-ratio: auto;
    min-height: 340px;
    border-bottom: 0;
    border-right: 1px solid var(--border-subtle);
  }

  .hardware-grid .hw-card:nth-child(5) .hw-body {
    flex: 1 1 50%;
    justify-content: center;
  }
}

.hw-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hw-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
}

.hw-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-photo-staging);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 7%, 34px);
  border-bottom: 1px solid var(--border-subtle);
}

.hw-img-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #000;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.3),
    0 3px 6px rgba(15, 23, 42, 0.18);
  transition: transform 0.5s var(--ease-out), opacity 0.25s ease,
    box-shadow 0.3s ease;
}

.hw-card:hover .hw-img-wrap img {
  transform: scale(1.045);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.36), 0 5px 10px rgba(15, 23, 42, 0.22);
}

/* Finish Selector for Dual Finish switches */
.hw-finish-bar {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 174, 94, 0.35);
  padding: 3px 6px;
  border-radius: 999px;
  z-index: 2;
}

.hw-finish-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hw-finish-btn:hover {
  color: var(--text-primary);
}

.hw-finish-btn.active {
  background: rgba(216, 174, 94, 0.22);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.hw-color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hw-color-dot.dot-black {
  background: #11141a;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hw-color-dot.dot-gold {
  background: linear-gradient(135deg, #d8ae5e 0%, #997327 100%);
  border: 1px solid rgba(255, 235, 195, 0.5);
}

.hw-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 9, 14, 0.84);
  backdrop-filter: blur(10px);
  color: var(--gold-on-dark);
  border: 1px solid var(--border-gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.hw-tag-green {
  color: var(--emerald-bright);
  border-color: rgba(52, 211, 153, 0.4);
}

.hw-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hw-body h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.hw-or {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hw-body p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.hw-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex: 1;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.hw-specs li strong {
  color: var(--text-primary);
}

.hw-inquire-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.hw-inquire-link:hover {
  gap: 10px;
  color: var(--gold-light);
}

/* ==========================================================================
   ARCHITECTURAL SHADING SECTION
   ========================================================================== */
.shading-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.shading-hero-banner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.shading-banner-content p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 22px;
}

.shading-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sh-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.shading-banner-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.shading-banner-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9.4;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.shading-banner-media:hover img {
  transform: scale(1.035);
}

.shading-caption-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(7, 9, 14, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #f8fafc;
}

.shading-caption-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-on-dark);
}

.shading-caption-badge span {
  font-size: 0.76rem;
  color: #cbd5e1;
}

.shading-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shade-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.shade-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
}

.shade-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-text);
  margin-bottom: 10px;
}

.shade-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.shade-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.shade-ideal {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--emerald-bright);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   COMPLETE ECOSYSTEM BENTO
   ========================================================================== */
.solutions-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
}

.bento-card:hover {
  border-color: var(--border-gold);
}

.bento-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
}

.bento-wide {
  grid-column: span 2;
}

.bento-media {
  overflow: hidden;
  background: #090c12;
}

.bento-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bento-card:hover .bento-media img {
  transform: scale(1.04);
}

.bento-media-sm img {
  height: 230px;
  min-height: 230px;
}

.bento-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.bento-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.bento-content h3 {
  font-size: 1.42rem;
  margin-bottom: 12px;
}

.bento-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bento-tags span {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bento-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.bento-feature-list li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.bento-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.bento-feature-list li strong {
  color: var(--text-primary);
}

.bento-iot-inner {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: center;
}

.iot-verticals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.iot-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 15px 16px;
  border-radius: var(--radius-sm);
}

.iot-pill strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 4px;
  color: var(--gold-light);
}

.iot-pill span {
  font-size: 0.77rem;
  color: var(--text-secondary);
}

.emc-body strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 2px;
}

.emc-body span {
  display: block;
  font-size: 0.73rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   DEMO VIDEOS GALLERY
   ========================================================================== */
.video-showcase-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.video-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-gold);
}

.video-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  flex-wrap: wrap;
}

.video-active-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-text);
}

.video-stage-meta h3 {
  font-size: 1.1rem;
  margin-top: 3px;
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.vp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vp-item:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.vp-item.active {
  background: var(--gold-glow);
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

.vp-play-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vp-item.active .vp-play-icon {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #07090e;
}

.vp-info strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.vp-info span {
  font-size: 0.73rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PRODUCT INSTALLATION GALLERY + LIGHTBOX
   ========================================================================== */
.gallery-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-photo-staging);
  cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  outline: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  color: #fff;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.88), rgba(7, 9, 14, 0));
  pointer-events: none;
}

/* Gallery on small screens — explicit columns (no modern min()/auto-fill
   syntax), tighter padding and a shorter scroll cap so phones always get a
   clearly visible 2-up grid. */
@media (max-width: 900px) {
  .gallery-panel {
    padding: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .gallery-panel {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .gallery-grid {
    gap: 10px;
    max-height: 65vh;
    padding-right: 0;
  }

  .gallery-item {
    border-radius: var(--radius-sm);
  }

  .gallery-caption {
    font-size: 0.66rem;
    padding: 20px 8px 8px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    gap: 8px;
  }
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(7, 9, 14, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lb-figure {
  margin: 0;
  max-width: min(1080px, calc(100vw - 180px));
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}

.lb-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.94rem;
  color: rgba(247, 245, 240, 0.9);
}

.lb-nav {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lb-nav:hover,
.lb-nav:focus-visible {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #07090e;
  outline: none;
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f5f0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lb-close:hover,
.lb-close:focus-visible {
  background: var(--crimson-brand);
  border-color: var(--crimson-brand);
  outline: none;
}

.lb-counter {
  position: absolute;
  top: 26px;
  left: 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(247, 245, 240, 0.75);
}

@media (max-width: 640px) {
  .lightbox {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .lb-figure {
    max-width: calc(100vw - 32px);
  }

  .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lb-prev {
    left: 10px;
  }

  .lb-next {
    right: 10px;
  }
}

/* ==========================================================================
   COMPARISON TABLE + FAQS
   ========================================================================== */
.comparison-block {
  margin-bottom: 88px;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 0.94rem;
  background: var(--bg-secondary);
}

.comparison-table .highlight-col {
  background: rgba(216, 174, 94, 0.06);
  border-left: 1px solid var(--border-gold);
  border-right: 1px solid var(--border-gold);
}

.check-yes {
  color: var(--emerald-bright);
  font-weight: 600;
}

.cell-muted {
  color: var(--text-muted);
}

.faq-filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.faq-filter-btn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-filter-btn:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.faq-filter-btn.active {
  background: var(--gold-primary);
  color: #07090e;
  border-color: var(--gold-primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--border-gold);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.faq-toggle-icon {
  color: var(--gold-text);
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease-out);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.faq-answer > p {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 22px;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer > p {
  padding-bottom: 18px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.contact-lead {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.96rem;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.c-info-card {
  display: flex;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.c-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-info-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.c-info-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.c-info-card small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.social-links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.social-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-text);
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  font-size: 1.42rem;
  margin-bottom: 6px;
}

.contact-form-card > p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.form-submit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.form-status-msg {
  font-size: 0.82rem;
  color: var(--emerald-bright);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER & FLOATING CONCIERGE
   ========================================================================== */
.site-footer {
  background: #040609;
  color: #94a3b8;
  padding: 68px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-desc {
  font-size: 0.94rem;
  margin: 16px 0;
  line-height: 1.6;
}

.make-in-india-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(118, 184, 42, 0.12);
  color: #a3e635;
  border: 1px solid rgba(118, 184, 42, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
}

.footer-links-col h4 {
  color: #f8fafc;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.footer-links-col a:hover {
  color: var(--gold-primary);
}

.footer-address,
.footer-contact-lines {
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.floating-whatsapp-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.83rem;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(21, 128, 61, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  /* visibility is delayed so the fade can finish before the element is
     removed from layout, the tab order and the accessibility tree */
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px);
}

/* The button is pinned to bottom-right — the exact spot occupied by the
   right-aligned footer link row (Photo Credits / Privacy Policy / Contact
   Us) once the page is scrolled to the end, which made those links
   unclickable.  Retire the button while that row is on screen; the footer
   already shows the full WhatsApp number, so nothing is lost.
   Toggled by an IntersectionObserver in app.js (initScrollBehaviors). */
.floating-whatsapp-btn.is-retired {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.94);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE FORM FACTORS)
   ========================================================================== */

/* Tablet Landscape & Compact Desktop (<= 1160px) */
@media (max-width: 1160px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-section {
    padding: 36px 0 72px;
  }

  .hero-grid,
  .persona-grid,
  .interactive-switch-showcase,
  .shading-hero-banner,
  .video-showcase-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .persona-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-large,
  .bento-iot-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hide-tablet {
    display: none;
  }
}

/* Tablet Portrait & Large Phones (<= 820px) */
@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 14px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }

  .main-nav a {
    padding: 10px 14px;
    font-size: 0.92rem;
    border-radius: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .shading-cards-grid,
  .faq-grid,
  .sim-direct-matrix,
  .sim-sliders-row {
    grid-template-columns: 1fr;
  }

  .solutions-bento {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-wide {
    grid-column: span 1;
  }

  .persona-panel,
  .interactive-switch-showcase,
  .contact-form-card {
    padding: 24px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .virtual-switch-stage {
    padding: 20px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .comparison-table {
    min-width: 640px;
  }
}

/* Mobile Form Factor (<= 640px) */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding: 0 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-padding {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-subtitle {
    font-size: 0.90rem;
  }

  .hero-section {
    padding: 20px 0 48px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .hero-features-dock,
  .hardware-grid,
  .persona-tabs,
  .form-row-2,
  .form-submit-row,
  .footer-grid,
  .iot-verticals {
    grid-template-columns: 1fr;
  }

  .hfd-item:nth-child(odd) {
    border-right: none;
  }

  .hfd-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 11px 13px;
  }

  .hfd-item:last-child {
    border-bottom: none;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Compact Top Utility Bar */
  .top-utility-bar {
    padding: 6px 0;
  }

  .utility-inner {
    justify-content: center;
    gap: 6px;
  }

  .utility-badges {
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .utility-pill {
    font-size: 0.69rem;
    gap: 5px;
  }

  .utility-contacts {
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  /* Optimize Interactive Room Simulator for Mobile Touch */
  .sim-header {
    padding: 10px 12px;
  }

  .sim-room-title {
    font-size: 0.84rem;
  }

  .sim-telemetry {
    gap: 4px;
  }

  .telemetry-chip {
    font-size: 0.64rem;
    padding: 3px 7px;
  }

  .sim-viewport {
    aspect-ratio: 16 / 10;
  }

  .sim-window-hud {
    top: 6px;
    right: 6px;
    width: auto;
    min-width: 138px;
    padding: 5px 8px;
    border-radius: 8px;
  }

  .swh-row {
    font-size: 0.66rem;
    gap: 6px;
    margin-bottom: 3px;
  }

  .swh-val {
    font-size: 0.66rem;
  }

  .room-hotspot {
    padding: 3px 7px 3px 4px;
    gap: 4px;
  }

  .hs-icon {
    width: 20px;
    height: 20px;
  }

  .hs-icon svg {
    width: 11px;
    height: 11px;
  }

  .hs-label strong {
    font-size: 0.66rem;
  }

  .hs-label small {
    font-size: 0.66rem;
  }

  .voice-feedback-toast {
    white-space: normal;
    text-align: center;
    width: 92%;
    max-width: 320px;
    font-size: 0.66rem;
    padding: 5px 10px;
    bottom: 8px;
  }

  .sim-controls-panel {
    padding: 11px 12px;
    gap: 8px;
  }

  .sim-direct-matrix {
    gap: 8px;
    padding-bottom: 8px;
  }

  #lightInstancePills,
  #curtainInstancePills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .sdm-pill {
    min-height: 36px;
    font-size: 0.68rem;
    padding: 6px 8px;
    gap: 6px;
  }

  .scene-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .scene-btn {
    min-height: 36px;
    font-size: 0.72rem;
    padding: 6px 10px;
  }/* Universal Responsive Container Box Sizing */
  .interactive-switch-showcase,
  .persona-panel,
  .contact-form-card,
  .bento-content,
  .bento-iot-inner,
  .video-showcase-layout,
  .shade-card,
  .hw-card {
    padding: 16px 12px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Horizontal Sizing for Virtual Touch Switchboard */
  :root {
    --vs-scale: clamp(0.42, calc((100vw - 64px) / 540), 1);
  }

  .virtual-switch-stage {
    padding: 14px 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
  }

  /* Hardware, Shading, and Media Elements */
  .shading-banner-media img {
    height: 220px;
  }

  .shading-caption-badge {
    padding: 8px 12px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .shading-caption-badge strong {
    font-size: 0.78rem;
  }

  .shading-caption-badge span {
    font-size: 0.68rem;
  }

  .sh-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  /* Video & Playlist */
  .video-showcase-layout {
    padding: 10px;
  }

  .video-playlist {
    max-height: 260px;
  }

  .vp-item {
    padding: 8px 10px;
    font-size: 0.78rem;
    gap: 8px;
  }

  .vp-play-icon {
    width: 26px;
    height: 26px;
  }

  /* Form Elements - Prevent iOS Zoom */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 10px 12px;
  }

  /* Responsive Table */
  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Floating WhatsApp Concierge */
  .floating-whatsapp-btn {
    bottom: 12px;
    right: 12px;
    padding: 8px 13px;
    font-size: 0.74rem;
    gap: 6px;
  }

  .floating-whatsapp-btn svg {
    width: 17px;
    height: 17px;
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hide-mobile {
    display: none;
  }
}

/* Extra Small Mobile (<= 420px: iPhone SE, Galaxy S20, Small Handsets) */
@media (max-width: 420px) {
  .container {
    padding: 0 10px;
  }

  .section-padding {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 1.62rem;
  }

  .interactive-switch-showcase,
  .persona-panel,
  .contact-form-card,
  .bento-content,
  .bento-iot-inner,
  .video-showcase-layout,
  .shade-card,
  .hw-card {
    padding: 12px 8px;
    border-radius: var(--radius-sm);
  }

  /* Horizontal Sizing for Virtual Touch Switchboard */
  :root {
    --vs-scale: clamp(0.40, calc((100vw - 44px) / 540), 1);
  }

  .virtual-switch-stage {
    padding: 10px 6px;
  }

  .sim-header {
    padding: 8px 8px;
    gap: 6px;
  }

  .sim-controls-panel {
    padding: 9px 8px;
  }

  .sdm-pill {
    padding: 5px 6px;
    font-size: 0.66rem;
    gap: 4px;
    min-height: 34px;
  }

  .sdm-label {
    font-size: 0.66rem;
  }

  .scene-btn {
    font-size: 0.66rem;
    padding: 5px 6px;
    min-height: 34px;
  }

  .persona-tab {
    padding: 8px 8px;
  }

  .pt-role {
    font-size: 0.74rem;
  }

  .pt-tagline {
    font-size: 0.64rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-mark img {
    height: 34px;
  }

  .brand-tagline {
    font-size: 0.66rem;
  }

  .theme-toggle-btn {
    padding: 5px 9px;
    font-size: 0.70rem;
    gap: 4px;
  }
}

/* Micro Devices (<= 340px: Folded Cover Screens, iPhone 5/SE 1st gen) */
@media (max-width: 340px) {
  .container {
    padding: 0 6px;
  }

  .interactive-switch-showcase,
  .persona-panel,
  .contact-form-card,
  .bento-content,
  .bento-iot-inner,
  .video-showcase-layout,
  .shade-card,
  .hw-body {
    padding: 10px 6px;
  }

  /* Horizontal Sizing for Virtual Touch Switchboard */
  :root {
    --vs-scale: clamp(0.36, calc((100vw - 20px) / 540), 1);
  }

  .virtual-switch-stage {
    padding: 6px 4px;
  }

  #lightInstancePills,
  #curtainInstancePills {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODERN REFRESH LAYER — NEW COMPONENTS, MOTION & RESPONSIVE POLISH
   (kept last so it wins over earlier rules)
   ========================================================================== */

/* Accessibility: skip link */
.skip-link {
  position: fixed;
  top: -64px;
  left: 18px;
  z-index: 300;
  background: var(--gold-primary);
  color: #07090e;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 11px 18px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.5);
  transition: top 0.26s var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline-offset: -3px;
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hardware-grid .hw-card:nth-child(2),
.shading-cards-grid .shade-card:nth-child(2),
.persona-tabs .persona-tab:nth-child(2) { transition-delay: 0.07s; }

.hardware-grid .hw-card:nth-child(3),
.shading-cards-grid .shade-card:nth-child(3),
.persona-tabs .persona-tab:nth-child(3) { transition-delay: 0.14s; }

.hardware-grid .hw-card:nth-child(4),
.shading-cards-grid .shade-card:nth-child(4),
.persona-tabs .persona-tab:nth-child(4) { transition-delay: 0.21s; }

.hardware-grid .hw-card:nth-child(5),
.shading-cards-grid .shade-card:nth-child(5) { transition-delay: 0.28s; }

.shading-cards-grid .shade-card:nth-child(6) { transition-delay: 0.35s; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 98;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--gold-glow);
  color: var(--gold-text);
  transform: translateY(-3px);
}

/* Click-to-load video facade */
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0b0f16;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), opacity 0.3s ease;
}

.video-facade:hover img {
  transform: scale(1.045);
}

.vf-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 9, 0.18) 0%, rgba(4, 6, 9, 0.74) 100%);
}

.vf-play {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #07090e;
  background: linear-gradient(135deg, #ebd08c 0%, #c8963e 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s var(--ease-out);
}

.video-facade:hover .vf-play {
  transform: scale(1.08);
}

.vf-play::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(235, 208, 140, 0.6);
  animation: vfPulse 2.6s ease-out infinite;
}

@keyframes vfPulse {
  0%   { transform: scale(0.92); opacity: 0.9; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.vf-note {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #e2e8f0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.video-iframe-container iframe {
  position: absolute;
  inset: 0;
}

/* Comparison table scroll hint + row polish */
.table-scroll-hint {
  display: none;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}

.comparison-table tbody tr {
  transition: background 0.2s ease;
}

.comparison-table tbody tr:hover td {
  background: var(--gold-glow);
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Product card CTA reads as a real button */
.hw-inquire-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 11px 14px;
  transition: all 0.24s var(--ease-out);
}

.hw-inquire-link:hover {
  background: var(--gold-glow);
  border-color: var(--border-gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* Unified, calmer card hover elevation */
.hw-card:hover,
.shade-card:hover,
.bento-card:hover,
.c-info-card:hover,
.pm-stat-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Form focus states */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: var(--focus-ring);
}

.form-group input:user-invalid,
.form-group textarea:user-invalid {
  border-color: var(--crimson-brand);
}

/* Button press feedback */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Finish / photo switcher legibility */
.hw-finish-bar {
  padding: 5px 8px;
  gap: 6px;
}

.hw-finish-btn {
  font-size: 0.66rem;
  padding: 4px 9px;
  min-height: 26px;
}

/* Footer brand colours on the near-black footer */
.site-footer .brand-tagline {
  color: #e2e8f0;
  font-size: 0.74rem;
  text-transform: none;
  letter-spacing: 0;
}

.site-footer .brand-mark img {
  height: 48px;
}

.site-footer .brand-mark {
  height: 52px;
}

/* Subtle, modern scrollbars */
.video-playlist::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.video-playlist::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 99px;
}

.video-playlist::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
  background: transparent;
}

/* ==========================================================================
   RESPONSIVE POLISH (overrides earlier breakpoints)
   ========================================================================== */

@media (max-width: 1160px) {
  .table-scroll-hint {
    display: block;
  }

  .hero-grid {
    gap: 40px;
  }

  .simulator-card {
    max-width: 720px;
  }
}

@media (max-width: 900px) {
  /* Collapse the inline 8-link nav into the hamburger dropdown before it starts
     overlapping the brand and clipping the header actions at ~834px tablets */
  .main-nav,
  [data-theme="light"] .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    max-height: min(72vh, 560px);
    overflow-y: auto;
    z-index: 100;
    transform-origin: top center;
    animation: menuDrop 0.26s var(--ease-out);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a.nav-link {
    padding: 13px 15px;
    font-size: 0.95rem;
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 10px;
  }

  .main-nav a.nav-link.active {
    background: var(--gold-glow);
    box-shadow: inset 0 0 0 1px var(--border-gold);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-container {
    height: 68px;
  }

  .table-scroll-hint {
    display: block;
  }

  .comparison-table {
    min-width: 680px;
  }
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-8px) scaleY(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  /* Mobile navigation: anchored dropdown panel with a drop-in animation */
  .main-nav,
  [data-theme="light"] .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    max-height: min(72vh, 560px);
    overflow-y: auto;
    transform-origin: top center;
    animation: menuDrop 0.26s var(--ease-out);
  }

  @keyframes menuDrop {
    from { opacity: 0; transform: translateY(-8px) scaleY(0.97); }
    to   { opacity: 1; transform: none; }
  }

  .main-nav a.nav-link {
    padding: 13px 15px;
    font-size: 0.95rem;
    min-height: 46px;
    display: flex;
    align-items: center;
    border-radius: 10px;
  }

  .main-nav a.nav-link.active {
    background: var(--gold-glow);
    box-shadow: inset 0 0 0 1px var(--border-gold);
  }

  .nav-container {
    height: 68px;
  }

  .brand-mark img {
    height: 38px;
  }

  .brand-tagline {
    font-size: 0.72rem;
    white-space: normal;
  }

  .back-to-top {
    right: 16px;
    bottom: 78px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 640px) {
  /* Header brand: logo mark only — the 3-line tagline crowds the hamburger + CTA */
  .site-header .brand-text {
    display: none;
  }

  /* Simulator header stacks so telemetry never crowds the title */
  .sim-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sim-telemetry {
    width: 100%;
  }

  /* Pictorial hotspots become compact touch targets (labels stay for screen readers) */
  .room-hotspot {
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 50%;
  }

  .room-hotspot .hs-label {
    display: none;
  }

  .room-hotspot:hover,
  .room-hotspot:active {
    transform: translate(-50%, -50%) scale(1.08);
  }

  .sim-window-hud {
    /* Compact enough to clear the ceiling-fan hotspot at left:46% */
    max-width: 44%;
    top: 8px;
    right: 8px;
    padding: 6px 8px;
  }

  .swh-row {
    font-size: 0.66rem;
    margin-bottom: 3px;
    display: block;
  }

  .swh-label {
    display: block;
    font-size: 0.66rem;
  }

  .swh-val {
    display: block;
    font-size: 0.66rem;
  }

  /* Spec/status rows stack so values read as one clean column on narrow screens */
  .iss-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  /* Dangling "|" separators look broken once the badges wrap to two lines */
  .utility-divider {
    display: none;
  }

  .table-scroll-hint {
    display: block;
  }

  .nav-cta-full {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .vf-play {
    width: 60px;
    height: 60px;
  }

  .vf-note {
    font-size: 0.66rem;
    left: 12px;
    bottom: 10px;
  }

  .shading-banner-media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  /* Keep the floating actions clear of footer content */
  .site-footer {
    padding-bottom: 84px;
  }

  .back-to-top {
    bottom: 72px;
  }
  .sdm-pill,
  .scene-btn,
  .persona-tab,
  .faq-filter-btn {
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  .brand-mark img {
    height: 34px;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .brand-origin {
    font-size: 0.66rem;
  }

  .back-to-top {
    width: 38px;
    height: 38px;
    bottom: 68px;
    right: 12px;
  }

  .vf-play {
    width: 52px;
    height: 52px;
  }
}

/* Honour reduced-motion preferences everywhere */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   HEADER FIT-TO-ROW (DESKTOP)
   The 8-link pill + theme toggle + CTA fill the 1320px container on their own,
   so the tagline can never fit beside them at desktop widths — it used to
   overflow out of its flex box and run underneath the nav pill. The official
   wordmark logo carries the brand; the tagline stays on tablet/mobile where
   the nav collapses to the hamburger.
   ========================================================================== */
@media (min-width: 901px) {
  .site-header .brand-text {
    display: none;
  }

  .nav-link {
    padding: 6px 11px;
    font-size: 0.8rem;
  }
}

/* ============================================================================
   PRIVACY POLICY PAGE  (privacypolicy.html)
   Shares the design tokens and header/footer of index.html; adds a contents
   sidebar + long-form reading column.  Kept in one block at the end of the
   file so it is easy to find and remove.
   ========================================================================== */

.legal-hero {
  position: relative;
  padding: 44px 0 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--gold-text);
}

.breadcrumb [aria-current="page"] {
  color: var(--gold-text);
}

.legal-hero .section-title {
  margin-bottom: 18px;
}

.legal-lede {
  max-width: 74ch;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.legal-lede strong {
  color: var(--text-primary);
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--gold-text);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0;
}

.legal-updated span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
}

/* --- two-column body: contents sidebar + reading column ------------------ */

.legal-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
}

.legal-toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 14px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  align-items: baseline;
  font-size: 0.845rem;
  line-height: 1.42;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

.legal-toc a::before {
  content: counter(toc);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color var(--dur-base) var(--ease-out);
}

.legal-toc a:hover {
  background: var(--gold-glow);
  color: var(--gold-text);
}

.legal-toc a:hover::before {
  color: var(--gold-text);
}

/* --- reading column ------------------------------------------------------ */

.legal-content {
  min-width: 0;
  max-width: 78ch;
}

.legal-section {
  scroll-margin-top: 96px;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.32rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.legal-section h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 26px 0 10px;
}

.legal-section p,
.legal-section li {
  font-size: 0.965rem;
  line-height: 1.78;
  color: var(--text-secondary);
}

.legal-section p {
  margin-bottom: 15px;
}

.legal-section ul {
  margin: 0 0 18px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legal-section ul li::marker {
  color: var(--gold-primary);
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-section a:not(.btn) {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: var(--border-gold);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-base) var(--ease-out);
}

.legal-section a:not(.btn):hover {
  text-decoration-color: var(--gold-primary);
}

.legal-section code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--bg-photo-staging);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.5px 6px;
  color: var(--text-primary);
  /* Cookie/identifier names must never split mid-token — "_ga_<container>"
     breaking after the "<" leaves a lone ">" on its own line and looks
     broken.  Every token here is short (<= 16 chars), so nowrap cannot
     overflow even on a 320px column. */
  white-space: nowrap;
}

.legal-address {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0 4px;
}

.legal-address strong {
  color: var(--text-primary);
}

.legal-address a {
  color: var(--gold-text);
}

.legal-callout {
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 17px 21px;
  margin: 20px 0 !important;
}

.legal-callout strong {
  color: var(--gold-text);
}

/* --- closing note -------------------------------------------------------- */

.legal-endnote {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid var(--border-gold);
}

.legal-endnote p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.legal-endnote .btn {
  text-decoration: none;
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 2px 10px;
  }

  .legal-content {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 30px 0 28px;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .legal-toc {
    padding: 17px 15px;
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding-bottom: 26px;
    margin-bottom: 26px;
  }

  .legal-section ul {
    padding-left: 18px;
  }
}
