﻿
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--warm-white);
}

/* video plate */
.hero-plate {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  /* No CSS filter() here — it forces a fullscreen compositor pass on
     every decoded frame and was the main cause of stuttering at the
     old 3K/34Mbps source. Darken via .hero-atmos-base instead. */
  transform: translateZ(0) scale(1.06);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 1.4s var(--ease-out);
}
.hero[data-state="ready"] .hero-video { transform: translateZ(0) scale(1.02); }

/* atmospheric layers */
.hero-atmos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-atmos-base {
  position: absolute; inset: 0;
  background: var(--ink-deep);
  /* Compensates for the brightness() filter we removed from .hero-video
     so the plate keeps its cinematic mood. */
  opacity: 0.68;
}
.hero-atmos-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,9,8,0.92) 0%,
      rgba(10,9,8,0.48) 28%,
      rgba(10,9,8,0.48) 62%,
      rgba(10,9,8,0.98) 100%);
}
.hero-atmos-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(10,9,8,0.12) 40%,
    rgba(10,9,8,0.55) 85%,
    rgba(10,9,8,0.92) 100%);
}
.hero-atmos-chapter {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: blur(48px) saturate(1.1);
  transform: scale(1.12);
  /* snappy transition â€” thumbnails preloaded so no load delay */
  transition: opacity 0.3s var(--ease-out), transform 0.6s var(--ease-out);
  mix-blend-mode: screen;
}
.hero-atmos-chapter.active { opacity: 0.38; transform: scale(1.05); }


/* â”€â”€ Hero title (intro) â”€â”€ */
.hero-title {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out);
}
.hero[data-state="intro"] .hero-title { opacity: 1; }
.hero[data-state="fade"]  .hero-title {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 40px));
  transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out);
}
.hero[data-state="ready"] .hero-title { display: none; }

.ht-kicker {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: rgba(232, 226, 214, 0.72);
  margin-bottom: 34px;
  opacity: 0;
  animation: htFadeIn 1.2s var(--ease-out) 0.1s forwards;
}
.ht-kicker .ht-rule {
  width: 54px; height: 1px;
  background: rgba(196, 167, 108, 0.6);
}
.ht-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.8rem, 11vw, 9rem);
  line-height: 0.92;
  margin: 0;
  color: var(--warm-white);
  letter-spacing: -0.015em;
}
.ht-name .ht-first, .ht-name .ht-last {
  display: block;
  overflow: hidden;
}
.ht-name .ht-last { font-style: italic; color: var(--bronze-pale); }
.ht-name .ht-first span, .ht-name .ht-last span {
  display: inline-block;
  transform: translateY(110%);
  animation: htNameRise 1.3s var(--ease-out) 0.35s forwards;
}
.ht-name .ht-last span { animation-delay: 0.55s; }

.ht-tagline {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: rgba(232, 226, 214, 0.78);
  opacity: 0;
  animation: htFadeIn 1.1s var(--ease-out) 1s forwards;
}
@keyframes htFadeIn { to { opacity: 1; } }
@keyframes htNameRise { to { transform: none; } }


/* â”€â”€ Hotspots â”€â”€ */
.hotspots {
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.hero[data-state="ready"] .hotspots,
.hero[data-state="fade"]  .hotspots { opacity: 1; }

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  scale: 0.5;
  transition:
    opacity 0.9s var(--ease-out),
    scale 0.9s var(--ease-out);
}
.hotspot.visible { opacity: 1; scale: 1; }

/* pin body */
.hs-pin {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: transform 0.55s var(--ease-out);
}
.hs-pin-num {
  position: relative;
  z-index: 2;
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--warm-white);
  opacity: 0.9;
  transition: color 0.3s, opacity 0.3s, transform 0.55s var(--ease-out);
}
.hs-pin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 226, 214, 0.52);
  /* Subtle dark fill makes the pin readable over any video frame */
  background: rgba(10, 9, 8, 0.30);
  transition: border-color 0.4s, transform 0.55s var(--ease-out), opacity 0.4s, background 0.4s;
}
.hs-pin-core {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bronze-pale);
  box-shadow: 0 0 0 3px rgba(196, 167, 108, 0.18);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.hs-pin-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(196, 167, 108, 0.42);
  opacity: 0;
  /* Stagger pulses so different pins breathe at different times */
  animation: hsPulse 3.4s ease-out infinite;
  animation-delay: calc(var(--hs-i, 0) * 0.22s);
}
@keyframes hsPulse {
  0%   { transform: scale(0.65); opacity: 0; }
  30%  { opacity: 0.85; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* label rail — softly visible at rest, blooms on hover/focus/active.
   Ambient visibility lets visitors scan the hero without hunting; the
   bronze rule and italic name place every category in editorial relation.
   A persistent low-alpha ink halo keeps text crisp on any photo —
   it deepens on interaction without ever "popping in" jarringly.
   hs-left flips the label to the left side for right-half pins. */
.hs-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  transform: translate(0, -50%);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.62;
  will-change: opacity, transform;
  transition:
    opacity 0.32s var(--ease-out),
    transform 0.4s var(--ease-out),
    gap 0.4s var(--ease-out);
}
/* hs-left: label sits left of pin */
.hotspot.hs-left .hs-label {
  left: auto;
  right: calc(100% + 14px);
  flex-direction: row-reverse;
  transform: translate(0, -50%);
}
.hs-label-rule {
  width: 22px; height: 1px;
  background: var(--bronze-pale);
  opacity: 0.5;
  transition: width 0.45s var(--ease-out), opacity 0.35s var(--ease-out);
}
.hs-label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  /* Narrow at rest so adjacent pins' labels never overlap;
     expands on hover for full readability. */
  max-width: 14vw;
  padding: 4px 10px;
  border-radius: 999px;
  /* Subtle persistent ink halo — invisible on dark areas, lifts the
     text off bright photo regions. Strengthens on hover. */
  background: rgba(10, 9, 8, 0.32);
  backdrop-filter: blur(4px) saturate(1.05);
  -webkit-backdrop-filter: blur(4px) saturate(1.05);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.01em;
  opacity: 0.92;
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(10, 9, 8, 0.85), 0 1px 3px rgba(10, 9, 8, 0.6);
  transition:
    max-width 0.45s var(--ease-out),
    opacity 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    background 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out);
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-label-num {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  opacity: 0.85;
  flex: 0 0 auto;
}
.hs-label-dash {
  color: var(--bronze-pale);
  opacity: 0.6;
  flex: 0 0 auto;
}
.hs-label-name {
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18vw;
}
.hotspot:hover .hs-pin,
.hotspot:focus-visible .hs-pin { transform: scale(1.12); }
.hotspot:hover .hs-pin-ring,
.hotspot:focus-visible .hs-pin-ring {
  border-color: var(--bronze-pale);
  transform: scale(1.32);
  box-shadow: 0 0 0 6px rgba(196, 167, 108, 0.08);
}
.hotspot:hover .hs-pin-num { opacity: 0; transform: scale(0.6); }
.hotspot:hover .hs-pin-core { opacity: 1; transform: scale(1); }
/* hover/focus/active: brighten label, expand its breathing room and the
   bronze rule, deepen the halo for full legibility. No translate
   shift — labels are already settled, just bloom in place. */
.hotspot:hover .hs-label,
.hotspot:focus-visible .hs-label,
.hotspot.is-active .hs-label {
  opacity: 1;
  gap: 14px;
}
.hotspot:hover .hs-label-rule,
.hotspot:focus-visible .hs-label-rule,
.hotspot.is-active .hs-label-rule { width: 40px; opacity: 1; }
.hotspot:hover .hs-label-text,
.hotspot:focus-visible .hs-label-text,
.hotspot.is-active .hs-label-text {
  max-width: 22vw;
  opacity: 1;
  color: var(--warm-white);
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
}

/* When a sibling hotspot is active, dim the others — never compete
   for attention while the visitor is reading one. */
.hotspot.is-dim { opacity: 0.32; filter: saturate(0.4); }
.hotspot.is-dim .hs-label { opacity: 0 !important; }

/* ── Density variants: shrink pins when many categories pack the hero ── */
#hotspots[data-density="dense"] .hs-pin {
  width: 38px; height: 38px;
}
#hotspots[data-density="dense"] .hs-pin-num {
  font-size: 9px;
}
#hotspots[data-density="very-dense"] .hs-pin {
  width: 32px; height: 32px;
}
#hotspots[data-density="very-dense"] .hs-pin-num {
  font-size: 8.5px;
}
#hotspots[data-density="very-dense"] .hs-label-text {
  font-size: 12px;
}

/* Invisible bridge & enlarged hit area — keeps pointer inside the
   "hover zone" so the preview doesn't collapse mid-traversal, and
   gives precision-pointer users (trackpad, stylus) more margin. */
.hotspot::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
}


/* â”€â”€ Hover preview panel â”€â”€ */
.preview {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  width: 300px;
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(196, 167, 108, 0.18);
  padding: 18px 18px 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out);
}
.preview.active { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.preview.active:hover { border-color: rgba(196, 167, 108, 0.34); }
/* Invisible bridge on the panel side too — catches the pointer as it
   crosses the gap between hotspot and preview. */
.preview.active::before {
  content: '';
  position: absolute;
  inset: -24px;
  pointer-events: auto;
  z-index: -1;
}
.preview-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}
.preview-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 2s var(--ease-out);
}
.preview.active .preview-frame img { transform: scale(1.04); }
.preview-body { padding-top: 16px; }
.preview-kicker {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bronze-pale);
}
.preview-title {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.12;
}
.preview-rule {
  display: block;
  width: 36px; height: 1px;
  background: var(--bronze-pale);
  margin: 8px 0;
  opacity: 0.6;
}
.preview-meta {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--muted-light);
}
.preview-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 9px 14px;
  background: rgba(196, 167, 108, 0.10);
  border: 1px solid rgba(196, 167, 108, 0.32);
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.preview-cta:hover,
.preview-cta:focus-visible {
  background: rgba(196, 167, 108, 0.22);
  border-color: var(--bronze-pale);
  color: var(--warm-white);
  transform: translateX(2px);
}


/* â”€â”€ Hero chrome (bottom row) â”€â”€ */
.hero-chrome {
  position: absolute;
  left: var(--page-gutter);
  right: var(--page-gutter);
  bottom: 42px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: 0.4s;
}
.hero[data-state="ready"] .hero-chrome,
.hero[data-state="fade"]  .hero-chrome {
  opacity: 1; transform: none;
}

.hero-chrome-mark {
  display: inline-flex; align-items: center; gap: 16px;
}
.hcm-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  color: var(--bronze-pale);
}
.hcm-rule { width: 32px; height: 1px; background: rgba(196, 167, 108, 0.5); }
.hcm-label {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(232, 226, 214, 0.7);
  max-width: 160px;
}

.hero-enter {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  border: 1px solid rgba(196, 167, 108, 0.45);
  transition: background 0.5s, border-color 0.5s, color 0.5s, gap 0.5s var(--ease-out);
}
.hero-enter:hover {
  background: var(--bronze-pale);
  border-color: var(--bronze-pale);
  color: var(--ink-deep);
  gap: 20px;
}
.henter-eye {
  font-family: var(--font-sc);
  font-size: 9px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  transition: color 0.5s;
}
.hero-enter:hover .henter-eye { color: var(--ink-deep); opacity: 0.6; }
.henter-line {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--warm-white);
  transition: color 0.5s;
}
.hero-enter:hover .henter-line { color: var(--ink-deep); }

.hero-scroll {
  justify-self: end;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(232, 226, 214, 0.7);
}
.hscroll-line {
  position: relative;
  width: 1px; height: 46px;
  background: rgba(232, 226, 214, 0.15);
  overflow: hidden;
}
.hscroll-line-inner {
  position: absolute;
  top: -20px; left: 0; right: 0;
  height: 20px;
  background: var(--bronze-pale);
  animation: scrollCue 2.4s var(--ease-out) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(0); }
  100% { transform: translateY(66px); }
}

/* ── Below 900px the hero collapses to a unified mobile composition.
   Layout & full styling for the small-screen hotspot card carousel
   live in experience.css under "MOBILE REBUILD ≤ 900px". This file
   stops styling .hotspots once the desktop constellation no longer
   applies, so the two systems never collide.
   ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .preview { display: none; }
  /* Centre the hero chrome / CTA bar so it sits cleanly under the rail. */
  .hero-chrome {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
    gap: 14px;
    bottom: clamp(16px, 4vh, 28px);
    padding: 0 clamp(16px, 5vw, 28px);
  }
  .hero-chrome-mark { display: none; }
  .hero-scroll      { display: none; }
  .hero-enter {
    justify-self: center;
    padding: 12px 22px;
    background: rgba(10, 9, 8, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  /* Pull the hero title slightly up so the hotspots+CTA have room. */
  .hero-title { top: 28%; }
}

/* Dense layouts: when many categories share the hero, shrink pins and
   tighten label typography. JS sets data-density based on count.
   Labels remain hover-only at every density — the constellation
   stays clean regardless of how many categories are present. */
.hotspots[data-density="dense"] .hs-pin { width: 36px; height: 36px; }
.hotspots[data-density="dense"] .hs-label-text { font-size: 13px; max-width: 18vw; }
.hotspots[data-density="dense"] .hs-label-name { max-width: 16vw; }
.hotspots[data-density="very-dense"] .hs-pin { width: 30px; height: 30px; }
.hotspots[data-density="very-dense"] .hs-pin-num { font-size: 9px; }
.hotspots[data-density="very-dense"] .hs-label { gap: 6px; }
.hotspots[data-density="very-dense"] .hs-label-text { font-size: 12px; max-width: 14vw; }
.hotspots[data-density="very-dense"] .hs-label-name { max-width: 12vw; }


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   4. ABOUT
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

