:root {
  --bg: #040208;
  --bg-soft: #0c0714;
  --panel: rgba(12, 7, 20, 0.84);
  --panel-strong: rgba(17, 10, 27, 0.96);
  --text: #f6f2ff;
  --muted: #bdaed8;
  --line: rgba(183, 120, 255, 0.2);
  --purple: #8b3dff;
  --purple-2: #b15cff;
  --purple-3: #5220a8;
  --teal: #84f2ff;
  --ok: #84f2b4;
  --warn: #ffd479;
  --danger: #ff8fb0;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

@keyframes sidebarPulse {
  0%, 100% {
    transform: scale(0.86);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --scroll-shift: 0px;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Bahnschrift", "Aptos", "Segoe UI Variable Display", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 61, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(177, 92, 255, 0.15), transparent 28%),
    repeating-linear-gradient(
      120deg,
      rgba(139, 61, 255, 0.1) 0,
      rgba(139, 61, 255, 0.1) 7px,
      rgba(4, 2, 8, 0) 7px,
      rgba(4, 2, 8, 0) 31px
    ),
    linear-gradient(180deg, #06030b 0%, #040208 100%);
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: -100px;
  left: -130px;
  background: rgba(139, 61, 255, 0.45);
  transform: translate3d(0, calc(var(--scroll-shift) * 0.18), 0);
}

.ambient-right {
  right: -140px;
  bottom: -110px;
  background: rgba(177, 92, 255, 0.34);
  transform: translate3d(0, calc(var(--scroll-shift) * -0.12), 0);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1750px, calc(100% - 32px));
  margin: 18px auto 34px;
  padding-bottom: 26px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 88px 0 auto;
  height: 420px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 15% 18%, rgba(132, 242, 255, 0.08), transparent 18%),
    linear-gradient(135deg, rgba(139, 61, 255, 0.08), rgba(0, 0, 0, 0));
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
  transform: translate3d(0, calc(var(--scroll-shift) * 0.08), 0);
}

.glass {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%);
  pointer-events: none;
}

.glass::after {
  content: "";
  position: absolute;
  inset: auto -18% -46% 20%;
  height: 160px;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.16), transparent 62%);
  filter: blur(36px);
  pointer-events: none;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 30px;
  transform: perspective(1500px) rotateX(2deg);
}

.hero-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.5rem, 4.7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  max-width: 11ch;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead,
.lead-small,
.small-note,
.demo-box,
.selected-property-summary,
.stat-label,
.result-note,
.meta,
.description {
  color: var(--muted);
}

.lead {
  max-width: 78ch;
  line-height: 1.7;
}

.lead-small {
  line-height: 1.65;
  margin: 10px 0 0;
}

.hero-ribbon,
.tag-row,
.property-actions,
.action-row,
.meta,
.metrics-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-ribbon span,
.tag-pill,
.status-pill {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-ribbon span,
.tag-pill {
  border: 1px solid rgba(183, 120, 255, 0.18);
  background: rgba(139, 61, 255, 0.12);
}

.hero-exploded-stage {
  --stage-tilt-x: 8deg;
  --stage-tilt-y: -7deg;
  --pointer-x: 50%;
  --pointer-y: 40%;
  position: relative;
  min-height: 270px;
  margin-top: 8px;
  border-radius: 32px;
  border: 1px solid rgba(183, 120, 255, 0.18);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(132, 242, 255, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(10, 6, 18, 0.7);
  overflow: hidden;
  transform: perspective(1700px) rotateX(var(--stage-tilt-x)) rotateY(var(--stage-tilt-y));
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.3);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hero-exploded-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(132, 242, 255, 0.06) 0,
      rgba(132, 242, 255, 0.06) 1px,
      transparent 1px,
      transparent 46px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(177, 92, 255, 0.05) 0,
      rgba(177, 92, 255, 0.05) 1px,
      transparent 1px,
      transparent 38px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
  pointer-events: none;
}

.exploded-glow,
.exploded-floor,
.exploded-house,
.exploded-piece,
.exploded-callout {
  position: absolute;
}

.exploded-glow {
  inset: 18% 22% auto;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 242, 255, 0.22), rgba(139, 61, 255, 0.08), transparent 72%);
  filter: blur(14px);
  transform: translate3d(calc((var(--pointer-x) - 50%) / 8), calc((var(--pointer-y) - 50%) / 10), 0);
}

.exploded-floor {
  left: 14%;
  right: 14%;
  bottom: 10%;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.4), rgba(4, 2, 8, 0));
  filter: blur(10px);
  transform: translateX(calc((var(--pointer-x) - 50%) / 18));
}

.exploded-house {
  --exploded-scale: 1;
  --house-tilt-x: 10deg;
  --house-base-y: -28deg;
  --house-drift-x: 0px;
  --house-drift-y: 0px;
  left: 50%;
  top: 48%;
  width: 250px;
  height: 210px;
  transform: translate(calc(-50% + var(--house-drift-x)), calc(-42% + var(--house-drift-y))) rotateX(var(--house-tilt-x)) rotateY(var(--house-base-y)) scale(var(--exploded-scale));
  transform-style: preserve-3d;
  animation: showcaseSpin 18s ease-in-out infinite alternate;
  transition: transform 180ms ease;
}

.exploded-piece {
  display: block;
  padding: 0;
  cursor: pointer;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 28px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.exploded-piece:hover,
.exploded-piece:focus-visible,
.exploded-piece.is-active {
  border-color: rgba(132, 242, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 26px rgba(132, 242, 255, 0.18),
    0 18px 28px rgba(0, 0, 0, 0.24);
  filter: saturate(1.12);
}

.exploded-piece:focus-visible {
  outline: 2px solid rgba(132, 242, 255, 0.38);
  outline-offset: 2px;
}

.exploded-roof {
  left: 28px;
  top: 0;
  width: 190px;
  height: 56px;
  clip-path: polygon(50% 0, 100% 74%, 92% 100%, 8% 100%, 0 74%);
  background: linear-gradient(135deg, rgba(132, 242, 255, 0.92), rgba(177, 92, 255, 0.84));
  transform: translateZ(110px) translateY(-10px);
}

.exploded-attic {
  left: 52px;
  top: 56px;
  width: 144px;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(36, 20, 60, 0.96), rgba(139, 61, 255, 0.62));
  transform: translateZ(86px) translateY(-4px);
}

.exploded-upper {
  left: 40px;
  top: 94px;
  width: 170px;
  height: 34px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(132, 242, 255, 0.16)), linear-gradient(180deg, rgba(120, 64, 225, 0.9), rgba(70, 30, 140, 0.96));
  transform: translateZ(66px) translateX(-4px);
}

.exploded-core {
  left: 34px;
  top: 136px;
  width: 182px;
  height: 44px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)), linear-gradient(180deg, rgba(139, 61, 255, 0.84), rgba(65, 28, 126, 0.98));
  transform: translateZ(42px) translateX(6px);
}

.exploded-door {
  left: 110px;
  top: 122px;
  width: 34px;
  height: 62px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, rgba(8, 5, 14, 0.94), rgba(132, 242, 255, 0.18));
  transform: translateZ(76px) translateY(4px);
}

.exploded-window {
  width: 30px;
  height: 22px;
  top: 104px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(132, 242, 255, 0.88), rgba(139, 61, 255, 0.32));
  transform: translateZ(84px);
  box-shadow: 0 0 22px rgba(132, 242, 255, 0.2);
}

.exploded-window-left {
  left: 60px;
}

.exploded-window-right {
  right: 62px;
}

.exploded-base {
  left: 18px;
  top: 186px;
  width: 214px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(36, 20, 60, 0.96), rgba(132, 242, 255, 0.3), rgba(36, 20, 60, 0.96));
  transform: translateZ(18px);
}

.exploded-callout {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(183, 120, 255, 0.18);
  background: rgba(10, 6, 18, 0.78);
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, opacity 180ms ease;
}

.callout-left {
  left: 28px;
  top: 34px;
}

.callout-right {
  right: 28px;
  top: 88px;
}

.callout-bottom {
  right: 72px;
  bottom: 26px;
}

@keyframes showcaseSpin {
  from {
    transform: translate(calc(-50% + var(--house-drift-x)), calc(-46% + var(--house-drift-y))) rotateX(calc(var(--house-tilt-x) - 1deg)) rotateY(-38deg) scale(var(--exploded-scale));
  }
  to {
    transform: translate(calc(-50% + var(--house-drift-x)), calc(-46% + var(--house-drift-y))) rotateX(calc(var(--house-tilt-x) + 1deg)) rotateY(322deg) scale(var(--exploded-scale));
  }
}

.cube-house {
  --cube-size: 150px;
  width: var(--cube-size);
  height: var(--cube-size);
  top: 50%;
  transform: translate(calc(-50% + var(--house-drift-x)), calc(-46% + var(--house-drift-y))) rotateX(var(--house-tilt-x)) rotateY(var(--house-base-y)) scale(var(--exploded-scale));
}

.cube-face {
  width: var(--cube-size);
  height: var(--cube-size);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(139, 61, 255, 0.92), rgba(60, 24, 120, 0.96));
  overflow: hidden;
}

.cube-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(132, 242, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.cube-face-front {
  transform: translateZ(calc(var(--cube-size) / 2));
}

.cube-face-back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(90, 42, 182, 0.9), rgba(52, 20, 102, 0.96));
}

.cube-face-left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(78, 36, 160, 0.95), rgba(39, 16, 80, 0.98));
}

.cube-face-right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
  background:
    linear-gradient(135deg, rgba(132, 242, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(104, 50, 204, 0.9), rgba(46, 18, 94, 0.98));
}

.cube-face-top {
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
  background:
    linear-gradient(135deg, rgba(132, 242, 255, 0.34), rgba(177, 92, 255, 0.18)),
    linear-gradient(180deg, rgba(102, 54, 190, 0.92), rgba(50, 22, 108, 0.96));
}

.cube-face-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
  background:
    linear-gradient(135deg, rgba(26, 14, 44, 0.98), rgba(60, 24, 120, 0.76)),
    linear-gradient(180deg, rgba(52, 20, 102, 0.98), rgba(24, 10, 46, 1));
}

.cube-window,
.cube-door,
.cube-band,
.cube-side-window,
.cube-side-line,
.cube-roof-panel,
.cube-foundation {
  position: absolute;
  display: block;
}

.cube-window {
  top: 28px;
  width: 34px;
  height: 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(132, 242, 255, 0.92), rgba(177, 92, 255, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 18px rgba(132, 242, 255, 0.22);
}

.cube-window-left {
  left: 26px;
}

.cube-window-right {
  right: 26px;
}

.cube-door {
  left: 50%;
  bottom: 18px;
  width: 42px;
  height: 64px;
  margin-left: -21px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, rgba(7, 6, 14, 0.94), rgba(132, 242, 255, 0.14));
  border: 1px solid rgba(132, 242, 255, 0.3);
}

.cube-band {
  left: 20px;
  right: 20px;
  height: 16px;
  border-radius: 999px;
  background: rgba(132, 242, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cube-band-top {
  top: 24px;
}

.cube-band-mid {
  top: 64px;
}

.cube-band-low {
  top: 104px;
}

.cube-side-window {
  left: 50%;
  width: 42px;
  height: 26px;
  margin-left: -21px;
  top: 30px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(132, 242, 255, 0.88), rgba(177, 92, 255, 0.24));
}

.cube-side-window-bottom {
  top: 78px;
}

.cube-side-line {
  left: 22px;
  right: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(132, 242, 255, 0.28);
}

.cube-side-line-top {
  top: 30px;
}

.cube-side-line-mid {
  top: 60px;
}

.cube-side-line-bottom {
  top: 90px;
}

.cube-roof-panel {
  top: 28px;
  width: 44px;
  height: 86px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(132, 242, 255, 0.3), rgba(17, 10, 27, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cube-roof-panel-a {
  left: 28px;
}

.cube-roof-panel-b {
  right: 28px;
}

.cube-foundation {
  left: 18px;
  right: 18px;
  top: 38px;
  bottom: 38px;
  border-radius: 20px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(132, 242, 255, 0.12) 0,
      rgba(132, 242, 255, 0.12) 10px,
      rgba(0, 0, 0, 0) 10px,
      rgba(0, 0, 0, 0) 20px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
}

.cube-house .exploded-piece:hover,
.cube-house .exploded-piece:focus-visible,
.cube-house .exploded-piece.is-active {
  transform: var(--face-transform) scale(1.04);
}

.cube-face-front { --face-transform: translateZ(calc(var(--cube-size) / 2)); }
.cube-face-back { --face-transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-face-left { --face-transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-face-right { --face-transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-face-top { --face-transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-face-bottom { --face-transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

.hero-side,
.sidebar-column,
.main-column,
.utility-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-showcase {
  position: relative;
  min-height: 250px;
  border-radius: calc(var(--radius-xl) + 4px);
  border: 1px solid rgba(183, 120, 255, 0.18);
  background:
    radial-gradient(circle at 50% 28%, rgba(132, 242, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(12, 7, 20, 0.84);
  overflow: hidden;
  transform: perspective(1600px) rotateX(10deg) rotateY(-7deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 12% 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132, 242, 255, 0.6), transparent);
  box-shadow: 0 58px 0 rgba(132, 242, 255, 0.12), 0 116px 0 rgba(132, 242, 255, 0.08);
}

.showcase-orbit,
.showcase-beam,
.showcase-house,
.showcase-floor {
  position: absolute;
}

.showcase-orbit {
  inset: 18% auto auto 50%;
  width: 200px;
  height: 200px;
  margin-left: -100px;
  border-radius: 50%;
  border: 1px solid rgba(177, 92, 255, 0.28);
  transform-style: preserve-3d;
}

.orbit-one {
  transform: rotateX(72deg) rotateZ(18deg);
}

.orbit-two {
  transform: rotateX(72deg) rotateY(64deg);
  opacity: 0.55;
}

.showcase-beam {
  inset: 16% 28% auto;
  height: 46%;
  background: linear-gradient(180deg, rgba(132, 242, 255, 0.26), rgba(139, 61, 255, 0.04), transparent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: blur(3px);
}

.showcase-house {
  left: 50%;
  top: 50%;
  width: 156px;
  height: 144px;
  transform: translate(-50%, -38%) rotateX(14deg) rotateY(-18deg);
  transform-style: preserve-3d;
}

.showcase-body,
.showcase-roof,
.showcase-door,
.showcase-window {
  position: absolute;
  display: block;
}

.showcase-body {
  inset: 38px 14px 8px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(139, 61, 255, 0.8), rgba(82, 32, 168, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset -22px 0 22px rgba(0, 0, 0, 0.22);
  transform: translateZ(24px);
}

.showcase-roof {
  left: 4px;
  right: 4px;
  top: 8px;
  height: 62px;
  clip-path: polygon(50% 0, 100% 66%, 90% 76%, 10% 76%, 0 66%);
  background: linear-gradient(135deg, rgba(132, 242, 255, 0.78), rgba(177, 92, 255, 0.82));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  transform: translateZ(38px);
}

.showcase-door {
  left: 58px;
  bottom: 10px;
  width: 36px;
  height: 58px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, rgba(8, 5, 14, 0.86), rgba(132, 242, 255, 0.18));
  border: 1px solid rgba(132, 242, 255, 0.3);
  transform: translateZ(42px);
}

.showcase-window {
  width: 28px;
  height: 24px;
  top: 56px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(132, 242, 255, 0.78), rgba(139, 61, 255, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: translateZ(44px);
  box-shadow: 0 0 24px rgba(132, 242, 255, 0.22);
}

.showcase-window-left {
  left: 28px;
}

.showcase-window-right {
  right: 28px;
}

.showcase-floor {
  left: 12%;
  right: 12%;
  bottom: 10%;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.36), rgba(4, 2, 8, 0));
  filter: blur(8px);
}

.hero-card,
.panel,
.stage-panel,
.property-stage,
.calculator-stage,
.inquiry-stage {
  padding: 22px;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(183, 120, 255, 0.18);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-card:hover,
.layer-card:hover,
.stage-panel:hover,
.calculator-stage:hover,
.inquiry-stage:hover,
.property-stage:hover {
  transform: translateY(-4px);
  border-color: rgba(132, 242, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.status-card {
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(139, 61, 255, 0.14);
  border: 1px solid rgba(183, 120, 255, 0.18);
}

.selected-property-summary {
  line-height: 1.6;
  min-height: 80px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.sidebar-column {
  display: grid;
  gap: 20px;
}

.layer-card {
  transform: perspective(1200px) rotateX(3deg);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.panel-header,
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
}

#editorPanel .panel-header,
#brokerAdminPanel .panel-header {
  padding-left: 22px;
  padding-top: 14px;
}

#inquiriesPanel .panel-header {
  padding-left: 10px;
  padding-top: 8px;
}

#editorPanel input,
#editorPanel select,
#editorPanel textarea,
#brokerAdminPanel input,
#brokerAdminPanel select,
#brokerAdminPanel textarea {
  padding: 10px 12px;
  border-radius: 12px;
}

#editorPanel .form-grid,
#brokerAdminPanel .form-grid {
  gap: 12px;
}

.property-preview-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(183, 120, 255, 0.16);
}

.gallery-upload-list {
  display: grid;
  gap: 10px;
}

.gallery-upload-item {
  display: grid;
  gap: 8px;
}

.add-upload-button {
  margin-top: 10px;
}

.preview-card {
  margin-top: 8px;
}

.preview-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 18px;
  border: 1px dashed rgba(183, 120, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

#editorPanel label,
#brokerAdminPanel label {
  font-size: 0.88rem;
  margin-bottom: 5px;
}

h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.03em;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(183, 120, 255, 0.18);
  border-radius: 15px;
  background: rgba(8, 5, 14, 0.9);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(177, 92, 255, 0.22);
  border-color: rgba(177, 92, 255, 0.38);
}

.button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 16px 26px rgba(82, 32, 168, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px rgba(82, 32, 168, 0.44);
  filter: saturate(1.08);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.button.is-saved {
  border: 1px solid rgba(132, 242, 255, 0.26);
  color: var(--teal);
}

.button.save-star {
  min-width: 52px;
  padding-inline: 14px;
  font-size: 1.25rem;
  line-height: 1;
}

.button.secondary {
  background: linear-gradient(135deg, rgba(132, 242, 255, 0.22), rgba(177, 92, 255, 0.35));
}

.button.danger {
  background: linear-gradient(135deg, rgba(255, 143, 176, 0.32), rgba(177, 92, 255, 0.26));
}

.stack {
  display: grid;
  gap: 14px;
}

#loginPanel .stack,
#customerAccessPanel.stack,
#brokerRegistrationPanel .stack {
  gap: 16px;
}

.demo-box,
.instruction-card,
.tip-card,
.result-card {
  border: 1px solid rgba(183, 120, 255, 0.18);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.instruction-card.compact-card {
  padding: 18px 18px 16px;
}

.instruction-card .small-note {
  line-height: 1.7;
}


.demo-box p {
  margin: 8px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sidebar-spotlight {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-spotlight-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(183, 120, 255, 0.16);
}

.sidebar-spotlight-card strong {
  display: block;
  margin-bottom: 8px;
}

.sidebar-dynamic-fill {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.saved-properties-list {
  display: grid;
  gap: 12px;
}

.saved-property-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(183, 120, 255, 0.16);
}

.saved-property-item strong {
  display: block;
  margin-bottom: 6px;
}

.compact-card {
  margin-top: 12px;
}

.pulse-card,
.ticker-card {
  position: relative;
  overflow: hidden;
}

.pulse-card::after,
.ticker-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -44% 24%;
  height: 120px;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.18), transparent 62%);
  filter: blur(24px);
  pointer-events: none;
}

.live-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.live-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(132, 242, 255, 0.95), rgba(177, 92, 255, 0.8));
  box-shadow: 0 0 14px rgba(132, 242, 255, 0.25);
  animation: sidebarPulse 1.8s ease-in-out infinite;
}

.live-dots span:nth-child(2) {
  animation-delay: 0.22s;
}

.live-dots span:nth-child(3) {
  animation-delay: 0.44s;
}

.ticker-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.ticker-stack span {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(183, 120, 255, 0.16);
  color: var(--muted);
  animation: sidebarSlideIn 500ms ease both;
}

.ticker-stack span:nth-child(2) {
  animation-delay: 80ms;
}

.ticker-stack span:nth-child(3) {
  animation-delay: 160ms;
}

.stat-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(183, 120, 255, 0.16);
  transform: translateZ(0);
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.stat-card:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(132, 242, 255, 0.22);
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.stage-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  transform: perspective(1400px) rotateX(2deg);
  overflow: hidden;
}

.stage-panel::before {
  content: "";
  position: absolute;
  inset: auto -16% -28% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 242, 255, 0.16), rgba(139, 61, 255, 0));
  filter: blur(20px);
  pointer-events: none;
}

.property-grid,
.inquiry-grid,
.broker-list {
  display: grid;
  gap: 14px;
}

.admin-activity-filters {
  margin: 10px 0 14px;
}

.property-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.property-card,
.inquiry-card,
.broker-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
  border: 1px solid rgba(183, 120, 255, 0.16);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
  transform: perspective(1200px) rotateX(3deg);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.property-card:hover,
.inquiry-card:hover,
.broker-card:hover {
  transform: perspective(1200px) rotateX(0deg) translateY(-6px);
  border-color: rgba(132, 242, 255, 0.22);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.34);
}

.property-card-saved {
  border-color: rgba(132, 242, 255, 0.32);
  box-shadow: 0 24px 42px rgba(49, 174, 193, 0.16);
}

.property-visual {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.property-image-wrap {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.property-visual::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -14px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  filter: blur(9px);
  z-index: 0;
}

.property-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(183, 120, 255, 0.18);
  transform: translateZ(18px);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
  display: block;
  position: relative;
  z-index: 1;
}

.property-visual:hover .property-image {
  transform: translateZ(26px) scale(1.01);
  box-shadow: 0 28px 44px rgba(0, 0, 0, 0.3);
}

.immersive-trigger {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  transform: none;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-gallery img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(183, 120, 255, 0.16);
  cursor: zoom-in;
  transition: transform 160ms ease, border-color 160ms ease;
}

.mini-gallery img:hover,
.immersive-gallery img:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(132, 242, 255, 0.28);
}

.property-video-wrap {
  margin-top: 10px;
}

.property-video,
.immersive-video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(183, 120, 255, 0.18);
  background: #000;
}

.property-video {
  max-height: 200px;
}

.immersive-video {
  margin-bottom: 14px;
  max-height: 320px;
}

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

.meta {
  font-size: 0.92rem;
}

.status-pill.available {
  background: rgba(132, 242, 180, 0.12);
  color: var(--ok);
}

.status-pill.reserved {
  background: rgba(255, 212, 121, 0.12);
  color: var(--warn);
}

.status-pill.sold {
  background: rgba(255, 143, 176, 0.12);
  color: var(--danger);
}

.status-pill.new {
  background: rgba(132, 242, 255, 0.14);
  color: var(--teal);
}

.status-pill.forwarded {
  background: rgba(132, 242, 180, 0.12);
  color: var(--ok);
}

.metrics-row {
  gap: 12px;
}

.metric-box {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(183, 120, 255, 0.14);
}

.metric-box strong {
  display: block;
  margin-top: 6px;
}

.map-link {
  color: var(--teal);
  text-decoration: none;
}

.property-map-card {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(183, 120, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.property-map-frame,
.immersive-map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(183, 120, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.property-map-frame {
  height: 210px;
}

.immersive-map-wrap {
  margin-top: 16px;
  min-height: 120px;
  padding: 18px;
}

.property-map-frame iframe,
.immersive-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.checkbox-grid {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.property-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.consent-row {
  align-items: flex-start;
  line-height: 1.55;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(183, 120, 255, 0.14);
}

.consent-row input {
  margin-top: 0.28rem;
  flex: 0 0 auto;
}

.consent-row a {
  word-break: break-word;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.instruction-card ol,
.result-card ul {
  margin: 12px 0 0 18px;
  padding: 0;
  line-height: 1.65;
}

.finance-result-shell {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.result-card.success {
  border-color: rgba(132, 242, 180, 0.28);
}

.result-card.warning {
  border-color: rgba(255, 212, 121, 0.26);
}

.result-card.danger {
  border-color: rgba(255, 143, 176, 0.24);
}

.immersive-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}

.immersive-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(139, 61, 255, 0.22), transparent 30%),
    rgba(4, 2, 8, 0.82);
  backdrop-filter: blur(10px);
}

.immersive-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(183, 120, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 6, 18, 0.96);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  transform: perspective(1600px) rotateX(1deg);
}

.immersive-close {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.immersive-content {
  padding: 22px;
}

.immersive-stage {
  display: grid;
  gap: 22px;
  perspective: 1600px;
}

.immersive-hero {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(183, 120, 255, 0.2);
  transform: perspective(1500px) rotateX(4deg);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
}

.immersive-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.02);
  cursor: zoom-in;
}

.immersive-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.66)),
    linear-gradient(135deg, rgba(139, 61, 255, 0.12), transparent 45%);
}

.immersive-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 12px;
  max-width: 72%;
}

.immersive-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.immersive-floating {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -10px;
  position: relative;
  z-index: 1;
  padding: 0 18px;
}

.floating-card {
  padding: 12px 14px;
  max-width: 240px;
  border-radius: 18px;
  border: 1px solid rgba(183, 120, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(16, 10, 26, 0.88);
  transform: perspective(1200px) rotateX(5deg) translateY(0);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.floating-card strong {
  font-size: 0.95rem;
}

.immersive-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.immersive-panel {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(183, 120, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.immersive-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.immersive-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(183, 120, 255, 0.18);
  transform: perspective(1000px) rotateX(6deg);
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 8, 0.9);
  backdrop-filter: blur(8px);
}

.image-lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(1300px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(183, 120, 255, 0.24);
  background: rgba(10, 6, 18, 0.96);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.56);
}

.image-lightbox-shell img {
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  display: block;
  border-radius: 20px;
  opacity: 1;
  filter: brightness(1) saturate(1);
  transform: scale(1);
  will-change: opacity, filter, transform;
  transition: opacity 220ms ease, filter 220ms ease, transform 260ms ease;
}

.image-lightbox-shell img.is-dimming {
  opacity: 0.18;
  filter: brightness(0.58) saturate(0.88);
  transform: scale(0.992);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.result-metric {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(183, 120, 255, 0.14);
}

.result-metric strong {
  display: block;
  margin-top: 6px;
}

.admin-subpanel-header {
  margin-top: 22px;
}

.site-footer {
  margin-top: 22px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 120, 255, 0.3);
  padding-bottom: 2px;
}

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

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(167, 92, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #07070b 0%, #14111c 100%);
}

.legal-shell {
  width: min(100% - 28px, 980px);
  margin: 0 auto;
  padding: 36px 0 64px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.legal-back {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(183, 120, 255, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-card {
  padding: 26px;
}

.legal-card h1 {
  margin: 0 0 10px;
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 20px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: 300px 1fr;
  }

  .utility-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-panel,
  .stage-panel,
  .dashboard-grid,
  .utility-column,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-column {
    position: static;
  }

  .stats-grid,
  .result-grid,
  .immersive-floating,
  .immersive-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 210px;
    transform: none;
  }

  .hero-exploded-stage {
    min-height: 220px;
    transform: none;
  }

  .exploded-house {
    --exploded-scale: 0.8;
    --house-drift-x: 0px;
    --house-drift-y: 0px;
  }

  .exploded-callout {
    font-size: 0.7rem;
    padding: 7px 10px;
  }

  .immersive-copy {
    max-width: 100%;
  }

  .floating-card {
    max-width: none;
  }

  .page-shell {
    width: min(100% - 20px, 1750px);
  }

  .panel,
  .stage-panel,
  .layer-card {
    padding: 18px;
  }

  .sidebar-column,
  .main-column,
  .utility-column {
    gap: 16px;
  }

  .stack,
  #loginPanel .stack,
  #customerAccessPanel.stack,
  #brokerRegistrationPanel .stack {
    gap: 15px;
  }

  .instruction-card,
  .tip-card,
  .result-card,
  .instruction-card.compact-card {
    padding: 16px;
  }

  .consent-row {
    padding: 13px 14px;
  }

  input,
  select,
  textarea {
    padding: 13px 14px;
  }

  .site-footer,
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 14px, 1750px);
  }

  .hero-panel,
  .panel,
  .stage-panel,
  .layer-card {
    padding: 16px;
  }

  .panel-header,
  .card-header {
    margin-bottom: 14px;
  }

  .sidebar-column,
  .main-column,
  .utility-column {
    gap: 14px;
  }

  label {
    margin-bottom: 7px;
  }

  .small-note,
  .lead-small {
    line-height: 1.75;
  }

  .consent-row {
    gap: 8px;
    line-height: 1.65;
  }
}
