/* ============================================
   KANINIKA ENTERPRISE — Styles
   ============================================ */

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

:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --blue: #1d4ed8;
  --blue-light: #3b82f6;
  --blue-deep: #0c2d6b;
  --green: #059669;
  --green-light: #10b981;
  --gold: #d4a017;
  --gold-soft: #f59e0b;
  --dark: #0c2d6b;
  --dark-2: #1e3a8a;
  --gray: #5b6b8c;
  --gray-light: #f3f6fb;
  --white: #ffffff;
  --silver: #c5d0e0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(12, 45, 107, 0.10);
  --shadow-lg: 0 20px 60px rgba(12, 45, 107, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --paper: #f4efe6;
  --paper-2: #fbf8f2;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

header, section, footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(32px, 5vw, 64px);
  width: 100%;
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(220,38,38,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220,38,38,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: rgba(12, 45, 107,0.2);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 8px 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12, 45, 107,0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: none;
  padding: 8px 0;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(32px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
  flex-shrink: 0;
  min-width: 0;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.logo-name {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dark);
  line-height: 1.15;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.logo-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1;
}

.logo-specialty {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gray);
  line-height: 1.3;
  max-width: 22em;
  white-space: normal;
}

.logo-img-nav {
  height: 52px;
  width: 52px;
  flex-shrink: 0;
  transition: transform var(--transition);
  filter: drop-shadow(0 4px 10px rgba(12, 45, 107, 0.18));
}

.logo:hover .logo-img-nav {
  transform: scale(1.04);
}

.logo:hover .logo-name {
  opacity: 0.72;
}

.logo-img {
  display: block;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}

.logo-img-footer {
  height: 72px;
  width: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(12, 45, 107, 0.16));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-links a:hover::after,
.nav-active::after,
.nav-link-active::after {
  transform: scaleX(1);
}

.nav-active,
.nav-link-active {
  color: var(--dark) !important;
  font-weight: 600;
}

.nav-cta.nav-active::after,
.nav-cta.nav-link-active::after,
.nav-cta::after { display: none !important; }

.nav-cta {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}

.nav-cta:hover {
  background: var(--dark-2) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 45, 107,0.18);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1202;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
  display: block;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-close-item,
.nav-close,
.nav-overlay,
.nav-brand-item,
.nav-actions-item {
  display: none !important;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-inner {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 16px clamp(14px, 1.6vw, 24px) 8px;
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grid-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  background:
    linear-gradient(to top, rgba(241,245,249,0.95), transparent),
    repeating-linear-gradient(90deg, rgba(59,130,246,0.2) 0px, rgba(59,130,246,0.2) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(59,130,246,0.2) 0px, rgba(59,130,246,0.2) 1px, transparent 1px, transparent 40px);
  transform: perspective(600px) rotateX(55deg);
  transform-origin: bottom;
  animation: gridPulse 6s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  transition: transform 0.15s ease-out;
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px; height: 500px;
  background: var(--blue-light);
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--green-light);
  bottom: 0; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

/* Two-column hero layout */
.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.hero-copy {
  text-align: left;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy-top {
  margin-bottom: 18px;
}

.hero-fade-in {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-top {
  width: 100%;
  margin-bottom: clamp(16px, 2.4vh, 28px);
  flex-shrink: 0;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(29,78,216,0.08);
  border: 1px solid rgba(29,78,216,0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.hero-title-part {
  display: inline;
}

.hero-title-part--accent {
  margin: 0;
}

.hero-title-part + .hero-title-part::before {
  content: '\00a0';
}

.hero-title .gradient-text {
  display: inline;
  white-space: nowrap;
}

/* Desktop / laptop: keep the title readable in the left column */
@media (min-width: 1200px) {
  .hero-title {
    font-size: clamp(2rem, 2.8vw, 3.15rem);
    line-height: 1.15;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .hero-title {
    font-size: clamp(2rem, 2.7vw, 3.25rem);
  }

  .hero-visual-cluster {
    width: min(100%, 580px);
  }

  .logo-build-stage {
    width: min(420px, 36vh);
    height: min(420px, 36vh);
  }
}

.hero-tagline {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 34em;
}

/* Workflow steps */
.hero-workflow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  background: var(--white);
  border: 2px solid rgba(12, 45, 107,0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  min-width: 0;
  font-family: inherit;
}

.workflow-step:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

.workflow-step.active {
  border-color: var(--blue);
  background: rgba(29,78,216,0.06);
  box-shadow: 0 4px 16px rgba(29,78,216,0.15);
}

.workflow-icon { font-size: 1.2rem; }

.workflow-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
}

.workflow-step.active .workflow-label { color: var(--blue); }

.workflow-connector {
  width: 20px;
  height: 4px;
  background: rgba(29, 78, 216, 0.18);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.workflow-connector-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.workflow-connector.filled .workflow-connector-fill {
  width: 100%;
}

/* Work panel */
.hero-work-panel {
  background: var(--white);
  border: 1px solid rgba(12, 45, 107,0.08);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  width: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hero-work-panel.updating {
  opacity: 0.6;
  transform: scale(0.98);
}

.work-panel-step {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 4px;
}

.hero-work-panel h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.hero-work-panel p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 10px;
}

.work-panel-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.15);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.work-panel-metric span { color: var(--gray); white-space: nowrap; }

.work-panel-metric strong {
  font-family: 'Courier New', monospace;
  color: var(--red);
  font-size: 0.72rem;
  text-align: right;
}

/* Category chips */
.hero-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px 10px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(12, 45, 107,0.08);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(12, 45, 107,0.05);
  backdrop-filter: blur(10px);
  min-width: 0;
}

.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(12, 45, 107,0.07);
}

.cat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.cat-count {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(29,78,216,0.08);
  border: 1px solid rgba(29,78,216,0.12);
  padding: 3px 10px;
  border-radius: 50px;
}

.cat-count em {
  font-style: normal;
  font-weight: 800;
}

.cat-groups {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cat-group {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cat-group-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.2;
}

.cat-group-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.cat-group-chips.is-overflowing {
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent);
}

.cat-group-chips::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(12, 45, 107,0.1);
  background: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(12, 45, 107,0.04);
}

.cat-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.cat-chip.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(29,78,216,0.32);
}

.cat-chip.active:hover {
  color: var(--white);
}

@media (max-height: 820px) and (min-width: 961px) {
  .hero-categories {
    padding: 10px 12px 8px;
    gap: 6px;
    margin-bottom: 12px;
  }

  .cat-head {
    padding-bottom: 6px;
  }

  .cat-groups {
    gap: 4px;
  }

  .cat-group-chips {
    padding-bottom: 2px;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 13px 24px;
  font-size: 0.9rem;
}

/* ---- Hero bottom dock ---- */
.hero-bottom-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
  padding: 12px clamp(14px, 1.6vw, 24px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(12, 45, 107, 0.06);
}

.hero-bottom-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.hero-scroll-wrap {
  display: none;
}

.hero-scroll-wrap .hero-scroll {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 45, 107, 0.08);
  box-shadow: 0 4px 16px rgba(12, 45, 107, 0.08);
}

.hero-stat-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
  width: 100%;
}

.hero-stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: var(--transition);
}

.hero-stat-pill:hover {
  border-color: transparent;
  box-shadow: none;
}

.hero-stat-pill--accent {
  background: transparent;
  border-color: transparent;
}

.stat-pill-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.stat-pill-data {
  min-width: 0;
}

.stat-pill-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-pill-num .stat-plus {
  font-size: 1rem;
}

.stat-pill-label {
  display: block;
  font-size: 0.65rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--gray);
  text-decoration: none;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 12px;
  transition: var(--transition);
  min-width: 100px;
}

.hero-scroll:hover {
  color: var(--red);
  background: rgba(220, 38, 38, 0.05);
}

.scroll-indicator {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(12, 45, 107, 0.15);
  border-radius: 11px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--red);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 5px; opacity: 1; }
  50% { top: 16px; opacity: 0.3; }
}

/* Legacy stat classes for counters */
.stat-num {
  font-weight: 800;
  color: inherit;
}

.stat-plus {
  font-weight: 800;
  color: inherit;
}

/* ---- Hero Right: Logo build ---- */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.hero-visual-cluster {
  position: relative;
  width: min(100%, 540px);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding-top: 8px;
}

.hero-visual-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 22px);
  width: 100%;
}

.hero-logo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(16, 185, 129, 0.06) 45%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.logo-build-stage {
  position: relative;
  z-index: 1;
  width: min(400px, 36vw, 42vh);
  height: min(400px, 36vw, 42vh);
  cursor: pointer;
  border-radius: 50%;
  filter: drop-shadow(0 20px 40px rgba(29, 78, 216, 0.14));
}

.logo-build-stage::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.4));
  z-index: -1;
  box-shadow: 0 8px 32px rgba(12, 45, 107, 0.06);
}

.logo-build-stage::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(59, 130, 246, 0.35);
  border-right-color: rgba(220, 38, 38, 0.25);
  animation: ringSpin 12s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.logo-build-stage.is-animating::after {
  opacity: 0;
  animation: none;
}

.logo-build-stage.is-animating {
  filter: drop-shadow(0 20px 40px rgba(29, 78, 216, 0.18));
}

.logo-anim-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.7s ease;
}

.logo-anim-svg.hidden {
  opacity: 0;
  pointer-events: none;
}

/* SVG stroke draw animations */
.anim-ring {
  stroke-dasharray: 1180;
  stroke-dashoffset: 1180;
  stroke-linecap: round;
}

.anim-ring.draw {
  animation: drawRing 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anim-ring-inner {
  stroke-dasharray: 1120;
  stroke-dashoffset: 1120;
  stroke-linecap: round;
}

.anim-ring-inner.draw {
  animation: drawRing 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}

@keyframes drawRing {
  to { stroke-dashoffset: 0; }
}

.anim-laser {
  stroke-linecap: round;
}

.anim-laser-h.fire {
  stroke-dasharray: 185;
  stroke-dashoffset: 185;
  animation: drawLaser 0.55s ease-out forwards;
}

.anim-laser-v.fire {
  stroke-dasharray: 115;
  stroke-dashoffset: 115;
  animation: drawLaser 0.45s ease-out forwards;
}

@keyframes drawLaser {
  to { stroke-dashoffset: 0; opacity: 1 !important; }
}

.anim-laser-dot {
  transform-origin: center;
  transform-box: fill-box;
}

.anim-laser-dot.hit {
  opacity: 1 !important;
  animation: laserHit 0.9s ease-in-out infinite;
}

@keyframes laserHit {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.65; }
}

.anim-dim.draw line:first-child {
  animation: drawDim 0.65s ease-out forwards;
}

.anim-dim.draw line:not(:first-child) {
  opacity: 0;
  animation: dimLabelIn 0.25s ease forwards 0.35s;
}

.anim-dim.draw text,
.anim-dim.draw rect {
  opacity: 0;
  animation: dimLabelIn 0.35s ease forwards 0.5s;
}

@keyframes drawDim {
  to { stroke-dashoffset: 0; }
}

@keyframes dimLabelIn {
  to { opacity: 1; }
}

.anim-scan-arc.draw {
  animation: drawScanArc 1.1s ease-in-out forwards;
}

@keyframes drawScanArc {
  to { stroke-dashoffset: 0; }
}

.device-led.pulse {
  animation: ledPulse 0.8s ease-in-out infinite;
}

@keyframes ledPulse {
  0%, 100% { fill: #ef4444; filter: drop-shadow(0 0 2px #ef4444); }
  50% { fill: #fca5a5; filter: drop-shadow(0 0 6px #ef4444); }
}

.anim-device.pop-in {
  animation: devicePop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: 28px 16px;
}

@keyframes devicePop {
  0% { opacity: 0; transform: translate(52px, 228px) scale(0.55); }
  100% { opacity: 1; transform: translate(52px, 228px) scale(1); }
}

.anim-room {
  transition: opacity 0.6s ease;
}

.anim-dims line {
  stroke: #ef4444;
  stroke-linecap: round;
}

.anim-grid line {
  stroke: #64748b;
  stroke-width: 1.2;
}

.hero-logo-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-reveal.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-logo-final {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 16px 48px rgba(29, 78, 216, 0.35));
}

.logo-reveal-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--blue-light);
  border-right-color: var(--red);
  opacity: 0;
  animation: none;
}

.hero-logo-reveal.show .logo-reveal-ring {
  opacity: 1;
  animation: ringSpin 3s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.logo-scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ef4444, #fca5a5, #ef4444, transparent);
  box-shadow: 0 0 16px #ef4444, 0 0 32px rgba(239, 68, 68, 0.45);
  top: 15%;
  opacity: 0;
  pointer-events: none;
}

.logo-scan-line.scanning {
  opacity: 1;
  animation: logoScan 2s ease-in-out;
}

@keyframes logoScan {
  0% { top: 15%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

.hero-live-readout {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.76rem;
  font-family: 'Courier New', monospace;
  width: min(100%, 360px);
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(12, 45, 107, 0.18);
}

.hero-live-readout::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 10px;
  background: linear-gradient(to bottom, transparent, rgba(12, 45, 107, 0.2));
}

.hero-float-badges {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease 0.15s;
  min-width: 0;
}

.hero-float-badges.is-live {
  opacity: 1;
}

.float-badge {
  position: relative;
}

.float-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Courier New', monospace;
  box-shadow: 0 4px 14px rgba(12, 45, 107, 0.08);
  white-space: nowrap;
  animation: badgeFloat 4.5s ease-in-out var(--d) infinite;
  backdrop-filter: blur(8px);
  line-height: 1.2;
}

.float-badge-inner em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--white);
  background: var(--red);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.stat { text-align: center; }

/* ---- Demo Section ---- */
.demo-section {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 80px 0 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #f1f5f9 0%, var(--white) 42%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 40%, rgba(59, 130, 246, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 55%, rgba(16, 185, 129, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(220, 38, 38, 0.05), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.demo-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 45, 107, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 45, 107, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  pointer-events: none;
  opacity: 0.35;
}

.demo-section.section-in-view::before {
  opacity: 1;
}

.demo-inner {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 8px clamp(14px, 1.6vw, 24px) 6px;
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}

/* Compact demo header */
.demo-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.demo-top-title h2 {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 2px;
  white-space: nowrap;
}

.demo-top-title .section-tag {
  margin-bottom: 0;
  font-size: 0.65rem;
  padding: 4px 12px;
}

.demo-top-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  max-width: none;
  flex-shrink: 0;
}

.demo-top-desc {
  display: none;
}

.demo-top-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
}

.demo-top-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.68rem;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(12, 45, 107, 0.07);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(12, 45, 107, 0.04);
  white-space: nowrap;
}

.demo-top-stat strong {
  color: var(--dark);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
}

.demo-studio-shell {
  position: relative;
  padding: 2px;
  border-radius: calc(var(--radius) + 3px);
  background: linear-gradient(135deg,
    rgba(220, 38, 38, 0.35),
    rgba(59, 130, 246, 0.28) 45%,
    rgba(16, 185, 129, 0.3));
  box-shadow:
    0 4px 24px rgba(12, 45, 107, 0.06),
    0 20px 50px rgba(12, 45, 107, 0.08);
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-studio-shell::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), transparent 40%, rgba(16, 185, 129, 0.12));
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.demo-section.section-in-view .demo-studio-shell::before {
  opacity: 1;
}

.demo-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: clamp(8px, 1.2vw, 14px);
  align-items: stretch;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: clamp(6px, 1vw, 10px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.demo-visual {
  background: var(--white);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(12, 45, 107, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
}

.demo-visual.is-scanning {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.12),
    0 8px 32px rgba(239, 68, 68, 0.08),
    var(--shadow-lg);
}

.demo-visual.zone-flash {
  animation: demoZoneFlash 0.55s ease;
}

@keyframes demoZoneFlash {
  0% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), var(--shadow-lg); }
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(90deg, var(--dark), var(--dark-2));
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.demo-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.demo-zone-badge {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  max-width: 200px;
  margin: 0 auto;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 999px;
  color: #fca5a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.demo-visual.is-scanning .demo-zone-badge {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
  animation: badgePulse 1.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.demo-time {
  font-family: 'Courier New', monospace;
  opacity: 0.85;
  font-size: 0.75rem;
  flex-shrink: 0;
  min-width: 42px;
  text-align: right;
}

.building-stage {
  position: relative;
  padding: clamp(6px, 1vw, 10px);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.demo-viewfinder {
  position: absolute;
  inset: clamp(10px, 1.5vw, 14px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 2;
  border-radius: var(--radius-sm);
}

.demo-visual.is-scanning .demo-viewfinder {
  opacity: 1;
}

.demo-viewfinder::before,
.demo-viewfinder::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(239, 68, 68, 0.65);
  border-style: solid;
  opacity: 0.85;
}

.demo-viewfinder::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.demo-viewfinder::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.building-svg {
  width: 100%;
  height: 100%;
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  display: block;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
}

.zone-legend {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 6px;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 2px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent, black 12px, black calc(100% - 12px), transparent);
}

.zone-legend::-webkit-scrollbar {
  display: none;
}

.zone-legend .legend-item {
  flex-shrink: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid rgba(12, 45, 107, 0.08);
  transition: transform 0.35s ease, opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  opacity: 0.45;
  cursor: default;
  user-select: none;
}

/* ---- Demo bottom dock ---- */
.demo-bottom-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
  padding: 8px clamp(14px, 1.6vw, 24px) 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(12, 45, 107, 0.06);
  box-shadow: 0 -6px 24px rgba(12, 45, 107, 0.04);
}

.demo-bottom-inner {
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  background: var(--dark);
  border-radius: 10px;
}

.ctrl-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.ctrl-btn:hover { background: var(--red); }

.progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 3px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  flex-shrink: 0;
}

.demo-stat-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
}

.demo-stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid rgba(12, 45, 107, 0.07);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(12, 45, 107, 0.04);
  min-width: 96px;
}

.demo-stat-pill--accent {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(245, 158, 11, 0.05));
  border-color: rgba(220, 38, 38, 0.12);
}

.demo-stat-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.demo-stat-val {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--dark);
  font-family: 'Courier New', monospace;
  line-height: 1.1;
  white-space: nowrap;
}

.demo-stat-lbl {
  display: block;
  font-size: 0.54rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Demo Panel (compact) ---- */
.demo-panel {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.68rem;
  flex-shrink: 0;
}

.panel-status { font-weight: 600; }

.panel-id {
  font-family: 'Courier New', monospace;
  opacity: 0.45;
  font-size: 0.62rem;
}

.panel-zone {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.panel-zone.is-updating {
  animation: panelZoneFlash 0.5s ease;
}

@keyframes panelZoneFlash {
  0% { background: rgba(255, 255, 255, 0.1); }
  100% { background: transparent; }
}

.panel-zone-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}

.panel-zone h3 {
  font-size: 0.88rem;
  margin: 2px 0;
  transition: color 0.3s;
  line-height: 1.15;
}

.panel-zone p {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-metrics-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.panel-dims,
.panel-calc {
  padding: 7px 12px;
  width: 100%;
}

.panel-dims {
  border-right: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.panel-calc {
  background: rgba(255,255,255,0.02);
}

.panel-dims h4,
.panel-calc h4,
.panel-log h4 {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.dim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.dim-item {
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
}

.dim-label {
  display: block;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.dim-value {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}

.calc-formula {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0;
  min-height: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.calc-result {
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 6px;
  padding: 5px 8px;
  text-align: center;
}

.calc-result strong {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #fca5a5;
}

.panel-total {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  margin-bottom: 4px;
}

.total-row span:last-child {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--green-light);
  font-size: 0.72rem;
}

.total-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.total-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.total-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 0.75rem;
  animation: revealUp 0.5s ease;
}

.total-final strong {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #6ee7b7;
}

.panel-log {
  padding: 6px 12px 8px;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.log-entries {
  flex: 1 1 0;
  overflow-y: auto;
  max-height: none;
  min-height: 0;
}

.log-entry {
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: logSlide 0.3s ease;
}

.log-entry .log-time { color: rgba(255,255,255,0.25); margin-right: 6px; }
.log-entry .log-ok { color: var(--green-light); }

.legend-item.active {
  opacity: 1;
  border-color: currentColor;
  transform: scale(1.04);
  box-shadow: 0 2px 12px rgba(12, 45, 107, 0.12);
  animation: legendActivePulse 1.4s ease-in-out infinite;
}

@keyframes legendActivePulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(12, 45, 107, 0.1); }
  50% { box-shadow: 0 4px 18px color-mix(in srgb, currentColor 35%, transparent); }
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.legend-item.active .legend-dot {
  transform: scale(1.2);
  box-shadow: 0 0 8px currentColor;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.65);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* Zone highlights */
.zone {
  transition: opacity 0.35s ease;
}

.zone.active rect,
.zone.active polygon {
  opacity: 0.58 !important;
  filter: url(#glow);
}

.zone.active {
  animation: zonePulse 1.6s ease-in-out infinite;
}

@keyframes zonePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}

.scan-beam {
  transition: y 0.04s linear;
  opacity: 0;
}

.scan-beam.active {
  opacity: 0.92 !important;
  filter: drop-shadow(0 0 10px #ef4444) drop-shadow(0 0 4px rgba(239, 68, 68, 0.8));
  animation: beamGlow 0.7s ease-in-out infinite alternate;
}

@keyframes beamGlow {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

.measure-line {
  stroke: var(--red);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  filter: drop-shadow(0 0 4px rgba(220, 38, 38, 0.45));
  animation: drawLine 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.dim-label-text {
  font-size: 9px;
  font-weight: 700;
  fill: var(--red);
  font-family: 'Courier New', monospace;
}

.dim-label-bg {
  fill: rgba(255,255,255,0.9);
  rx: 3;
}

@keyframes logSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.typing::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s ease forwards;
}

.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.25s; }
.reveal:nth-child(3) { animation-delay: 0.4s; }
.reveal:nth-child(4) { animation-delay: 0.55s; }
.reveal:nth-child(5) { animation-delay: 0.7s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Section headers ---- */
.section-header {
  text-align: left;
  max-width: none;
  margin: 0 0 22px;
}

.section-header.light { color: var(--white); }
.section-header.light .section-tag { background: rgba(255,255,255,0.15); color: var(--white); }

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(29,78,216,0.08);
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--gray);
  font-size: 0.9rem;
}

.section-header.light p { color: rgba(255,255,255,0.75); }

/* ---- Services ---- */
.services-section {
  padding: 36px 0;
  min-height: 0;
  display: block;
}

.services-section .container {
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 10px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(12, 45, 107,0.06);
  border-radius: 10px;
  padding: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--card-color, var(--red));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleY(1); }

.service-icon { font-size: 1.6rem; margin-bottom: 10px; }

.service-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 10px;
}

.service-area-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--red);
  background: rgba(220, 38, 38, 0.06);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---- Process ---- */
.process-section {
  padding: 36px 0;
  min-height: 0;
  display: block;
  background: var(--gray-light);
  position: relative;
  overflow: hidden;
}

.process-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.06);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

.process-section .container {
  width: 100%;
  position: relative;
  z-index: 1;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  max-width: none;
  margin: 0;
  position: relative;
}

.process-track::before {
  display: none;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(12, 45, 107, 0.05);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.45s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--blue);
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ---- Partners ---- */
.partners-section {
  padding: 36px 0;
  min-height: 0;
  display: block;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  position: relative;
  overflow: hidden;
}

.partners-section.section-in-view .partner-card {
  animation: partnerPop 0.5s ease backwards;
}

.partners-section.section-in-view .partner-card:nth-child(1) { animation-delay: 0.05s; }
.partners-section.section-in-view .partner-card:nth-child(2) { animation-delay: 0.1s; }
.partners-section.section-in-view .partner-card:nth-child(3) { animation-delay: 0.15s; }
.partners-section.section-in-view .partner-card:nth-child(4) { animation-delay: 0.2s; }
.partners-section.section-in-view .partner-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes partnerPop {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.partners-section .container {
  width: 100%;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.partner-card {
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: var(--transition);
}

.partner-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.partners-note {
  text-align: left;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  max-width: none;
  margin: 0;
}

/* ---- Contact ---- */
.contact-section {
  padding: 36px 0;
  min-height: 0;
  display: block;
}

.contact-section .container {
  width: 100%;
}

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

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  border-color: var(--blue);
  transform: translateX(4px);
}

.contact-icon { font-size: 1.5rem; }

.contact-card strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--gray);
}

.contact-map {
  height: 100%;
  min-height: 400px;
}

.map-placeholder {
  height: 100%;
  background: linear-gradient(135deg, #dbeafe, #d1fae5);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(12, 45, 107,0.03) 0px, rgba(12, 45, 107,0.03) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(12, 45, 107,0.03) 0px, rgba(12, 45, 107,0.03) 1px, transparent 1px, transparent 40px);
}

.map-pin {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.map-placeholder h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  position: relative;
}

.map-placeholder p {
  color: var(--gray);
  margin-bottom: 20px;
  position: relative;
  line-height: 1.8;
}

/* ---- Footer ---- */
.footer {
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  color: rgba(255,255,255,0.55);
  padding: 24px 0 18px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

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

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.footer-brand .logo-tagline {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand .logo-specialty {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  max-width: 24em;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 22px;
}

.footer-links a {
  position: relative;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copy,
.footer-credit {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.footer-credit a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-credit a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-credit a:hover {
  color: #cbd5e1;
}

.footer-credit a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 1180px) and (min-width: 961px) {
  .footer-top {
    flex-wrap: wrap;
    gap: 14px 24px;
  }

  .footer-links {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
}

/* ---- Responsive ---- */
/* ---- Global scroll reveal & cursor ---- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  top: 0;
  left: 0;
  will-change: transform;
}

.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.demo-studio {
  width: 100%;
  max-width: 100%;
}

.demo-inner {
  flex: 1 1 0;
  min-height: 0;
}

@media (max-width: 1100px) {
  .demo-studio {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  }

  .demo-top-title h2 {
    font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  }
}

@media (max-height: 700px) and (max-width: 960px) {
  .hero-visual-cluster {
    width: min(100%, 200px);
  }

  .logo-build-stage {
    width: min(180px, 42vw);
    height: min(180px, 42vw);
  }

  .hero-tagline {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .hero-inner {
    padding-top: 10px;
  }
}

@media (max-height: 760px) and (min-width: 961px) {
  .demo-inner {
    padding-top: 4px;
  }

  .demo-top-bar {
    margin-bottom: 4px;
  }

  .demo-top-title h2 {
    font-size: 1.05rem;
  }

  .demo-top-title .section-tag {
    font-size: 0.6rem;
    padding: 3px 10px;
  }

  .panel-zone h3 {
    font-size: 0.82rem;
  }

  .panel-zone p {
    display: none;
  }

  .calc-result strong {
    font-size: 0.75rem;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    padding: 16px clamp(16px, 4vw, 24px) 12px;
    overflow: visible;
  }

  .hero-scroll-wrap {
    display: none;
  }

  .hero-top {
    text-align: center;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 14px;
    margin-bottom: 10px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(1.55rem, 6.4vw, 2.15rem);
    line-height: 1.18;
  }

  .hero-title .gradient-text {
    white-space: normal;
  }

  .hero-title-part {
    display: block;
  }

  .hero-title-part--accent {
    margin: 0.04em 0;
  }

  .hero-title-part + .hero-title-part::before {
    content: none;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy-top {
    order: 1;
    text-align: center;
    margin-bottom: 0;
  }

  .hero-right {
    order: 2;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .hero-copy-bottom {
    order: 3;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  .hero-left {
    display: none;
  }

  .hero-tagline {
    display: block;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 34em;
  }

  .hero-workflow,
  .hero-work-panel,
  .hero-categories {
    display: none;
  }

  .hero-actions {
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    flex-shrink: 0;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    padding-bottom: 0;
  }

  .hero-actions .btn {
    padding: 12px 16px;
    font-size: 0.84rem;
    width: auto;
    flex: 1 1 0;
    max-width: 240px;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    line-height: 1.25;
  }

  .hero-actions .btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

  .hero-float-badges {
    display: none;
  }

  .hero-visual-cluster {
    width: min(100%, 280px);
    padding-top: 0;
    margin: 0 auto;
  }

  .hero-visual-row {
    flex-direction: column;
    gap: 6px;
  }

  .logo-build-stage {
    width: min(240px, 58vw);
    height: min(240px, 58vw);
    margin: 0 auto;
  }

  .logo-build-stage::before {
    inset: -4px;
  }

  .hero-live-readout {
    width: 100%;
    max-width: 280px;
    font-size: 0.65rem;
    padding: 6px 12px;
    margin: 0 auto;
  }

  .hero-bottom-bar {
    padding: 10px clamp(14px, 4vw, 20px) 14px;
    flex-shrink: 0;
  }

  .hero-stat-pills {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 8px;
    width: 100%;
  }

  .hero-stat-pill {
    padding: 0;
    gap: 0;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .stat-pill-icon {
    display: none;
  }

  .stat-pill-num {
    font-size: 1.05rem;
  }

  .stat-pill-label {
    font-size: 0.55rem;
    white-space: normal;
    line-height: 1.25;
  }

  .demo-studio {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 8px;
    min-height: 0;
    padding: 8px;
  }

  .demo-studio-shell {
    margin-bottom: 0;
  }

  .demo-inner {
    padding: 6px 16px 4px;
    min-height: 0;
  }

  .demo-section {
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
  }

  .demo-top-bar {
    flex-wrap: wrap;
    margin-bottom: 6px;
  }

  .demo-top-title h2 {
    white-space: normal;
    font-size: clamp(0.95rem, 4vw, 1.25rem);
  }

  .demo-top-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .demo-visual,
  .demo-panel {
    min-height: 0;
    max-height: 100%;
  }

  .demo-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .panel-log {
    flex: 1 1 0;
    min-height: 0;
  }

  .demo-bottom-inner {
    flex-direction: column;
    gap: 12px;
  }

  .demo-stat-pills {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .demo-controls {
    width: 100%;
  }

  .demo-zone-badge {
    max-width: 120px;
    font-size: 0.58rem;
  }

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

@media (max-width: 640px) {
  .demo-top-stat {
    font-size: 0.62rem;
    padding: 3px 8px;
  }

  .demo-toolbar {
    font-size: 0.58rem;
    padding: 5px 10px;
  }

  .demo-zone-badge {
    display: none;
  }

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

@media (max-width: 1100px) {
  .logo {
    max-width: none;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.74rem;
  }
}

@media (min-width: 1200px) {
  .logo {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }

  .navbar {
    padding: 12px 0;
  }

  .navbar.scrolled {
    padding: 8px 0;
  }

  .hero {
    padding-top: 96px;
  }

  .logo {
    max-width: calc(100% - 52px);
  }

  .logo-name {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .logo-specialty {
    font-size: 0.54rem;
    max-width: 16.5em;
  }

  .logo-img-nav {
    height: 46px;
    width: 46px;
  }

  .page-hero,
  .clients-page-hero {
    padding-top: 96px;
  }

  .workflow-step {
    padding: 6px 3px;
  }

  .workflow-icon {
    font-size: 0.95rem;
  }

  .workflow-label {
    font-size: 0.48rem;
    letter-spacing: 0.02em;
  }

  .workflow-connector {
    width: 12px;
  }

  .hero-visual-cluster {
    width: min(100%, 250px);
  }

  .logo-build-stage {
    width: min(220px, 52vw);
    height: min(220px, 52vw);
  }

  .hero-actions .btn {
    padding: 11px 14px;
    font-size: 0.8rem;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    background:
      radial-gradient(ellipse 80% 50% at 100% 0%, rgba(212, 160, 23, 0.12), transparent 55%),
      linear-gradient(180deg, #f7f2ea 0%, var(--paper, #f4efe6) 48%, #efe7d8 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(76px + env(safe-area-inset-top, 0px)) 28px max(24px, env(safe-area-inset-bottom, 0px));
    gap: 0;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1100;
    overflow-y: auto;
    pointer-events: none;
  }

  .nav-links a {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .nav-links a:not(.nav-cta):not(.nav-menu-brand):not(.nav-action) {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(12, 45, 107, 0.1);
  }

  .nav-links a:not(.nav-cta):not(.nav-menu-brand):not(.nav-action)::after {
    display: none;
  }

  .nav-links li:has(> a.nav-cta) {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-close-item,
  .nav-close {
    display: none !important;
  }

  .nav-actions-item {
    display: block !important;
    list-style: none;
    margin-top: auto;
    padding-top: 18px;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 12px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-action svg {
    flex-shrink: 0;
  }

  .nav-action-primary {
    grid-column: 1 / -1;
    background: var(--dark);
    color: #fff;
  }

  .nav-links a.nav-action-primary {
    color: #fff;
  }

  .nav-action-call,
  .nav-action-wa {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid rgba(12, 45, 107, 0.28);
    letter-spacing: 0.06em;
    padding: 0 10px;
  }

  .nav-action-wa svg {
    color: #128c7e;
  }

  .nav-brand-item {
    display: block !important;
    list-style: none;
    margin-top: 0;
    padding-top: 16px;
  }

  .nav-menu-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    gap: 6px;
    padding: 16px 8px 2px;
    border-top: 1px solid rgba(12, 45, 107, 0.12);
  }

  .nav-menu-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(12, 45, 107, 0.14));
  }

  .nav-menu-brand-name {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    font-weight: 800;
  }

  .nav-menu-brand-tag {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
  }

  .nav-menu-brand-line {
    max-width: 18em;
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--gray);
  }

  .nav-active::after,
  .nav-link-active::after {
    display: none;
  }

  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .logo {
    opacity: 0;
    pointer-events: none;
  }

  body.nav-open .navbar {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 68px;
  }

  .hero-inner {
    padding: 12px 16px 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 0;
  }

  .hero-actions .btn {
    padding: 12px 16px;
    font-size: 0.88rem;
    max-width: none;
    width: 100%;
    flex: none;
  }

  .hero-title {
    font-size: clamp(1.4rem, 7.2vw, 1.75rem);
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 4px 12px;
  }

  .hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .hero-visual-cluster {
    width: min(100%, 220px);
  }

  .logo-build-stage {
    width: min(200px, 54vw);
    height: min(200px, 54vw);
  }

  .hero-bottom-bar {
    padding: 10px 16px 16px;
  }

  .hero-stat-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
  }

  .hero-stat-pill {
    padding: 0;
    align-items: flex-start;
    text-align: left;
    flex-direction: column;
  }

  .stat-pill-num {
    font-size: 1.15rem;
  }

  .stat-pill-label {
    font-size: 0.62rem;
  }

  .demo-stat-pills {
    grid-template-columns: 1fr;
  }

  .demo-bottom-bar {
    padding: 8px 12px 10px;
  }

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

  .clients-section-header {
    grid-template-columns: 1fr;
  }

  .clients-stats-mini {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .clients-stat-box {
    flex: 1;
    min-width: 90px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }

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

  .section-header h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .partner-card {
    padding: 16px 20px;
    font-size: 0.9rem;
  }
}

/* ============================================
   CLIENTS — Home showcase & Gallery page
   ============================================ */

/* ============================================
   CLIENTS — Home showcase & Gallery page
   ============================================ */


.clients-section {
  padding: 36px 0 28px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-light) 100%);
  overflow: hidden;
  position: relative;
}

.clients-section.section-in-view .clients-marquee-track {
  animation-play-state: running;
}

.clients-section-header {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px 40px;
  align-items: end;
  margin-bottom: 20px;
}

.clients-section-intro h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.clients-count {
  color: var(--red);
}

.clients-section-intro p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: none;
}

.clients-stats-mini {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.clients-stat-box {
  background: var(--white);
  border: 1px solid rgba(12, 45, 107,0.08);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.clients-stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.clients-stat-box strong {
  display: block;
  font-size: 1.35rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}

.clients-stat-box span {
  font-size: 0.68rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Marquee */
.clients-marquee-wrap {
  position: relative;
  margin-bottom: 40px;
}

.clients-marquee-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin-bottom: 20px;
}

.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.clients-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 80s linear infinite;
}

.clients-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid rgba(12, 45, 107,0.08);
  border-radius: var(--radius);
  min-width: 280px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: var(--transition);
}

.marquee-item--featured {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.marquee-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.marquee-item-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.marquee-item-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.marquee-item-text span {
  font-size: 0.75rem;
  color: var(--gray);
}

.clients-section-cta {
  text-align: center;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- Clients gallery page ---- */
.clients-page-hero {
  padding: clamp(96px, 14vh, 120px) clamp(16px, 4vw, 24px) clamp(48px, 8vh, 60px);
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
  text-align: center;
}

.clients-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.clients-page-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.clients-page-hero .section-tag {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  margin-bottom: 16px;
}

.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.back-link:hover { color: var(--white); }

.clients-gallery-section {
  padding: 60px 0 100px;
}

.clients-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.clients-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid rgba(12, 45, 107,0.1);
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.clients-search-wrap svg { color: var(--gray); flex-shrink: 0; }

.clients-search-wrap input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
}

.clients-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  user-select: none;
}

.clients-filter-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.clients-result-count {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 28px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.clients-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--gray);
  font-size: 1.1rem;
}

/* Client card */
.client-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(12, 45, 107,0.06);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.client-card--featured {
  border-color: rgba(245, 158, 11, 0.35);
}

.client-card-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--gray-light);
}

.client-building-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.client-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 45, 107,0.72), transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}

.client-card-check {
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.client-card-loc {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-card-loc--muted {
  opacity: 0.7;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.client-card-body {
  padding: 18px;
}

.client-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.client-card-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--dark);
}

.client-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 6px;
}

.client-card-meta svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.client-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.client-card-address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.4;
}

.client-card-address svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.client-no-address {
  font-style: italic;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .clients-section-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .clients-section-intro p {
    margin-left: auto;
    margin-right: auto;
  }

  .clients-stats-mini {
    flex-direction: row;
    justify-content: center;
  }

  .marquee-item {
    min-width: 240px;
  }
}

/* ============================================
   Multi-page prototype (WordPress-ready)
   ============================================ */

.page-hero,
.clients-page-hero {
  padding: 76px 0 16px;
  background:
    radial-gradient(ellipse 70% 90% at 92% 0%, rgba(59, 130, 246, 0.28), transparent 50%),
    linear-gradient(145deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
  text-align: left;
}

.page-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.page-hero .back-link,
.clients-page-hero .back-link {
  margin-bottom: 0;
}

.page-hero h1,
.clients-page-hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-hero p,
.clients-page-hero p {
  color: rgba(255,255,255,0.72);
  max-width: none;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.page-hero .section-tag,
.clients-page-hero .section-tag {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  margin-bottom: 0;
  padding: 3px 10px;
  font-size: 0.68rem;
}

.page-main {
  padding-bottom: 28px;
}

.page-cta-copy {
  color: var(--gray);
  margin: 12px auto 22px;
  max-width: 36em;
}

.section-cta {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home .services-section,
.home .process-section,
.home .partners-section,
.home .contact-section {
  min-height: 0;
  padding: 36px 0;
}

.preview-demo-section {
  background: var(--gray-light);
}

.page-services .services-section,
.page-process .process-section,
.page-partners .partners-section {
  min-height: 0;
  padding-top: 16px;
  padding-bottom: 28px;
}

.partners-section .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.partners-section .btn-outline:hover {
  color: var(--blue);
  background: var(--white);
  border-color: var(--white);
}

.home .services-section,
.home .process-section {
  align-items: stretch;
}

.preview-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.preview-demo-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.preview-demo-copy p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: none;
}

.preview-demo-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  background:
    radial-gradient(circle at 30% 20%, rgba(59,130,246,0.28), transparent 42%),
    linear-gradient(160deg, var(--dark), var(--dark-2));
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--white);
}

.preview-demo-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 24px 20px;
  text-align: center;
}

.preview-demo-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(220,38,38,0.45);
}

.preview-demo-card strong {
  font-size: 1.1rem;
}

.preview-demo-card span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.preview-demo-card:hover .preview-demo-play {
  transform: scale(1.06);
}

.contact-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.contact-teaser h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.contact-teaser p {
  color: var(--gray);
  margin-bottom: 16px;
  max-width: none;
}

.contact-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.services-group {
  margin-bottom: 22px;
}

.services-group-title {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
  font-weight: 700;
}

.process-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  max-width: none;
  margin: 0;
}

.process-detail .process-step {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(12, 45, 107, 0.05);
  opacity: 1;
  transform: none;
}

.process-deliverable {
  max-width: none;
  margin: 16px 0 0;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid rgba(29,78,216,0.12);
  border-radius: 12px;
}

.process-deliverable h3 {
  margin-bottom: 10px;
}

.process-deliverable ul {
  padding-left: 18px;
  color: var(--gray);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 20px;
}

.partners-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.partner-detail {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  color: var(--white);
}

.partner-detail h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.partner-detail p {
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
  line-height: 1.55;
}

.page-partners .partners-section {
  min-height: 0;
  padding-top: 16px;
  padding-bottom: 28px;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid rgba(12, 45, 107,0.08);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.contact-form-card h3 {
  margin-bottom: 6px;
}

.contact-form-card > p {
  color: var(--gray);
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(12, 45, 107,0.12);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-navy {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  box-shadow: 0 8px 20px rgba(12, 45, 107, 0.22);
}

.btn-navy:hover {
  background: var(--dark-2);
  border-color: var(--dark-2);
  color: var(--white);
  transform: translateY(-1px);
}

.contact-form-note {
  margin-top: 14px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-contact .page-main {
  padding-bottom: 0;
}

.page-hero--contact {
  text-align: left;
  padding: 76px 0 20px;
  background:
    radial-gradient(ellipse 70% 90% at 88% 8%, rgba(59, 130, 246, 0.32), transparent 52%),
    linear-gradient(145deg, var(--dark) 0%, var(--dark-2) 58%, #163a8a 100%);
}

.page-hero--contact .container {
  padding-left: clamp(14px, 1.6vw, 24px);
  padding-right: clamp(14px, 1.6vw, 24px);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 20px 32px;
  align-items: center;
}

.contact-hero-copy h1 {
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.contact-hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}

.page-hero--contact p {
  margin: 0;
  max-width: none;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.page-hero--contact .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.page-hero--contact .btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.contact-hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 18px;
}

.contact-hero-panel-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-hero-panel a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.contact-hero-panel a:hover {
  color: var(--gold);
}

.contact-hero-panel-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.78rem !important;
  line-height: 1.45;
}

.page-contact .contact-section {
  margin-top: 12px;
  padding: 0 0 28px;
  background: var(--gray-light);
}

.contact-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--white);
  border: 1px solid rgba(12, 45, 107, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(12, 45, 107, 0.08);
}

.contact-board-info {
  padding: 22px 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(29, 78, 216, 0.06), transparent 46%),
    var(--white);
}

.contact-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-board-info h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--dark);
}

.contact-board-info > p {
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: none;
}

.contact-steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin-bottom: 28px;
}

.contact-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(12, 45, 107, 0.08);
}

.contact-steps li:last-child {
  border-bottom: 1px solid rgba(12, 45, 107, 0.08);
}

.contact-steps li span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue);
  padding-top: 2px;
}

.contact-steps strong {
  display: block;
  font-size: 0.98rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-steps em {
  font-style: normal;
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact-methods {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-method {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #f7f9fd;
  border: 1px solid rgba(12, 45, 107, 0.06);
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  background: var(--white);
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 10px 28px rgba(12, 45, 107, 0.1);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-method-body strong {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-method-body em {
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  word-break: break-word;
}

.page-contact .contact-form-card {
  background: linear-gradient(180deg, #f8fafd 0%, var(--white) 28%);
  border: 0;
  border-left: 1px solid rgba(12, 45, 107, 0.08);
  border-radius: 0;
  padding: 20px 22px;
  box-shadow: none;
  position: relative;
}

.page-contact .contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.page-contact .contact-form-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 8px;
}

.page-contact .contact-form-card > p {
  color: var(--gray);
  margin-bottom: 22px;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.page-contact .contact-form {
  gap: 14px;
}

.page-contact .contact-form label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-2);
}

.page-contact .contact-form input,
.page-contact .contact-form select,
.page-contact .contact-form textarea {
  border-radius: 10px;
  border-color: rgba(12, 45, 107, 0.14);
  background: var(--white);
  padding: 13px 14px;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-contact .contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230c2d6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.page-contact .contact-form input::placeholder,
.page-contact .contact-form textarea::placeholder,
.page-contact .contact-form select {
  letter-spacing: 0;
}

.page-contact .contact-form input::placeholder,
.page-contact .contact-form textarea::placeholder {
  text-transform: none;
  font-weight: 400;
  color: #8b97b0;
}

.page-contact .contact-form input:focus,
.page-contact .contact-form select:focus,
.page-contact .contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.page-contact .contact-form textarea {
  min-height: 110px;
}

.page-contact .contact-form .btn {
  justify-content: center;
  margin-top: 4px;
  width: 100%;
  border-radius: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 16px 28px;
}

.contact-form-fine {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--gray);
}

.contact-map-block {
  position: relative;
  margin-top: 16px;
  min-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(12, 45, 107, 0.08);
  box-shadow: 0 18px 50px rgba(12, 45, 107, 0.1);
}

.contact-map-copy {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  max-width: 300px;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(12, 45, 107, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 16px 40px rgba(12, 45, 107, 0.14);
}

.contact-map-copy h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.contact-map-copy p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.92rem;
}

.contact-map-copy .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.contact-map-frame {
  min-height: 240px;
  height: 240px;
  background: #dbeafe;
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  display: block;
}

@media (max-width: 960px) {
  .contact-hero,
  .contact-board,
  .contact-methods,
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .page-hero--contact {
    padding-bottom: 20px;
  }

  .page-contact .contact-form-card {
    border-left: 0;
    border-top: 1px solid rgba(12, 45, 107, 0.08);
  }

  .contact-map-copy {
    position: static;
    max-width: none;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(12, 45, 107, 0.08);
    box-shadow: none;
    text-align: center;
    align-items: center;
  }

  .contact-map-copy .btn {
    align-self: center;
  }

  .contact-map-frame,
  .contact-map-frame iframe {
    min-height: 260px;
    height: 260px;
  }
}

@media (max-width: 640px) {
  .contact-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .preview-demo,
  .contact-teaser {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .preview-demo-copy p,
  .contact-teaser p {
    margin-left: auto;
    margin-right: auto;
  }

  .preview-demo-copy .btn,
  .contact-teaser-actions {
    justify-content: center;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-demo .demo-section {
    height: auto;
    max-height: none;
    min-height: 100dvh;
  }
}

@media (max-width: 640px) {
  .preview-demo-card,
  .preview-demo-card-inner {
    min-height: 220px;
  }

  .contact-teaser-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-teaser-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .process-detail .process-step {
    padding: 16px;
    gap: 14px;
  }

  .clients-search-wrap {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .clients-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================
   Clients page — compact full-width portfolio
   ============================================ */

.page-clients .container,
.page-clients .nav-inner,
.page-clients .footer .container {
  max-width: none;
  width: 100%;
  padding-left: clamp(14px, 1.6vw, 24px);
  padding-right: clamp(14px, 1.6vw, 24px);
}

.page-clients .navbar {
  padding: 8px 0;
}

.page-clients .navbar.scrolled {
  padding: 8px 0;
}

.page-clients .clients-page-hero {
  text-align: left;
  padding: 76px 0 14px;
  background:
    radial-gradient(ellipse 70% 90% at 92% 0%, rgba(59, 130, 246, 0.28), transparent 50%),
    linear-gradient(145deg, var(--dark) 0%, var(--dark-2) 100%);
}

.page-clients .clients-page-hero .container {
  padding-left: clamp(14px, 1.6vw, 24px);
  padding-right: clamp(14px, 1.6vw, 24px);
}

.clients-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
}

.clients-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.page-clients .clients-hero-copy .back-link {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.page-clients .clients-hero-copy .section-tag {
  margin-bottom: 0;
  padding: 3px 10px;
  font-size: 0.68rem;
}

.page-clients .clients-hero-copy h1,
.page-clients .clients-page-hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1.15;
}

.page-clients .clients-hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}

.page-clients .clients-page-hero p {
  margin: 0;
  max-width: none;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.clients-hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 6px;
}

.clients-hero-stats {
  display: flex;
  align-items: stretch;
}

.clients-hero-stat {
  padding: 4px 22px;
  min-width: 88px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.clients-hero-stat:last-child {
  border-right: 0;
}

.clients-hero-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.clients-hero-stat span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.page-clients .page-main {
  padding-bottom: 28px;
  background: var(--gray-light);
}

.page-clients .clients-gallery-section {
  padding: 0;
}

.clients-control-card {
  position: sticky;
  top: 60px;
  z-index: 40;
  margin: 12px 0 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(12, 45, 107, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(12, 45, 107, 0.08);
  padding: 10px 12px 8px;
}

.page-clients .clients-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1.6fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 0;
}

.page-clients .clients-search-wrap {
  max-width: none;
  min-width: 0;
  width: 100%;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--gray-light);
  border-color: transparent;
  box-shadow: none;
}

.page-clients .clients-search-wrap:focus-within {
  background: var(--white);
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.page-clients .clients-search-wrap input {
  font-size: 0.88rem;
}

.clients-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.clients-field label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.clients-field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--gray-light) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235b6b8c' d='M1 1l5 5 5-5'/></svg>") no-repeat right 12px center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.clients-field select:hover,
.clients-field select:focus {
  background-color: var(--white);
  border-color: rgba(29, 78, 216, 0.28);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.clients-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1px;
}

.clients-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  user-select: none;
  padding: 7px 2px 8px 0;
  white-space: nowrap;
  position: relative;
}

.clients-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.clients-toggle-ui {
  width: 34px;
  height: 18px;
  border-radius: 20px;
  background: #d5deee;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.clients-toggle-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(12, 45, 107, 0.2);
  transition: transform 0.2s ease;
}

.clients-toggle input:checked + .clients-toggle-ui {
  background: linear-gradient(135deg, var(--gold), #d97706);
}

.clients-toggle input:checked + .clients-toggle-ui::after {
  transform: translateX(16px);
}

.clients-toggle input:focus-visible + .clients-toggle-ui {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.clients-reset {
  border: 1px solid rgba(12, 45, 107, 0.12);
  background: transparent;
  color: var(--gray);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.clients-reset:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(220, 38, 38, 0.06);
}

.clients-quick-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(12, 45, 107, 0.06);
  overflow-x: auto;
  scrollbar-width: thin;
}

.clients-quick-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-right: 2px;
  flex-shrink: 0;
}

.clients-quick-chip {
  border: 1px solid rgba(12, 45, 107, 0.1);
  background: var(--white);
  color: var(--dark);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.clients-quick-chip em {
  font-style: normal;
  color: var(--blue);
  font-weight: 800;
  margin-left: 3px;
}

.clients-quick-chip:hover {
  border-color: rgba(29, 78, 216, 0.35);
}

.clients-quick-chip.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.clients-quick-chip.is-active em {
  color: var(--gold);
}

.page-clients .clients-result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.page-clients .clients-result-count {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
}

.clients-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clients-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: rgba(29, 78, 216, 0.08);
  color: var(--blue-deep);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.clients-pill span {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.6;
}

.clients-pill:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.page-clients .clients-grid {
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 10px;
}

.page-clients .client-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(12, 45, 107, 0.07);
  box-shadow: 0 2px 10px rgba(12, 45, 107, 0.05);
}

.page-clients .client-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 10px 24px rgba(12, 45, 107, 0.12);
}

.page-clients .client-card--featured {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
}

.page-clients .client-card-image {
  height: 96px;
}

.page-clients .client-card-overlay {
  padding: 8px;
}

.page-clients .client-card-loc,
.page-clients .client-card-check {
  font-size: 0.58rem;
  padding: 2px 7px;
}

.page-clients .client-card-body {
  padding: 10px 11px 12px;
}

.page-clients .client-badge {
  font-size: 0.55rem;
  padding: 2px 7px;
  margin-bottom: 4px;
}

.page-clients .client-card-name {
  font-size: 0.84rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-clients .client-card-meta {
  font-size: 0.7rem;
  margin-bottom: 3px;
}

.page-clients .client-card-address {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.page-clients .client-building-svg {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-clients .client-card:hover .client-building-svg {
  transform: scale(1.05);
}

.page-clients .clients-empty {
  background: var(--white);
  border-radius: 12px;
  border: 1px dashed rgba(12, 45, 107, 0.16);
  padding: 48px 24px;
}

.page-clients .clients-empty strong {
  display: block;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.page-clients .clients-empty p {
  margin-bottom: 16px;
}

.page-clients .footer {
  padding: 28px 0 20px;
}

@media (max-width: 1024px) {
  .page-clients .clients-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .page-clients .clients-search-wrap,
  .clients-toolbar-actions {
    grid-column: 1 / -1;
  }

  .clients-hero-stat {
    padding: 4px 14px;
    min-width: 72px;
  }
}

@media (max-width: 768px) {
  .clients-hero-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .clients-hero-stats {
    width: 100%;
    justify-content: space-between;
  }

  .clients-hero-stat {
    flex: 1;
    padding: 4px 8px;
    min-width: 0;
  }

  .clients-control-card {
    position: static;
    margin: 10px 0 12px;
    padding: 10px;
  }

  .page-clients .clients-toolbar {
    grid-template-columns: 1fr;
  }

  .clients-toggle,
  .clients-reset {
    justify-content: flex-start;
  }

  .page-clients .clients-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
}

/* ============================================
   Premium 10/10 — shared craft
   ============================================ */

.page-hero h1,
.clients-page-hero h1,
.hero-title,
.section-header h2,
.contact-hero-copy h1,
.preview-demo-copy h2,
.contact-teaser h2,
.clients-section-intro h2,
.demo-top-title h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-hero h1 em,
.clients-page-hero h1 em,
.contact-hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-soft);
  -webkit-text-fill-color: var(--gold-soft);
}

.page-hero {
  padding: 92px 0 36px;
  background:
    radial-gradient(ellipse 60% 80% at 92% 0%, rgba(212, 160, 23, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(59, 130, 246, 0.22), transparent 46%),
    linear-gradient(145deg, #071a45 0%, var(--dark) 48%, var(--dark-2) 100%);
}

.page-hero-layout,
.clients-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
}

.page-hero-copy h1 {
  max-width: 22em;
}

.page-hero-panel,
.clients-hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 14px 8px;
}

.page-hero-stats,
.clients-hero-stats {
  display: flex;
}

.page-hero-stat,
.clients-hero-stat {
  padding: 6px 26px;
  min-width: 96px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero-stat:last-child,
.clients-hero-stat:last-child {
  border-right: 0;
}

.page-hero-stat strong,
.clients-hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.page-hero-stat span,
.clients-hero-stat span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.inner .page-main {
  background:
    radial-gradient(ellipse 70% 28% at 50% 0%, rgba(29, 78, 216, 0.05), transparent 60%),
    var(--gray-light);
}

.section-header h2::after,
.clients-section-intro h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
  border-radius: 2px;
}

.service-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  box-shadow: 0 1px 0 rgba(12, 45, 107, 0.04), 0 10px 28px rgba(12, 45, 107, 0.05);
}

.service-card-index {
  display: block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.service-icon { display: none; }

.service-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.service-card p {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.5;
}

.service-area-tag {
  margin-top: 12px;
  align-self: flex-start;
  background: rgba(12, 45, 107, 0.05);
  color: var(--dark);
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.page-services .services-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(12, 45, 107, 0.08);
  margin-bottom: 14px;
}

.page-services .services-group-title em {
  font-style: normal;
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.process-step,
.process-detail .process-step {
  min-height: 230px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(12, 45, 107, 0.07);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 12px 32px rgba(12, 45, 107, 0.06);
}

.step-num {
  width: auto;
  height: auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold);
  justify-content: flex-start;
  padding: 0;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.84rem;
  line-height: 1.55;
}

.process-deliverable {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) 1fr;
  gap: 8px 32px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 16px;
  border-color: rgba(212, 160, 23, 0.28);
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.08), transparent 40%),
    var(--white);
}

.process-deliverable h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
}

.partner-detail {
  min-height: 200px;
  padding: 24px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.partner-detail:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(212, 160, 23, 0.45);
}

.partner-detail-index {
  display: block;
  font-family: var(--display);
  color: var(--gold-soft);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.partner-detail h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.page-partners .partners-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-partners .section-cta .btn-primary {
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28);
}

.partner-card {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  padding: 22px 18px;
  border-radius: 14px;
}

.page-contact .contact-board {
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12, 45, 107, 0.1);
}

.page-demo .demo-studio-shell {
  box-shadow: 0 16px 40px rgba(12, 45, 107, 0.1);
}

.page-clients .client-card {
  border-radius: 14px;
}

.page-clients .client-card-name {
  letter-spacing: -0.02em;
}

.footer {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(212, 160, 23, 0.12), transparent 50%),
    linear-gradient(180deg, var(--dark-2) 0%, #071a45 100%);
}

@media (max-width: 900px) {
  .page-hero-layout,
  .clients-hero-layout,
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .page-hero-copy h1 {
    max-width: none;
  }

  .process-deliverable {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Home — architectural 10/10
   ============================================ */

.home .hero {
  background: #f4efe6;
  height: auto;
  overflow: hidden;
  cursor: crosshair;
}

.home .hero .btn,
.home .hero a,
.home .hero button {
  cursor: pointer;
}

.home .container,
.home .nav-inner,
.home .hero-inner,
.home .hero-bottom-inner,
.home .footer .container {
  max-width: 1240px;
  padding-left: clamp(32px, 5vw, 64px);
  padding-right: clamp(32px, 5vw, 64px);
}

.home .clients-marquee-wrap {
  max-width: 1240px;
  margin: 0 auto 8px;
  padding-left: clamp(32px, 5vw, 64px);
  padding-right: clamp(32px, 5vw, 64px);
}

.home .clients-marquee-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.home .clients-marquee-label {
  display: block;
  text-align: left;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(12, 45, 107, 0.55);
}

.home .clients-marquee-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home .clients-marquee-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(12, 45, 107, 0.16);
  background: #fff;
  color: var(--dark);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.home .clients-marquee-btn:hover,
.home .clients-marquee-btn:focus-visible {
  border-color: var(--gold);
  color: var(--dark);
  background: var(--paper-2);
  outline: none;
  box-shadow: 0 8px 18px rgba(12, 45, 107, 0.08);
}

.home .clients-marquee-btn:active {
  transform: translateY(1px);
}

.home .clients-marquee {
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.12);
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.home .clients-marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 0 12px;
  animation: none;
  will-change: transform;
}

.home .marquee-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 240px;
  max-width: 280px;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(12, 45, 107, 0.1);
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.home .marquee-item:hover {
  transform: none;
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: 0 10px 22px rgba(12, 45, 107, 0.08);
}

.home .marquee-item-index {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9a6b0a;
}

.home .marquee-item-text strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--dark);
  max-width: 168px;
  margin-bottom: 2px;
}

.home .marquee-item-text span {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (prefers-reduced-motion: reduce) {
  .home .clients-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .home .clients-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    transform: none !important;
  }

  .home .clients-marquee-controls {
    display: none;
  }
}

.home .hero-inner,
.home .hero-layout {
  overflow: visible;
  flex: 1 1 auto;
}

.home .hero-fade-in {
  opacity: 1;
  transform: none;
  animation: none;
}

.home .hero-bg {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 28%),
    repeating-linear-gradient(90deg, rgba(12,45,107,0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(12,45,107,0.03) 0 1px, transparent 1px 72px);
}

.home .hero-particles {
  z-index: 2;
}

.home .hero-sheet {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(12, 45, 107, 0.1);
  pointer-events: none;
}

.home .hero-sheet::before,
.home .hero-sheet::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(12, 45, 107, 0.35);
}

.home .hero-sheet::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.home .hero-sheet::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.home .hero-brand {
  margin: 0 0 18px;
}

.home .hero-company {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.2;
}

.home .hero-brand-tagline {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.35;
}

.home .hero-title {
  font-weight: 600;
  max-width: 11em;
}

.home .hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-soft);
  display: inline-block;
  min-width: 16ch;
}

.home .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.home .hero-proof li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid rgba(12, 45, 107, 0.18);
}

.home .hero-proof li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.home .hero-actions .btn,
.home .section-cta .btn,
.home .clients-section-intro .btn,
.home .contact-teaser-actions .btn,
.home .preview-demo-copy .btn {
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  padding: 12px 20px;
}

.home .hero-survey {
  width: 100%;
  background: #fbf8f2;
  border: 1px solid rgba(12, 45, 107, 0.12);
  box-shadow: 0 24px 56px rgba(12, 45, 107, 0.1);
  padding: 12px 14px 14px;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.25s ease;
}

.home .hero.is-tracking .hero-survey {
  box-shadow: 0 28px 64px rgba(12, 45, 107, 0.16);
}

.home .hero-survey-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 45, 107, 0.55);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(12, 45, 107, 0.1);
}

.home .hero-survey-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
}

.home .hero-elevation {
  position: relative;
  min-width: 0;
}

.home .hero-elevation-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(42vh, 420px);
}

.home .hero-elev-scan {
  animation: homeElevScan 3.8s ease-in-out infinite;
}

@keyframes homeElevScan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(248px); opacity: 0; }
}

.home .hero-elev-callouts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.home .hero-elev-callouts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--dark);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(220, 38, 38, 0.16);
  padding: 6px 10px;
}

.home .hero-elev-callouts em {
  font-style: normal;
  color: var(--gold);
}

.home .hero-visual-cluster {
  width: auto;
  padding-top: 0;
}

.home .logo-build-stage {
  width: min(280px, 26vw, 34vh);
  height: min(280px, 26vw, 34vh);
}

.home .hero-live-readout {
  margin: 12px auto 0;
  border-radius: 4px;
  width: 100%;
  font-size: 0.7rem;
}

.home .hero-live-readout::before { display: none; }

.home .hero-bottom-bar {
  background: rgba(244, 239, 230, 0.92);
  border-top: 1px solid rgba(12, 45, 107, 0.1);
  padding: 16px 0;
}

.home .hero-stat-pills {
  gap: 0;
}

.home .hero-stat-pill {
  padding: 0 8px;
  border-right: 1px solid rgba(12, 45, 107, 0.12);
}

.home .hero-stat-pill:first-child { padding-left: 0; }
.home .hero-stat-pill:last-child { border-right: 0; padding-right: 0; }

.home .stat-pill-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--dark);
}

.home .hero-stat-pill--accent .stat-pill-num {
  color: var(--gold);
}

.home .stat-pill-label {
  letter-spacing: 0.1em;
}

.home h2 em,
.home .section-header h2 em,
.home .preview-demo-copy h2 em,
.home .clients-section-intro h2 em,
.home .contact-teaser h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-soft);
}

.home .section-header.light h2 em {
  color: var(--gold-soft);
}

.home .clients-count {
  font-family: var(--display);
  font-weight: 600;
  color: var(--gold);
}

.home .clients-stat-box {
  border-radius: 4px;
  box-shadow: none;
  background: #fbf8f2;
}

.home .clients-stat-box strong {
  font-family: var(--display);
  font-weight: 600;
  color: var(--dark);
}

.home .process-section::after { display: none; }

.home .process-section {
  background: #f4efe6;
}

.home .process-step {
  min-height: 0;
  border-radius: 4px;
  box-shadow: none;
  background: #fbf8f2;
}

.home .preview-demo-section {
  background: var(--white);
}

.home-studio {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fbf8f2;
  border: 1px solid rgba(12, 45, 107, 0.12);
  box-shadow: 0 18px 40px rgba(12, 45, 107, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-studio:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(12, 45, 107, 0.12);
}

.home-studio-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1px solid rgba(12, 45, 107, 0.08);
}

.home-studio-bar span:last-child {
  margin-left: auto;
  color: var(--gold);
  font-family: ui-monospace, 'Courier New', monospace;
}

.home-studio-stage {
  position: relative;
  background: #f4efe6;
}

.home-studio-svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-zone.is-active {
  fill: rgba(239, 68, 68, 0.22) !important;
  stroke: #dc2626 !important;
}

.home-studio-beam {
  filter: drop-shadow(0 0 4px #ef4444);
}

.home-studio-read {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(12, 45, 107, 0.08);
}

.home-studio-read span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
}

.home-studio-read strong {
  display: block;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.72rem;
  color: #dc2626;
}

.home-studio-read em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
}

.home-measure-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-measure-card {
  background: #fbf8f2;
  border: 1px solid rgba(12, 45, 107, 0.08);
  padding: 20px 18px 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.home-measure-index {
  font-family: var(--display);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.home-measure-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  text-transform: none;
}

.home-measure-card > p {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.home-measure-card > p em {
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.home-measure-card ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  flex: 1;
}

.home-measure-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(12, 45, 107, 0.08);
  font-size: 0.8rem;
}

.home-measure-card li strong {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--dark);
  font-weight: 700;
}

.home-measure-card > a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 2px;
}

.home .partner-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 4px;
  min-height: 148px;
}

.home .partner-mono {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

.home .partner-mark strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home .partner-mark span:last-child {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.home .contact-map {
  min-height: 0;
  height: auto;
}

.home .home-address-plate {
  min-height: 0;
  height: auto;
  padding: 28px 24px;
  border-radius: 4px;
  background: #fbf8f2;
  border: 1px solid rgba(12, 45, 107, 0.1);
  align-items: flex-start;
  text-align: left;
}

.home .home-address-plate::before { display: none; }

.home .home-pin {
  color: var(--gold);
  margin-bottom: 10px;
}

.home .home-address-plate h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home .clients-section-cta { display: none; }

.home .hero-lamp {
  position: absolute;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.18) 0%, rgba(59, 130, 246, 0.08) 38%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.25s ease;
  will-change: transform;
}

.home .hero.is-tracking .hero-lamp { opacity: 1; }

.home .hero-cursor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home .hero.is-tracking .hero-cursor { opacity: 1; }

.home .hero-cursor-x,
.home .hero-cursor-y {
  position: absolute;
  background: rgba(220, 38, 38, 0.42);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.28);
}

.home .hero-cursor-x {
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
}

.home .hero-cursor-y {
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
}

.home .hero-cursor-reticle {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid #dc2626;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12), 0 0 16px rgba(220, 38, 38, 0.35);
}

.home .hero-cursor-reticle::before,
.home .hero-cursor-reticle::after {
  content: '';
  position: absolute;
  background: #dc2626;
}

.home .hero-cursor-reticle::before {
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 1px;
  transform: translateX(-50%);
}

.home .hero-cursor-reticle::after {
  top: 50%;
  left: -5px;
  right: -5px;
  height: 1px;
  transform: translateY(-50%);
}

.home .hero-cursor-reticle span {
  position: absolute;
  left: 28px;
  top: -2px;
  white-space: nowrap;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #dc2626;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 3px 7px;
}

.home .hero-floor {
  transition: opacity 0.2s ease;
}

.home .hero-floor.is-hot {
  opacity: 0.14;
}

.home .hero-elev-callouts span {
  cursor: default;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home .hero-elev-callouts span:hover,
.home .hero-elev-callouts span.is-hot {
  transform: translateX(4px);
  border-color: rgba(220, 38, 38, 0.45);
  background: #fff;
}

.home .hero-proof li {
  transition: color 0.2s ease;
}

.home .hero-proof li:hover {
  color: var(--gold);
}

.home .hero-stat-pill {
  cursor: default;
  transition: transform 0.25s ease;
}

.home .hero-stat-pill:hover {
  transform: translateY(-3px);
}

.home .hero-stat-pill:hover .stat-pill-num {
  color: var(--gold);
}

.home .logo-build-stage {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.home .logo-build-stage:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 18px 32px rgba(29, 78, 216, 0.22));
}

.home-measure-card {
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-measure-card:hover {
  border-color: rgba(212, 160, 23, 0.45);
  box-shadow: 0 18px 36px rgba(12, 45, 107, 0.1);
}

.home-measure-card li {
  transition: background 0.2s ease, padding 0.2s ease, color 0.2s ease;
}

.home-measure-card li:hover {
  color: var(--dark);
  padding-left: 6px;
}

.home-measure-card li:hover strong {
  color: #dc2626;
}

.home-measure-card > a {
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.home-measure-card > a:hover {
  color: var(--gold);
  letter-spacing: 0.14em;
}

.home .process-step {
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.home .process-step:hover {
  background: #fff;
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 16px 32px rgba(12, 45, 107, 0.1);
}

.home .process-step:hover .step-num {
  transform: translateX(4px);
}

.home .clients-stat-box {
  cursor: default;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home .clients-stat-box:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 12px 24px rgba(12, 45, 107, 0.08);
}

.home .partner-mark {
  cursor: default;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.home .partner-mark:hover {
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.home .partner-mark:hover .partner-mono {
  color: #fff;
}

.home .home-address-plate {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home .home-address-plate:hover {
  border-color: rgba(212, 160, 23, 0.45);
  box-shadow: 0 16px 36px rgba(12, 45, 107, 0.1);
}

.home .home-pin {
  transition: transform 0.25s ease;
}

.home .home-address-plate:hover .home-pin {
  transform: translateY(-3px);
}

@media (pointer: coarse) {
  .home .hero { cursor: auto; }
  .home .hero-cursor,
  .home .hero-lamp { display: none; }
}

@media (max-width: 1100px) {
  .home .hero-survey-body {
    grid-template-columns: 1fr;
  }

  .home .hero-elevation {
    display: none;
  }

  .home .logo-build-stage {
    width: min(300px, 58vw);
    height: min(300px, 58vw);
  }

  .home-measure-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .home .hero-title {
    max-width: none;
  }

  .home .hero-proof {
    justify-content: center;
  }

  .home .hero-survey-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-studio-read {
    flex-direction: column;
    align-items: flex-start;
  }

  .home .home-address-plate {
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 1400px) {
  .home .logo-build-stage {
    width: min(320px, 28vw, 36vh);
    height: min(320px, 28vw, 36vh);
  }
}

/* ============================================
   Inner pages — same architectural sheet as home
   ============================================ */

.inner {
  background: var(--paper);
}

.inner .container,
.inner .nav-inner,
.inner .footer .container,
.page-clients .container,
.page-clients .nav-inner,
.page-clients .footer .container {
  max-width: 1240px;
  padding-left: clamp(32px, 5vw, 64px);
  padding-right: clamp(32px, 5vw, 64px);
}

.inner .btn,
.inner .hero-actions .btn,
.inner .section-cta .btn,
.inner .contact-hero-actions .btn,
.inner .contact-teaser-actions .btn,
.inner .clients-reset,
.page-contact .btn-navy {
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  padding: 12px 20px;
}

.inner .section-tag {
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(12, 45, 107, 0.16);
  color: var(--dark);
  letter-spacing: 0.14em;
  padding: 4px 10px;
}

.inner .page-hero,
.inner .clients-page-hero,
.inner .page-hero--contact,
.page-clients .clients-page-hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 44px;
  background: var(--paper);
  color: var(--dark);
  text-align: left;
}

.inner .page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 28%),
    repeating-linear-gradient(90deg, rgba(12,45,107,0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(12,45,107,0.03) 0 1px, transparent 1px 72px);
  pointer-events: none;
}

.inner .page-hero-sheet {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(12, 45, 107, 0.1);
  pointer-events: none;
}

.inner .page-hero-sheet::before,
.inner .page-hero-sheet::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(12, 45, 107, 0.35);
}

.inner .page-hero-sheet::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.inner .page-hero-sheet::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.inner .page-hero .container,
.inner .clients-page-hero .container,
.inner .page-hero--contact .container,
.page-clients .clients-page-hero .container {
  position: relative;
  z-index: 1;
}

.inner .page-hero h1,
.inner .clients-page-hero h1,
.inner .contact-hero-copy h1,
.page-clients .clients-hero-copy h1,
.page-clients .clients-page-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--dark);
  max-width: 14em;
  margin-bottom: 14px;
}

.inner .page-hero h1 em,
.inner .clients-page-hero h1 em,
.inner .contact-hero-copy h1 em,
.page-clients .clients-hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-soft);
  -webkit-text-fill-color: var(--gold-soft);
}

.inner .page-hero p,
.inner .clients-page-hero p,
.inner .page-hero--contact p,
.page-clients .clients-page-hero p {
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 38em;
  margin: 0;
}

.inner .page-hero .section-tag,
.inner .clients-page-hero .section-tag {
  background: transparent;
  color: var(--dark);
  margin-bottom: 0;
}

.inner .back-link,
.inner .page-hero .back-link,
.inner .clients-page-hero .back-link {
  color: rgba(12, 45, 107, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.inner .back-link:hover {
  color: var(--gold);
}

.inner .page-hero-kicker,
.inner .clients-hero-kicker {
  margin-bottom: 14px;
}

.inner .survey-plate,
.inner .page-hero-panel,
.inner .clients-hero-panel,
.inner .contact-hero-panel {
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.12);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 24px 56px rgba(12, 45, 107, 0.1);
  padding: 12px 14px 14px;
}

.survey-plate-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 45, 107, 0.55);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(12, 45, 107, 0.1);
}

.inner .page-hero-stat,
.inner .clients-hero-stat {
  border-right: 1px solid rgba(12, 45, 107, 0.12);
  padding: 6px 22px;
  min-width: 92px;
}

.inner .page-hero-stat:last-child,
.inner .clients-hero-stat:last-child {
  border-right: 0;
}

.inner .page-hero-stat strong,
.inner .clients-hero-stat strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--dark);
}

.inner .page-hero-stat span,
.inner .clients-hero-stat span {
  color: rgba(12, 45, 107, 0.55);
}

.inner .page-main {
  background: var(--paper);
  padding-bottom: 64px;
}

.inner .services-section,
.inner .process-section,
.inner .partners-section,
.inner .contact-section,
.inner .clients-gallery-section,
.inner .gallery-section,
.inner .about-section {
  background: var(--paper);
  min-height: 0;
  padding: 12px 0 48px;
}

.inner .process-section::after {
  display: none;
}

.page-services .services-section,
.page-process .process-section,
.page-partners .partners-section,
.page-about .about-section {
  padding-top: 8px;
  padding-bottom: 56px;
}

/* Services register — same language as home measure cards */
.page-services .services-register {
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.08);
  padding: 22px 22px 8px;
  margin-bottom: 16px;
}

.services-register-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(12, 45, 107, 0.08);
}

.services-register-head h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--dark);
}

.services-register-head p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--gray);
}

.services-register-head p em {
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.services-register-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-register-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(12, 45, 107, 0.08);
}

.services-register-list li:first-child {
  border-top: 0;
}

.services-register-list li span {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.services-register-list li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.services-register-list li em {
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray);
}

.services-register-list li b {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  padding-top: 4px;
}

.services-register-list li:hover strong {
  color: var(--dark);
}

.services-register-list li:hover b {
  color: #dc2626;
}

/* Process */
.page-process .process-step,
.page-process .process-detail .process-step {
  min-height: 0;
  border-radius: 4px;
  box-shadow: none;
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.08);
}

.page-process .process-step:hover {
  background: #fff;
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 16px 32px rgba(12, 45, 107, 0.1);
}

.page-process .process-deliverable {
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  border-radius: 4px;
  border: 1px solid rgba(12, 45, 107, 0.1);
  background: var(--paper-2);
  margin-top: 18px;
}

.page-process .process-deliverable ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-process .process-deliverable li {
  padding: 8px 0;
  border-top: 1px solid rgba(12, 45, 107, 0.08);
  font-size: 0.88rem;
}

.page-process .process-deliverable li:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 768px) {
  .process-deliverable,
  .page-process .process-deliverable {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px;
    margin-top: 20px;
  }

  .process-deliverable h3,
  .page-process .process-deliverable h3 {
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(12, 45, 107, 0.1);
  }

  .process-deliverable ul,
  .page-process .process-deliverable ul {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .page-process .process-deliverable li,
  .process-deliverable li {
    font-size: 0.94rem;
    line-height: 1.55;
    padding: 12px 0 12px 22px;
    position: relative;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-top: 1px solid rgba(12, 45, 107, 0.08);
  }

  .page-process .process-deliverable li:first-child,
  .process-deliverable li:first-child {
    border-top: 0;
    padding-top: 4px;
  }

  .page-process .process-deliverable li::before,
  .process-deliverable li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
  }
}

/* Partners — paper cards, not glass-on-navy */
.page-partners .partners-section {
  background: var(--paper);
}

.page-partners .partners-detail-grid {
  gap: 12px;
}

.page-partners .partner-detail {
  min-height: 220px;
  padding: 22px 20px;
  border-radius: 4px;
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.08);
  color: var(--dark);
}

.page-partners .partner-detail:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(212, 160, 23, 0.45);
  box-shadow: 0 16px 32px rgba(12, 45, 107, 0.1);
}

.page-partners .partner-mono {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 10px;
}

.page-partners .partner-detail-index {
  color: var(--gold);
}

.page-partners .partner-detail h3 {
  color: var(--dark);
}

.page-partners .partner-detail p {
  color: var(--gray);
}

.page-partners .partners-note {
  color: var(--gray);
  border-top: 1px solid rgba(12, 45, 107, 0.1);
}

.page-partners .partners-section .btn-outline,
.inner .partners-section .btn-outline {
  color: var(--dark);
  border-color: rgba(12, 45, 107, 0.2);
}

.page-partners .partners-section .btn-outline:hover,
.inner .partners-section .btn-outline:hover {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}

/* Contact */
.inner .page-hero--contact .btn-outline {
  color: var(--dark);
  border-color: rgba(12, 45, 107, 0.2);
  background: transparent;
}

.inner .page-hero--contact .btn-outline:hover {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.inner .contact-hero-panel-kicker {
  color: rgba(12, 45, 107, 0.55);
}

.inner .contact-hero-panel a {
  color: var(--dark);
  font-family: var(--display);
  font-weight: 600;
}

.inner .contact-hero-panel a:hover {
  color: var(--gold);
}

.inner .contact-hero-panel-note {
  border-top: 1px solid rgba(12, 45, 107, 0.1);
  color: var(--gray) !important;
}

.page-contact .contact-section {
  background: var(--paper);
  margin-top: 0;
  padding: 8px 0 56px;
}

.page-contact .contact-board {
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.12);
  border-radius: 0;
  box-shadow: 0 24px 56px rgba(12, 45, 107, 0.08);
}

.page-contact .contact-board-info {
  background: var(--paper-2);
}

.page-contact .contact-form-card {
  background: #fff;
  border-left: 1px solid rgba(12, 45, 107, 0.08);
}

.page-contact .contact-form-card::before {
  height: 2px;
  background: var(--gold);
}

.page-contact .contact-form-card h3,
.page-contact .contact-board-info h2 {
  font-family: var(--display);
  font-weight: 600;
}

.page-contact .contact-kicker {
  color: #9a6b0a;
  letter-spacing: 0.16em;
}

.page-contact .contact-steps li span {
  font-family: var(--display);
  color: #9a6b0a;
}

.page-contact .contact-channel-index {
  font-family: var(--display);
  font-size: 0.78rem;
  color: #9a6b0a;
  letter-spacing: 0.1em;
}

.page-contact .contact-method {
  background: var(--paper);
  border-radius: 4px;
}

.page-contact .contact-form input,
.page-contact .contact-form select,
.page-contact .contact-form textarea {
  border-radius: 4px;
  background: var(--paper-2);
}

.page-contact .contact-map-block {
  margin-top: 18px;
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.1);
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(12, 45, 107, 0.08);
}

.page-contact .contact-map-copy {
  background: var(--paper-2);
  border-radius: 4px;
}

.page-contact .contact-map-copy h3 {
  font-family: var(--display);
  font-weight: 600;
}

/* Clients */
.page-clients .page-main {
  background: var(--paper);
}

.page-clients .clients-control-card {
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.1);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(12, 45, 107, 0.06);
}

.page-clients .clients-search-wrap {
  border-radius: 4px;
  background: #fff;
}

.page-clients .clients-field select {
  border-radius: 4px;
  background-color: #fff;
}

.page-clients .client-card {
  border-radius: 4px;
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.08);
  box-shadow: none;
}

.page-clients .client-card:hover {
  border-color: rgba(212, 160, 23, 0.45);
  box-shadow: 0 16px 32px rgba(12, 45, 107, 0.1);
}

/* Demo studio as a drawing plate */
.page-demo .demo-section {
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 8px 0 0;
  background: var(--paper);
  overflow: visible;
}

.page-demo .demo-section::before,
.page-demo .demo-section::after {
  display: none;
}

.page-demo .demo-inner {
  max-width: 1240px;
  padding: 0 clamp(32px, 5vw, 64px) 12px;
  overflow: visible;
  flex: none;
  min-height: auto;
}

.page-demo .demo-studio-shell {
  padding: 0;
  border-radius: 0;
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.12);
  box-shadow: 0 24px 56px rgba(12, 45, 107, 0.1);
  flex: none;
  min-height: min(72vh, 760px);
  overflow: hidden;
}

.page-demo .demo-studio-shell::before {
  display: none;
}

.page-demo .demo-studio {
  background: var(--paper-2);
  border-radius: 0;
  min-height: min(72vh, 760px);
  height: min(72vh, 760px);
  flex: none;
}

.page-demo .demo-visual {
  background: var(--paper-2);
  border-radius: 0;
  border: 1px solid rgba(12, 45, 107, 0.08);
  box-shadow: none;
}

.page-demo .demo-bottom-bar {
  background: rgba(244, 239, 230, 0.92);
  border-top: 1px solid rgba(12, 45, 107, 0.1);
  box-shadow: none;
  padding: 12px clamp(32px, 5vw, 64px) 16px;
}

.page-demo .demo-bottom-inner {
  max-width: 1240px;
}

.page-demo .demo-controls {
  border-radius: 4px;
}

.page-demo .demo-panel {
  border-radius: 0;
}

.page-demo .building-stage {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.page-demo .demo-cta-section {
  background: var(--paper);
  padding: 48px 0 64px;
}

.page-demo .demo-cta-section h2 {
  font-family: var(--display);
  font-weight: 600;
}

.page-demo .demo-cta-section h2 em {
  font-style: italic;
  color: var(--gold-soft);
}

.page-demo .demo-stat-icon {
  display: none;
}

.page-demo .demo-stat-val {
  font-family: var(--display);
  font-weight: 600;
}

.inner .contact-teaser h2 {
  font-family: var(--display);
  font-weight: 600;
}

.inner h2 {
  font-family: var(--display);
  font-weight: 600;
}

.inner h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-soft);
}

.page-cta-copy {
  color: var(--gray);
}

@media (max-width: 900px) {
  .inner .page-hero,
  .inner .clients-page-hero,
  .inner .page-hero--contact {
    padding: 96px 0 32px;
  }

  .inner .page-hero h1,
  .inner .clients-page-hero h1,
  .inner .contact-hero-copy h1 {
    max-width: none;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .survey-plate-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .inner .page-hero-stats,
  .inner .clients-hero-stats {
    width: 100%;
    justify-content: space-between;
  }

  .inner .page-hero-stat,
  .inner .clients-hero-stat {
    padding: 6px 10px;
    min-width: 0;
    flex: 1;
  }

  .services-register-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .services-register-list li b {
    grid-column: 2;
    padding-top: 0;
  }

  .page-demo .demo-inner {
    padding: 0 clamp(16px, 4vw, 24px) 12px;
  }

  .page-demo .demo-studio-shell {
    min-height: 0;
  }

  .page-demo .demo-studio {
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .inner .container,
  .inner .nav-inner,
  .inner .footer .container,
  .page-clients .container,
  .page-clients .nav-inner,
  .page-clients .footer .container,
  .page-demo .demo-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .inner .page-hero-sheet {
    inset: 8px;
  }
}

/* ============================================
   Contact — 100/100 desk
   ============================================ */

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2000;
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

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

.page-contact {
  padding-bottom: 0;
}

.page-contact .nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

@media (max-width: 960px) {
  .page-contact .nav-links {
    z-index: 1100;
    width: 100%;
    max-width: none;
  }
}

.page-contact .page-hero--contact {
  padding: 108px 0 36px;
}

.page-contact .contact-hero {
  align-items: stretch;
  gap: 28px 40px;
}

.page-contact .contact-hero-copy {
  min-width: 0;
}

.page-contact .contact-hero-copy p {
  margin-top: 4px;
}

.page-contact .contact-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.page-contact .contact-proof li {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  padding-right: 14px;
  margin-right: 14px;
  border-right: 1px solid rgba(12, 45, 107, 0.18);
}

.page-contact .contact-proof li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.page-contact .contact-hero-actions {
  margin-top: 22px;
  gap: 12px;
}

.page-contact .contact-hero-actions .btn {
  min-height: 44px;
  justify-content: center;
}

.page-contact .contact-hero-panel {
  min-width: min(100%, 320px);
  max-width: 360px;
  align-self: center;
}

.page-contact .contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.page-contact .contact-hero-panel a {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.3;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid rgba(12, 45, 107, 0.16);
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 10px;
  min-height: 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

.copy-btn.is-copied {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.copy-btn--text {
  align-self: flex-start;
  min-height: 40px;
  padding: 10px 14px;
}

.page-contact .contact-section {
  padding: 8px 0 72px;
}

.page-contact .contact-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.page-contact .contact-channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 148px;
  padding: 18px 16px 16px;
  background: var(--paper-2);
  border: 1px solid rgba(12, 45, 107, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.45s ease, background 0.35s ease;
}

.page-contact .contact-channel:hover,
.page-contact .contact-channel:focus-visible {
  background: #fff;
  border-color: rgba(212, 160, 23, 0.45);
  box-shadow: 0 16px 32px rgba(12, 45, 107, 0.1);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .page-contact .contact-channel:hover {
    transform: translateY(-3px);
  }
}

.page-contact .contact-channel-index {
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.page-contact .contact-channel strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.page-contact .contact-channel em {
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-contact .contact-channel span {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--gray);
  line-height: 1.4;
}

.page-contact .contact-board {
  display: block;
  overflow: visible;
  align-items: stretch;
  scroll-margin-top: 88px;
}

.page-contact .contact-board--visit {
  margin-bottom: 18px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), transparent 28%),
    var(--paper-2);
}

.page-contact .contact-board--visit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 160, 23, 0.15));
}

.page-contact .contact-board--visit::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(12, 45, 107, 0.08);
  pointer-events: none;
}

.page-contact .contact-board--visit .survey-plate-meta {
  margin: 0 26px;
  padding: 16px 0 0;
}

.page-contact .contact-visit-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px 40px;
  align-items: end;
  margin-bottom: 28px;
}

.page-contact .contact-visit-head h2 {
  margin: 0;
  max-width: 9em;
}

.page-contact .contact-visit-head h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-soft);
}

.page-contact .contact-visit-head > p {
  margin: 0;
  color: var(--gray);
  line-height: 1.65;
  max-width: 36em;
}

.page-contact .contact-board--visit .contact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
  position: relative;
}

.page-contact .contact-board--visit .contact-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.55), transparent);
  pointer-events: none;
}

.page-contact .contact-board--visit .contact-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 22px 18px 20px;
  background: #fff;
  border: 1px solid rgba(12, 45, 107, 0.1);
  grid-template-columns: none;
  min-height: 188px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.4s ease;
}

.page-contact .contact-board--visit .contact-steps li:last-child {
  border-bottom: 1px solid rgba(12, 45, 107, 0.1);
}

.page-contact .contact-board--visit .contact-steps li span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9a6b0a;
  padding: 0;
  line-height: 1;
}

.page-contact .contact-board--visit .contact-steps strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
}

.page-contact .contact-board--visit .contact-steps em {
  margin-top: auto;
  font-size: 0.84rem;
  line-height: 1.55;
}

.page-contact .contact-board--visit .contact-ready {
  margin-top: 0;
  padding-top: 6px;
  border-top: 0;
}

.page-contact .contact-board--visit .contact-ready h3 {
  font-size: 0.62rem;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(12, 45, 107, 0.55);
  margin-bottom: 12px;
}

.page-contact .contact-board--visit .contact-ready ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-contact .contact-board--visit .contact-ready li {
  position: relative;
  margin: 0;
  padding: 16px 16px 16px 38px;
  border: 1px solid rgba(12, 45, 107, 0.1);
  border-top: 1px solid rgba(12, 45, 107, 0.1);
  background: #fff;
  color: var(--dark);
  font-size: 0.84rem;
  line-height: 1.45;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact .contact-board--visit .contact-ready li:first-child {
  padding-top: 16px;
}

.page-contact .contact-board--visit .contact-ready li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 20px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--gold);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .page-contact .contact-board--visit .contact-steps li:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 160, 23, 0.45);
    box-shadow: 0 16px 32px rgba(12, 45, 107, 0.1);
  }

  .page-contact .contact-board--visit .contact-ready li:hover {
    border-color: rgba(212, 160, 23, 0.45);
    box-shadow: 0 10px 22px rgba(12, 45, 107, 0.08);
    padding-left: 38px;
    color: var(--dark);
  }
}

.page-contact .contact-board--form {
  background: #fff;
}

.page-contact .contact-board-info,
.page-contact .contact-form-card {
  padding: 28px 26px;
  min-width: 0;
}

.page-contact .contact-form-card {
  border-left: 0;
  position: relative;
}

.page-contact .contact-form {
  display: grid;
  gap: 16px;
}

.page-contact .contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.page-contact .contact-form-row--full {
  grid-template-columns: minmax(0, 1fr);
}

.page-contact .contact-form-row > label,
.page-contact .contact-form-row--full > label {
  display: grid;
  grid-template-rows: 1.35em auto auto;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.page-contact .contact-form input,
.page-contact .contact-form select,
.page-contact .contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  border-radius: 4px;
}

.page-contact .contact-form input,
.page-contact .contact-form select {
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  line-height: 1.2;
}

.page-contact .contact-form select {
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
}

.page-contact .contact-form textarea {
  min-height: 120px;
  height: 120px;
  padding: 12px 14px;
  line-height: 1.45;
  resize: vertical;
}

.page-contact .contact-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.page-contact .contact-form-actions .btn {
  width: 100%;
  min-height: 48px;
  height: 48px;
  margin-top: 0;
  border-radius: 4px;
}

.page-contact .contact-ready {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(12, 45, 107, 0.1);
}

.page-contact .contact-ready h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.page-contact .contact-ready ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-contact .contact-ready li {
  padding: 8px 0;
  border-top: 1px solid rgba(12, 45, 107, 0.08);
  font-size: 0.86rem;
  color: var(--gray);
}

.page-contact .contact-ready li:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-contact .contact-form .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--gray);
  font-size: 0.68rem;
}

.page-contact .contact-form input,
.page-contact .contact-form select,
.page-contact .contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

.page-contact .contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.page-contact .contact-form input:focus,
.page-contact .contact-form select:focus,
.page-contact .contact-form textarea:focus {
  outline: none;
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(12, 45, 107, 0.12);
}

.page-contact .contact-form .is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.page-contact .field-error {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--red);
}

.page-contact .contact-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.page-contact .contact-form-actions .btn {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  border-radius: 4px;
}

.page-contact .contact-form-note {
  margin-top: 12px;
  color: var(--green);
}

.page-contact .contact-form-card.is-sent .contact-form,
.page-contact .contact-form-card.is-sent .contact-form-fine {
  display: none;
}

.page-contact .contact-form-card.is-sent .contact-form-note {
  display: block;
  padding: 18px 16px;
  background: var(--paper);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.55;
}

.page-contact .contact-map-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  min-height: 360px;
  margin-top: 18px;
  overflow: hidden;
}

.page-contact .contact-map-copy {
  position: static;
  max-width: none;
  left: auto;
  bottom: auto;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--paper-2);
  border: 0;
  border-right: 1px solid rgba(12, 45, 107, 0.08);
  padding: 28px 24px;
  justify-content: center;
  text-align: left;
  align-items: flex-start;
}

.page-contact .contact-map-note {
  font-size: 0.8rem !important;
  margin: 0;
}

.page-contact .contact-map-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
}

.page-contact .contact-map-actions .btn,
.page-contact .contact-map-actions .copy-btn {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 16px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-contact .contact-map-actions .copy-btn--text {
  align-self: stretch;
}

.page-contact .contact-map-frame,
.page-contact .contact-map-frame iframe {
  min-height: 360px;
  height: 100%;
}

.site-dock {
  display: none;
}

.page-contact .contact-dock {
  display: none;
}

@media (max-width: 1100px) {
  .page-contact .contact-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-contact .contact-hero-panel {
    max-width: none;
  }
}

@media (max-width: 960px) {
  .page-contact .contact-hero,
  .page-contact .contact-map-block {
    grid-template-columns: 1fr;
  }

  .page-contact .contact-form-card {
    border-left: 0;
    border-top: 0;
  }

  .page-contact .contact-visit-head,
  .page-contact .contact-board--visit .contact-steps,
  .page-contact .contact-board--visit .contact-ready ul {
    grid-template-columns: 1fr;
  }

  .page-contact .contact-board--visit .contact-steps::before {
    display: none;
  }

  .page-contact .contact-board--visit .contact-steps li {
    min-height: 0;
  }

  .page-contact .contact-visit-head h2 {
    max-width: none;
  }

  .page-contact .contact-map-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(12, 45, 107, 0.08);
  }

  .page-contact .contact-map-frame,
  .page-contact .contact-map-frame iframe {
    min-height: 280px;
    height: 280px;
  }

  .page-contact .contact-form-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .site-dock {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: rgba(244, 239, 230, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(12, 45, 107, 0.12);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .site-dock:has(.site-dock-chat:empty) {
    grid-template-columns: 1fr 1fr;
  }

  .site-dock-chat:empty {
    display: none;
  }

  .site-dock-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    flex-shrink: 0;
    margin-top: -6px;
  }

  .site-dock .deepchat-launcher {
    background: var(--dark, #0c2d6b);
    color: #fff;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
  }

  .site-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
  }

  .site-dock-call {
    background: var(--dark);
    color: var(--white, #fff);
  }

  .site-dock-wa {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white, #fff);
  }

  body.nav-open .site-dock {
    opacity: 0;
    pointer-events: none;
  }

  .page-contact {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .page-contact .page-hero--contact {
    padding: 80px 0 20px;
  }

  .page-contact .contact-hero-actions {
    display: none;
  }

  .page-contact .footer {
    padding-bottom: 12px;
  }

  .page-contact .contact-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: rgba(244, 239, 230, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(12, 45, 107, 0.12);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .page-contact .contact-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
  }

  .page-contact .contact-dock-call {
    background: var(--dark);
    color: var(--white);
  }

  .page-contact .contact-dock-wa {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
  }

  .page-contact .contact-hero-actions .btn,
  .page-contact .contact-channel {
    width: 100%;
  }

  .page-contact .contact-channels {
    grid-template-columns: 1fr;
  }

  .page-contact .contact-channel {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    padding: 14px 14px;
  }

  .page-contact .contact-channel-index {
    width: 100%;
  }

  .page-contact .contact-channel span {
    width: 100%;
    margin-top: 0;
  }

  .page-contact .contact-proof {
    gap: 8px 0;
  }

  .page-contact .contact-proof li {
    border-right: 0;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .page-contact .contact-form-row,
  .page-contact .contact-form-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-contact .contact-board-info,
  .page-contact .contact-form-card,
  .page-contact .contact-map-copy {
    padding: 20px 16px;
  }

  .page-contact .contact-board--visit .survey-plate-meta {
    margin: 0 16px;
  }
}

@media (max-width: 400px) {
  .page-contact .contact-hero-copy h1 {
    font-size: 1.7rem;
  }

  .page-contact .contact-line {
    flex-wrap: wrap;
  }
}

/* ============================================
   Contact — premium motion
   ============================================ */

.page-contact {
  --contact-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-contact .page-hero-bg {
  animation: contactGridDrift 36s linear infinite;
}

.page-contact .page-hero-sheet {
  animation: contactSheetIn 1.1s var(--contact-ease) both;
}

.page-contact .page-hero-sheet::before,
.page-contact .page-hero-sheet::after {
  animation: contactCornerPulse 3.2s ease-in-out infinite alternate;
}

.page-contact .contact-hero-copy > * {
  animation: contactRise 0.9s var(--contact-ease) both;
}

.page-contact .contact-hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.page-contact .contact-hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.page-contact .contact-hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.page-contact .contact-hero-copy > *:nth-child(4) { animation-delay: 0.34s; }
.page-contact .contact-hero-copy > *:nth-child(5) { animation-delay: 0.46s; }

.page-contact .contact-proof li {
  animation: contactRise 0.8s var(--contact-ease) both;
}

.page-contact .contact-proof li:nth-child(1) { animation-delay: 0.38s; }
.page-contact .contact-proof li:nth-child(2) { animation-delay: 0.46s; }
.page-contact .contact-proof li:nth-child(3) { animation-delay: 0.54s; }

.page-contact .contact-hero-copy h1 em {
  position: relative;
  display: inline-block;
}

.page-contact .contact-hero-copy h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  animation: contactDraw 0.9s 0.55s var(--contact-ease) forwards;
}

.page-contact .contact-hero-panel {
  animation: contactPanelIn 1s 0.22s var(--contact-ease) both;
  transition: transform 0.5s var(--contact-ease), box-shadow 0.5s ease, border-color 0.4s ease;
}

.page-contact .survey-plate-meta {
  position: relative;
}

.page-contact .survey-plate-meta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  animation: contactDraw 1s 0.7s var(--contact-ease) forwards;
}

.page-contact .contact-hero-panel a {
  position: relative;
  transition: color 0.3s ease, letter-spacing 0.35s ease;
}

.page-contact .contact-hero-panel a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--contact-ease);
}

.page-contact .contact-hero-panel a:hover {
  letter-spacing: 0.01em;
}

.page-contact .contact-hero-panel a:hover::after,
.page-contact .contact-hero-panel a:focus-visible::after {
  transform: scaleX(1);
}

.page-contact .btn,
.page-contact .copy-btn,
.page-contact .contact-dock a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--contact-ease), box-shadow 0.4s ease, border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.page-contact .btn::after,
.page-contact .copy-btn::after,
.page-contact .contact-dock a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.42) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--contact-ease);
  pointer-events: none;
  z-index: 1;
}

.page-contact .btn > *,
.page-contact .copy-btn {
  position: relative;
  z-index: 2;
}

.page-contact .btn:hover::after,
.page-contact .btn:focus-visible::after,
.page-contact .copy-btn:hover::after,
.page-contact .copy-btn:focus-visible::after,
.page-contact .contact-dock a:hover::after {
  transform: translateX(120%);
}

.page-contact .copy-btn:hover,
.page-contact .copy-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 45, 107, 0.1);
}

.copy-btn.is-copied {
  animation: contactCopied 0.45s var(--contact-ease);
}

.page-contact .contact-channel {
  position: relative;
}

.page-contact .contact-channel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--contact-ease);
}

.page-contact .contact-channel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--contact-ease);
  pointer-events: none;
}

.page-contact .contact-channel:hover::before,
.page-contact .contact-channel:focus-visible::before {
  transform: scaleY(1);
}

.page-contact .contact-channel:hover::after,
.page-contact .contact-channel:focus-visible::after {
  transform: translateX(120%);
}

.page-contact .contact-channel-index,
.page-contact .contact-channel strong,
.page-contact .contact-channel em {
  transition: transform 0.35s var(--contact-ease), color 0.3s ease;
}

.page-contact .contact-channel:hover .contact-channel-index,
.page-contact .contact-channel:focus-visible .contact-channel-index {
  transform: translateX(4px);
}

.page-contact .contact-channels.reveal-on-scroll,
.page-contact .contact-board.reveal-on-scroll,
.page-contact .contact-map-block.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.page-contact .contact-channels.reveal-on-scroll .contact-channel,
.page-contact .contact-board.reveal-on-scroll .contact-steps li,
.page-contact .contact-board.reveal-on-scroll .contact-ready,
.page-contact .contact-board.reveal-on-scroll .contact-kicker,
.page-contact .contact-board.reveal-on-scroll h2,
.page-contact .contact-board.reveal-on-scroll .contact-visit-head > p,
.page-contact .contact-board.reveal-on-scroll .contact-board-info > p:not(.contact-kicker),
.page-contact .contact-board.reveal-on-scroll .contact-form-card,
.page-contact .contact-map-block.reveal-on-scroll .contact-map-copy,
.page-contact .contact-map-block.reveal-on-scroll .contact-map-frame {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--contact-ease), transform 0.75s var(--contact-ease);
}

.page-contact .contact-channels.is-visible .contact-channel,
.page-contact .contact-board.is-visible .contact-steps li,
.page-contact .contact-board.is-visible .contact-ready,
.page-contact .contact-board.is-visible .contact-kicker,
.page-contact .contact-board.is-visible h2,
.page-contact .contact-board.is-visible .contact-visit-head > p,
.page-contact .contact-board.is-visible .contact-board-info > p:not(.contact-kicker),
.page-contact .contact-board.is-visible .contact-form-card,
.page-contact .contact-map-block.is-visible .contact-map-copy,
.page-contact .contact-map-block.is-visible .contact-map-frame {
  opacity: 1;
  transform: none;
}

.page-contact .contact-channels.is-visible .contact-channel {
  transition: opacity 0.75s var(--contact-ease), transform 0.45s var(--contact-ease), border-color 0.35s ease, box-shadow 0.45s ease, background 0.35s ease;
}

.page-contact .contact-channels.is-visible .contact-channel:nth-child(1) { transition-delay: 0.04s; }
.page-contact .contact-channels.is-visible .contact-channel:nth-child(2) { transition-delay: 0.12s; }
.page-contact .contact-channels.is-visible .contact-channel:nth-child(3) { transition-delay: 0.2s; }
.page-contact .contact-channels.is-visible .contact-channel:nth-child(4) { transition-delay: 0.28s; }

.page-contact .contact-board.is-visible .contact-kicker { transition-delay: 0.05s; }
.page-contact .contact-board.is-visible h2 { transition-delay: 0.12s; }
.page-contact .contact-board.is-visible .contact-visit-head > p { transition-delay: 0.18s; }
.page-contact .contact-board.is-visible .contact-board-info > p:not(.contact-kicker) { transition-delay: 0.18s; }
.page-contact .contact-board.is-visible .contact-steps li:nth-child(1) { transition-delay: 0.22s; }
.page-contact .contact-board.is-visible .contact-steps li:nth-child(2) { transition-delay: 0.32s; }
.page-contact .contact-board.is-visible .contact-steps li:nth-child(3) { transition-delay: 0.42s; }
.page-contact .contact-board.is-visible .contact-ready { transition-delay: 0.5s; }
.page-contact .contact-board.is-visible .contact-form-card { transition-delay: 0.16s; }

.page-contact .contact-map-block.is-visible .contact-map-copy { transition-delay: 0.06s; }
.page-contact .contact-map-block.is-visible .contact-map-frame { transition-delay: 0.18s; }

.page-contact .is-settled .contact-channel,
.page-contact .is-settled .contact-steps li,
.page-contact .is-settled .contact-ready,
.page-contact .is-settled .contact-kicker,
.page-contact .is-settled h2,
.page-contact .is-settled .contact-board-info > p:not(.contact-kicker),
.page-contact .is-settled .contact-form-card,
.page-contact .is-settled .contact-map-copy,
.page-contact .is-settled .contact-map-frame {
  transition-delay: 0s;
}

.page-contact .contact-steps li {
  transition: background 0.35s ease, padding 0.35s var(--contact-ease), border-color 0.35s ease;
}

.page-contact .contact-steps li span {
  transition: transform 0.35s var(--contact-ease), color 0.3s ease;
}

.page-contact .contact-steps li:hover span {
  transform: translateX(4px);
  color: var(--gold);
}

.page-contact .contact-ready li {
  transition: color 0.3s ease, padding-left 0.35s var(--contact-ease);
}

.page-contact .contact-ready li:hover {
  color: var(--dark);
  padding-left: 6px;
}

.page-contact .contact-form-card::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--contact-ease);
}

.page-contact .contact-board.is-visible .contact-form-card::before {
  transform: scaleX(1);
  transition-delay: 0.35s;
}

.page-contact .contact-form label {
  transition: color 0.25s ease;
}

.page-contact .contact-form label:focus-within {
  color: var(--dark);
}

.page-contact .contact-form input,
.page-contact .contact-form select,
.page-contact .contact-form textarea {
  transition: border-color 0.3s ease, box-shadow 0.35s ease, background 0.3s ease, transform 0.3s ease;
}

.page-contact .contact-form input:focus,
.page-contact .contact-form select:focus,
.page-contact .contact-form textarea:focus,
.page-contact .contact-form input.is-filled,
.page-contact .contact-form select.is-filled,
.page-contact .contact-form textarea.is-filled {
  background: #fff;
}

.page-contact .contact-form input:focus,
.page-contact .contact-form select:focus,
.page-contact .contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

.page-contact .contact-form .is-invalid:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.page-contact .field-error {
  animation: contactErrorIn 0.35s var(--contact-ease) both;
}

.page-contact .contact-form-card.is-sent .contact-form-note {
  animation: contactRise 0.7s var(--contact-ease) both;
}

.page-contact .contact-map-block {
  transition: border-color 0.4s ease, box-shadow 0.45s ease;
}

.page-contact .contact-map-frame {
  position: relative;
  overflow: hidden;
}

.page-contact .contact-map-frame iframe {
  transition: transform 0.8s var(--contact-ease), filter 0.6s ease;
  filter: grayscale(0.18) contrast(1.04);
}

.page-contact .contact-map-frame::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.9), transparent);
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.45);
  animation: contactScan 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.page-contact .contact-map-actions .btn,
.page-contact .contact-map-actions .copy-btn {
  transition: transform 0.4s var(--contact-ease), box-shadow 0.4s ease, border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.page-contact .contact-dock {
  animation: contactDockUp 0.55s 0.35s var(--contact-ease) both;
}

.page-contact .contact-dock a {
  transition: transform 0.3s var(--contact-ease), box-shadow 0.3s ease, filter 0.3s ease;
}

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

@keyframes contactPanelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes contactDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes contactSheetIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes contactCornerPulse {
  from { border-color: rgba(12, 45, 107, 0.28); }
  to { border-color: rgba(212, 160, 23, 0.7); }
}

@keyframes contactGridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 72px 0, 0 72px; }
}

@keyframes contactCopied {
  0% { transform: scale(1); }
  35% { transform: scale(0.96); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes contactScan {
  0% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 0.85; }
  100% { top: calc(100% - 2px); opacity: 0; }
}

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

@keyframes contactDockUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .page-contact .contact-hero-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 160, 23, 0.42);
    box-shadow: 0 28px 64px rgba(12, 45, 107, 0.14);
  }

  .page-contact .btn:hover,
  .page-contact .btn:focus-visible {
    transform: translateY(-2px);
  }

  .page-contact .btn-primary:hover,
  .page-contact .btn-primary:focus-visible {
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.38);
  }

  .page-contact .btn-outline:hover,
  .page-contact .btn-outline:focus-visible,
  .page-contact .contact-map-actions .copy-btn:hover,
  .page-contact .contact-map-actions .copy-btn:focus-visible {
    border-color: var(--gold);
    color: var(--dark);
    box-shadow: 0 10px 22px rgba(12, 45, 107, 0.1);
  }

  .page-contact .contact-channel:hover {
    transform: translateY(-5px);
  }

  .page-contact .contact-map-block:hover {
    border-color: rgba(212, 160, 23, 0.35);
    box-shadow: 0 22px 48px rgba(12, 45, 107, 0.12);
  }

  .page-contact .contact-map-block:hover iframe {
    transform: scale(1.035);
    filter: grayscale(0) contrast(1);
  }

  .page-contact .contact-dock a:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .contact-channel,
  .page-contact .btn,
  .page-contact .copy-btn,
  .page-contact .contact-hero-panel,
  .page-contact .contact-form input,
  .page-contact .contact-form select,
  .page-contact .contact-form textarea,
  .page-contact .contact-map-frame iframe,
  .reveal-on-scroll {
    transition: none;
  }

  .page-contact .page-hero-bg,
  .page-contact .page-hero-sheet,
  .page-contact .page-hero-sheet::before,
  .page-contact .page-hero-sheet::after,
  .page-contact .contact-hero-copy > *,
  .page-contact .contact-proof li,
  .page-contact .contact-hero-copy h1 em::after,
  .page-contact .survey-plate-meta::after,
  .page-contact .contact-hero-panel,
  .page-contact .contact-map-frame::after,
  .page-contact .contact-dock,
  .copy-btn.is-copied,
  .page-contact .field-error,
  .page-contact .contact-form-card.is-sent .contact-form-note {
    animation: none;
  }

  .page-contact .contact-hero-copy > *,
  .page-contact .contact-proof li,
  .page-contact .contact-hero-panel,
  .page-contact .contact-channels.reveal-on-scroll .contact-channel,
  .page-contact .contact-board.reveal-on-scroll .contact-steps li,
  .page-contact .contact-board.reveal-on-scroll .contact-ready,
  .page-contact .contact-board.reveal-on-scroll .contact-kicker,
  .page-contact .contact-board.reveal-on-scroll h2,
  .page-contact .contact-board.reveal-on-scroll .contact-board-info > p:not(.contact-kicker),
  .page-contact .contact-board.reveal-on-scroll .contact-form-card,
  .page-contact .contact-map-block.reveal-on-scroll .contact-map-copy,
  .page-contact .contact-map-block.reveal-on-scroll .contact-map-frame,
  .page-contact .contact-form-card::before,
  .page-contact .contact-hero-panel {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Gallery — compact drawing-sheet films
   ============================================ */

.page-gallery .page-hero--gallery {
  padding: 96px 0 14px;
}

.page-gallery .page-hero-kicker {
  margin-bottom: 8px;
}

.page-gallery .gallery-hero {
  position: relative;
  z-index: 1;
}

.page-gallery .gallery-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-gallery .gallery-hero-row h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: none;
}

.page-gallery .gallery-hero-row h1 em {
  font-style: italic;
  color: var(--gold-soft);
  -webkit-text-fill-color: var(--gold-soft);
}

.page-gallery .gallery-hero-row p {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(12, 45, 107, 0.48);
}

.page-gallery .page-main {
  padding-bottom: 32px;
}

.page-gallery .gallery-section {
  padding: 0 0 28px;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(12, 45, 107, 0.1);
}

.gallery-filter {
  appearance: none;
  -webkit-appearance: none;
  min-height: 34px;
  padding: 6px 13px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: rgba(12, 45, 107, 0.48);
  font: inherit;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible {
  color: var(--dark);
  outline: none;
}

.gallery-filter.is-active {
  color: var(--dark);
  border-bottom-color: var(--gold);
  background: transparent;
}

.gallery-group {
  margin-bottom: 16px;
}

.gallery-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(12, 45, 107, 0.08);
}

.gallery-group-head > span {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #9a6b0a;
}

.gallery-group-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.gallery-group-head p {
  margin: 0 0 0 auto;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(12, 45, 107, 0.38);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.gallery-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(12, 45, 107, 0.1);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  z-index: 4;
  opacity: 0.38;
  transform: none;
  transition: opacity 0.3s ease;
}

.gallery-card:hover,
.gallery-card:focus-within {
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: 0 8px 18px rgba(12, 45, 107, 0.07);
}

.gallery-card:hover::before,
.gallery-card:focus-within::before {
  opacity: 1;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(12, 45, 107, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(12, 45, 107, 0.03) 0 1px, transparent 1px 28px),
    #f3eee4;
}

.gallery-stage::before,
.gallery-stage::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(154, 107, 10, 0.55);
  z-index: 3;
  pointer-events: none;
}

.gallery-stage::before {
  top: 5px;
  left: 5px;
  border-right: 0;
  border-bottom: 0;
}

.gallery-stage::after {
  right: 5px;
  bottom: 5px;
  border-left: 0;
  border-top: 0;
}

.gallery-film,
.gallery-svg,
.gallery-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-svg {
  display: block;
}

.gallery-video {
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.gallery-card.has-video .gallery-video.is-ready {
  opacity: 1;
}

.gallery-card.has-video .gallery-film {
  opacity: 0;
}

.gallery-caption {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
  padding: 6px 8px 7px;
  background: #fff;
  border-top: 1px solid rgba(12, 45, 107, 0.08);
}

.gallery-caption span {
  font-family: var(--display);
  font-size: 0.64rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #9a6b0a;
  letter-spacing: 0.04em;
}

.gallery-caption h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-svg .gallery-scan,
.gallery-svg .gallery-laser,
.gallery-svg .gallery-laser-alt,
.gallery-svg .gallery-hit,
.gallery-svg .gallery-dim {
  transform-box: view-box;
  transform-origin: 0 0;
}

.gallery-card.is-playing .gallery-scan {
  animation: galleryScan 6s linear infinite;
}

.gallery-card.is-playing .gallery-laser,
.gallery-card.is-playing .gallery-laser-alt {
  animation: galleryLaser 5.5s ease-in-out infinite;
}

.gallery-card.is-playing .gallery-hit {
  opacity: 0.7;
  animation: galleryHit 5.5s ease-in-out infinite;
}

.gallery-card.is-playing .gallery-dim {
  stroke-dasharray: 8 10;
  animation: galleryDash 5s linear infinite;
}

@keyframes galleryScan {
  0% { transform: translateY(-12px); opacity: 0; }
  8% { opacity: 0.16; }
  100% { transform: translateY(360px); opacity: 0; }
}

@keyframes galleryLaser {
  0% { transform: translateX(0); }
  100% { transform: translateX(560px); }
}

@keyframes galleryHit {
  0% { transform: translate(0, -16px); }
  100% { transform: translate(560px, 10px); }
}

@keyframes galleryDash {
  to { stroke-dashoffset: -48; }
}

.page-gallery .gallery-card.reveal-on-scroll {
  transform: translateY(10px);
}

.page-gallery .section-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(12, 45, 107, 0.1);
}

.page-gallery .section-cta .btn {
  min-height: 40px;
  padding: 10px 18px;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .gallery-caption {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 6px 7px 7px;
    gap: 6px;
  }

  .gallery-caption h3 {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card.is-playing .gallery-scan,
  .gallery-card.is-playing .gallery-laser,
  .gallery-card.is-playing .gallery-laser-alt,
  .gallery-card.is-playing .gallery-hit,
  .gallery-card.is-playing .gallery-dim {
    animation: none;
  }
}

/* ============================================
   Services — per-category scan showcases
   ============================================ */

.page-services .services-section {
  padding-top: 4px;
  padding-bottom: 40px;
}

.page-services .svc-register {
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}

.page-services .svc-register .services-register-head {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.page-services {
  scroll-padding-top: 148px;
}

.svc-jump {
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(12, 45, 107, 0.1);
  position: sticky;
  top: 64px;
  z-index: 6;
  background: var(--paper);
}

.svc-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.svc-jump-row--cats {
  border-top: 1px solid rgba(12, 45, 107, 0.06);
}

.svc-jump a {
  min-height: 32px;
  padding: 7px 12px 8px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: rgba(12, 45, 107, 0.5);
  text-decoration: none;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.svc-jump-row--cats a {
  min-height: 28px;
  padding: 5px 10px 6px;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: none;
}

.svc-jump a:hover,
.svc-jump a:focus-visible {
  color: var(--dark);
  border-bottom-color: var(--gold);
  outline: none;
}

.page-services .svc-register,
.page-services .svc-cat {
  scroll-margin-top: 148px;
}

.svc-cat {
  margin-top: 12px;
}

.svc-cat:first-of-type {
  margin-top: 0;
}

.svc-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(12, 45, 107, 0.08);
}

.svc-cat-head h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.svc-cat-head p {
  margin: 0;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(12, 45, 107, 0.4);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(12, 45, 107, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  z-index: 4;
  opacity: 0.4;
}

.svc-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.svc-card:hover,
.svc-card:focus-visible,
.svc-card.is-playing {
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: 0 8px 18px rgba(12, 45, 107, 0.08);
}

.svc-card:hover::before,
.svc-card:focus-visible::before,
.svc-card.is-playing::before {
  opacity: 1;
}

.svc-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3eee4;
}

.svc-stage::before,
.svc-stage::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(154, 107, 10, 0.5);
  z-index: 3;
  pointer-events: none;
}

.svc-stage::before {
  top: 5px;
  left: 5px;
  border-right: 0;
  border-bottom: 0;
}

.svc-stage::after {
  right: 5px;
  bottom: 5px;
  border-left: 0;
  border-top: 0;
}

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

.svc-cue {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  padding: 2px 7px 3px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 45, 107, 0.12);
  color: rgba(12, 45, 107, 0.55);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.svc-card:hover .svc-cue,
.svc-card.is-playing .svc-cue {
  opacity: 0;
}

.svc-svg .svc-probe,
.svc-svg .svc-track {
  opacity: 0;
}

.svc-svg .svc-fill,
.svc-svg .svc-face {
  opacity: 0;
  pointer-events: none;
}

.svc-svg .svc-readout {
  opacity: 0.35;
}

.svc-copy {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px 9px 9px;
  border-top: 1px solid rgba(12, 45, 107, 0.08);
  background: #fff;
}

.svc-copy span {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #9a6b0a;
  padding-top: 2px;
}

.svc-copy h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin: 0 0 2px;
  line-height: 1.25;
}

.svc-copy p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--gray);
}

.svc-copy b {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  padding-top: 3px;
}

.svc-svg .svc-probe,
.svc-svg .svc-track,
.svc-svg .svc-dim,
.svc-svg .svc-cabin {
  transform-box: view-box;
  transform-origin: 0 0;
}

.svc-probe {
  offset-anchor: center;
  offset-rotate: 0deg;
}

.svc-card.is-playing .svc-probe {
  opacity: 1;
  animation: svcTravel 4.6s linear infinite;
}

.svc-card.is-playing .svc-track {
  opacity: 0.85;
  stroke-dasharray: 8 10;
  animation: svcDash 3.2s linear infinite;
}

.svc-card.is-playing .svc-dim {
  stroke-dasharray: 8 9;
  animation: svcDash 4s linear infinite;
}

.svc-card.is-playing .svc-readout {
  animation: svcPulse 3s ease-in-out infinite;
}

.svc-card.is-playing .svc-readout-2 {
  animation-delay: 0.55s;
}

.svc-card.is-playing .svc-fill,
.svc-card.is-playing .svc-face {
  animation: svcWash 3.2s ease-in-out infinite;
}

.svc-card.is-playing .svc-seq-1 { animation-delay: 0s; }
.svc-card.is-playing .svc-seq-2 { animation-delay: 0.7s; }
.svc-card.is-playing .svc-seq-3 { animation-delay: 1.4s; }

.svc-card.is-playing .svc-bar {
  animation: svcBar 2.6s ease-in-out infinite;
}

.svc-card[data-zone="grills"].is-playing .svc-bar:nth-child(odd) {
  animation-delay: 0.18s;
}

.svc-card.is-playing .svc-cabin {
  animation: svcLift 4s ease-in-out infinite;
}

.svc-card.is-playing .svc-skirt {
  animation: svcWash 2.4s ease-in-out infinite;
}

.svc-card.is-playing .svc-tile {
  stroke-dasharray: 10 8;
  animation: svcDash 2.2s linear infinite;
}

.svc-card.is-playing .svc-frame {
  animation: svcFrame 3s ease-in-out infinite;
}

.svc-card.is-playing .svc-ceil {
  transform-box: fill-box;
  transform-origin: top center;
  animation: svcCeil 3.6s ease-in-out infinite;
}

.svc-card.is-playing .svc-tag {
  animation: svcPulse 3.2s ease-in-out infinite;
}

@keyframes svcTravel {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@keyframes svcDash {
  to { stroke-dashoffset: -48; }
}

@keyframes svcWash {
  0%, 100% { opacity: 0; }
  40% { opacity: 0.28; }
}

@keyframes svcBar {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 1; }
}

@keyframes svcLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-62px); }
}

@keyframes svcPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes svcFrame {
  0%, 100% { opacity: 0.25; stroke-width: 4; }
  50% { opacity: 1; stroke-width: 6; }
}

@keyframes svcCeil {
  0% { transform: scaleY(0.08); opacity: 0.12; }
  55% { transform: scaleY(1); opacity: 0.22; }
  100% { transform: scaleY(1); opacity: 0.08; }
}

.page-services .section-cta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(12, 45, 107, 0.1);
}

@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-copy {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .svc-copy b {
    grid-column: 2;
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .page-services .svc-register {
    padding: 12px 10px 10px;
  }

  .svc-copy h3 {
    font-size: 0.72rem;
  }

  .svc-copy p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card.is-playing .svc-probe,
  .svc-card.is-playing .svc-track,
  .svc-card.is-playing .svc-dim,
  .svc-card.is-playing .svc-readout,
  .svc-card.is-playing .svc-fill,
  .svc-card.is-playing .svc-face,
  .svc-card.is-playing .svc-cabin,
  .svc-card.is-playing .svc-skirt,
  .svc-card.is-playing .svc-bar,
  .svc-card.is-playing .svc-tile,
  .svc-card.is-playing .svc-frame,
  .svc-card.is-playing .svc-ceil,
  .svc-card.is-playing .svc-tag {
    animation: none;
  }

  .svc-card .svc-fill,
  .svc-card .svc-face {
    opacity: 0.18;
  }

  .svc-card .svc-probe,
  .svc-card .svc-track {
    opacity: 0;
  }
}

.about-story {
  max-width: 40em;
  margin: 8px 0 28px;
}

.about-kicker {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-story h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--dark);
  line-height: 1.2;
}

.about-story p {
  margin: 0 0 12px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.65;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.about-pillar {
  background: var(--paper-2, #faf7f1);
  border: 1px solid rgba(12, 45, 107, 0.08);
  padding: 18px 18px 16px;
}

.about-pillar span {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 10px;
}

.about-pillar h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--dark);
}

.about-pillar p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gray);
}

.about-where {
  background: var(--dark);
  color: #fff;
  padding: 22px 24px;
  margin: 0 0 8px;
}

.about-where h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.about-where p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42em;
}

.about-office {
  color: var(--gold-soft, #e4c56a) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }
}

.svc-howto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: var(--gold, #d4a017);
  color: #0c2d6b;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 12px;
  cursor: pointer;
}

.svc-howto-icon {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0c2d6b;
}

.svc-howto-icon::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--gold, #d4a017);
}

.svc-howto:hover,
.svc-howto:focus-visible {
  background: #0c2d6b;
  color: #fff;
}

.svc-howto:hover .svc-howto-icon,
.svc-howto:focus-visible .svc-howto-icon {
  background: var(--gold, #d4a017);
}

.svc-howto:hover .svc-howto-icon::after,
.svc-howto:focus-visible .svc-howto-icon::after {
  border-color: transparent transparent transparent #0c2d6b;
}

@media (prefers-reduced-motion: no-preference) {
  .svc-howto-icon {
    animation: ke-howto-pulse 2.2s ease-out infinite;
  }
}

@keyframes ke-howto-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(12, 45, 107, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(12, 45, 107, 0); }
}

body.howto-open {
  overflow: hidden;
}

.howto-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
}

.howto-layer[hidden] {
  display: none !important;
}

.howto-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 48, 0.82);
}

.howto-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1240px, calc(100vw - 64px));
  height: min(860px, calc(100dvh - 56px));
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  background: #07122f;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.howto-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  padding: 14px 16px 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.howto-heading {
  min-width: 0;
  flex: 1;
}

.howto-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #d4a017);
  margin-bottom: 2px;
}

.howto-heading strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.howto-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.howto-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.howto-close:hover,
.howto-close:focus-visible {
  color: var(--gold, #d4a017);
}

.howto-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  background: #000;
}

.howto-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.howto-player video,
.howto-player iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.howto-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(7, 18, 48, 0.78);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.howto-prev { left: 18px; }

.howto-next { right: 18px; }

.howto-nav:hover,
.howto-nav:focus-visible {
  background: var(--gold, #d4a017);
  color: #0c2d6b;
  border-color: var(--gold, #d4a017);
}

.howto-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.howto-chooser {
  flex: 0 0 auto;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #061028;
}

.howto-chooser-label {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #d4a017);
}

.howto-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.howto-strip[hidden] {
  display: flex !important;
}

.howto-thumb {
  flex: 0 0 210px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: #07122f;
  color: #fff;
  padding: 0 0 10px;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
}

.howto-thumb-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.howto-thumb-frame img,
.howto-thumb-frame video,
.howto-thumb-frame > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
}

.howto-thumb-frame > span {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.howto-thumb em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  padding: 8px 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.howto-thumb.is-active {
  border-color: var(--gold, #d4a017);
  box-shadow: 0 0 0 1px var(--gold, #d4a017);
}

@media (max-width: 900px) {
  .howto-layer {
    padding: 10px 10px 88px;
    align-items: center;
  }

  .howto-dialog {
    width: 100%;
    height: min(92dvh, calc(100dvh - 20px));
    max-height: min(92dvh, calc(100dvh - 20px));
  }

  .howto-bar {
    padding: 10px 8px 10px 14px;
    gap: 10px;
  }

  .howto-heading strong {
    font-size: 0.98rem;
  }

  .howto-nav {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .howto-prev { left: 8px; }

  .howto-next { right: 8px; }

  .howto-thumb {
    flex: 0 0 168px;
  }

  .howto-chooser {
    padding: 10px 12px 12px;
  }
}



