/* AR_VR.css — M PRO9 Immersive Experiences — next-level dark redesign */

/* ── Design tokens (M PRO9 brand blue palette) ── */
:root {
  --arvr-bg:      #080d18;
  --arvr-surf:    #0d1525;
  --arvr-surf2:   #0f1d32;
  --arvr-accent:  #319dcf;   /* M PRO9 primary-light */
  --arvr-accent-d:#1d6fa8;   /* darker brand blue */
  --arvr-navy:    #173f64;   /* M PRO9 primary */
  --arvr-text:    #dce8f5;
  --arvr-muted:   #6476a0;
  --arvr-rule:    #162035;
}

/* ── Page base ── */
body { background: var(--arvr-bg); color: var(--arvr-text); overflow-x: hidden; }

/* ── Custom cursor (desktop only) ── */
@media (hover: hover) {
  body { cursor: none; }
  a, button, .view-ar-btn { cursor: none; }
}

#arvr-cursor {
  display: none;
  position: fixed;
  width: 38px; height: 38px;
  border: 1.5px solid var(--arvr-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  mix-blend-mode: normal;
}
#arvr-cursor-dot {
  display: none;
  position: fixed;
  width: 5px; height: 5px;
  background: var(--arvr-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  top: 0; left: 0;
  box-shadow: 0 0 8px rgba(49,157,207,0.9);
}
#arvr-cursor.is-hover {
  width: 56px; height: 56px;
  background: rgba(49,157,207,0.10);
  border-color: rgba(49,157,207,0.7);
}
@media (hover: hover) {
  #arvr-cursor, #arvr-cursor-dot { display: block; }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.arvr-hero {
  background: var(--arvr-bg);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#arvr-hero-gl {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}

.arvr-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%,
    transparent 30%,
    rgba(8,13,24,0.55) 70%,
    rgba(8,13,24,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

.arvr-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 80px;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

.arvr-eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--arvr-accent);
  margin-bottom: 32px;
  opacity: 0;
  display: block;
}

.arvr-hero-h1 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 10.5vw, 10.5rem);
  color: var(--arvr-text);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 40px;
  perspective: 800px;
}

.arvr-c { display: inline-block; }

.arvr-hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 48px;
  opacity: 0;
}

.arvr-hero-tags span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arvr-muted);
}

.arvr-hero-tags .tag-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--arvr-accent);
  opacity: 0.5;
  flex-shrink: 0;
}

.arvr-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--arvr-accent);
  color: #060c16;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
}
.arvr-hero-cta:hover {
  background: var(--arvr-accent-d);
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(49,157,207,0.35);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.4;
  animation: hint-bob 2s ease-in-out infinite;
}
.hero-scroll-hint span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arvr-accent);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--arvr-accent), transparent);
  animation: hint-line 2s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@keyframes hint-line {
  0%   { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(0.4); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 768px) {
  /* Readable text panel — the bright additive-blended particle field sits
     directly behind the heading on mobile with nothing but the desktop's
     centered radial overlay (tuned for centered text) to dim it, and
     mobile switches to left-aligned text the overlay was never adjusted
     for. A dedicated translucent panel guarantees contrast regardless of
     what the animation behind it is doing. */
  .arvr-hero-content {
    text-align: left;
    padding: 28px 24px 36px;
    background: rgba(8, 13, 24, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(49, 157, 207, 0.14);
    border-radius: 18px;
  }
  .arvr-hero-tags { justify-content: flex-start; }
  .arvr-hero-cta  { width: 100%; max-width: 280px; justify-content: center; }
}

/* ─────────────────────────────────────────
   MARQUEE STRIP
───────────────────────────────────────── */
.arvr-marquee {
  background: var(--arvr-accent);
  overflow: hidden;
  padding: 13px 0;
  position: relative;
  z-index: 10;
}

.arvr-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-run 28s linear infinite;
}

.arvr-marquee-track span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #060c16;
  font-weight: 700;
  padding: 0 28px;
  white-space: nowrap;
}

.arvr-marquee-track .sep {
  color: rgba(6,12,22,0.35);
  padding: 0;
}

@keyframes marquee-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   HORIZONTAL SERVICE PANELS  (split grid)
───────────────────────────────────────── */
.arvr-panels-wrap {
  overflow: hidden;
  background: var(--arvr-bg);
}

.arvr-panels {
  display: flex;
  flex-wrap: nowrap;
}

.arvr-panel {
  width: 100vw;
  min-height: 100vh;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 43% 57%;
  position: relative;
  overflow: clip;
  border-right: 1px solid var(--arvr-rule);
}

/* Per-panel accent glows */
.arvr-panel:nth-child(1)::before { background: radial-gradient(ellipse 60% 70% at 22% 55%, rgba(49,157,207,0.09) 0%, transparent 70%); }
.arvr-panel:nth-child(2)::before { background: radial-gradient(ellipse 55% 65% at 18% 40%, rgba(23,63,100,0.22) 0%, transparent 65%); }
.arvr-panel:nth-child(3)::before { background: radial-gradient(ellipse 60% 60% at 25% 65%, rgba(49,157,207,0.07) 0%, transparent 70%); }
.arvr-panel:nth-child(4)::before { background: radial-gradient(ellipse 50% 70% at 20% 50%, rgba(10,31,61,0.30) 0%, transparent 65%); }
.arvr-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Left column: text ── */
.panel-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vh, 96px) clamp(40px, 5vw, 80px) clamp(48px, 7vh, 96px) clamp(48px, 6vw, 96px);
}

/* Inline label replaces icon box */
.panel-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--arvr-accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.panel-h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  color: var(--arvr-text);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  position: relative;
}

/* 2px brand-blue hairline before heading */
.panel-h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--arvr-accent);
  margin-bottom: 22px;
}

.panel-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  color: var(--arvr-muted);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 32px;
}

.panel-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-tech-tag {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(49,157,207,0.70);
  border: 1px solid rgba(49,157,207,0.20);
  padding: 5px 12px;
  border-radius: 2px;
  background: rgba(49,157,207,0.04);
}

/* Ghost watermark number — bottom-left of left col */
.panel-bg-num {
  position: absolute;
  bottom: -0.12em;
  left: clamp(24px, 4vw, 60px);
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(10rem, 22vw, 18rem);
  color: rgba(49,157,207,0.055);
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Right column: visual ── */
.panel-right {
  position: relative;
  overflow: hidden;
  background: rgba(9,16,30,0.6);
  border-left: 1px solid rgba(49,157,207,0.10);
}

/* Scanline texture overlay */
.panel-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.panel-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.panel-visual svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* ── SVG animation keyframes ── */
@keyframes pv-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pv-float-sm {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes pv-spin-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pv-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pv-breathe {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.60; }
}
@keyframes pv-breathe-hi {
  0%, 100% { opacity: 0.30; }
  50%       { opacity: 0.85; }
}
@keyframes pv-scan-h {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(520px); opacity: 0; }
}
@keyframes pv-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
@keyframes pv-draw {
  from { stroke-dashoffset: 600; }
  to   { stroke-dashoffset: 0; }
}

.pv-float     { animation: pv-float    3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pv-float-sm  { animation: pv-float-sm 4.2s ease-in-out infinite 0.7s; transform-box: fill-box; transform-origin: center; }
.pv-float-d   { animation: pv-float    3.8s ease-in-out infinite 1.1s; transform-box: fill-box; transform-origin: center; }
.pv-spin-ring { animation: pv-spin-ring 20s linear infinite; transform-box: fill-box; transform-origin: center; }
.pv-spin-slow { animation: pv-spin-slow 40s linear infinite; transform-box: fill-box; transform-origin: center; }
.pv-spin-r    { animation: pv-spin-ring 28s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
.pv-breathe   { animation: pv-breathe    2.6s ease-in-out infinite; }
.pv-breathe-d { animation: pv-breathe    2.6s ease-in-out infinite 0.9s; }
.pv-pulse     { animation: pv-breathe-hi 2.1s ease-in-out infinite; }
.pv-pulse-d   { animation: pv-breathe-hi 2.1s ease-in-out infinite 0.55s; }
.pv-scan      { animation: pv-scan-h    4.5s ease-in-out infinite; }
.pv-blink     { animation: pv-blink     1.4s step-end infinite; }
.pv-blink-d   { animation: pv-blink     1.4s step-end infinite 0.7s; }

/* Mobile: stack vertically */
@media (max-width: 899px) {
  .arvr-panels         { flex-wrap: wrap; }
  .arvr-panel          { width: 100%; min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; border-right: none; border-bottom: 1px solid var(--arvr-rule); }
  .panel-left          { padding: 44px 28px 32px; }
  .panel-right         { min-height: 280px; border-left: none; border-top: 1px solid rgba(49,157,207,0.10); }
  .panel-h2            { font-size: 2.4rem; }
  .panel-bg-num        { font-size: 7rem; }
}

/* ─────────────────────────────────────────
   DEMO SCENES (full-viewport stacked)
───────────────────────────────────────── */
.arvr-demos-label {
  background: var(--arvr-surf);
  padding: 80px 0 64px;
}

.arvr-demos-label .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.demos-eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arvr-accent);
  margin-bottom: 16px;
  display: block;
}

.arvr-demos-label h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  color: var(--arvr-text);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.demos-hint {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arvr-muted);
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .arvr-demos-label .container { flex-direction: column; align-items: flex-start; }
  .demos-hint { text-align: left; }
}

/* Each demo gets full-viewport height */
.demo-scene {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 58% 42%;
  border-top: 1px solid var(--arvr-rule);
}

.demo-scene:nth-child(even) { grid-template-columns: 42% 58%; }
.demo-scene:nth-child(even) .demo-model { order: 2; }
.demo-scene:nth-child(even) .demo-info  { order: 1; }

.demo-model {
  position: relative;
  overflow: hidden;
  background: var(--arvr-surf);
}

/* HUD corner marks */
.demo-model::before,
.demo-model::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  z-index: 3;
  pointer-events: none;
}
.demo-model::before {
  top: 16px; left: 16px;
  border-top: 1.5px solid var(--arvr-accent);
  border-left: 1.5px solid var(--arvr-accent);
  opacity: 0.65;
}
.demo-model::after {
  bottom: 16px; right: 16px;
  border-bottom: 1.5px solid var(--arvr-accent);
  border-right: 1.5px solid var(--arvr-accent);
  opacity: 0.65;
}

.hud-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--arvr-accent);
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}

model-viewer.viewer {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: block;
  background: var(--arvr-surf);
  --poster-color: #0d1525;
}

.demo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
  background: var(--arvr-bg);
  border-left: 1px solid var(--arvr-rule);
  position: relative;
}

.demo-scene:nth-child(even) .demo-info {
  border-left: none;
  border-right: 1px solid var(--arvr-rule);
}

.demo-tag-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 14px;
  border: 1px solid rgba(49,157,207,0.30);
  border-radius: 999px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.60rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arvr-accent);
  margin-bottom: 24px;
  background: rgba(49,157,207,0.06);
}

.demo-info h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--arvr-text);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.demo-info p {
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  color: var(--arvr-muted);
  line-height: 1.76;
  margin-bottom: 32px;
  max-width: 360px;
}

.view-ar-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(49,157,207,0.40);
  background: transparent;
  color: var(--arvr-accent);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.87rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.view-ar-btn:hover {
  background: rgba(49,157,207,0.10);
  box-shadow: 0 0 20px rgba(49,157,207,0.22);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .demo-scene,
  .demo-scene:nth-child(even) {
    grid-template-columns: 1fr;
  }
  /* Desktop alternates Model|Content / Content|Model per scene (zigzag
     rhythm) via order on even children. A single mobile column has no
     left/right, only top/bottom — resetting order to `unset` here left
     every scene falling back to raw DOM order (model markup comes before
     info), so the visualization rendered above its own content on every
     scene. Force Content -> Visualization uniformly instead of resetting. */
  .demo-model { order: 2; }
  .demo-info  { order: 1; }
  model-viewer.viewer { min-height: 60vw; height: 60vw; }
  .demo-info { padding: 48px 32px; border-left: none; border-top: 1px solid var(--arvr-rule); }
  .demo-scene:nth-child(even) .demo-info { border-right: none; border-top: 1px solid var(--arvr-rule); }
  .demo-info p { max-width: 100%; }
  .view-ar-btn { width: 100%; max-width: 240px; justify-content: center; }
}

/* ─────────────────────────────────────────
   CTA
───────────────────────────────────────── */
.arvr-cta {
  background: var(--arvr-surf2);
  padding: 140px 0;
  text-align: center;
  border-top: 1px solid var(--arvr-rule);
}

.arvr-cta-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.arvr-cta-wrap h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  color: var(--arvr-text);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 18px;
}

.arvr-cta-wrap p {
  font-size: 1rem;
  color: var(--arvr-muted);
  margin-bottom: 52px;
  line-height: 1.70;
}

.arvr-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 52px;
  border-radius: 999px;
  background: var(--arvr-accent);
  color: #060c16;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
}
.arvr-cta-btn:hover {
  background: var(--arvr-accent-d);
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(49,157,207,0.32);
}

@media (max-width: 560px) {
  .arvr-cta { padding: 96px 0; }
  .arvr-cta-btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ─────────────────────────────────────────
   HERITAGE VIEWER — hotspots + annotation
───────────────────────────────────────── */
.heritage-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--arvr-accent);
  color: #060c16;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.80rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 0 0 4px rgba(49,157,207,0.30), 0 0 12px rgba(49,157,207,0.25);
}
.heritage-dot:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(49,157,207,0.45), 0 0 20px rgba(49,157,207,0.40);
}
.heritage-dot.is-active {
  background: #fff;
  color: var(--arvr-navy);
  box-shadow: 0 0 0 6px rgba(49,157,207,0.55), 0 0 22px rgba(49,157,207,0.50);
}

.heritage-ann {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 380px;
  background: rgba(8,13,24,0.90);
  border: 1px solid rgba(49,157,207,0.28);
  border-radius: 12px;
  padding: 14px 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.heritage-ann.show { opacity: 1; }

.heritage-ann-num {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arvr-accent);
  margin-bottom: 7px;
  display: block;
}
.heritage-ann-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--arvr-text);
  line-height: 1.62;
  margin: 0;
}

/* ── Always-visible AR launch button ── */
.arvr-ar-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--arvr-accent);
  background: transparent;
  color: var(--arvr-accent);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.87rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-bottom: 12px;
  width: fit-content;
}
.arvr-ar-launch:hover {
  background: rgba(49,157,207,0.10);
  box-shadow: 0 0 18px rgba(49,157,207,0.22);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .arvr-ar-launch { width: 100%; max-width: 240px; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE AUDIT — 360 → 1920 pass
   All breakpoint fixes consolidated here. Do not edit above this line.
═══════════════════════════════════════════════════════════════════ */

/* ── 1440px: keep demo-info breathing room ── */
@media (max-width: 1440px) {
  .demo-info { padding: 72px 48px; }
}

/* ── 1280px: tighten demo padding ── */
@media (max-width: 1280px) {
  .demo-info { padding: 64px 44px; }
}

/* ── 1024px: intermediate tablet-landscape ──
   Scoped to (min-width:901px) — its own comment says "intermediate
   tablet-landscape", and the very next block already scopes the same
   range correctly. Without that lower bound this block sat later in the
   file than the 899px/900px single-column stacking rules above, so its
   2-column percentages silently won the cascade at every width down to
   0, and .arvr-panel / .demo-scene never actually stacked to one column
   on real phones despite those rules saying `grid-template-columns: 1fr`. */
@media (max-width: 1024px) and (min-width: 901px) {
  /* Panels: equal columns at this breakpoint */
  .arvr-panel { grid-template-columns: 50% 50%; }

  /* Demo scenes: slightly less aggressive split */
  .demo-scene               { grid-template-columns: 55% 45%; }
  .demo-scene:nth-child(even) { grid-template-columns: 45% 55%; }

  /* Demo info: balanced padding */
  .demo-info { padding: 56px 40px; }

  /* Panel heading: clamp instead of fixed for mid-range */
  .panel-h2 { font-size: clamp(2.2rem, 4vw, 4.8rem); }
}

/* ── 900px–1024px: ensure demo-info border consistency ── */
@media (max-width: 1024px) and (min-width: 901px) {
  .demo-scene:nth-child(even) .demo-info {
    border-right: none;
    border-left: 1px solid var(--arvr-rule);
  }
}

/* ── 834px: tablet portrait ── */
@media (max-width: 834px) {
  .arvr-hero-content { padding-bottom: 48px; }
  .arvr-demos-label  { padding: 64px 0 48px; }
}

/* ── 768px: hero tags separators hidden when wrapped ── */
@media (max-width: 768px) {
  /* Hide dot separators so wrapping tags don't show orphaned dots */
  .arvr-hero-tags .tag-sep { display: none; }
  .arvr-hero-tags { gap: 8px 12px; }

  /* Ensure CTA meets 44px touch target */
  .arvr-hero-cta { min-height: 48px; padding: 14px 36px; }
}

/* ── 640px: tighter panel right visual area ── */
@media (max-width: 640px) {
  .panel-right   { min-height: 240px; }
  .panel-bg-num  { font-size: 6rem; }
  .arvr-demos-label { padding: 56px 0 40px; }
  .arvr-demos-label h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
}

/* ── 480px: small phones (iPhone SE size) ── */
@media (max-width: 480px) {
  /* Hero */
  .arvr-hero-content { padding-bottom: 40px; }
  .hero-scroll-hint  { bottom: 20px; }

  /* Panels */
  .panel-left   { padding: 36px 20px 28px; }
  .panel-h2     { font-size: clamp(1.9rem, 7.5vw, 2.4rem); }
  .panel-right  { min-height: 220px; }
  .panel-bg-num { display: none; } /* reclaim layout space at this size */
  .panel-desc   { font-size: 0.9rem; line-height: 1.7; }

  /* Demo scenes */
  .demo-info { padding: 36px 20px 40px; }
  .demo-info h2 { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }
  .demo-info p  { font-size: 0.88rem; }

  /* Model viewer: ensure enough height for meaningful 3D view */
  model-viewer.viewer { min-height: 300px !important; height: 300px !important; }

  /* CTA */
  .arvr-cta         { padding: 80px 0; }
  .arvr-cta-wrap p  { font-size: 0.9rem; }
  .arvr-cta-btn     { min-height: 48px; padding: 14px 36px; }

  /* Buttons: full width on small phones */
  .arvr-ar-launch { max-width: 100%; }
  .view-ar-btn    { max-width: 100%; }
}

/* ── 390px: iPhone 14 / common Android reference ── */
@media (max-width: 390px) {
  .panel-left { padding: 32px 18px 24px; }
  .demo-info  { padding: 32px 18px 36px; }
  .arvr-hero-content { padding-bottom: 36px; }
  .arvr-hero-cta { padding: 13px 28px; font-size: 0.88rem; }
}

/* ── 360px: absolute floor ── */
@media (max-width: 360px) {
  .panel-left  { padding: 28px 16px 22px; }
  .panel-right { min-height: 240px; }   /* more SVG breathing room at floor */
  .demo-info   { padding: 28px 16px 32px; }

  /* Tag pills: tighter at floor */
  .panel-tech-tag { font-size: 0.60rem; padding: 4px 9px; }
  .demo-tag-pill  { font-size: 0.55rem; }

  /* Marquee: slightly faster for narrow viewports */
  .arvr-marquee-track { animation-duration: 22s; }
}

/* ── Reduced-motion: guarantee all GSAP-animated content is visible ── */
@media (prefers-reduced-motion: reduce) {
  /* Force visibility of anything GSAP may have set to opacity:0 */
  .arvr-eyebrow,
  .arvr-hero-tags,
  .arvr-hero-cta,
  .panel-icon,
  .panel-h2,
  .panel-desc,
  .panel-tech-tags,
  .panel-bg-num,
  .panel-right,
  .demo-tag-pill,
  .demo-info h2,
  .demo-info p,
  .view-ar-btn,
  .arvr-cta-wrap h2,
  .arvr-cta-wrap p,
  .arvr-cta-wrap .arvr-cta-btn {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Pause all SVG CSS animations */
  .pv-float,
  .pv-float-sm,
  .pv-float-d,
  .pv-spin-ring,
  .pv-spin-slow,
  .pv-spin-r,
  .pv-breathe,
  .pv-breathe-d,
  .pv-pulse,
  .pv-pulse-d,
  .pv-scan,
  .pv-blink,
  .pv-blink-d,
  .hero-scroll-line,
  .hero-scroll-hint { animation: none !important; }

  /* Disable backdrop blur (expensive & jank-prone) */
  .heritage-ann { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── Performance: reduce backdrop blur on mobile ── */
@media (max-width: 768px) {
  .heritage-ann {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}
