/* ============================================================
   Hero Collage — Stylesheet
   Harm Jan Schuurman CMS  |  VER 9.06
   ============================================================ */

/* ── Reset within hero scope ────────────────────────────────── */
.hero-section *,
.hero-section *::before,
.hero-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Section container ───────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* bg_color comes from inline style on the element */
  background: #0e0e0e;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Diagonal sunlight beam with shadow stripe — light from upper right */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  background: linear-gradient(
    148deg,
    transparent               0%,
    transparent              20%,
    rgba(255, 255, 255, 0.05) 26%,
    rgba(255, 255, 255, 0.30) 36%,   /* lichtband — duidelijk zichtbaar */
    rgba(255, 255, 255, 0.05) 46%,
    rgba(0,   0,   0,   0.22) 52%,   /* schaduwstreep */
    transparent               60%,
    transparent              100%
  );
}

/* Vignette — softer, lighter edges */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 90% 85% at 58% 48%,
      transparent 35%,
      rgba(0, 0, 0, 0.30) 70%,
      rgba(0, 0, 0, 0.65) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.18) 0%,
      transparent 40%
    );
}


/* ── Stage: where all cards live ─────────────────────────────── */
/* Design canvas is 1600 × 900 px; JS scales to fill any viewport */
.hero-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width:  1600px;
  height:  900px;
  z-index: 10;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
}


/* ════════════════════════════════════════════════════════════
   PHOTO CARDS
   ════════════════════════════════════════════════════════════ */

.hero-card {
  position: absolute;
  /* Position set by JS via data-* attributes per breakpoint */
  cursor: pointer;
  transform-origin: center center;
  /* Rotation via CSS custom property set inline */
  transform: rotate(var(--card-rot, 0deg));
  will-change: transform;
  transition:
    transform  0.45s cubic-bezier(0.22, 0.68, 0, 1.18),
    box-shadow 0.45s ease,
    z-index    0s;
}

.hero-card:hover {
  transform: rotate(calc(var(--card-rot, 0deg) * 0.05)) scale(1.07) !important;
  z-index: 900 !important;
}

/* Image fills the card inner area — maximum rendering quality */
.hero-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  image-rendering: high-quality;
  -webkit-image-rendering: high-quality;
  /* Force GPU compositing for sharper scaling on retina */
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ── Overlay text ON the photo ────────────────────────────── */
.hero-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  color: #fff;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
}

/* ── Caption below image (polaroid / framed) ─────────────── */
.hero-card__caption {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 11px;
  color: #a89880;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1;
  /* positioned in padding area below image — see variant styles */
}

/* ── Clickable wrapper (link) ────────────────────────────── */
.hero-card__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* ── Card inner: contains image + overlay ────────────────── */
.hero-card__inner {
  position: relative;
  width: 100%;
  /* Height set by JS from data-h-* attributes */
  overflow: hidden;
}


/* ════════════════════════════════════════════════════════════
   STYLE VARIANTS
   ════════════════════════════════════════════════════════════ */

/* ── POLAROID ─────────────────────────────────────────────── */
.hero-card--polaroid {
  background: #f6f6f4;
  padding: 10px 10px 42px;
  /* Left-biased shadows: light comes from right (window) */
  box-shadow:
    -1px 2px 4px  rgba(0, 0, 0, 0.22),
    -3px 6px 20px rgba(0, 0, 0, 0.42),
    -6px 12px 44px rgba(0, 0, 0, 0.32);
}
.hero-card--polaroid .hero-card__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding-bottom: 11px;
}
.hero-card--polaroid:hover {
  box-shadow:
    -2px 4px 8px  rgba(0, 0, 0, 0.3),
    -8px 16px 48px rgba(0, 0, 0, 0.65),
    -12px 24px 72px rgba(0, 0, 0, 0.4);
}

/* ── FRAMED ───────────────────────────────────────────────── */
.hero-card--framed {
  background: transparent;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    2px 4px 16px rgba(0, 0, 0, 0.5),
    4px 8px 32px rgba(0, 0, 0, 0.35);
}
.hero-card--framed:hover {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    4px 8px 24px rgba(0, 0, 0, 0.6),
    8px 16px 56px rgba(0, 0, 0, 0.45);
}

/* ── SHADOWED ─────────────────────────────────────────────── */
.hero-card--shadowed {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow:
    4px 8px 24px rgba(0, 0, 0, 0.55),
    8px 16px 48px rgba(0, 0, 0, 0.40),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}
.hero-card--shadowed:hover {
  box-shadow:
    6px 12px 36px rgba(0, 0, 0, 0.7),
    12px 24px 72px rgba(0, 0, 0, 0.5);
}

/* ── PROMO POLAROID — clickable navigation tile ──────────── */
/* Warm-white border, subtle pulsing glow, label in passepartout */
.hero-card--promo {
  background: #f5f3ef;
  padding: 10px 10px 42px;
  box-shadow:
    -1px 2px 4px  rgba(0, 0, 0, 0.22),
    -3px 6px 20px rgba(0, 0, 0, 0.42),
    -6px 12px 44px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 248, 230, 0.08);
  cursor: pointer;
}
.hero-card--promo .hero-card__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding-bottom: 11px;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8578;
}
/* Pulsing glow — subtle warm light */
.hero-card--promo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 1px;
  z-index: -1;
  opacity: 0;
  box-shadow: 0 0 20px 4px rgba(255, 245, 220, 0.15);
  animation: promoGlow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes promoGlow {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}
/* Hover: elevate + brighten */
.hero-card--promo:hover {
  transform: rotate(calc(var(--card-rot, 0deg) * 0.05)) scale(1.05) !important;
  box-shadow:
    -2px 4px 8px  rgba(0, 0, 0, 0.3),
    -8px 16px 48px rgba(0, 0, 0, 0.55),
    -12px 24px 72px rgba(0, 0, 0, 0.35),
    0 0 24px 6px rgba(255, 245, 220, 0.12);
  z-index: 900 !important;
}
.hero-card--promo:hover::after {
  animation: none;
  opacity: 1;
}
.hero-card--promo:hover .hero-card__caption {
  color: #c8b99a;
}

/* ── PLAIN ────────────────────────────────────────────────── */
.hero-card--plain {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow:
    2px 4px 12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}
.hero-card--plain:hover {
  box-shadow:
    4px 8px 24px rgba(0, 0, 0, 0.5),
    8px 16px 40px rgba(0, 0, 0, 0.35);
}


/* ════════════════════════════════════════════════════════════
   TEXT LAYERS
   ════════════════════════════════════════════════════════════ */

.hero-text-layer {
  position: absolute;
  z-index: 200;
  /* Position, font-size, color, max-width set by JS */
  pointer-events: none;
  transform: rotate(var(--text-rot, 0deg));
  line-height: 1.25;
}

.hero-text-layer a {
  color: inherit;
  text-decoration: none;
  pointer-events: all;
}
.hero-text-layer a:hover {
  text-decoration: underline;
}

/* ── Type: headline ─────────────────────────────────── */
.hero-text-layer--headline {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ── Type: caption ──────────────────────────────────── */
.hero-text-layer--caption {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Type: label ────────────────────────────────────── */
.hero-text-layer--label {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ── Type: handwritten ──────────────────────────────── */
.hero-text-layer--handwritten {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ── Type: info ─────────────────────────────────────── */
.hero-text-layer--info {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-text-layer--info strong {
  display: block;
  font-weight: 600;
  font-size: 1.4em;
  line-height: 1;
  letter-spacing: -0.02em;
}


/* ════════════════════════════════════════════════════════════
   HERO UI LAYER (name card / CTA / contact rail)
   — sits above vignette (z-index > 50)
   ════════════════════════════════════════════════════════════ */

.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

/* ── Name & CTA — bottom-left ─────────────────────────────── */
.hero-ui__name {
  position: absolute;
  bottom: 28px;
  left: 30px;
  pointer-events: all;
}
/* Subtle gradient behind the name for readability */
.hero-ui__name::before {
  content: '';
  position: absolute;
  inset: -50px -60px -24px -60px;
  background: radial-gradient(
    ellipse 130% 140% at 0% 100%,
    rgba(10, 8, 6, 0.68) 28%,
    transparent 75%
  );
  pointer-events: none;
  z-index: -1;
}
.hero-ui__tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 6px;
}
.hero-ui__title {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
  margin-bottom: 5px;
}
.hero-ui__sub {
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 20px;
}

/* ── CTA button ───────────────────────────────────────────── */
.hero-cta {
  display: inline-block;
  padding: 10px 26px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.hero-cta:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ── Contact rail — right side ────────────────────────────── */
.hero-contact-rail {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: all;
}
.hero-contact-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(15, 15, 15, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s;
}
.hero-contact-rail a:hover {
  background: rgba(60, 54, 44, 0.88);
  color: rgba(255, 255, 255, 0.9);
}
.hero-contact-rail a svg {
  width: 15px; height: 15px;
  fill: currentColor;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* ── Tablet: < 1024px ────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-ui__name {
    bottom: 22px;
    left: 22px;
  }
  .hero-contact-rail a {
    width: 36px; height: 36px;
  }
}

/* ── Mobile: < 768px ─────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-section {
    /* On mobile, allow slight scroll so stacked cards aren't cut */
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
  .hero-section::after {
    /* Lighter vignette on mobile */
    background: radial-gradient(
      ellipse 100% 100% at 50% 50%,
      transparent 20%,
      rgba(0, 0, 0, 0.60) 80%
    );
  }
  .hero-stage {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    min-height: 100svh;
    transform: none;
  }
  .hero-ui__name {
    position: relative;
    padding: 24px 20px 28px;
    bottom: auto; left: auto;
  }
  .hero-ui__name::before {
    display: none;
  }
  .hero-ui__title {
    font-size: 26px;
  }
  .hero-contact-rail {
    display: none; /* hidden on mobile — use footer contact instead */
  }

  /* Text-polaroid is desktop-only — on mobile hero-ui__name handles branding.
     Without data-x-mobile set, hero.js would place this card at 0,0 (top-left corner). */
  .hero-text-polaroid {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   V9.15 NAVIGATION CTA CARDS
   ════════════════════════════════════════════════════════════ */

/* ── NAV-PHOTO — Clickable photo card with hover overlay ── */
.hero-card--nav-photo {
  background: #f5f3ef;
  padding: 8px 8px 36px;
  box-shadow:
    -1px 2px 4px  rgba(0, 0, 0, 0.22),
    -3px 6px 20px rgba(0, 0, 0, 0.42),
    -6px 12px 44px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.hero-card--nav-photo .hero-card__inner {
  overflow: hidden;
  position: relative;
}
.hero-card--nav-photo .nav-photo-bg {
  transition: transform 0.6s cubic-bezier(.23,1,.32,1), filter 0.4s;
}
.hero-card--nav-photo:hover .nav-photo-bg {
  transform: scale(1.08);
  filter: brightness(1.1);
}
.hero-card--nav-photo:hover {
  transform: rotate(0deg) translateY(-5px) !important;
  box-shadow:
    -2px 4px 8px  rgba(0, 0, 0, 0.3),
    -8px 16px 48px rgba(0, 0, 0, 0.55),
    -12px 24px 72px rgba(0, 0, 0, 0.35),
    0 0 24px 6px rgba(255, 245, 220, 0.12);
  z-index: 900 !important;
}
.hero-card--nav-photo .hero-card__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding-bottom: 9px;
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 11px;
  color: #5a5550;
  text-align: center;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.hero-card--nav-photo:hover .hero-card__caption {
  color: #2a2520;
}

/* Pulsing glow on nav-photo */
.hero-card--nav-photo::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  box-shadow: 0 0 18px 4px rgba(255, 245, 220, 0.12);
  animation: promoGlow 4s ease-in-out infinite;
  pointer-events: none;
}

/* ── NAV-TYPO — Light typographic card ────────────────────── */
.hero-card--nav-typo {
  background: #f5f3f0;
  padding: 0;
  box-shadow:
    -1px 2px 4px  rgba(0, 0, 0, 0.18),
    -3px 6px 20px rgba(0, 0, 0, 0.32),
    -6px 12px 44px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.hero-card--nav-typo:hover {
  transform: rotate(0deg) translateY(-5px) !important;
  z-index: 900 !important;
}
.nav-typo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 14px;
  position: relative;
}
.nav-typo-line {
  width: 18px;
  height: 1px;
  background: #c8c0b4;
}
.nav-typo-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: #4a4540;
  text-align: center;
  line-height: 1.4;
}
.hero-card--nav-typo:hover .nav-typo-text {
  color: #222;
}

/* ── NAV-CTA — Dark appointment card ─────────────────────── */
.hero-card--nav-cta {
  background: #1c1a17;
  padding: 0;
  box-shadow:
    -1px 2px 4px  rgba(0, 0, 0, 0.25),
    -3px 6px 20px rgba(0, 0, 0, 0.45),
    -6px 12px 44px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.hero-card--nav-cta:hover {
  transform: rotate(0deg) translateY(-5px) !important;
  box-shadow: 0 0 20px 4px rgba(255, 245, 220, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  z-index: 900 !important;
}
.nav-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 14px;
}
.nav-cta-line {
  width: 20px;
  height: 1px;
  background: #3a3530;
}
.nav-cta-text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 13px;
  color: #d8d0c4;
  text-align: center;
  line-height: 1.4;
}
.hero-card--nav-cta:hover .nav-cta-text {
  color: #f0e8d8;
}
.nav-cta-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 7px;
  color: #6a6458;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Shared nav card elements ─────────────────────────────── */

/* Overlay — appears on hover */
.nav-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 3;
  padding: 10px;
}
.hero-card--nav-photo:hover .nav-overlay,
.hero-card--nav-typo:hover .nav-overlay {
  opacity: 1;
}
.nav-overlay-label {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14px;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.nav-overlay-arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s;
}
.hero-card--nav-photo:hover .nav-overlay-arrow,
.hero-card--nav-typo:hover .nav-overlay-arrow {
  transform: translateY(3px);
}

/* Hint label at bottom — fades on hover */
.nav-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
  z-index: 2;
  transition: opacity 0.3s;
}
.hero-card--nav-photo:hover .nav-hint,
.hero-card--nav-typo:hover .nav-hint {
  opacity: 0;
}

/* Tooltip showing link destination */
.nav-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(20, 18, 16, 0.92);
  color: #c8c0b4;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 100;
}
.hero-card--nav-photo:hover .nav-tooltip,
.hero-card--nav-typo:hover .nav-tooltip,
.hero-card--nav-cta:hover .nav-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.nav-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20, 18, 16, 0.92);
}

/* ── Mobile: hide nav cards ── */
@media (max-width: 767px) {
  .hero-card--nav-photo,
  .hero-card--nav-typo,
  .hero-card--nav-cta {
    display: none !important;
  }
}


/* ════════════════════════════════════════════════════════════
   V9.15 ROOM ENVIRONMENT
   ════════════════════════════════════════════════════════════ */

/* ── Wallpaper classes ──────────────────────────────────── */
.hero-section.hero-wp-dark    { background-color: #15120e !important; }
.hero-section.hero-wp-concrete {
  background-color: #b8b6b2 !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E") !important;
  background-size: 100% 100%, 512px 512px !important;
}
.hero-section.hero-wp-plaster {
  background-color: #d4d2ce !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.45' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.035'/%3E%3C/svg%3E") !important;
  background-size: 100% 100%, 400px 400px !important;
}
.hero-section.hero-wp-white     { background-color: #f0efed !important; }
.hero-section.hero-wp-warmgrey  { background-color: #c8c4be !important; }
.hero-section.hero-wp-custom    { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }

/* ── Wall ambient light ─────────────────────────────────── */
.hero-wall-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s;
}

/* ── Spot rail system ───────────────────────────────────── */
.hero-spot-system {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.hero-spot-system.on { opacity: 1; }

.hero-spot-track {
  position: absolute;
  top: 6px; left: 2%; right: 2%;
  height: 6px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #222 100%);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
}

.hero-spot-fix {
  position: absolute;
  top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-spot-arm {
  width: 2px;
  height: 8px;
  background: linear-gradient(90deg, #333, #444, #333);
}

.hero-spot-body {
  width: 16px;
  height: 22px;
  background: linear-gradient(90deg, #222 0%, #3a3a3a 30%, #444 50%, #3a3a3a 70%, #222 100%);
  border-radius: 2px 2px 4px 4px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,.4);
}

.hero-spot-lens {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: radial-gradient(circle, #fff 0%, #ddd 40%, #aaa 100%);
}

.hero-spot-cone {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  width: 0;
  height: 0;
  filter: blur(12px);
}

.hero-spot-pool {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(30px);
}

/* ── Floor ──────────────────────────────────────────────── */
.hero-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
  transform-origin: bottom center;
  transition: height 0.4s, opacity 0.4s;
}
.hero-floor.off {
  opacity: 0;
  height: 0 !important;
}
.hero-floor-tex {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.08'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}
.hero-plint {
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
  background: linear-gradient(180deg, #eee 0%, #fff 40%, #f8f8f8 100%);
  box-shadow: 0 -2px 6px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.06);
}

/* ── Dynamic shadows via CSS custom properties ──────────── */
/* Applied to hero-cards when room environment is active */
.hero-section[style*="--sh-x"] .hero-card {
  box-shadow:
    var(--sh-x) var(--sh-y) var(--sh-blur) rgba(0,0,0, var(--sh-op)),
    calc(var(--sh-x) * 0.3) calc(var(--sh-y) * 0.3) calc(var(--sh-blur) * 0.4) rgba(0,0,0, var(--sh-op2)),
    0 1px 3px rgba(0,0,0, var(--sh-op3));
}

/* ── Room entrance animation ────────────────────────────── */
.hero-section[data-room-anim="1"] .hero-card {
  opacity: 0;
  animation: heroRoomEntrance 0.8s cubic-bezier(0.22, 0.68, 0, 1.18) forwards;
}
@keyframes heroRoomEntrance {
  from { opacity: 0; transform: rotate(var(--card-rot, 0deg)) translateY(40px); }
  to   { opacity: 1; transform: rotate(var(--card-rot, 0deg)) translateY(0); }
}

/* ── Mobile: hide room environment ── */
@media (max-width: 767px) {
  .hero-spot-system,
  .hero-floor,
  .hero-wall-light {
    display: none !important;
  }
}

/* ── Aspect ratio modifiers (VER 9.15b) ─────────────────── */
.hero-section[data-room-aspect="landscape"] .hero-card__inner {
  aspect-ratio: 4/3;
}
.hero-section[data-room-aspect="square"] .hero-card__inner {
  aspect-ratio: 1/1;
}

/* Nav card visibility from data attributes */
.hero-section[data-room-nav-on="0"] .hero-card--nav-photo,
.hero-section[data-room-nav-on="0"] .hero-card--nav-typo,
.hero-section[data-room-nav-on="0"] .hero-card--nav-cta {
  display: none !important;
}
.hero-section[data-room-nav-overlay="0"] .hero-nav-overlay {
  display: none !important;
}
.hero-section[data-room-nav-tooltip="0"] .hero-nav-tooltip {
  display: none !important;
}
.hero-section[data-room-nav-hints="0"] .hero-nav-hint {
  display: none !important;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .hero-card:hover {
    transition: none !important;
  }
}
