/* ==========================================================================
   BRYDE V5 INTERACTIVE HOMEPAGE SCENE (Hero + Section 2)
   Cinematic 3D centerpiece, localized object reactions, spatial proof reveals.
   ========================================================================== */

:root {
  --v5-bg-dark: #060708;
  --v5-bg-light: #F3EEE6;
  --v5-text-light: #F3EEE6;
  --v5-text-dark: #0B0D0E;
  --v5-text-muted-dark: rgba(243, 238, 230, 0.68);
  --v5-text-muted-light: rgba(11, 13, 14, 0.68);
  --v5-copper: #C9784C;
  --v5-copper-glow: rgba(201, 120, 76, 0.28);
  --v5-copper-soft: rgba(201, 120, 76, 0.12);
  --v5-border-dark: rgba(243, 238, 230, 0.12);
  --v5-border-light: rgba(11, 13, 14, 0.12);
  --v5-graphite-surface: #0e1114;
}

/* ── Container Wrapper (defines scroll height for sticky stage) ── */
.v5-scene-root {
  position: relative;
  width: 100%;
  height: 220svh;
  background-color: var(--v5-bg-dark);
  color: var(--v5-text-light);
  isolation: isolate;
}

/* ── Sticky Visual Stage (100svh pinned to viewport) ── */
.v5-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
}

/* ── Rich Atmospheric Backdrop Layers ── */
.v5-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* A warm practical wall wash, restrained panel seams and floor bounce give the scene a room to sit in. */
.v5-backdrop--dark {
  background:
    radial-gradient(ellipse 90% 90% at 62% 46%, transparent 38%, rgba(7, 9, 10, 0.24) 100%),
    radial-gradient(ellipse 38% 38% at 66% 39%, rgba(211, 155, 112, 0.13) 0%, rgba(175, 119, 81, 0.07) 42%, transparent 78%),
    radial-gradient(ellipse 42% 18% at 65% 76%, rgba(205, 143, 95, 0.16) 0%, rgba(168, 113, 76, 0.07) 44%, transparent 80%),
    linear-gradient(90deg, transparent 0 51%, rgba(247, 226, 205, 0.018) 51.08%, rgba(8, 9, 10, 0.075) 51.24%, transparent 51.5%, transparent 79%, rgba(247, 226, 205, 0.014) 79.1%, rgba(8, 9, 10, 0.055) 79.25%, transparent 79.5%),
    linear-gradient(180deg, rgba(232, 206, 179, 0.05) 0%, transparent 38%, rgba(13, 14, 14, 0.11) 57%, rgba(184, 125, 83, 0.07) 70%, rgba(8, 10, 11, 0.28) 100%),
    linear-gradient(108deg, #202326 0%, #242421 34%, #2a241e 58%, #242321 78%, #1c1e1f 100%);
  opacity: 1;
  z-index: 0;
}

/* Warm editorial daylight for Section 2, with a soft wall-to-floor tonal shift. */
.v5-backdrop--light {
  background:
    linear-gradient(180deg, #f0e8dc 0%, #f5efe6 48%, #e9dfd1 100%),
    linear-gradient(110deg, rgba(202, 164, 125, 0.12) 0%, transparent 56%, rgba(255, 255, 255, 0.2) 100%);
  opacity: 0;
  z-index: 0;
}

/* ── Three.js WebGL Canvas ── */
.v5-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.6s ease-out, filter 0.4s ease;
}

.v5-canvas:active {
  cursor: grabbing;
}

.v5-scene-root.is-model-loaded .v5-canvas {
  opacity: 1;
}

/* When a zone is focused in Section 2, the canvas maintains high contrast and visual clarity */
.v5-scene-root.is-inspecting .v5-canvas {
  filter: brightness(1.02);
}

/* When inspecting a zone, gently dim background copy to elevate the 3D model and editorial proof */
.v5-scene-root.is-inspecting .v5-sec2-header,
.v5-scene-root.is-inspecting .v5-hero-copy {
  opacity: 0.12;
  pointer-events: none;
  filter: blur(2px);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

/* ── Static Poster Fallback ── */
.v5-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.v5-scene-root.is-model-loaded .v5-poster {
  opacity: 0;
  visibility: hidden;
}

.v5-poster__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.v5-poster__img--hero {
  opacity: 1;
  transition: opacity 0.2s linear;
}

.v5-poster__img--sec2 {
  opacity: 0;
  transition: opacity 0.2s linear;
}

/* ── Spatial Hotspots Layer (Discovered cues inside the 3D scene) ── */
.v5-hotspots-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.v5-hotspots-layer.is-active {
  opacity: 1;
  visibility: visible;
}

/* Minimal architectural hotspot pin (Restrained spatial affordance) */
.v5-pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  transform: translate3d(-9999px, -9999px, 0);
  margin-left: -10px;
  margin-top: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  outline: none;
  transition: transform 0.08s linear;
}

/* Delicate circular marker */
.v5-pin__target {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v5-pin__ring {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1px solid var(--v5-copper);
  background: var(--v5-copper-soft);
  opacity: 0.55;
  animation: v5-quiet-pulse 3.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  transition: transform 0.22s ease, opacity 0.22s ease, border-color 0.22s ease;
}

.v5-pin__core {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v5-copper);
  box-shadow: 0 0 8px rgba(201, 120, 76, 0.6);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.22s;
}

/* Proximity / Hover / Focus state */
.v5-pin:hover .v5-pin__ring,
.v5-pin:focus-visible .v5-pin__ring,
.v5-pin.is-near .v5-pin__ring {
  transform: scale(1.3);
  opacity: 0.95;
  border-color: #ffffff;
  background: rgba(201, 120, 76, 0.22);
}

.v5-pin:hover .v5-pin__core,
.v5-pin:focus-visible .v5-pin__core,
.v5-pin.is-near .v5-pin__core {
  transform: scale(1.2);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Active / Inspected state */
.v5-pin.is-active-zone .v5-pin__ring {
  border-color: var(--v5-copper);
  background: rgba(201, 120, 76, 0.32);
  transform: scale(1.35);
  opacity: 1;
}

.v5-pin.is-active-zone .v5-pin__core {
  background: #ffffff;
  box-shadow: 0 0 12px var(--v5-copper);
}

/* Micro-label callout attached to pin */
.v5-pin__callout {
  position: absolute;
  left: 100%;
  top: 50%;
  display: flex;
  align-items: center;
  margin-left: 5px;
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  pointer-events: none;
  transition: opacity 0.16s cubic-bezier(0.2, 0.8, 0.25, 1), transform 0.16s cubic-bezier(0.2, 0.8, 0.25, 1);
  white-space: nowrap;
}

.v5-scene-root.has-spatial-card .v5-pin__callout {
  opacity: 0 !important;
  visibility: hidden;
  transform: translateY(-50%) translateX(-4px);
}

.v5-pin:hover .v5-pin__callout,
.v5-pin:focus-visible .v5-pin__callout,
.v5-pin.is-near .v5-pin__callout,
.v5-pin.is-active-zone .v5-pin__callout {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.v5-pin__line {
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 120, 76, 0.8), rgba(201, 120, 76, 0.2));
  margin-right: 5px;
  flex-shrink: 0;
}

.v5-pin__tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(14, 17, 20, 0.88);
  border: 1px solid rgba(243, 238, 230, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.v5-pin__title {
  font-family: var(--font-clash, 'Clash Display', 'IBM Plex Sans', sans-serif);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.v5-pin__num {
  font-family: var(--font-system, monospace);
  font-size: 0.60rem;
  font-weight: 700;
  color: var(--v5-copper);
}

.v5-pin__sub {
  font-family: var(--font-system, 'IBM Plex Sans', sans-serif);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.7);
}

@keyframes v5-quiet-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0.2; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* ── UI Overlay for Hero & Section 2 attached to the sticky stage ── */
.v5-overlay-ui {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* ── Hero Overlay Section ── */
.v5-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: calc(var(--sh-height, 68px) + clamp(20px, 3vh, 44px)) clamp(24px, 6vw, 84px) clamp(36px, 5vh, 72px);
  pointer-events: none;
}

.v5-hero-copy {
  pointer-events: auto;
  position: relative;
  max-width: min(430px, 35vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.v5-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v5-copper);
  margin-bottom: clamp(12px, 1.8vh, 20px);
}

.v5-hero-title {
  font-family: var(--font-clash, 'Clash Display', 'IBM Plex Sans', sans-serif);
  font-size: clamp(2.15rem, 3.35vw, 3.65rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--v5-text-light);
  margin: 0 0 clamp(14px, 2.0vh, 22px);
}

.v5-hero-title__accent {
  display: block;
  font-weight: 500;
  color: rgba(243, 238, 230, 0.78);
  font-size: 0.92em;
}

.v5-hero-desc {
  max-width: 38ch;
  font-size: clamp(0.92rem, 1.0vw, 1.05rem);
  line-height: 1.58;
  color: var(--v5-text-muted-dark);
  margin: 0 0 clamp(20px, 3.0vh, 32px);
}

.v5-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

/* ── CTAs ── */
.v5-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-cabinet, 'Cabinet Grotesk', 'IBM Plex Sans', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.22, 0.74, 0.3, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.v5-cta--primary {
  background: var(--v5-text-light);
  color: var(--v5-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.v5-cta--primary:hover,
.v5-cta--primary:focus-visible {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.v5-cta--secondary {
  background: rgba(15, 17, 19, 0.65);
  color: var(--v5-text-light);
  border: 1px solid rgba(243, 238, 230, 0.35);
  backdrop-filter: blur(8px);
}

.v5-cta--secondary:hover,
.v5-cta--secondary:focus-visible {
  background: rgba(201, 120, 76, 0.16);
  border-color: var(--v5-copper);
  color: #ffffff;
  transform: translateY(-2px);
}

.v5-cta--ghost {
  background: transparent;
  color: rgba(243, 238, 230, 0.75);
  padding: 0 16px;
  box-shadow: none;
}

.v5-cta--ghost:hover,
.v5-cta--ghost:focus-visible {
  color: var(--v5-text-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.v5-cta__arrow {
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.v5-cta:hover .v5-cta__arrow,
.v5-cta:focus-visible .v5-cta__arrow {
  transform: translateX(4px);
}

/* ── Section 2 Canopy Overlay (Frames the model as protagonist) ── */
.v5-sec2-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: calc(var(--sh-height, 68px) + clamp(10px, 2.2vh, 24px)) clamp(20px, 4vw, 48px) 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 4;
}

.v5-sec2-header {
  pointer-events: auto;
  max-width: min(720px, 92vw);
  color: var(--v5-text-dark);
  margin: 0 auto;
  transition: opacity 0.18s ease;
}

.v5-sec2-title {
  font-family: var(--font-clash, 'Clash Display', 'IBM Plex Sans', sans-serif);
  font-size: clamp(1.4rem, 2.3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--v5-text-dark);
  margin: 0 0 8px;
}

.v5-sec2-title__accent {
  display: inline;
  color: rgba(11, 13, 14, 0.70);
  font-weight: 500;
}

.v5-sec2-desc {
  font-size: clamp(0.84rem, 0.95vw, 0.96rem);
  line-height: 1.46;
  color: var(--v5-text-muted-light);
  max-width: 52ch;
  margin: 0 auto 10px;
}

.v5-sec2-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v5-copper);
}

.v5-sec2-hint::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v5-copper);
}

@media (min-width: 1280px) {
  .v5-sec2-overlay {
    align-items: flex-start;
    text-align: left;
  }

  .v5-sec2-header {
    position: absolute;
    top: 50%;
    left: clamp(28px, 2.2vw, 42px);
    width: min(260px, 18vw);
    max-width: none;
    margin: 0;
    padding-left: 18px;
    border-left: 1px solid rgba(201, 120, 76, 0.42);
    transform: translateY(-50%);
  }

  .v5-sec2-title {
    font-size: clamp(1.25rem, 1.45vw, 1.65rem);
    line-height: 1.16;
  }

  .v5-sec2-desc {
    font-size: clamp(0.82rem, 0.8vw, 0.9rem);
    line-height: 1.48;
    max-width: 38ch;
    margin-bottom: 12px;
  }

  .v5-sec2-hint {
    font-size: 0.57rem;
    line-height: 1.45;
  }
}

/* ── COMPACT SPATIAL FLOATING CARD (Museum-Style Contextual Annotation) ── */
/* Sits directly near the selected 3D anchor; keeps model 100% visible and protagonist */
.v5-spatial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(280px, 21vw, 320px);
  background: rgba(246, 239, 228, 0.96);
  border: 1px solid rgba(201, 120, 76, 0.28);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(21, 16, 11, 0.2), 0 2px 8px rgba(21, 16, 11, 0.08);
  color: #171716;
  z-index: 25;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.2, 0.8, 0.25, 1), visibility 0.16s;
  overflow: hidden;
}

.v5-spatial-card.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

/* Header bar */
.v5-spatial-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px 10px;
  border-bottom: 1px solid rgba(33, 27, 21, 0.1);
  background: rgba(255, 255, 255, 0.34);
}

.v5-spatial-card__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.v5-spatial-card__id {
  font-family: var(--font-system, monospace);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--v5-copper);
  text-transform: uppercase;
}

.v5-spatial-card__tag {
  font-family: var(--font-clash, 'Clash Display', sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #302821;
}

.v5-spatial-card__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(33, 27, 21, 0.04);
  border: 1px solid rgba(33, 27, 21, 0.16);
  border-radius: 50%;
  color: rgba(33, 27, 21, 0.68);
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.v5-spatial-card__close:hover,
.v5-spatial-card__close:focus-visible {
  color: #171716;
  border-color: rgba(33, 27, 21, 0.42);
  background: rgba(33, 27, 21, 0.08);
  transform: scale(1.08);
}

/* Card Body */
.v5-spatial-card__body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-height: min(390px, 62vh);
  overflow-y: auto;
  scrollbar-width: thin;
}

.v5-spatial-title {
  font-family: var(--font-clash, 'Clash Display', sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #171716;
  margin: 0;
}

.v5-spatial-desc {
  font-size: 0.78rem;
  line-height: 1.48;
  color: rgba(23, 23, 22, 0.7);
  margin: 0;
}

.v5-spatial-preview {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(33, 27, 21, 0.12);
  background: #e6ded2;
  display: flex;
  flex-direction: column;
}

.v5-spatial-preview__img {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
  display: block;
}

.v5-spatial-preview__meta {
  padding: 8px 10px;
  background: rgba(33, 27, 21, 0.045);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v5-spatial-preview__name {
  font-size: 0.70rem;
  font-weight: 600;
  color: #171716;
}

.v5-spatial-preview__caption {
  font-size: 0.63rem;
  color: rgba(23, 23, 22, 0.62);
  line-height: 1.35;
}

/* Compact actions */
.v5-spatial-actions {
  display: flex;
  gap: 8px;
  padding-top: 2px;
}

.v5-spatial-btn {
  flex: 1 1 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font-cabinet, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.v5-spatial-btn--primary {
  background: #242321;
  color: #f6efe4;
  border: 1px solid #242321;
}

.v5-spatial-btn--primary:hover {
  background: #38332d;
  transform: translateY(-1px);
}

.v5-spatial-btn--secondary {
  background: transparent;
  color: #302821;
  border: 1px solid rgba(48, 40, 33, 0.28);
}

.v5-spatial-btn--secondary:hover {
  border-color: rgba(48, 40, 33, 0.5);
  background: rgba(48, 40, 33, 0.06);
}

/* ── Responsive Adaptations ── */
/* Large Desktop (>= 1600px): Strong right-side dominance for the model */
@media (min-width: 1600px) {
  .v5-hero-copy {
    max-width: 430px;
  }
  .v5-hero-title {
    font-size: 3.65rem;
  }
}

/* Tablet Landscape / Laptops (1024px - 1365px) */
@media (max-width: 1365px) {
  .v5-hero-copy {
    max-width: min(430px, 40vw);
  }
}

/* Tablet Portrait & Medium Screens (821px - 1023px) */
@media (max-width: 1023px) and (min-width: 821px) {
  .v5-hero-copy {
    max-width: 48vw;
  }
  .v5-hero-title {
    font-size: clamp(2.2rem, 3.8vw, 3.0rem);
  }
}

@media (max-width: 1100px) and (min-width: 821px) {
  .v5-hero-copy {
    max-width: min(320px, 32vw);
  }

  .v5-hero-title {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  }

  .v5-hero-desc {
    font-size: 0.86rem;
    max-width: 34ch;
  }

  .v5-hero-actions {
    gap: 8px;
  }

  .v5-cta {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .v5-cta--ghost {
    padding-inline: 8px;
  }
}

@media (max-width: 1279px) and (min-width: 960px) {
  .v5-sec2-overlay {
    align-items: flex-start;
    text-align: left;
  }

  .v5-sec2-header {
    position: absolute;
    top: 50%;
    left: 24px;
    width: clamp(210px, 22vw, 250px);
    max-width: none;
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid rgba(201, 120, 76, 0.42);
    transform: translateY(-50%);
  }

  .v5-sec2-title {
    font-size: clamp(1.15rem, 1.55vw, 1.4rem);
    line-height: 1.16;
  }

  .v5-sec2-desc {
    font-size: 0.8rem;
    line-height: 1.46;
    max-width: 36ch;
  }

  .v5-sec2-hint {
    font-size: 0.53rem;
    line-height: 1.45;
  }
}

/* Mobile & Small Tablet (<= 820px) */
@media (max-width: 820px) {
  .v5-scene-root {
    height: 180svh;
  }
  .v5-hero-overlay {
    padding: calc(var(--sh-height, 68px) + 6px) 18px 18px;
    align-items: flex-start;
  }
  .v5-hero-copy {
    max-width: 100%;
  }
  .v5-hero-title {
    font-size: clamp(1.75rem, 5.8vw, 2.2rem);
    line-height: 1.04;
    margin: 0 0 8px;
  }
  .v5-hero-desc {
    font-size: 0.84rem;
    line-height: 1.44;
    margin: 0 0 14px;
    max-width: 36ch;
  }
  .v5-hero-actions {
    gap: 8px 10px;
  }
  .v5-pin__callout {
    display: none;
  }
  .v5-cta {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.80rem;
  }
  .v5-cta--ghost {
    min-height: 30px;
    padding: 4px 6px;
    font-size: 0.78rem;
    width: auto;
  }

  /* Section 2 Canopy on Mobile */
  .v5-sec2-overlay {
    padding: calc(var(--sh-height, 68px) + 8px) 16px 0;
    align-items: center;
    text-align: center;
  }
  .v5-sec2-header {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 100%;
    margin-bottom: 0;
    padding-left: 0;
    border-left: 0;
    transform: none;
  }
  .v5-sec2-title {
    font-size: clamp(1.2rem, 4.2vw, 1.45rem);
    line-height: 1.18;
    margin: 0 0 4px;
  }
  .v5-sec2-desc {
    font-size: 0.78rem;
    line-height: 1.40;
    margin: 0 0 6px;
    max-width: 36ch;
  }

  /* Spatial Card on Mobile: compact docked bottom card */
  .v5-spatial-card {
    top: auto !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 46svh;
    transform: translateY(12px) scale(0.97);
  }
  .v5-spatial-card.is-open {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .v5-hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px 8px;
  }
  .v5-cta--primary, .v5-cta--secondary {
    flex: 1 1 130px;
  }
  .v5-cta--ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Reduced Motion Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .v5-pin__ring {
    animation: none;
  }
  .v5-canvas {
    transition: none;
  }
  .v5-spatial-card {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .v5-cta, .v5-spatial-card__close {
    transition: none;
  }
}
