:root {
  color-scheme: light;
  --bg: #ffffff;
  --text-main: rgba(17, 24, 39, 0.92);
  --text-muted: rgba(55, 65, 81, 0.78);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(15, 23, 42, 0.1);
  --shadow: rgba(15, 23, 42, 0.12);
  --chat-bg: #0f172a;
  --chat-panel: rgba(8, 15, 33, 0.94);
  --chat-border: rgba(148, 163, 184, 0.18);
  --chat-text: #f8fafc;
  --chat-muted: rgba(226, 232, 240, 0.72);
  --chat-accent: #4f8cff;
  --chat-accent-2: #2fe8ff;
  --shared-scene-bg-mobile: url('./assets/images/scenes/scene-background-mobile.webp');
  --shared-scene-bg-desktop: url('./assets/images/scenes/scene-background-desktop.webp');
  --shared-scene-bg: var(--shared-scene-bg-desktop);
  --shared-scene-fill-start: #552fbe;
  --shared-scene-fill-mid: #4251b4;
  --shared-scene-fill-end: #df176f;
}

@media (max-width: 860px) {
  :root {
    --shared-scene-bg: var(--shared-scene-bg-mobile);
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  position: relative;
  touch-action: none;
  user-select: none;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.top-bar {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(calc(100vw - 18px), 980px);
  pointer-events: none;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.top-bar-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.top-bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.top-bar-avatar {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
}

.top-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-sound-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 144px;
  min-height: 42px;
  flex: 0 0 auto;
}

.top-bar-sound-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  color: #0f172a;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.top-bar-reset-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  font-size: 14px;
  line-height: 1;
}

.top-bar-sound-brand[hidden] {
  display: none;
}

.top-bar-sound-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, 0.32);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.94), rgba(59, 130, 246, 0.94));
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.42), 0 14px 28px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  cursor: pointer;
  animation: soundButtonPulse 1.45s ease-in-out infinite, soundButtonBlink 1.2s steps(2, start) infinite;
}

.top-bar-sound-button.is-hidden {
  display: none;
}

.top-bar-sound-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

@keyframes soundButtonPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.38), 0 14px 28px rgba(37, 99, 235, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }
  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0), 0 18px 34px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }
}

@keyframes soundButtonBlink {
  0%, 45%, 100% {
    filter: brightness(1);
  }
  55%, 70% {
    filter: brightness(1.16);
  }
}

.top-bar-cta,
.top-bar-menu-toggle,
.top-bar-menu button {
  font: inherit;
}

.top-bar-cta {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.top-bar-cta-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.94));
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.top-bar-menu-wrap {
  position: relative;
}

.top-bar-menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 6px rgba(15, 23, 42, 0.34);
  color: #ffffff;
  cursor: pointer;
}

.top-bar-menu-lines {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.top-bar-menu-lines span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.88));
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.36);
}

.top-bar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 8px;
  min-width: 196px;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.98), rgba(17, 24, 39, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.top-bar-menu button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.top-bar-menu button:hover,
.top-bar-menu button:focus-visible {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.26);
  outline: none;
}

@media (max-width: 760px) {
  .top-bar {
    width: calc(100vw - 14px);
  }

  .top-bar-inner {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .top-bar-start {
    gap: 6px;
  }

  .top-bar-cta,
  .top-bar-sound-button,
  .top-bar-sound-brand {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.93rem;
  }

  .top-bar-sound-slot {
    min-width: 132px;
    min-height: 38px;
  }

  .top-bar-menu-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 520px) {

  .projects-return-sprite {
    left: calc(50% - ((100vw - 14px) / 2) + 10px);
  }

  .top-bar-avatar {
    width: 36px;
    height: 36px;
  }

  .top-bar-start {
    gap: 5px;
  }

  .top-bar-actions {
    gap: 6px;
  }

  .top-bar-cta,
  .top-bar-sound-button,
  .top-bar-sound-brand {
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .top-bar-sound-slot {
    min-width: 116px;
  }
}


.overlay-corner-sprite {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 66;
  display: grid;
  place-items: start;
  width: auto;
  opacity: 0;
  transform: translate3d(10px, 18px, 0);
  pointer-events: none;
}

.overlay-corner-sprite[hidden] {
  display: none;
}

.overlay-corner-sprite.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.2,.78,.18,1);
}

.overlay-corner-sprite-image {
  width: clamp(140px, 18vw, 196px);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.28));
  animation: projectsReturnHover 3.6s ease-in-out 220ms infinite;
  transform: none;
  transform-origin: top right;
}

@media (max-width: 640px) {
  .overlay-corner-sprite-image {
    width: clamp(118px, 30vw, 154px);
  }
}

.projects-panel {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: calc(var(--topbar-space, 84px) + 18px) 24px calc(var(--footer-space, 76px) + 18px);
  pointer-events: none;
}

.projects-panel[hidden] {
  display: none;
}

.projects-panel.is-visible {
  pointer-events: auto;
}

.projects-panel-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 900px);
  align-content: start;
}

.projects-return-sprite {
  display: none !important;
}

.projects-return-sprite-image {
  display: none !important;
}

@keyframes projectsReturnSpriteIn {
  0% {
    opacity: 0;
    transform: translate3d(-10px, 22px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes projectsReturnHover {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}



.projects-carousel-heading {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(2rem, 4.8vw, 2.44rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}

.projects-carousel {
  position: relative;
  width: min(100%, 840px);
}

.projects-carousel-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  touch-action: manipulation;
}

.projects-carousel-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.04), rgba(4, 10, 18, 0.18) 68%, rgba(4, 10, 18, 0.34));
  pointer-events: none;
}

.projects-carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects-carousel-pill {
  position: absolute;
  left: clamp(14px, 2.6vw, 22px);
  bottom: clamp(14px, 2.6vw, 22px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px);
}

.projects-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(46px, 5.4vw, 58px);
  height: clamp(46px, 5.4vw, 58px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.projects-carousel-arrow.is-prev {
  left: clamp(10px, 1.8vw, 16px);
}

.projects-carousel-arrow.is-next {
  right: clamp(10px, 1.8vw, 16px);
}

.projects-carousel-arrow:hover,
.projects-carousel-arrow:focus-visible {
  transform: translateY(-50%) scale(1.04);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.projects-back-button {
  min-height: 42px;
  min-width: 140px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.projects-back-button:focus-visible,
.projects-carousel-link:focus-visible,
.projects-carousel-arrow:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .projects-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .projects-panel-content {
    gap: 10px;
  }

  .projects-return-sprite {
    top: calc(var(--topbar-space, 84px) + 8px);
    left: calc(50% - (min(calc(100vw - 14px), 980px) / 2) + 12px);
  }

  .projects-return-sprite-image {
    width: clamp(108px, 23vw, 138px);
  }

  .projects-back-button {
    padding: 11px 14px;
  }

  .projects-carousel-link {
    border-radius: 22px;
  }

  .projects-carousel-pill {
    min-height: 38px;
    padding: 0 14px;
    max-width: calc(100% - 88px);
  }
}

.live-chat-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 60;
}

.live-chat-modal[hidden] {
  display: none;
}

.live-chat-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.live-chat-shell {
  position: relative;
  z-index: 1;
  width: min(92vw, 450px);
  height: min(calc(100svh - 18px), 780px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.live-chat-shell-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.live-chat-shell-close:hover {
  background: rgba(15, 23, 42, 0.28);
}

.live-chat-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text-main);
  background: #ffffff;
}


body.scene-loading {
  background:
    radial-gradient(1400px circle at 50% -10%, rgba(158, 203, 255, 0.56), transparent 56%),
    radial-gradient(920px circle at 50% 18%, rgba(255, 255, 255, 0.96), rgba(233, 242, 255, 0.92) 48%, rgba(214, 229, 248, 0.84) 100%);
}

body.scene-loading .top-bar,
body.scene-loading .site-footer,
body.scene-loading .hero-clouds,
body.scene-loading .projects-panel,
body.scene-loading .live-chat-modal,
body.scene-loading .quote-modal,
body.scene-loading .info-modal,
body.scene-audio .top-bar,
body.scene-audio .site-footer,
body.scene-audio .hero-clouds,
body.scene-audio .projects-panel,
body.scene-audio .live-chat-modal,
body.scene-audio .quote-modal,
body.scene-audio .info-modal,
body.scene-intro .top-bar,
body.scene-intro .site-footer,
body.scene-intro .hero-clouds,
body.scene-intro .projects-panel,
body.scene-intro .live-chat-modal,
body.scene-intro .quote-modal,
body.scene-intro .info-modal {
  opacity: 0;
  pointer-events: none;
}

body.scene-loading canvas,
body.scene-audio canvas,
body.scene-intro canvas {
  opacity: 0;
  pointer-events: none;
}

body.scene-home .top-bar,
body.scene-home .site-footer,
body.scene-home canvas {
  opacity: 1;
}

.loading-scene {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1200px circle at 50% 8%, rgba(255, 255, 255, 0.98), rgba(232, 242, 255, 0.96) 48%, rgba(208, 224, 244, 0.9) 100%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading-scene.is-exit {
  opacity: 0;
  visibility: hidden;
}

.audio-scene {
  --audio-parallax-x: 0px;
  --audio-parallax-y: 0px;
  --audio-drift: 0px;
  position: fixed;
  inset: 0;
  z-index: 118;
  overflow: hidden;
  background: linear-gradient(145deg, var(--shared-scene-fill-start) 0%, var(--shared-scene-fill-mid) 54%, var(--shared-scene-fill-end) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.audio-scene[hidden] {
  display: block;
}

body.scene-audio .audio-scene {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.audio-scene-layer,
.audio-scene-sheen {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.audio-scene-layer {
  background-image: var(--shared-scene-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: center center;
}

.audio-scene-layer-back {
  transform: translate3d(calc(var(--audio-parallax-x) * -0.82), calc(var(--audio-parallax-y) * -0.76 + var(--audio-drift) * -0.74), 0);
  filter: blur(22px) saturate(1.08) brightness(0.86);
  opacity: 0.52;
}

.audio-scene-layer-mid {
  transform: translate3d(calc(var(--audio-parallax-x) * 1.2), calc(var(--audio-parallax-y) * 1.02 + var(--audio-drift) * 0.86), 0);
  filter: blur(7px) saturate(1.12) brightness(0.98);
  opacity: 0.42;
  mix-blend-mode: screen;
}

.audio-scene-layer-front {
  transform: translate3d(calc(var(--audio-parallax-x) * 0.16), calc(var(--audio-parallax-y) * 0.14 + var(--audio-drift) * 0.08), 0);
  filter: drop-shadow(0 20px 44px rgba(34, 25, 118, 0.28));
  opacity: 0.98;
}

.audio-scene-sheen {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.13), transparent 28%),
    radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(8, 10, 36, 0.08), rgba(8, 10, 36, 0.28));
  transform: translate3d(calc(var(--audio-parallax-x) * -0.34), calc(var(--audio-parallax-y) * -0.28), 0);
  opacity: 0.82;
}

.audio-scene-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}

.audio-enable-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(86vw, 320px);
  min-height: clamp(68px, 11vw, 92px);
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.42);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.96), rgba(37, 99, 235, 0.94));
  color: #ffffff;
  font: inherit;
  font-size: clamp(1.05rem, 3.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4), 0 26px 60px rgba(15, 23, 42, 0.4), inset 0 1px 0 rgba(255,255,255,0.28);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, opacity 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  animation: audioSceneButtonPulse 1.5s ease-in-out infinite, audioSceneButtonBlink 1.18s steps(2, start) infinite, audioSceneButtonFloat 3.8s ease-in-out infinite;
}

.audio-enable-button.is-starting {
  animation-play-state: paused;
  opacity: 0.88;
  transform: translateY(2px) scale(0.94);
  filter: brightness(1.08) saturate(1.08);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.34), inset 0 1px 0 rgba(255,255,255,0.22);
}

.audio-enable-button.is-vanishing {
  opacity: 0;
  transform: translateY(0) scale(0);
  filter: brightness(1.08) saturate(1.08);
  transition: transform 220ms cubic-bezier(.18,.84,.2,1), opacity 220ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.audio-enable-button-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 0 18px rgba(255,255,255,0.95);
}

@keyframes audioSceneButtonPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.42), 0 26px 60px rgba(15, 23, 42, 0.4), inset 0 1px 0 rgba(255,255,255,0.28);
  }
  50% {
    transform: translateY(-2px) scale(1.045);
    box-shadow: 0 0 0 16px rgba(96, 165, 250, 0), 0 30px 68px rgba(15, 23, 42, 0.46), inset 0 1px 0 rgba(255,255,255,0.36);
  }
}

@keyframes audioSceneButtonBlink {
  0%, 44%, 100% { filter: brightness(1); }
  54%, 70% { filter: brightness(1.18); }
}

@keyframes audioSceneButtonFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (max-width: 640px) {
  .audio-enable-button {
    min-width: min(90vw, 280px);
    min-height: 64px;
    padding: 0 24px;
  }
}


.intro-scene {
  --intro-parallax-x: 0px;
  --intro-parallax-y: 0px;
  --intro-drift-x: 0px;
  --intro-drift-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 117;
  overflow: hidden;
  background: #0d1726;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.intro-scene[hidden] {
  display: block;
}

body.scene-intro .intro-scene {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro-scene-layer,
.intro-scene-sheen {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.intro-scene-layer {
  background-image: var(--shared-scene-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: center center;
}

.intro-scene-layer-back {
  transform: translate3d(calc(var(--intro-parallax-x) * -0.22 + var(--intro-drift-x) * -0.3), calc(var(--intro-parallax-y) * -0.18 + var(--intro-drift-y) * -0.24), 0) scale(1.08);
  filter: brightness(1.04) saturate(1.08);
}

.intro-scene-layer-mid {
  transform: translate3d(calc(var(--intro-parallax-x) * -0.4 + var(--intro-drift-x) * -0.5), calc(var(--intro-parallax-y) * -0.3 + var(--intro-drift-y) * -0.38), 0) scale(1.11);
  filter: brightness(1.01) saturate(1.06) contrast(1.01);
  opacity: 0.3;
  mix-blend-mode: screen;
}

.intro-scene-layer-front {
  transform: translate3d(calc(var(--intro-parallax-x) * -0.62 + var(--intro-drift-x) * -0.7), calc(var(--intro-parallax-y) * -0.46 + var(--intro-drift-y) * -0.52), 0) scale(1.14);
  filter: brightness(0.98) saturate(1.12) contrast(1.04);
  opacity: 0.16;
}

.intro-scene-sheen {
  background-image:
    radial-gradient(circle at 52% 20%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 16% 18%, rgba(191, 219, 254, 0.06), transparent 22%),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, rgba(5, 9, 16, 0.06), rgba(5, 9, 16, 0.18));
  transform: translate3d(calc(var(--intro-parallax-x) * -0.12 + var(--intro-drift-x) * -0.16), calc(var(--intro-parallax-y) * -0.09 + var(--intro-drift-y) * -0.12), 0);
}

.intro-scene-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}

.intro-scene-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 720px);
  text-align: center;
}

.intro-headshot-wrap {
  margin: 0;
  width: min(62vw, 280px);
  max-width: 280px;
  opacity: 0;
  transform: translate3d(-42vw, 12vh, 0) rotate(-9deg) scale(0.76);
  transition: transform 860ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 420ms ease;
  filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.34));
}

.intro-headshot-wrap.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.intro-headshot-wrap.is-active .intro-headshot {
  animation: introHeadshotHover 5.8s ease-in-out infinite;
}

.intro-headshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255,255,255,0.22);
}

.intro-copy-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 760px);
}

.intro-copy {
  min-height: 4.4em;
  margin: 0;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.98);
  font-family: 'Segoe Print', 'Bradley Hand', 'Snell Roundhand', 'Comic Sans MS', cursive;
  font-size: clamp(1.16rem, 4.35vw, 2.18rem);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: 0.012em;
  text-shadow: 0 8px 26px rgba(15, 23, 42, 0.42), 0 2px 8px rgba(15, 23, 42, 0.24);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.intro-copy-word {
  display: inline-block;
  white-space: nowrap;
}

.intro-copy-letter {
  display: inline-block;
  will-change: transform;
  animation: introLetterFloat 3.4s ease-in-out infinite;
  animation-delay: var(--letter-float-delay, 0ms);
}

.intro-copy.is-typing::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.14em;
  vertical-align: -0.12em;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.38);
  animation: introCaretBlink 1s steps(2, start) infinite;
}

.intro-copy.is-complete::after {
  display: none;
}

.intro-next-button {
  min-height: 52px;
  max-width: 100%;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 238, 247, 0.96));
  color: #0f172a;
  font: inherit;
  font-size: clamp(0.88rem, 2.6vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 280ms ease, transform 340ms ease;
}

.intro-next-button.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: introNextButtonFloat 4.4s ease-in-out infinite;
}

@keyframes introCaretBlink {
  0%, 45%, 100% { opacity: 1; }
  55%, 70% { opacity: 0; }
}

@keyframes introHeadshotHover {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes introLetterFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes introNextButtonFloat {
  0%, 100% {
    translate: 0 0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  }
  50% {
    translate: 0 -8px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  }
}

@media (max-width: 640px) {
  .intro-scene-content {
    gap: 16px;
  }

  .intro-headshot-wrap {
    width: min(70vw, 246px);
  }

  .intro-copy {
    min-height: 4.9em;
    padding: 0 8px;
  }

  .intro-next-button {
    min-height: 50px;
    padding: 0 22px;
    font-size: 0.96rem;
  }
}

.loading-scene-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 560px);
}

.loading-word {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(4px, 1vw, 10px);
  font-size: clamp(3.4rem, 14vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: rgba(15, 23, 42, 0.22);
  text-rendering: geometricPrecision;
  transform: none;
  transition: transform 300ms ease, color 300ms ease, font-weight 300ms ease, letter-spacing 300ms ease;
}

.loading-word.is-complete {
  color: rgba(15, 23, 42, 0.9);
  font-weight: 800;
  letter-spacing: -0.065em;
  transform: scale(1.06);
}

.loading-letter {
  opacity: 0.08;
  transform: translateY(18px) scale(0.92);
  filter: blur(8px);
  transition: opacity 280ms ease, transform 360ms ease, filter 360ms ease, color 300ms ease;
}

.loading-letter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.loading-progress {
  position: relative;
  width: min(68vw, 220px);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.loading-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.5), rgba(15, 23, 42, 0.92));
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.22);
  transition: width 160ms ease;
}

@media (max-width: 640px) {
  .loading-scene-inner {
    gap: 16px;
  }

  .loading-progress {
    width: min(72vw, 180px);
  }
}

.load-error {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 130;
  max-width: min(92vw, 560px);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
  font-size: 0.94rem;
  line-height: 1.4;
}

body.chat-page {
  touch-action: auto;
  user-select: text;
  background:
    radial-gradient(960px circle at 50% -6%, rgba(79, 140, 255, 0.18), transparent 56%),
    radial-gradient(760px circle at 92% 14%, rgba(47, 232, 255, 0.08), transparent 48%),
    radial-gradient(720px circle at 10% 86%, rgba(215, 180, 106, 0.07), transparent 54%),
    linear-gradient(180deg, #07101e 0%, #0b1324 46%, #09111f 100%);
  color: var(--chat-text);
}

body.chat-page,
body.chat-page * {
  -webkit-user-select: text;
  user-select: text;
}

body.chat-page button,
body.chat-page input,
body.chat-page textarea {
  font: inherit;
}

.chat-page-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.cf-chat-wrap {
  width: 100%;
  height: 100%;
}

.cf-chat-box {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 15, 33, 0.96), rgba(12, 20, 38, 0.98));
  color: var(--chat-text);
  border: 1px solid var(--chat-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cf-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(47, 232, 255, 0.08));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.cf-chat-header h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.cf-chat-sub {
  margin: 4px 0 0;
  color: var(--chat-muted);
  font-size: 0.88rem;
}

.cf-chat-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cf-chat-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cf-chat-messages {
  padding: 18px 18px 12px;
  overflow: auto;
  scroll-behavior: smooth;
}

.cf-chat-bubble {
  max-width: min(82%, 320px);
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.45;
  font-size: 0.94rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
  white-space: pre-wrap;
}

.cf-chat-bubble.bot {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 8px;
  color: rgba(248, 250, 252, 0.96);
}

.cf-chat-bubble.user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.92), rgba(43, 112, 255, 0.96));
  border-bottom-right-radius: 8px;
  color: #ffffff;
}

.cf-chat-meta {
  display: block;
  margin-top: 6px;
  opacity: 0.62;
  font-size: 0.72rem;
}

.cf-chat-fallback {
  margin: 0 18px 14px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.cf-chat-fallback p {
  margin: 0;
  color: var(--chat-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cf-chat-input {
  padding: 0 18px 18px;
}

.cf-chat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cf-chat-row input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.cf-chat-row input::placeholder {
  color: rgba(226, 232, 240, 0.48);
}

.cf-chat-row input:focus {
  border-color: rgba(79, 140, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}

.cf-chat-row button {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--chat-accent), #2b70ff);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.cf-chat-row button:hover {
  filter: brightness(1.05);
}

.cf-chat-row button:disabled {
  opacity: 0.45;
  cursor: default;
}

.cf-chat-typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.cf-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  animation: cf-chat-typing 1s infinite ease-in-out;
}

.cf-chat-typing span:nth-child(2) {
  animation-delay: 0.12s;
}

.cf-chat-typing span:nth-child(3) {
  animation-delay: 0.24s;
}

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

@keyframes cf-chat-typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .live-chat-shell {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: 0;
  }

  .live-chat-shell-close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
  }

  .cf-chat-box {
    border-radius: 0;
  }

  .cf-chat-header {
    padding-top: max(24px, env(safe-area-inset-top) + 12px);
  }
}

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

.quote-modal[hidden] {
  display: none;
}

.quote-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.quote-shell {
  position: relative;
  z-index: 1;
  width: min(94vw, 620px);
  height: min(88vh, 860px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 110px rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.quote-shell-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.88);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.quote-shell-close:hover {
  background: rgba(15, 23, 42, 0.14);
}

.quote-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

body.quote-page {
  overflow: auto;
  background:
    radial-gradient(920px circle at 50% -8%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(760px circle at 100% 10%, rgba(14, 165, 233, 0.08), transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: rgba(17, 24, 39, 0.94);
  touch-action: auto;
  user-select: text;
}

.quote-page-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quote-card {
  width: min(100%, 560px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.quote-card-header {
  padding: 28px 28px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.05));
}

.quote-card-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.quote-card-header h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.quote-card-header p {
  margin: 12px 0 0;
  color: rgba(51, 65, 85, 0.86);
  line-height: 1.6;
}

.quote-close-inline {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.86);
  font-size: 24px;
  cursor: pointer;
}

.quote-card-body {
  position: relative;
  padding: 24px 28px 28px;
}

.quote-form-grid {
  display: grid;
  gap: 16px;
}

.quote-field {
  display: grid;
  gap: 8px;
}

.quote-field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.quote-field input,
.quote-field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.quote-field textarea {
  min-height: 140px;
  resize: vertical;
}

.quote-field input:focus,
.quote-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.quote-budget-card {
  padding: 16px 16px 14px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.96));
}

.quote-budget-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quote-budget-value {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.quote-budget-hint {
  font-size: 0.86rem;
  color: rgba(51, 65, 85, 0.74);
}

.quote-range {
  width: 100%;
}

.quote-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(71, 85, 105, 0.86);
}

.quote-turnstile-slot {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.quote-turnstile-slot[hidden] {
  display: none;
}

.quote-turnstile-slot iframe {
  max-width: 100%;
}

.quote-status {
  min-height: 22px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.quote-status.is-error { color: #b91c1c; }
.quote-status.is-working { color: #1d4ed8; }
.quote-status.is-success { color: #047857; }

.quote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.quote-meta {
  font-size: 0.82rem;
  color: rgba(71, 85, 105, 0.8);
}

.quote-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.quote-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.quote-success {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 8;
}

.quote-success.is-visible {
  display: flex;
}

.quote-success-card {
  width: min(100%, 460px);
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.quote-success-card h2 {
  margin: 0 0 8px;
  font-size: 1.24rem;
  color: #0f172a;
}

.quote-success-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(51, 65, 85, 0.9);
}

.quote-success-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.quote-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quote-fineprint {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: rgba(100, 116, 139, 0.8);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .quote-page-main { padding: 0; }
  .quote-card { width: 100%; min-height: 100vh; border-radius: 0; }
  .quote-card-header, .quote-card-body { padding-left: 20px; padding-right: 20px; }
  .quote-shell { width: 100vw; height: 100vh; border-radius: 0; }
  .quote-field-row { grid-template-columns: 1fr; }
  .quote-actions { align-items: stretch; }
  .quote-submit { width: 100%; }
}

/* Light theme alignment for chat and informational panels */
.live-chat-shell {
  width: min(94vw, 620px);
  height: min(88vh, 860px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 110px rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.live-chat-shell-close {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.88);
}

.live-chat-shell-close:hover {
  background: rgba(15, 23, 42, 0.14);
}

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

.info-modal[hidden] {
  display: none;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.info-shell {
  position: relative;
  z-index: 1;
  width: min(94vw, 720px);
  height: min(88vh, 900px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 110px rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.info-shell-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.88);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.info-shell-close:hover {
  background: rgba(15, 23, 42, 0.14);
}

.info-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

body.info-page {
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: rgba(17, 24, 39, 0.94);
  touch-action: auto;
  user-select: text;
}

.info-page-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.info-card {
  width: min(100%, 660px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.info-card-header {
  padding: 28px 28px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.05));
}

.info-card-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.info-card-header h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.info-card-header p {
  margin: 12px 0 0;
  color: rgba(51, 65, 85, 0.86);
  line-height: 1.6;
}

.info-card-body {
  position: relative;
  padding: 24px 28px 28px;
}

.info-close-inline {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.86);
  font-size: 24px;
  cursor: pointer;
}

.info-stack {
  display: grid;
  gap: 18px;
}

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

.about-photo-wrap {
  display: grid;
  place-items: center;
}

.about-photo {
  width: 164px;
  aspect-ratio: 1;
  border-radius: 28px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.04));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.about-copy h2,
.faq-section h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  color: #0f172a;
}

.about-copy p {
  margin: 0;
  color: rgba(51, 65, 85, 0.9);
  line-height: 1.7;
}

.about-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(71, 85, 105, 0.86);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.faq-item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0f172a;
}

.faq-item p {
  margin: 0;
  line-height: 1.65;
  color: rgba(51, 65, 85, 0.9);
}

.about-form-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
  margin: 4px 0;
}

@media (max-width: 640px) {
  .live-chat-shell,
  .info-shell {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: 0;
  }

  .info-page-main { padding: 0; }
  .info-card { width: 100%; min-height: 100vh; border-radius: 0; }
  .info-card-header, .info-card-body { padding-left: 20px; padding-right: 20px; }
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { width: min(56vw, 200px); margin-inline: auto; }
}

@media (max-width: 860px), (max-height: 760px) {
  .quote-shell,
  .info-shell,
  .live-chat-shell {
    width: min(100vw, 100%);
    height: min(100vh, 100%);
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: 0;
  }

  .quote-page-main,
  .info-page-main {
    padding: 0;
  }

  .quote-card,
  .info-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .quote-card-header,
  .quote-card-body,
  .info-card-header,
  .info-card-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.top-bar-menu[hidden] {
  display: none !important;
}

.top-bar-brand {
  gap: 0;
}

.top-bar-menu-wrap {
  isolation: isolate;
}

.quote-shell,
.info-shell,
.live-chat-shell {
  height: min(calc(100svh - 18px), 780px);
}

.quote-shell > .quote-page-main,
.info-shell > .info-page-main {
  overflow: hidden;
}

.quote-shell .quote-card,
.info-shell .info-card {
  display: flex;
  flex-direction: column;
}

.quote-card-header,
.info-card-header {
  padding: 18px 20px 12px;
}

.quote-card-header h1,
.info-card-header h1 {
  font-size: clamp(1.3rem, 2.4vw, 1.72rem);
}

.quote-card-header p,
.info-card-header p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.quote-close-inline,
.info-close-inline,
.live-chat-shell-close,
.cf-chat-close {
  width: 34px;
  height: 34px;
  font-size: 22px;
}

.quote-card-body,
.info-card-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 20px 18px;
}

.info-stack,
.quote-form-grid,
.faq-list {
  gap: 10px;
}

.quote-field {
  gap: 6px;
}

.quote-field-row {
  gap: 10px;
}

.quote-field label {
  font-size: 0.84rem;
}

.quote-field input,
.quote-field textarea,
#cfChatInput {
  padding: 11px 12px;
  border-radius: 14px;
}

.quote-field input {
  min-height: 44px;
}

.quote-field textarea {
  min-height: 82px;
  max-height: 82px;
  resize: none;
}

.quote-budget-card {
  padding: 12px 12px 10px;
  border-radius: 16px;
}

.quote-budget-top {
  margin-bottom: 8px;
}

.quote-budget-value {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

.quote-budget-hint,
.quote-meta,
.quote-fineprint {
  font-size: 0.72rem;
  line-height: 1.32;
}

.quote-range-labels {
  margin-top: 6px;
  font-size: 0.7rem;
}

.quote-turnstile-slot {
  min-height: 58px;
}

.quote-turnstile-slot iframe {
  transform-origin: left top;
}

.quote-status {
  min-height: 18px;
  font-size: 0.84rem;
  line-height: 1.3;
}

.quote-actions {
  gap: 10px;
}

.quote-submit,
.quote-secondary-btn,
#cfChatSend,
.cf-chat-fallback-actions a {
  min-height: 42px;
}

.quote-submit {
  padding: 0 18px;
}

.quote-success-card {
  padding: 14px 14px 12px;
}

.quote-success-card h2 {
  font-size: 1.08rem;
}

.quote-success-card p {
  font-size: 0.9rem;
  line-height: 1.42;
}

.about-hero {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.about-photo {
  width: 96px;
  border-radius: 20px;
}

.about-copy h2,
.faq-item h3 {
  margin-bottom: 6px;
}

.about-copy p,
.faq-item p,
.about-note {
  font-size: 0.85rem;
  line-height: 1.42;
}

.about-note {
  padding: 10px 12px;
}

.faq-item {
  padding: 12px 13px;
  border-radius: 16px;
}

.cf-chat-header {
  padding: 16px 16px 12px !important;
}

.cf-chat-header h3 {
  font-size: 16px !important;
}

.cf-chat-sub {
  margin-top: 3px !important;
  font-size: 12px !important;
}

.cf-chat-messages {
  padding: 12px !important;
}

.cf-chat-bubble {
  padding: 10px 12px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.cf-chat-input {
  padding: 10px 12px 12px !important;
}

@media (max-width: 860px), (max-height: 820px) {
  .quote-shell,
  .info-shell,
  .live-chat-shell {
    width: 100vw;
    height: 100svh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: 0;
  }

  .quote-card-header,
  .info-card-header {
    padding: 14px 16px 10px;
  }

  .quote-card-header p,
  .info-card-header p {
    font-size: 0.84rem;
    line-height: 1.34;
  }

  .quote-card-body,
  .info-card-body {
    padding: 10px 16px 14px;
  }

  .quote-field input {
    min-height: 40px;
  }

  .quote-field textarea {
    min-height: 68px;
    max-height: 68px;
  }

  .quote-budget-card {
    padding: 10px 10px 8px;
  }

  .quote-budget-hint,
  .quote-meta,
  .quote-fineprint,
  .about-note {
    display: none;
  }

  .quote-turnstile-slot {
    min-height: 0;
  }

  .about-hero {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }

  .about-photo {
    width: 78px;
    border-radius: 16px;
  }

  .faq-list {
    gap: 8px;
  }

  .faq-item {
    padding: 10px 11px;
  }
}

@media (max-width: 520px) {
  .top-bar-inner {
    padding: 8px 10px;
  }

  .top-bar-avatar {
    width: 34px;
    height: 34px;
  }

  .top-bar-cta {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.86rem;
  }

  .top-bar-sound-button,
  .top-bar-sound-brand {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .top-bar-sound-slot {
    min-width: 102px;
    min-height: 36px;
  }

  .top-bar-sound-brand {
    letter-spacing: 0.06em;
  }

  .top-bar-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .top-bar-menu {
    min-width: 182px;
    padding: 8px;
    gap: 7px;
  }

  .top-bar-menu button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .quote-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-actions,
  .quote-success-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-submit,
  .quote-secondary-btn {
    width: 100%;
  }

  .faq-item h3 {
    font-size: 0.9rem;
  }

  .faq-item p,
  .about-copy p {
    font-size: 0.8rem;
  }
}

@media (max-height: 700px) {
  .quote-card-kicker,
  .info-card-kicker {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .quote-card-header h1,
  .info-card-header h1 {
    font-size: 1.22rem;
  }

  .quote-card-header p,
  .info-card-header p {
    margin-top: 6px;
    font-size: 0.8rem;
  }

  .quote-form-grid,
  .info-stack {
    gap: 8px;
  }

  .quote-field textarea {
    min-height: 58px;
    max-height: 58px;
  }

  .faq-item {
    padding: 8px 10px;
  }

  .faq-item p {
    line-height: 1.32;
  }
}

html,
body {
  width: 100%;
  min-height: 100%;
  height: auto;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  touch-action: pan-y;
}

body.is-overlay-locked {
  touch-action: none;
}

canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100svh;
  background: transparent;
  touch-action: pan-y pinch-zoom;
}

.hero-clouds {
  --home-parallax-x: 0px;
  --home-parallax-y: 0px;
  --home-drift: 0px;
  --home-breathe: 1.08;
  will-change: transform, opacity;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(145deg, var(--shared-scene-fill-start) 0%, var(--shared-scene-fill-mid) 54%, var(--shared-scene-fill-end) 100%);
}

.hero-clouds-layer,
.hero-clouds-sheen {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.hero-clouds-layer {
  background-image: var(--shared-scene-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: center center;
}

.hero-clouds-layer-back {
  transform: translate3d(calc(var(--home-parallax-x) * -0.72), calc(var(--home-parallax-y) * -0.74 + var(--home-drift) * -0.52), 0);
  opacity: 0.48;
  filter: blur(24px) saturate(1.04) brightness(0.84);
}

.hero-clouds-layer-mid {
  transform: translate3d(calc(var(--home-parallax-x) * 1.26), calc(var(--home-parallax-y) * 1.18 + var(--home-drift) * 0.78), 0);
  opacity: 0.4;
  mix-blend-mode: screen;
  filter: blur(8px) saturate(1.14) brightness(0.99);
}

.hero-clouds-layer-front {
  transform: translate3d(calc(var(--home-parallax-x) * 0.18), calc(var(--home-parallax-y) * 0.16 + var(--home-drift) * 0.08), 0);
  opacity: 0.99;
  filter: drop-shadow(0 20px 48px rgba(34, 25, 118, 0.24));
}

.hero-clouds-sheen {
  background-image:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.03) 64%, rgba(9, 10, 40, 0.1));
  transform: translate3d(calc(var(--home-parallax-x) * 0.34), calc(var(--home-parallax-y) * 0.28), 0);
  opacity: 0.82;
}

.site-scroll {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(145deg, var(--shared-scene-fill-start) 0%, var(--shared-scene-fill-mid) 54%, var(--shared-scene-fill-end) 100%);
}

.hero-stage {
  contain: layout style paint;
  position: relative;
  min-height: 100svh;
  background: linear-gradient(145deg, var(--shared-scene-fill-start) 0%, var(--shared-scene-fill-mid) 54%, var(--shared-scene-fill-end) 100%);
  overflow: hidden;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 35;
  width: min(calc(100vw - 18px), 980px);
  pointer-events: none;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.site-footer-inner p {
  margin: 0;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

.site-footer-nav button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.94));
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.site-footer-nav button:last-child {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.site-footer-nav button:hover {
  transform: translateY(-1px);
}

.panel-back-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 12px;
}

.panel-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.live-chat-shell .chat-page-main,
.live-chat-shell .cf-chat-wrap,
.live-chat-shell .cf-chat-box,
.quote-shell .quote-page-main,
.info-shell .info-page-main,
.quote-shell .quote-card,
.info-shell .info-card {
  display: flex;
  flex-direction: column;
}

.live-chat-shell .cf-chat-box,
.quote-shell .quote-card,
.info-shell .info-card {
  min-height: 100%;
}

.live-chat-shell .cf-chat-messages,
.quote-shell .quote-card-body,
.info-shell .info-card-body,
.faq-section {
  min-height: 0;
}

.live-chat-shell .cf-chat-messages {
  flex: 1 1 auto;
}

.live-chat-shell .panel-back-actions {
  padding: 0 16px 16px;
  border-top: 0;
  background: transparent;
}

.quote-shell .quote-card-body,
.info-shell .info-card-body {
  display: flex;
  flex-direction: column;
}

.quote-shell .quote-success,
.info-shell .quote-success {
  margin-top: 10px;
}

.top-bar-avatar {
  width: 44px;
  height: 44px;
}

@media (max-width: 820px) {
  .site-footer,
  .top-bar {
    width: calc(100vw - 14px);
  }

  .site-footer-inner,
  .top-bar-inner {
    padding: 10px 12px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .site-footer-inner {
    gap: 8px;
  }

  .site-footer-inner p {
    font-size: 0.76rem;
    flex: 1 1 100%;
  }

  .site-footer-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-footer-nav button,
  .panel-back-button,
  .top-bar-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .top-bar-avatar {
    width: 38px;
    height: 38px;
  }
}


.faq-section {
  display: block;
}

.faq-list {
  gap: 14px;
}

.faq-item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.faq-item h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.faq-item p {
  color: rgba(51, 65, 85, 0.88);
  line-height: 1.58;
}


:root {
  --app-height: 100svh;
  --topbar-space: 86px;
  --footer-space: 90px;
  --stage-height: calc(var(--app-height) - var(--topbar-space) - var(--footer-space));
}

html,
body {
  height: var(--app-height);
  min-height: var(--app-height);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  touch-action: none;
}

body.is-overlay-locked {
  overflow: hidden;
}

.site-scroll {
  position: fixed;
  inset: 0;
  height: var(--app-height);
  min-height: var(--app-height);
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-stage {
  contain: layout style paint;
  height: var(--stage-height);
  min-height: var(--stage-height);
  max-height: var(--stage-height);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.quote-success-actions {
  justify-content: center;
}

.quote-success-actions .quote-secondary-btn {
  min-width: 132px;
}

@media (max-width: 640px) {
  :root {
    --topbar-space: 78px;
    --footer-space: 86px;
  }

  .site-scroll {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-stage {
  contain: layout style paint;
    border-radius: 0;
  }

  .site-footer {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(calc(100vw - 12px), 980px);
  }

  .top-bar {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100vw - 12px);
  }

  .top-bar-inner,
  .site-footer-inner {
    padding: 10px 11px;
  }
}


.cf-chat-typing,
.cf-chat-typing-dots,
.cf-chat-typing-dots::after {
  display: none !important;
  animation: none !important;
}


.contact-shell {
  width: min(94vw, 920px);
  height: min(88vh, 920px);
  background: rgba(8, 15, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 110px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact-frame {
  background: transparent;
}

body.contact-page {
  background:
    radial-gradient(circle at 50% -4%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(8, 15, 29, 0.98), rgba(12, 20, 36, 0.96));
  color: rgba(255, 255, 255, 0.94);
}

.contact-card {
  width: min(100%, 860px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.86), rgba(17, 24, 39, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.38);
  color: #ffffff;
}

.contact-card-header {
  padding: 24px 28px 12px;
  border-bottom: 0;
  background: transparent;
}

.contact-card-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card-header h1 {
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
}

.contact-card-body {
  padding-top: 8px;
}

.contact-stack {
  gap: 18px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 152px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-photo-wrap {
  display: grid;
  place-items: center;
}

.contact-photo {
  width: min(152px, 100%);
  aspect-ratio: 1;
  border-radius: 28px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32);
}

.contact-copy {
  display: grid;
  gap: 10px;
}

.contact-lead {
  margin: 0;
  font-size: clamp(1.16rem, 2.8vw, 1.58rem);
  line-height: 1.36;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
}

.contact-title {
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.contact-note {
  margin: 0;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

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

.contact-form-grid .quote-field-row {
  gap: 14px;
}

.contact-form-grid .quote-field label {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form-grid .quote-field input,
.contact-form-grid .quote-field textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.contact-form-grid .quote-field input::placeholder,
.contact-form-grid .quote-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.contact-form-grid .quote-field input:focus,
.contact-form-grid .quote-field textarea:focus {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.contact-form-grid .quote-meta {
  color: rgba(255, 255, 255, 0.68);
}

.contact-form-grid .quote-status {
  color: rgba(255, 255, 255, 0.84);
}

.contact-form-grid .quote-status.is-error {
  color: #fecaca;
}

.contact-form-grid .quote-status.is-working {
  color: #bfdbfe;
}

.contact-form-grid .quote-status.is-success {
  color: #bbf7d0;
}

.contact-panel-actions {
  padding-top: 4px;
}

.contact-home-button {
  min-width: 156px;
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.contact-home-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.contact-success {
  background: rgba(8, 15, 29, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-success .quote-success-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.32);
}

.contact-success .quote-success-card h2 {
  color: rgba(255, 255, 255, 0.98);
}

.contact-success .quote-success-card p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-success .quote-secondary-btn {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}

@media (max-width: 700px) {
  .contact-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .contact-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .contact-card-header,
  .contact-card-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .contact-copy {
    justify-items: center;
  }

  .contact-photo-wrap {
    display: none;
  }

  .contact-photo {
    display: none;
  }

  .contact-home-button,
  .contact-form-grid .quote-submit {
    width: 100%;
  }

  .contact-form-grid .quote-actions {
    align-items: stretch;
  }
}


/* Contact-system visual unification for quote + legal surfaces */
.quote-card.contact-card,
.info-card.contact-card {
  background: linear-gradient(180deg, rgba(12, 18, 31, 0.86), rgba(17, 24, 39, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.38);
  color: #ffffff;
}

.quote-card.contact-card .quote-card-header,
.info-card.contact-card .info-card-header {
  background: transparent;
  border-bottom: 0;
}

.quote-card.contact-card .quote-card-kicker,
.info-card.contact-card .info-card-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.quote-card.contact-card .quote-card-header h1,
.info-card.contact-card .info-card-header h1 {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
}

.quote-card.contact-card .quote-card-header p,
.info-card.contact-card .info-card-header p {
  color: rgba(255, 255, 255, 0.82);
}

.quote-stack {
  gap: 18px;
}

.quote-card.contact-card .quote-actions {
  align-items: flex-end;
}

.quote-card.contact-card .contact-panel-actions {
  padding-top: 0;
}

.quote-card.contact-card .contact-panel-actions.quote-panel-actions-spaced {
  padding-top: 40px;
}

.quote-intro-note {
  margin-bottom: 2px;
}

.quote-card.contact-card .quote-budget-card,
.quote-card.contact-card .quote-success-card,
.info-card.contact-card .faq-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.quote-card.contact-card .quote-budget-value,
.info-card.contact-card .faq-item h3 {
  color: rgba(255, 255, 255, 0.98);
}

.quote-card.contact-card .quote-budget-hint,
.quote-card.contact-card .quote-range-labels,
.quote-card.contact-card .quote-fineprint,
.quote-card.contact-card .quote-meta,
.info-card.contact-card .faq-item p,
.info-card.contact-card .faq-section,
.info-card.contact-card .info-card-body {
  color: rgba(255, 255, 255, 0.78);
}

.quote-card.contact-card .quote-range {
  accent-color: #60a5fa;
}

.quote-card.contact-card .quote-secondary-btn,
.info-card.contact-card .quote-secondary-btn {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}

.quote-card.contact-card .quote-success,
.info-card.contact-card .quote-success {
  background: rgba(8, 15, 29, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 700px) {
  .quote-card.contact-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .quote-card.contact-card .quote-card-header,
  .quote-card.contact-card .quote-card-body,
  .info-card.contact-card .info-card-header,
  .info-card.contact-card .info-card-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quote-card.contact-card .quote-submit,
  .quote-card.contact-card .contact-home-button,
  .info-card.contact-card .contact-home-button {
    width: 100%;
  }

  .quote-card.contact-card .quote-actions {
    align-items: stretch;
  }
}

.contact-card--kicker-only .quote-card-header,
.contact-card--kicker-only .info-card-header {
  padding-bottom: 6px;
}

.quote-panel-actions-spaced {
  padding-top: 56px;
}

@media (max-width: 700px) {
  .quote-panel-actions-spaced {
    padding-top: 44px;
  }

  .quote-card.contact-card .contact-panel-actions.quote-panel-actions-spaced {
    padding-top: 28px;
  }
}
